diff options
author | Sergey Starosek <sergey.starosek@gmail.com> | 2014-01-09 19:21:30 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-10 16:07:54 +0700 |
commit | 8ded16fd1b1bda46ff20eadd9bd596c45afc96d6 (patch) | |
tree | 84ed1068f4cb4f5dd3549bd439515c6777c46152 /qt-ui/mainwindow.cpp | |
parent | 8b00f8ffe6597a233814708d19b286e5dc0c65d8 (diff) | |
download | subsurface-8ded16fd1b1bda46ff20eadd9bd596c45afc96d6.tar.gz |
Switch to new UserManual implementation
This enables search within user manual by pressing Ctrl-F.
Esc key closes search panel.
Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index cf97ca1f0..80da754a2 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -484,27 +484,11 @@ void MainWindow::on_actionAboutSubsurface_triggered() void MainWindow::on_actionUserManual_triggered() { if(!helpView){ - helpView = new QWebView(); - helpView->page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks); - connect(helpView, SIGNAL(linkClicked(QUrl)), this, SLOT(linkClickedSlot(QUrl))); - } - QString searchPath = getSubsurfaceDataPath("Documentation"); - if (searchPath != "") { - QUrl url(searchPath.append("/user-manual.html")); - helpView->setWindowTitle(tr("User Manual")); - helpView->setWindowIcon(QIcon(":/subsurface-icon")); - helpView->setUrl(url); - } else { - helpView->setHtml(tr("Cannot find the Subsurface manual")); + helpView = new UserManual(); } helpView->show(); } -void MainWindow::linkClickedSlot(QUrl url) -{ - QDesktopServices::openUrl(url); -} - QString MainWindow::filter() { QString f; |