Warning, /network/neochat/src/qml/ChooseRoomDialog.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2023 Tobias Fella <tobias.fella@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 import QtQuick 0005 import QtQuick.Controls 0006 0007 import org.kde.kirigami as Kirigami 0008 0009 import org.kde.neochat 0010 0011 Kirigami.ScrollablePage { 0012 id: root 0013 0014 title: i18nc("@title", "Choose a Room") 0015 0016 signal chosen(string roomId) 0017 0018 required property NeoChatConnection connection 0019 0020 header: Kirigami.SearchField { 0021 onTextChanged: sortModel.filterText = text 0022 } 0023 0024 ListView { 0025 model: SortFilterRoomListModel { 0026 id: sortModel 0027 sourceModel: RoomListModel { 0028 connection: root.connection 0029 } 0030 } 0031 delegate: RoomDelegate { 0032 id: roomDelegate 0033 filterText: "" 0034 onSelected: { 0035 root.chosen(roomDelegate.currentRoom.id); 0036 } 0037 connection: root.connection 0038 } 0039 } 0040 }