diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-15 22:37:15 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-15 22:37:15 +0000 |
commit | a4ced8195c3aa0bc3bd9c1314e812fb3cff28571 (patch) | |
tree | de204327a13c8d93f87877b0bb31bbd6b35725f6 /wizard.cpp | |
parent | reopen wizard on specified page after restart (diff) | |
download | gpg4usb-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.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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); |