From a97aeb29b7ab72774aec93058305d23d22450ca9 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 15 Jan 2012 23:01:49 +0000 Subject: scroll to #content in keygen help git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@746 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- helppage.cpp | 3 ++- mainwindow.cpp | 2 +- wizard.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/helppage.cpp b/helppage.cpp index 5c23dd8..40152cb 100644 --- a/helppage.cpp +++ b/helppage.cpp @@ -32,7 +32,8 @@ HelpPage::HelpPage(const QString path, QWidget *parent) : mainLayout->setContentsMargins(0,0,0,0); setLayout(mainLayout); //setAttribute(Qt::WA_DeleteOnClose); - browser->setSource(QUrl::fromLocalFile(path)); + //browser->setSource(QUrl::fromLocalFile(path)); + browser->setSource(QUrl(path)); browser->setFocus(); } diff --git a/mainwindow.cpp b/mainwindow.cpp index d1dd330..d951454 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -635,7 +635,7 @@ void MainWindow::openHelp() { void MainWindow::openHelp(const QString page) { - edit->newHelpTab("help", qApp->applicationDirPath() + "/help/" + page); + edit->newHelpTab("help", "file://" + qApp->applicationDirPath() + "/help/" + page); } void MainWindow::setStatusBarText(QString text) diff --git a/wizard.cpp b/wizard.cpp index cc4184f..fe28bf9 100644 --- a/wizard.cpp +++ b/wizard.cpp @@ -105,7 +105,7 @@ KeyGenPage::KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent) "and verify texts signed by you.
" "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")+""); + QLabel *linkLabel = new QLabel(""+tr("Online tutorial")+""); //linkLabel->setOpenExternalLinks(true); connect(linkLabel, SIGNAL(linkActivated(const QString&)), parentWidget()->parentWidget(), SLOT(openHelp(const QString&))); -- cgit v1.2.3