8#include <QtCore/QFileInfo>
9#include <QtCore/QCoreApplication>
10#include <QtCore/QJsonDocument>
11#include <QtCore/QJsonObject>
12#include <QtCore/QJsonArray>
13#include <QtCore/QJsonParseError>
21 return m1.className.isEmpty() ? m1.name == m2.name : m1.className == m2.className;
29 if (lastSlashPos != -1) {
42 for (
const QFileInfo &subDirFi : subDirs) {
55 QDir startDirectory(startDirectoryName);
57 startDirectory.cdUp();
68 for (
const QFileInfo &subDirFi : subDirs) {
69 QDir subDirectory(subDirFi.absoluteFilePath());
71 if (subDirectory.isReadable() && !subDirectory.exists(
QStringLiteral(
"qmldir")))
83 for (
const QString &importPath : qmlImportPaths)
86 unsigned long exitCode;
107 for (
int c = 0;
c < childCount; ++
c) {
111 if (!
path.isEmpty()) {
113 module.name = object.value(QStringLiteral("name")).toString();
114 module.className = object.value(QStringLiteral("classname")).toString();
115 module.sourcePath = path;
116 module.relativePath = object.value(QStringLiteral("relativePath")).toString();
117 result.modules.append(module);
static QString currentPath()
Returns the absolute path of the application's current directory.
\inmodule QtCore\reentrant
qsizetype count() const
Same as size().
\inmodule QtCore\reentrant
static QJsonDocument fromJson(const QByteArray &json, QJsonParseError *error=nullptr)
Parses json as a UTF-8 encoded JSON document, and creates a QJsonDocument from it.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString left(qsizetype n) const &
qsizetype lastIndexOf(QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
static QString fromLocal8Bit(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QList< QVariant > arguments
Combined button and popup list for selecting options.
QList< QString > QStringList
Constructs a string list that contains the given string, str.
static const QPainterPath::ElementType * subPath(const QPainterPath::ElementType *t, const QPainterPath::ElementType *end, const qreal *points, bool *closed)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QmlImportScanResult runQmlImportScanner(const QString &directory, const QStringList &qmlImportPaths, bool usesWidgets, int platform, DebugMatchMode debugMatchMode, QString *errorMessage)
QT_BEGIN_NAMESPACE QString findQmlDirectory(Platform platform, const QString &startDirectoryName)
static bool matches(const QJsonObject &object, const QString &osName, const QVersionNumber &kernelVersion, const QString &osRelease, const QOpenGLConfig::Gpu &gpu)
GLsizei GLsizei GLenum void * binary
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLsizei const GLchar *const * path
#define QStringLiteral(str)
static QString errorMessage(QUrlPrivate::ErrorCode errorCode, const QString &errorSource, qsizetype errorPosition)
char * toString(const MyType &t)
[31]
\inmodule QtCore\reentrant
QString installPath(const QString &root) const
void append(const QmlImportScanResult &other)
QStringList findSharedLibraries(const QDir &directory, Platform platform, DebugMatchMode debugMatchMode, const QString &prefix)
bool runProcess(const QString &binary, const QStringList &args, const QString &workingDirectory, unsigned long *exitCode, QByteArray *stdOut, QByteArray *stdErr, QString *errorMessage)
bool isBuildDirectory(Platform platform, const QString &dirName)