summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-08 21:25:46 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-08 21:25:46 -0600
commit5630ca02393b962ff44b562d7c115d5de1d42622 (patch)
treefee1e4befab0759adc858a89099129d1f57b7e22
parent8174cafecab0818b5f30d3e68ced5b0b89a61ad7 (diff)
downloadhorizon-5630ca02393b962ff44b562d7c115d5de1d42622.tar.gz
horizon-5630ca02393b962ff44b562d7c115d5de1d42622.tar.bz2
horizon-5630ca02393b962ff44b562d7c115d5de1d42622.tar.xz
horizon-5630ca02393b962ff44b562d7c115d5de1d42622.zip
Qt UI: Wizard: Better text, fix cancel button behaviour
-rw-r--r--ui/qt5/horizonwizard.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/qt5/horizonwizard.cc b/ui/qt5/horizonwizard.cc
index 5a6527d..ae25238 100644
--- a/ui/qt5/horizonwizard.cc
+++ b/ui/qt5/horizonwizard.cc
@@ -89,8 +89,7 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) {
/* REQ: UI.Global.Cancel.Confirm */
- QObject::disconnect(button(CancelButton), &QAbstractButton::clicked,
- this, &QWizard::reject);
+ button(CancelButton)->disconnect(this);
QObject::connect(button(CancelButton), &QAbstractButton::clicked,
[=](bool) {
QMessageBox cancel(QMessageBox::Question,
@@ -109,10 +108,10 @@ HorizonWizard::HorizonWizard(QWidget *parent) : QWizard(parent) {
});
/* REQ: Iface.UI.ButtonAccel */
- setButtonText(HelpButton, tr("Help (F1)"));
- setButtonText(CancelButton, tr("Cancel (F3)"));
- setButtonText(BackButton, tr("Back (F5)"));
- setButtonText(NextButton, tr("Next (F8)"));
+ setButtonText(HelpButton, tr("&Help (F1)"));
+ setButtonText(CancelButton, tr("&Cancel (F3)"));
+ setButtonText(BackButton, tr("< &Back (F5)"));
+ setButtonText(NextButton, tr("&Next > (F8)"));
f1 = new QShortcut(Qt::Key_F1, this);
connect(f1, &QShortcut::activated,