2020-04-18 20:54:21 +00:00
|
|
|
#include "helpviewer.hpp"
|
|
|
|
|
|
|
|
#include <QDesktopServices>
|
2022-09-22 18:26:05 +00:00
|
|
|
#include <QString>
|
2020-04-18 20:54:21 +00:00
|
|
|
#include <QUrl>
|
|
|
|
|
2024-02-25 12:13:28 +00:00
|
|
|
#include <components/version/version.hpp>
|
|
|
|
|
2020-04-18 20:54:21 +00:00
|
|
|
void Misc::HelpViewer::openHelp(const char* url)
|
|
|
|
{
|
2024-02-25 12:13:28 +00:00
|
|
|
std::string_view docsUrl = Version::getDocumentationUrl();
|
|
|
|
QString link = QString::fromUtf8(docsUrl.data(), docsUrl.size());
|
2020-04-18 20:54:21 +00:00
|
|
|
link.append(url);
|
|
|
|
QDesktopServices::openUrl(QUrl(link));
|
|
|
|
}
|