From 3c903d8fd7b975b26726c71a17f44d0411acedef Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 8 Nov 2022 17:45:57 +0100 Subject: [PATCH] qml: allow wizard pages to supply title suffix --- electrum/gui/qml/components/wizard/Wizard.qml | 2 +- electrum/gui/qml/components/wizard/WizardComponent.qml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qml/components/wizard/Wizard.qml b/electrum/gui/qml/components/wizard/Wizard.qml index 6a80d1fb4..655087e0b 100644 --- a/electrum/gui/qml/components/wizard/Wizard.qml +++ b/electrum/gui/qml/components/wizard/Wizard.qml @@ -167,7 +167,7 @@ Dialog { } Label { - text: title + text: title + (pages.currentItem.title ? ' - ' + pages.currentItem.title : '') elide: Label.ElideRight Layout.fillWidth: true topPadding: constants.paddingXLarge diff --git a/electrum/gui/qml/components/wizard/WizardComponent.qml b/electrum/gui/qml/components/wizard/WizardComponent.qml index 25a9b7072..1a0d6e9b7 100644 --- a/electrum/gui/qml/components/wizard/WizardComponent.qml +++ b/electrum/gui/qml/components/wizard/WizardComponent.qml @@ -8,6 +8,7 @@ Item { property bool valid property bool last: false property bool ready: false + property string title: '' onAccept: { apply()