-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qml: Update and Add UI Snapshot settings
- Loading branch information
Showing
4 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) 2024-present The Bitcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.15 | ||
import "../../controls" | ||
import "../../components" | ||
|
||
Page { | ||
signal backClicked | ||
signal continueClicked | ||
signal snapshotImportCompleted | ||
|
||
id: root | ||
|
||
background: null | ||
implicitWidth: 450 | ||
leftPadding: 20 | ||
rightPadding: 20 | ||
topPadding: 30 | ||
|
||
header: NavigationBar2 { | ||
leftItem: NavButton { | ||
iconSource: "image://images/caret-left" | ||
text: qsTr("Back") | ||
onClicked: root.backClicked() | ||
} | ||
} | ||
LoadedSnapshotSettings { | ||
width: Math.min(parent.width, 450) | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
onSnapshotImportCompleted: { | ||
root.snapshotImportCompleted() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Copyright (c) 2024-present resent The Bitcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.15 | ||
|
||
import "../../controls" | ||
import "../../components" | ||
|
||
Page { | ||
signal backClicked | ||
signal continueClicked | ||
|
||
id: root | ||
|
||
background: null | ||
implicitWidth: 450 | ||
leftPadding: 20 | ||
rightPadding: 20 | ||
topPadding: 30 | ||
|
||
header: NavigationBar2 { | ||
leftItem: NavButton { | ||
iconSource: "image://images/caret-left" | ||
text: qsTr("Back") | ||
onClicked: root.backClicked() | ||
} | ||
} | ||
ProgressBarSettings { | ||
width: Math.min(parent.width, 450) | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2024-present The Bitcoin Core developers | ||
// Distributed under the MIT software license, see the accompanying | ||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.15 | ||
import "../../controls" | ||
import "../../components" | ||
|
||
Page { | ||
signal backClicked | ||
|
||
id: root | ||
|
||
background: null | ||
implicitWidth: 450 | ||
leftPadding: 20 | ||
rightPadding: 20 | ||
topPadding: 30 | ||
|
||
header: NavigationBar2 { | ||
leftItem: NavButton { | ||
iconSource: "image://images/caret-left" | ||
text: qsTr("Back") | ||
onClicked: root.backClicked() | ||
} | ||
} | ||
SnapshotSettings { | ||
width: Math.min(parent.width, 450) | ||
anchors.horizontalCenter: parent.horizontalCenter | ||
} | ||
} |