1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00
OpenMW/components/misc/helpviewer.cpp

16 lines
385 B
C++
Raw Normal View History

#include "helpviewer.hpp"
#include <QDesktopServices>
2022-09-22 21:26:05 +03:00
#include <QString>
#include <QUrl>
#include <components/version/version.hpp>
void Misc::HelpViewer::openHelp(const char* url)
{
std::string_view docsUrl = Version::getDocumentationUrl();
QString link = QString::fromUtf8(docsUrl.data(), docsUrl.size());
link.append(url);
QDesktopServices::openUrl(QUrl(link));
}