mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
513ac8986d
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.
13 lines
248 B
C++
13 lines
248 B
C++
#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));
|
|
}
|