@@ -23,9 +23,10 @@ Item {
2323
2424 property Item launcher
2525 property Item panel
26+ property Item stage
2627
2728 readonly property bool launcherEnabled: !running || tutorialLeft.shown
28− readonly property bool spreadEnabled: !running
29+ readonly property bool spreadEnabled: !running || tutorialRight.shown
2930 readonly property bool panelEnabled: !running || tutorialTop.shown
3031 readonly property bool panelContentEnabled: !running
3132 readonly property alias running: d.running
@@ -41,15 +42,15 @@ Item {
4142 QtObject {
4243 id: d
4344
44− property bool running: tutorialLeft.shown || tutorialTop.shown
45+ property bool running: tutorialLeft.shown || tutorialTop.shown || tutorialRight.shown
4546 }
4647
4748 TutorialLeft {
4849 id: tutorialLeft
4950 objectName: "tutorialLeft"
50− parent: root.panel
5151 anchors.fill: parent
5252 launcher: root.launcher
53+ hides: [launcher, panel.indicators]
5354
5455 Component.onCompleted: {
5556 if (AccountsService.demoEdgesCompleted.indexOf("left") == -1) {
@@ -65,9 +66,9 @@ Item {
6566 TutorialTop {
6667 id: tutorialTop
6768 objectName: "tutorialTop"
68− parent: root.panel
6969 anchors.fill: parent
7070 panel: root.panel
71+ hides: [launcher, panel.indicators]
7172
7273 Connections {
7374 target: AccountsService
@@ -87,6 +88,34 @@ Item {
8788
8889 onFinished: {
8990 AccountsService.markDemoEdgeCompleted("top");
91+ }
92+ }
93+
94+ TutorialRight {
95+ id: tutorialRight
96+ objectName: "tutorialRight"
97+ anchors.fill: parent
98+ stage: root.stage
99+ hides: [launcher, panel.indicators]
100+
101+ Connections {
102+ target: AccountsService
103+ onDemoEdgesCompletedChanged: {
104+ if (AccountsService.demoEdgesCompleted.indexOf("top") != -1 &&
105+ AccountsService.demoEdgesCompleted.indexOf("right") == -1) {
106+ tutorialRightTimer.start();
107+ }
108+ }
109+ }
110+
111+ Timer {
112+ id: tutorialRightTimer
113+ interval: 1
114+ onTriggered: tutorialRight.show()
115+ }
116+
117+ onFinished: {
118+ AccountsService.markDemoEdgeCompleted("right");
90119 root.finish();
91120 }
92121 }