| 899 | } |
| 900 | |
| 901 | void MainWindow::addIncludeDirs(const QStringList &includeDirs, Settings &result) |
| 902 | { |
| 903 | for (const QString& dir : includeDirs) { |
| 904 | QString incdir; |
| 905 | if (!QDir::isAbsolutePath(dir)) |
| 906 | incdir = mCurrentDirectory + "/"; |
| 907 | incdir += dir; |
| 908 | incdir = QDir::cleanPath(incdir); |
| 909 | |
| 910 | // include paths must end with '/' |
| 911 | if (!incdir.endsWith("/")) |
| 912 | incdir += "/"; |
| 913 | result.includePaths.push_back(incdir.toStdString()); |
| 914 | } |
| 915 | } |
| 916 | |
| 917 | Library::Error MainWindow::loadLibrary(Library &library, const QString &filename) |
| 918 | { |
nothing calls this directly
no test coverage detected