blob: bff1fb3a9bf0c630a41c37cea23b6aa65b98d51d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef QMLUTILS_H
#define QMLUTILS_H
#include "utils.h"
#include <QStringList>
QT_BEGIN_NAMESPACE
QString findQmlDirectory(Platform platform, const QString &startDirectoryName);
struct QmlImportScanResult {
struct Module {
QString installPath(const QString &root) const;
QString name;
QString className;
QString sourcePath;
QString relativePath;
};
void append(const QmlImportScanResult &other);
bool ok = false;
QList<Module> modules;
QStringList plugins;
};
bool operator==(const QmlImportScanResult::Module &m1, const QmlImportScanResult::Module &m2);
QmlImportScanResult runQmlImportScanner(const QString &directory, const QStringList &qmlImportPaths,
bool usesWidgets, int platform, DebugMatchMode debugMatchMode,
QString *errorMessage);
QT_END_NAMESPACE
#endif // QMLUTILS_H
|