Add icon and title for User Manual window

Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Sergey Starosek 2013-12-06 14:25:52 +02:00 committed by Dirk Hohndel
parent dfa66cce31
commit 07e1e416cf

View file

@ -497,6 +497,8 @@ void MainWindow::on_actionUserManual_triggered()
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"));