core/qmljson: add support for synthesized .qml.json files

This commit is contained in:
outfoxxed 2025-05-18 20:39:48 -07:00
parent 6026c4ce27
commit 5193426cd7
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 112 additions and 18 deletions

View file

@ -20,8 +20,11 @@ public:
QVector<QString> scannedDirs;
QVector<QString> scannedFiles;
QHash<QString, QString> qmldirIntercepts;
QHash<QString, QString> fileIntercepts;
private:
QDir rootPath;
void scanQmlJson(const QString& path);
[[nodiscard]] static QPair<QString, QString> jsonToQml(const QJsonValue& value, int indent = 0);
};