| 44 | } |
| 45 | |
| 46 | KDevelop::Path::List QmlJS::Cache::libraryPaths_internal(const KDevelop::IndexedString& baseFile) const |
| 47 | { |
| 48 | Q_ASSERT(!m_mutex.try_lock()); |
| 49 | |
| 50 | KDevelop::Path::List paths; |
| 51 | |
| 52 | const auto& libraryPaths = QCoreApplication::instance()->libraryPaths(); |
| 53 | for (auto& path : libraryPaths) { |
| 54 | KDevelop::Path p(path); |
| 55 | |
| 56 | // Change /path/to/qt5/plugins to /path/to/qt5/{qml,imports} |
| 57 | paths << p.cd(QStringLiteral("../qml")); |
| 58 | paths << p.cd(QStringLiteral("../imports")); |
| 59 | } |
| 60 | |
| 61 | paths << m_includeDirs[baseFile]; |
| 62 | return paths; |
| 63 | } |
| 64 | |
| 65 | QString QmlJS::Cache::modulePath(const KDevelop::IndexedString& baseFile, const QString& uri, const QString& version) |
| 66 | { |
nothing calls this directly
no test coverage detected