aboutsummaryrefslogtreecommitdiffstats
path: root/wizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wizard.cpp')
-rw-r--r--wizard.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/wizard.cpp b/wizard.cpp
index 433a201..c2c2d9a 100644
--- a/wizard.cpp
+++ b/wizard.cpp
@@ -49,14 +49,18 @@ Wizard::Wizard(GpgME::GpgContext *ctx, KeyMgmt *keyMgmt, QWidget *parent)
settings.remove("wizard/nextPage");
connect(this, SIGNAL(accepted()), this, SLOT(wizardAccepted()));
+ connect(this, SIGNAL(openHelp(QString)), parentWidget(), SLOT(openHelp(QString)));
}
void Wizard::wizardAccepted() {
- qDebug() << "noShow: " << field("showWizard").toBool();
QSettings settings;
// Don't show is mapped to show -> negation
settings.setValue("wizard/showWizard", !field("showWizard").toBool());
+
+ if(field("openHelp").toBool()) {
+ emit openHelp("docu.html#content");
+ }
}
IntroPage::IntroPage(QWidget *parent)
@@ -341,11 +345,16 @@ ConclusionPage::ConclusionPage(QWidget *parent)
dontShowWizardCheckBox = new QCheckBox(tr("Dont show the wizard again."));
dontShowWizardCheckBox->setChecked(Qt::Checked);
+ openHelpCheckBox = new QCheckBox(tr("Open offline help."));
+ openHelpCheckBox->setChecked(Qt::Checked);
+
registerField("showWizard", dontShowWizardCheckBox);
+ registerField("openHelp", openHelpCheckBox);
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(bottomLabel);
layout->addWidget(dontShowWizardCheckBox);
+ layout->addWidget(openHelpCheckBox);
setLayout(layout);
setVisible(true);
}