aboutsummaryrefslogtreecommitdiffstats
path: root/wizard.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-15 22:37:15 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-15 22:37:15 +0000
commita4ced8195c3aa0bc3bd9c1314e812fb3cff28571 (patch)
treede204327a13c8d93f87877b0bb31bbd6b35725f6 /wizard.cpp
parentreopen wizard on specified page after restart (diff)
downloadgpg4usb-a4ced8195c3aa0bc3bd9c1314e812fb3cff28571.tar.gz
gpg4usb-a4ced8195c3aa0bc3bd9c1314e812fb3cff28571.zip
open integrated help from wizard
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@744 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'wizard.cpp')
-rw-r--r--wizard.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/wizard.cpp b/wizard.cpp
index 6d18283..77fc3d0 100644
--- a/wizard.cpp
+++ b/wizard.cpp
@@ -27,11 +27,10 @@ Wizard::Wizard(GpgME::GpgContext *ctx, KeyMgmt *keyMgmt, QWidget *parent)
{
mCtx=ctx;
mKeyMgmt=keyMgmt;
- mParent=parent;
- IntroPage *introPage = new IntroPage();
- KeyGenPage *keyGenPage = new KeyGenPage(mCtx);
- ImportPage *importPage = new ImportPage(mCtx,mKeyMgmt);
- ConclusionPage *conclusionPage = new ConclusionPage();
+ IntroPage *introPage = new IntroPage(this);
+ KeyGenPage *keyGenPage = new KeyGenPage(mCtx, this);
+ ImportPage *importPage = new ImportPage(mCtx,mKeyMgmt, this);
+ ConclusionPage *conclusionPage = new ConclusionPage(this);
addPage(introPage);
addPage(keyGenPage);
addPage(importPage);
@@ -107,7 +106,9 @@ KeyGenPage::KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent)
"You can use the private key to decrypt and sign texts.<br/>"
"For more information have a look in the online tutorial:"));
QLabel *linkLabel = new QLabel("<a href=""http://gpg4usb.cpunk.de/docu.html"">"+tr("Online tutorial")+"</a>");
- linkLabel->setOpenExternalLinks(true);
+ //linkLabel->setOpenExternalLinks(true);
+
+ connect(linkLabel, SIGNAL(linkActivated(const QString&)), parentWidget()->parentWidget(), SLOT(openHelp()));
QWidget *createKeyButtonBox = new QWidget(this);
QHBoxLayout *createKeyButtonBoxLayout = new QHBoxLayout(createKeyButtonBox);