From a4ced8195c3aa0bc3bd9c1314e812fb3cff28571 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 15 Jan 2012 22:37:15 +0000 Subject: open integrated help from wizard git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@744 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- wizard.cpp | 13 +++++++------ wizard.h | 1 - 2 files changed, 7 insertions(+), 7 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.
" "For more information have a look in the online tutorial:")); QLabel *linkLabel = new QLabel(""+tr("Online tutorial")+""); - 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); diff --git a/wizard.h b/wizard.h index 192b630..597ffee 100644 --- a/wizard.h +++ b/wizard.h @@ -44,7 +44,6 @@ public: private: GpgME::GpgContext *mCtx; KeyMgmt *mKeyMgmt; - QWidget *mParent; }; class IntroPage : public QWizardPage -- cgit v1.2.3