Add link to opencs documentation on readthedocs, available through

context menu.
The documentation opens in default browser.

There are 3 contexts:
- global: opens the OpenMW CS User Manual main page
- when a record is selected: opens the "Tables" page
- when the filter field is selected: opens the "Record Filters" page

There is also a link to the OpenCS tutorial in the help menu.
This commit is contained in:
Frederic Chardon 2020-04-18 20:54:21 +00:00 committed by Bret Curtis
parent b42d097739
commit 513ac8986d
13 changed files with 106 additions and 1 deletions

View file

@ -0,0 +1,12 @@
#include "helpviewer.hpp"
#include <QString>
#include <QDesktopServices>
#include <QUrl>
void Misc::HelpViewer::openHelp(const char* url)
{
QString link {OPENMW_DOC_BASEURL};
link.append(url);
QDesktopServices::openUrl(QUrl(link));
}