core: synthesized qmldir files and new qml scanning strategy

This commit is contained in:
outfoxxed 2024-03-14 00:16:22 -07:00
parent 1687ff3614
commit ffbdac9977
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
14 changed files with 354 additions and 90 deletions

20
src/core/scan.hpp Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <qcontainerfwd.h>
#include <qhash.h>
#include <qloggingcategory.h>
#include <qvector.h>
Q_DECLARE_LOGGING_CATEGORY(logQmlScanner);
// expects canonical paths
class QmlScanner {
public:
void scanDir(const QString& path);
// returns if the file has a singleton
bool scanQmlFile(const QString& path);
QVector<QString> scannedDirs;
QVector<QString> scannedFiles;
QHash<QString, QString> qmldirIntercepts;
};