8#include <QtCore/QFileInfo>
9#include <QtCore/QCoreApplication>
10#include <QtCore/QJsonDocument>
11#include <QtCore/QJsonObject>
12#include <QtCore/QJsonArray>
13#include <QtCore/QJsonParseError>
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());
82 for (
const QString &importPath : qmlImportPaths)
85 unsigned long exitCode;
106 for (
int c = 0;
c < childCount; ++
c) {
110 if (!
path.isEmpty()) {
bool cdUp()
Changes directory by moving one directory up from the QDir's current directory.
QString dirName() const
Returns the name of the directory; this is not the same as the path, e.g.
QString path() const
Returns the path.
bool isReadable() const
Returns true if the directory is readable and we can open files by name; otherwise returns false.
static QString currentPath()
Returns the absolute path of the application's current directory.
\inmodule QtCore \reentrant
\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
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...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString & append(QChar c)
QString left(qsizetype n) const
Returns a substring that contains the n leftmost characters of the string.
QList< QVariant > arguments
Combined button and popup list for selecting options.
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)