summaryrefslogtreecommitdiff
path: root/modules/detachedcontent/Session.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/detachedcontent/Session.qml')
-rw-r--r--modules/detachedcontent/Session.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/detachedcontent/Session.qml b/modules/detachedcontent/Session.qml
index a3f2de5..f86528c 100644
--- a/modules/detachedcontent/Session.qml
+++ b/modules/detachedcontent/Session.qml
@@ -1,5 +1,11 @@
import QtQuick
QtObject {
+ readonly property list<string> panes: ["network", "bluetooth"]
+
property string active
+ property int activeIndex
+
+ onActiveChanged: activeIndex = panes.indexOf(active)
+ onActiveIndexChanged: active = panes[activeIndex]
}