summaryrefslogtreecommitdiff
path: root/modules/controlcenter/dev/DevSession.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/controlcenter/dev/DevSession.qml')
-rw-r--r--modules/controlcenter/dev/DevSession.qml23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/controlcenter/dev/DevSession.qml b/modules/controlcenter/dev/DevSession.qml
new file mode 100644
index 0000000..d911386
--- /dev/null
+++ b/modules/controlcenter/dev/DevSession.qml
@@ -0,0 +1,23 @@
+import QtQuick
+
+QtObject {
+ readonly property list<string> panes: ["wireless", "debug"]
+
+ required property var root
+ property bool floating: false
+ property string active: panes[0]
+ property int activeIndex: 0
+ property bool navExpanded: false
+
+ component Network: QtObject {
+ property var active
+ property bool showPasswordDialog: false
+ property var pendingNetwork
+ }
+
+ readonly property Network network: Network {}
+
+ onActiveChanged: activeIndex = panes.indexOf(active)
+ onActiveIndexChanged: active = panes[activeIndex]
+}
+