MCPcopy Create free account
hub / github.com/Kitware/CMake / OpenReferenceManual

Function OpenReferenceManual

Source/QtDialog/CMakeSetupDialog.cxx:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44#include "WarningMessagesDialog.h"
45
46void OpenReferenceManual(QString const& filename)
47{
48 QString urlFormat("https://cmake.org/cmake/help/v%1.%2/");
49 QUrl url(urlFormat.arg(QString::number(cmVersion::GetMajorVersion()),
50 QString::number(cmVersion::GetMinorVersion())));
51
52 if (!cmSystemTools::GetHTMLDoc().empty()) {
53 url = QUrl::fromLocalFile(
54 QDir(QString::fromStdString(cmSystemTools::GetHTMLDoc()))
55 .filePath(filename));
56 }
57
58 QDesktopServices::openUrl(url);
59}
60
61namespace {
62QString const PRESETS_DISABLED_TOOLTIP =

Callers 2

CMakeSetupDialogMethod · 0.85
mainFunction · 0.85

Calls 2

numberClass · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…