mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: show user manual in browser window
This is so obvious... and I know others asked for this before. Should definitely have been in the first version... Fixes #1026 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
087cda05e6
commit
8dcb6fa25c
3 changed files with 14 additions and 0 deletions
|
@ -189,6 +189,12 @@ MobileComponents.ApplicationWindow {
|
|||
}
|
||||
}
|
||||
},
|
||||
Action {
|
||||
text: "User manual"
|
||||
onTriggered: {
|
||||
manager.showUserManual()
|
||||
}
|
||||
},
|
||||
Action {
|
||||
text: "About"
|
||||
onTriggered: {
|
||||
|
|
|
@ -986,6 +986,13 @@ void QMLManager::showMap(const QString& location)
|
|||
}
|
||||
}
|
||||
|
||||
#define MOBILEUSERMANUAL QUrl(QLatin1Literal("https://subsurface-divelog.org/documentation/subsurface-mobile-user-manual/"))
|
||||
|
||||
void QMLManager::showUserManual()
|
||||
{
|
||||
QDesktopServices::openUrl(MOBILEUSERMANUAL);
|
||||
}
|
||||
|
||||
// where in the QML dive list is that dive?
|
||||
int QMLManager::getIndex(const QString &diveId)
|
||||
{
|
||||
|
|
|
@ -109,6 +109,7 @@ public slots:
|
|||
void finishSetup();
|
||||
void openLocalThenRemote(QString url);
|
||||
void showMap(const QString& location);
|
||||
void showUserManual();
|
||||
int getIndex(const QString& diveId);
|
||||
QString getNumber(const QString& diveId);
|
||||
QString getDate(const QString& diveId);
|
||||
|
|
Loading…
Add table
Reference in a new issue