mirror of https://github.com/OpenMW/openmw.git
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.pull/2787/head
parent
b42d097739
commit
513ac8986d
@ -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));
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
namespace Misc {
|
||||
namespace HelpViewer {
|
||||
void openHelp(const char* url);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue