Look for Qt online-help file also in FILESDIR (#2844)
This commit is contained in:
parent
2fda1646d9
commit
df9f6f38be
|
@ -33,6 +33,11 @@ static QString getHelpFile()
|
||||||
<< datadir
|
<< datadir
|
||||||
<< (QApplication::applicationDirPath() + "/help")
|
<< (QApplication::applicationDirPath() + "/help")
|
||||||
<< QApplication::applicationDirPath();
|
<< QApplication::applicationDirPath();
|
||||||
|
#ifdef FILESDIR
|
||||||
|
const QString filesdir = FILESDIR;
|
||||||
|
paths << (filesdir + "/help")
|
||||||
|
<< filesdir;
|
||||||
|
#endif
|
||||||
for (QString p: paths) {
|
for (QString p: paths) {
|
||||||
QString filename = p + "/online-help.qhc";
|
QString filename = p + "/online-help.qhc";
|
||||||
if (QFileInfo(filename).exists())
|
if (QFileInfo(filename).exists())
|
||||||
|
|
Loading…
Reference in New Issue