Create a feature flag page in devtools.
This commit is contained in:
committed by
Carl Schwan
parent
58c43b0cd4
commit
82ae0891a8
@@ -325,6 +325,7 @@ qt_add_qml_module(neochat URI org.kde.neochat NO_PLUGIN
|
|||||||
qml/RoomTreeSection.qml
|
qml/RoomTreeSection.qml
|
||||||
qml/DelegateContextMenu.qml
|
qml/DelegateContextMenu.qml
|
||||||
qml/ShareDialog.qml
|
qml/ShareDialog.qml
|
||||||
|
qml/FeatureFlagPage.qml
|
||||||
RESOURCES
|
RESOURCES
|
||||||
qml/confetti.png
|
qml/confetti.png
|
||||||
qml/glowdot.png
|
qml/glowdot.png
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ FormCard.FormCardPage {
|
|||||||
QQC2.TabButton {
|
QQC2.TabButton {
|
||||||
text: qsTr("Server Info")
|
text: qsTr("Server Info")
|
||||||
}
|
}
|
||||||
|
QQC2.TabButton {
|
||||||
|
text: i18nc("@title:tab", "Feature Flags")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StackLayout {
|
StackLayout {
|
||||||
@@ -43,5 +46,6 @@ FormCard.FormCardPage {
|
|||||||
ServerData {
|
ServerData {
|
||||||
connection: root.connection
|
connection: root.connection
|
||||||
}
|
}
|
||||||
|
FeatureFlagPage {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
27
src/qml/FeatureFlagPage.qml
Normal file
27
src/qml/FeatureFlagPage.qml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2024 James Graham <james.h.graham@protonmail.com>
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||||
|
|
||||||
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
import org.kde.kirigami as Kirigami
|
||||||
|
import org.kde.kirigamiaddons.formcard as FormCard
|
||||||
|
|
||||||
|
import org.kde.neochat
|
||||||
|
import org.kde.neochat.config
|
||||||
|
|
||||||
|
FormCard.FormCardPage {
|
||||||
|
id: root
|
||||||
|
|
||||||
|
FormCard.FormCard {
|
||||||
|
Layout.topMargin: Kirigami.Units.largeSpacing
|
||||||
|
|
||||||
|
FormCard.FormCheckDelegate {
|
||||||
|
id: roomAccountDataVisibleCheck
|
||||||
|
text: i18nc("@option:check Enable the matrix 'threads' feature", "Threads")
|
||||||
|
checked: Config.threads
|
||||||
|
|
||||||
|
onToggled: Config.threads = checked
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user