Skip to content

Commit 4737527

Browse files
Johnny CarlsonJohnny Carlson
authored andcommitted
qml: extract OnboardingWizard from main.qml
1 parent 779abc9 commit 4737527

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

src/Makefile.qt.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ QML_RES_QML = \
352352
qml/pages/onboarding/OnboardingStorageAmount.qml \
353353
qml/pages/onboarding/OnboardingStorageLocation.qml \
354354
qml/pages/onboarding/OnboardingStrengthen.qml \
355+
qml/pages/onboarding/OnboardingWizard.qml \
355356
qml/pages/settings/SettingsAbout.qml \
356357
qml/pages/settings/SettingsConnection.qml \
357358
qml/pages/settings/SettingsDeveloper.qml \

src/qml/bitcoin_qml.qrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<file>pages/onboarding/OnboardingStorageAmount.qml</file>
3535
<file>pages/onboarding/OnboardingStorageLocation.qml</file>
3636
<file>pages/onboarding/OnboardingStrengthen.qml</file>
37+
<file>pages/onboarding/OnboardingWizard.qml</file>
3738
<file>pages/settings/SettingsAbout.qml</file>
3839
<file>pages/settings/SettingsConnection.qml</file>
3940
<file>pages/settings/SettingsDeveloper.qml</file>

src/qml/pages/main.qml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,7 @@ ApplicationWindow {
2626

2727
Component {
2828
id: onboardingWizard
29-
SwipeView {
30-
id: swipeView
31-
property bool finished: false
32-
interactive: false
33-
34-
OnboardingCover {}
35-
OnboardingStrengthen {}
36-
OnboardingBlockclock {}
37-
OnboardingStorageLocation {}
38-
OnboardingStorageAmount {}
39-
OnboardingConnection {}
40-
29+
OnboardingWizard {
4130
onFinishedChanged: main.push(node)
4231
}
4332
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright (c) 2023 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+
8+
SwipeView {
9+
id: swipeView
10+
property bool finished: false
11+
interactive: false
12+
13+
OnboardingCover {}
14+
OnboardingStrengthen {}
15+
OnboardingBlockclock {}
16+
OnboardingStorageLocation {}
17+
OnboardingStorageAmount {}
18+
OnboardingConnection {}
19+
}

0 commit comments

Comments
 (0)