From 831aa80661d722261784b2890206cea22f164ecb Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 9 Oct 2024 16:38:28 +0200 Subject: [PATCH] qml: remove pageindicator from wizard --- electrum/gui/qml/components/wizard/Wizard.qml | 74 ++++++++----------- 1 file changed, 30 insertions(+), 44 deletions(-) diff --git a/electrum/gui/qml/components/wizard/Wizard.qml b/electrum/gui/qml/components/wizard/Wizard.qml index 8f2114a95..390bf3c5d 100644 --- a/electrum/gui/qml/components/wizard/Wizard.qml +++ b/electrum/gui/qml/components/wizard/Wizard.qml @@ -159,54 +159,40 @@ ElDialog { } } - ColumnLayout { - Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom - - PageIndicator { - id: indicator - - Layout.alignment: Qt.AlignHCenter + ButtonContainer { + Layout.fillWidth: true - count: pages.count - currentIndex: pages.currentIndex + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 + visible: pages.currentIndex == 0 + text: qsTr("Cancel") + onClicked: wizard.doReject() } - - ButtonContainer { + FlatButton { Layout.fillWidth: true - - FlatButton { - Layout.fillWidth: true - Layout.preferredWidth: 1 - visible: pages.currentIndex == 0 - text: qsTr("Cancel") - onClicked: wizard.doReject() - } - FlatButton { - Layout.fillWidth: true - Layout.preferredWidth: 1 - visible: pages.currentIndex > 0 - text: qsTr('Back') - onClicked: pages.prev() - } - FlatButton { - Layout.fillWidth: true - Layout.preferredWidth: 1 - text: qsTr("Next") - visible: !pages.lastpage - enabled: pages.pagevalid - onClicked: pages.next() - } - FlatButton { - id: finishButton - Layout.fillWidth: true - Layout.preferredWidth: 1 - text: qsTr("Finish") - visible: pages.lastpage - enabled: pages.pagevalid - onClicked: pages.finish() - } + Layout.preferredWidth: 1 + visible: pages.currentIndex > 0 + text: qsTr('Back') + onClicked: pages.prev() + } + FlatButton { + Layout.fillWidth: true + Layout.preferredWidth: 1 + text: qsTr("Next") + visible: !pages.lastpage + enabled: pages.pagevalid + onClicked: pages.next() + } + FlatButton { + id: finishButton + Layout.fillWidth: true + Layout.preferredWidth: 1 + text: qsTr("Finish") + visible: pages.lastpage + enabled: pages.pagevalid + onClicked: pages.finish() } - } }