diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-15 22:50:11 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-15 22:50:11 +0000 |
commit | 20f449be908dbe974af547a035fbaa646e002aa1 (patch) | |
tree | 57e5c019ed336a54b2c8cb305dc83a7157e41e91 | |
parent | open integrated help from wizard (diff) | |
download | gpg4usb-20f449be908dbe974af547a035fbaa646e002aa1.tar.gz gpg4usb-20f449be908dbe974af547a035fbaa646e002aa1.zip |
choose helppage keygen.html from wizard
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@745 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | mainwindow.cpp | 8 | ||||
-rw-r--r-- | mainwindow.h | 1 | ||||
-rw-r--r-- | wizard.cpp | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index 5449246..d1dd330 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -629,9 +629,13 @@ void MainWindow::openTutorial() QDesktopServices::openUrl(QUrl("http://gpg4usb.cpunk.de/docu.html")); } -void MainWindow::openHelp() +void MainWindow::openHelp() { + openHelp("docu.html"); +} + +void MainWindow::openHelp(const QString page) { - edit->newHelpTab("help", qApp->applicationDirPath() + "/help/docu.html"); + edit->newHelpTab("help", qApp->applicationDirPath() + "/help/" + page); } void MainWindow::setStatusBarText(QString text) diff --git a/mainwindow.h b/mainwindow.h index bd4ef5f..1921e08 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -164,6 +164,7 @@ private slots: * @details Open integrated help in new tab. */ void openHelp(); + void openHelp(const QString page); /** * @details Show a warn message in status bar, if there are files in attachment folder. @@ -105,10 +105,10 @@ KeyGenPage::KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent) "and verify texts signed by you.<br/>" "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>"); + QLabel *linkLabel = new QLabel("<a href=""docu_keygen.html"">"+tr("Online tutorial")+"</a>"); //linkLabel->setOpenExternalLinks(true); - connect(linkLabel, SIGNAL(linkActivated(const QString&)), parentWidget()->parentWidget(), SLOT(openHelp())); + connect(linkLabel, SIGNAL(linkActivated(const QString&)), parentWidget()->parentWidget(), SLOT(openHelp(const QString&))); QWidget *createKeyButtonBox = new QWidget(this); QHBoxLayout *createKeyButtonBoxLayout = new QHBoxLayout(createKeyButtonBox); |