File tree Expand file tree Collapse file tree 4 files changed +135
-0
lines changed Expand file tree Collapse file tree 4 files changed +135
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ Item {
1313 property alias navMiddleDetail: connectionSwipe .navMiddleDetail
1414 property alias navLeftDetail: connectionSwipe .navLeftDetail
1515 property alias showHeader: connectionSwipe .showHeader
16+
17+ function setSnapshotImported (imported ) {
18+ connection_settings .loadedDetailItem .setSnapshotImported (imported)
19+ }
20+
1621 SwipeView {
1722 id: connectionSwipe
1823 property alias navRightDetail: connection_settings .navRightDetail
@@ -38,5 +43,29 @@ Item {
3843 connectionSwipe .decrementCurrentIndex ()
3944 }
4045 }
46+ SettingsSnapshot {
47+ onBackClicked: {
48+ connectionSwipe .decrementCurrentIndex ()
49+ connectionSwipe .decrementCurrentIndex ()
50+ }
51+ }
52+ SettingsProgressBar {
53+ onBackClicked: {
54+ connectionSwipe .decrementCurrentIndex ()
55+ connectionSwipe .decrementCurrentIndex ()
56+ connectionSwipe .decrementCurrentIndex ()
57+ }
58+ }
59+ SettingsLoadedSnapshot {
60+ onSnapshotImportCompleted: {
61+ setSnapshotImported (true )
62+ }
63+ onBackClicked: {
64+ connectionSwipe .decrementCurrentIndex ()
65+ connectionSwipe .decrementCurrentIndex ()
66+ connectionSwipe .decrementCurrentIndex ()
67+ connectionSwipe .decrementCurrentIndex ()
68+ }
69+ }
4170 }
4271}
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2023-present 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+ import "../../components"
10+
11+ Page {
12+ signal backClicked
13+ signal continueClicked
14+ signal snapshotImportCompleted
15+
16+ id: root
17+
18+ background: null
19+ implicitWidth: 450
20+ leftPadding: 20
21+ rightPadding: 20
22+ topPadding: 30
23+
24+ header: NavigationBar2 {
25+ leftItem: NavButton {
26+ iconSource: " image://images/caret-left"
27+ text: qsTr (" Back" )
28+ onClicked: root .backClicked ()
29+ }
30+ }
31+ LoadedSnapshotSettings {
32+ width: Math .min (parent .width , 450 )
33+ anchors .horizontalCenter : parent .horizontalCenter
34+ onSnapshotImportCompleted: {
35+ root .snapshotImportCompleted ()
36+ }
37+ }
38+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2024 - PresentThe 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+
9+ import "../../controls"
10+ import "../../components"
11+
12+ Page {
13+ signal backClicked
14+ signal continueClicked
15+
16+ id: root
17+
18+ background: null
19+ implicitWidth: 450
20+ leftPadding: 20
21+ rightPadding: 20
22+ topPadding: 30
23+
24+ header: NavigationBar2 {
25+ leftItem: NavButton {
26+ iconSource: " image://images/caret-left"
27+ text: qsTr (" Back" )
28+ onClicked: root .backClicked ()
29+ }
30+ }
31+ ProgressBarSettings {
32+ width: Math .min (parent .width , 450 )
33+ anchors .horizontalCenter : parent .horizontalCenter
34+ }
35+ }
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2023-present 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+ import "../../components"
10+
11+ Page {
12+ signal backClicked
13+
14+ id: root
15+
16+ background: null
17+ implicitWidth: 450
18+ leftPadding: 20
19+ rightPadding: 20
20+ topPadding: 30
21+
22+ header: NavigationBar2 {
23+ leftItem: NavButton {
24+ iconSource: " image://images/caret-left"
25+ text: qsTr (" Back" )
26+ onClicked: root .backClicked ()
27+ }
28+ }
29+ SnapshotSettings {
30+ width: Math .min (parent .width , 450 )
31+ anchors .horizontalCenter : parent .horizontalCenter
32+ }
33+ }
You can’t perform that action at this time.
0 commit comments