Warning, /network/neochat/src/qml/RoomSearchPage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Tobias Fella <tobias.fella@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 import QtQuick 0005 0006 import org.kde.neochat 0007 0008 /** 0009 * @brief Component for finding messages in a room. 0010 * 0011 * This component is based on a SearchPage and allows the user to enter a search 0012 * term into the input field and then search the room for messages with text that 0013 * matches the input. 0014 * 0015 * @sa SearchPage 0016 */ 0017 SearchPage { 0018 id: root 0019 0020 /** 0021 * @brief The room the search is being performed in. 0022 */ 0023 required property NeoChatRoom room 0024 0025 title: i18nc("@action:title", "Search Messages") 0026 0027 model: SearchModel { 0028 id: searchModel 0029 room: root.room 0030 } 0031 0032 modelDelegate: EventDelegate { 0033 room: root.room 0034 } 0035 0036 searchFieldPlaceholder: i18n("Find messages…") 0037 noSearchPlaceholderMessage: i18n("Enter text to start searching") 0038 noResultPlaceholderMessage: i18n("No messages found") 0039 0040 listVerticalLayoutDirection: ListView.BottomToTop 0041 }