diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-19 09:05:23 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-19 09:05:23 +0000 |
commit | a9242b3a1dfd0bb3b8d93b809fe6587e8938e410 (patch) | |
tree | 4cd8550174fb65852c50a3fb655569cd93d7924f /wizard.cpp | |
parent | correct boolean for settings/showWizard (diff) | |
download | gpg4usb-a9242b3a1dfd0bb3b8d93b809fe6587e8938e410.tar.gz gpg4usb-a9242b3a1dfd0bb3b8d93b809fe6587e8938e410.zip |
add OpenHelp on final page
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@763 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'wizard.cpp')
-rw-r--r-- | wizard.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); } |