Warning, /network/neochat/src/qml/ServerData.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 James Graham <james.h.graham@protonmail.com> 0002 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0003 0004 import QtQuick 0005 import QtQuick.Controls as QQC2 0006 import QtQuick.Layouts 0007 0008 import org.kde.kirigami as Kirigami 0009 import org.kde.kirigamiaddons.formcard as FormCard 0010 import org.kde.kitemmodels 0011 0012 import org.kde.neochat 0013 0014 ColumnLayout { 0015 id: root 0016 0017 required property NeoChatConnection connection 0018 0019 FormCard.FormHeader { 0020 title: i18n("Server Capabilities") 0021 } 0022 FormCard.FormCard { 0023 FormCard.FormTextDelegate { 0024 text: i18n("Can change password") 0025 description: root.connection.canChangePassword 0026 } 0027 } 0028 FormCard.FormHeader { 0029 title: i18n("Default Room Version") 0030 } 0031 FormCard.FormCard { 0032 FormCard.FormTextDelegate { 0033 text: root.connection.defaultRoomVersion 0034 } 0035 } 0036 FormCard.FormHeader { 0037 title: i18n("Available Room Versions") 0038 } 0039 FormCard.FormCard { 0040 Repeater { 0041 model: room.connection.getSupportedRoomVersions() 0042 0043 delegate: FormCard.FormTextDelegate { 0044 text: modelData.id 0045 contentItem.children: QQC2.Label { 0046 text: modelData.status 0047 color: Kirigami.Theme.disabledTextColor 0048 } 0049 } 0050 } 0051 } 0052 }