MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getHelpFile

Function getHelpFile

gui/helpdialog.cpp:55–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static QString getHelpFile()
56{
57 const QString datadir = getDataDir();
58
59 QStringList paths;
60 paths << (datadir + "/help")
61 << datadir
62 << (QApplication::applicationDirPath() + "/help")
63 << QApplication::applicationDirPath();
64#ifdef FILESDIR
65 const QString filesdir = FILESDIR;
66 paths << (filesdir + "/help")
67 << filesdir;
68#endif
69 for (const QString &p: utils::as_const(paths)) {
70 QString filename = p + "/online-help.qhc";
71 if (QFileInfo::exists(filename))
72 return filename;
73 }
74 return QString();
75}
76
77HelpDialog::HelpDialog(QWidget *parent) :
78 QDialog(parent),

Callers 1

HelpDialogMethod · 0.85

Calls 2

getDataDirFunction · 0.85
QStringClass · 0.70

Tested by

no test coverage detected