| 53 | } |
| 54 | |
| 55 | static 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 | |
| 77 | HelpDialog::HelpDialog(QWidget *parent) : |
| 78 | QDialog(parent), |
no test coverage detected