File tree Expand file tree Collapse file tree 4 files changed +61
-30
lines changed Expand file tree Collapse file tree 4 files changed +61
-30
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,7 @@ QML_RES_QML = \
421
421
qml/pages/onboarding/OnboardingStorageAmount.qml \
422
422
qml/pages/onboarding/OnboardingStorageLocation.qml \
423
423
qml/pages/onboarding/OnboardingStrengthen.qml \
424
+ qml/pages/onboarding/OnboardingWizard.qml \
424
425
qml/pages/settings/SettingsAbout.qml \
425
426
qml/pages/settings/SettingsBlockClockDisplayMode.qml \
426
427
qml/pages/settings/SettingsConnection.qml \
Original file line number Diff line number Diff line change 61
61
<file>pages/onboarding/OnboardingStorageAmount.qml</file>
62
62
<file>pages/onboarding/OnboardingStorageLocation.qml</file>
63
63
<file>pages/onboarding/OnboardingStrengthen.qml</file>
64
+ <file>pages/onboarding/OnboardingWizard.qml</file>
64
65
<file>pages/settings/SettingsAbout.qml</file>
65
66
<file>pages/settings/SettingsBlockClockDisplayMode.qml</file>
66
67
<file>pages/settings/SettingsConnection.qml</file>
Original file line number Diff line number Diff line change @@ -65,36 +65,8 @@ ApplicationWindow {
65
65
66
66
Component {
67
67
id: onboardingWizard
68
- SwipeView {
69
- id: swipeView
70
- property bool finished: false
71
- interactive: false
72
-
73
- OnboardingCover {
74
- onNext: swipeView .incrementCurrentIndex ()
75
- }
76
- OnboardingStrengthen {
77
- onBack: swipeView .decrementCurrentIndex ()
78
- onNext: swipeView .incrementCurrentIndex ()
79
- }
80
- OnboardingBlockclock {
81
- onBack: swipeView .decrementCurrentIndex ()
82
- onNext: swipeView .incrementCurrentIndex ()
83
- }
84
- OnboardingStorageLocation {
85
- onBack: swipeView .decrementCurrentIndex ()
86
- onNext: swipeView .incrementCurrentIndex ()
87
- }
88
- OnboardingStorageAmount {
89
- onBack: swipeView .decrementCurrentIndex ()
90
- onNext: swipeView .incrementCurrentIndex ()
91
- }
92
- OnboardingConnection {
93
- onBack: swipeView .decrementCurrentIndex ()
94
- onNext: swipeView .finished = true
95
- }
96
-
97
- onFinishedChanged: {
68
+ OnboardingWizard {
69
+ onFinished: {
98
70
optionsModel .onboard ()
99
71
if (AppMode .walletEnabled && AppMode .isDesktop ) {
100
72
main .push (desktopWallets)
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2024 The Bitcoin Core developers
2
+ // Distributed under the MIT software license, see the accompanying
3
+ // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
+
5
+ import QtQuick 2.15
6
+ import QtQuick.Controls 2.15
7
+ import QtQuick.Layouts 1.15
8
+ import "../../controls"
9
+
10
+ PageStack {
11
+ id: root
12
+
13
+ signal finished ()
14
+ initialItem: cover
15
+
16
+ Component {
17
+ id: cover
18
+ OnboardingCover {
19
+ onNext: root .push (strengthen)
20
+ }
21
+ }
22
+ Component {
23
+ id: strengthen
24
+ OnboardingStrengthen {
25
+ onBack: root .pop ()
26
+ onNext: root .push (blockclock)
27
+ }
28
+ }
29
+ Component {
30
+ id: blockclock
31
+ OnboardingBlockclock {
32
+ onBack: root .pop ()
33
+ onNext: root .push (storageLocation)
34
+ }
35
+ }
36
+ Component {
37
+ id: storageLocation
38
+ OnboardingStorageLocation {
39
+ onBack: root .pop ()
40
+ onNext: root .push (storageAmount)
41
+ }
42
+ }
43
+ Component {
44
+ id: storageAmount
45
+ OnboardingStorageAmount {
46
+ onBack: root .pop ()
47
+ onNext: root .push (connection)
48
+ }
49
+ }
50
+ Component {
51
+ id: connection
52
+ OnboardingConnection {
53
+ onBack: root .pop ()
54
+ onNext: root .finished ()
55
+ }
56
+ }
57
+ }
You can’t perform that action at this time.
0 commit comments