Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qmlutils.h File Reference
#include "utils.h"
#include <QStringList>
+ Include dependency graph for qmlutils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QmlImportScanResult
 
struct  QmlImportScanResult::Module
 

Functions

QT_BEGIN_NAMESPACE QString findQmlDirectory (Platform platform, const QString &startDirectoryName)
 
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)
 

Function Documentation

◆ findQmlDirectory()

QT_BEGIN_NAMESPACE QString findQmlDirectory ( Platform  platform,
const QString startDirectoryName 
)

Definition at line 53 of file qmlutils.cpp.

References QDir::cdUp(), QDir::dirName(), isBuildDirectory(), QDir::path(), platform(), and qmlDirectoryRecursion().

Referenced by deploy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const QmlImportScanResult::Module m1,
const QmlImportScanResult::Module m2 
)

Definition at line 19 of file qmlutils.cpp.

References QmlImportScanResult::Module::className, QString::isEmpty(), and QmlImportScanResult::Module::name.

+ Here is the call graph for this function:

◆ runQmlImportScanner()

QmlImportScanResult runQmlImportScanner ( const QString directory,
const QStringList qmlImportPaths,
bool  usesWidgets,
int  platform,
DebugMatchMode  debugMatchMode,
QString errorMessage 
)

Definition at line 75 of file qmlutils.cpp.

References QString::append(), arguments, QmlImportScanResult::Module::className, QJsonArray::count(), QDir::currentPath(), directory, errorMessage(), findFileRecursion(), QJsonDocument::fromJson(), QString::fromLocal8Bit(), QmlImportScanResult::Module::name, QString::number(), platform(), Q_UNUSED, QStringLiteral, QmlImportScanResult::Module::relativePath, runProcess(), QmlImportScanResult::Module::sourcePath, and toString().

Referenced by deploy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: