summaryrefslogtreecommitdiff
path: root/kodereviewer/qml/SettingsPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'kodereviewer/qml/SettingsPage.qml')
-rw-r--r--kodereviewer/qml/SettingsPage.qml39
1 files changed, 39 insertions, 0 deletions
diff --git a/kodereviewer/qml/SettingsPage.qml b/kodereviewer/qml/SettingsPage.qml
new file mode 100644
index 0000000..83e5c90
--- /dev/null
+++ b/kodereviewer/qml/SettingsPage.qml
@@ -0,0 +1,39 @@
+import QtCore
+import QtQuick 6.7
+import QtQuick.Controls 6 as QQC2
+import QtQuick.Layouts 6.7
+
+import org.kde.kirigami as Kirigami
+import org.kde.kirigamiaddons.formcard as FormCard
+
+
+FormCard.FormCardPage {
+ id: root
+
+ actions: [
+ Kirigami.Action {
+ id: saveAction
+ text: "Save"
+ onTriggered: {
+ settings.sync()
+ }
+ }
+ ]
+
+ Settings {
+ id: settings
+ property string githubToken: githubTokenField.text
+ }
+
+ FormCard.FormHeader {
+ title: "Authorization"
+ }
+
+ FormCard.FormCard {
+ FormCard.FormTextFieldDelegate {
+ id: githubTokenField
+ text: settings.githubToken
+ label: "Github Token"
+ }
+ }
+}