mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
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:
parent
b42d097739
commit
513ac8986d
13 changed files with 106 additions and 1 deletions
12
components/misc/helpviewer.cpp
Normal file
12
components/misc/helpviewer.cpp
Normal 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));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue