![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QCoreApplication>
#include <QStringList>
#include <QDir>
#include <QDirIterator>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonValue>
#include <QDebug>
#include <QDataStream>
#include <QXmlStreamReader>
#include <QStandardPaths>
#include <QUuid>
#include <QDirListing>
#include <QElapsedTimer>
#include <QRegularExpression>
#include <QSettings>
#include <QHash>
#include <QSet>
#include <QMap>
#include <depfile_shared.h>
#include <shellquote_shared.h>
#include <algorithm>
Go to the source code of this file.
Classes | |
struct | QtDependency |
struct | QtInstallDirectoryWithTriple |
struct | Options |
struct | GradleBuildConfigs |
Macros | |
#define | QT_POPEN_READ "r" |
Typedefs | |
typedef QMap< QByteArray, QByteArray > | GradleProperties |
Functions | |
auto | openProcess (const QString &command) |
bool | goodToCopy (const Options *options, const QString &file, QStringList *unmetDependencies) |
bool | checkCanImportFromRootPaths (const Options *options, const QString &absolutePath, const QString &moduleUrl) |
bool | readDependenciesFromElf (Options *options, const QString &fileName, QSet< QString > *usedDependencies, QSet< QString > *remainingDependencies) |
QString | architectureFromName (const QString &name) |
static QString | execSuffixAppended (QString path) |
static QString | batSuffixAppended (QString path) |
QString | defaultLibexecDir () |
static QString | llvmReadobjPath (const Options &options) |
QString | fileArchitecture (const Options &options, const QString &path) |
bool | checkArchitecture (const Options &options, const QString &fileName) |
void | deleteMissingFiles (const Options &options, const QDir &srcDir, const QDir &dstDir) |
Options | parseOptions () |
void | printHelp () |
bool | quasiLexicographicalReverseLessThan (const QFileInfo &fi1, const QFileInfo &fi2) |
bool | alwaysOverwritableFile (const QString &fileName) |
bool | copyFileIfNewer (const QString &sourceFileName, const QString &destinationFileName, const Options &options, bool createSymlinksOnly=false, bool forceOverwrite=false) |
GradleBuildConfigs | gradleBuildConfigs (const QString &path) |
QString | cleanPackageName (QString packageName, bool *cleaned=nullptr) |
QString | detectLatestAndroidPlatform (const QString &sdkPath) |
QString | extractPackageName (Options *options) |
bool | parseCmakeBoolean (const QJsonValue &value) |
bool | readInputFileDirectory (Options *options, QJsonObject &jsonObject, const QString keyName) |
bool | readInputFile (Options *options) |
bool | isDeployment (const Options *options, Options::DeploymentMechanism deployment) |
bool | copyFiles (const QDir &sourceDirectory, const QDir &destinationDirectory, const Options &options, bool forceOverwrite=false) |
void | cleanTopFolders (const Options &options, const QDir &srcDir, const QString &dstDir) |
void | cleanAndroidFiles (const Options &options) |
bool | copyAndroidTemplate (const Options &options, const QString &androidTemplate, const QString &outDirPrefix=QString()) |
bool | copyGradleTemplate (const Options &options) |
bool | copyAndroidTemplate (const Options &options) |
bool | copyAndroidSources (const Options &options) |
bool | copyAndroidExtraLibs (Options *options) |
QStringList | allFilesInside (const QDir ¤t, const QDir &rootDir) |
bool | copyAndroidExtraResources (Options *options) |
bool | updateFile (const QString &fileName, const QHash< QString, QString > &replacements) |
bool | updateLibsXml (Options *options) |
bool | updateStringsXml (const Options &options) |
bool | updateAndroidManifest (Options &options) |
bool | updateAndroidFiles (Options &options) |
static QString | absoluteFilePath (const Options *options, const QString &relativeFileName) |
QList< QtDependency > | findFilesRecursively (const Options &options, const QFileInfo &info, const QString &rootPath) |
QList< QtDependency > | findFilesRecursively (const Options &options, const QString &fileName) |
void | readDependenciesFromFiles (Options *options, const QList< QtDependency > &files, QSet< QString > &usedDependencies, QSet< QString > &remainingDependencies) |
bool | readAndroidDependencyXml (Options *options, const QString &moduleName, QSet< QString > *usedDependencies, QSet< QString > *remainingDependencies) |
QStringList | getQtLibsFromElf (const Options &options, const QString &fileName) |
bool | scanImports (Options *options, QSet< QString > *usedDependencies) |
bool | runCommand (const Options &options, const QString &command) |
bool | createRcc (const Options &options) |
bool | readDependencies (Options *options) |
bool | containsApplicationBinary (Options *options) |
auto | runAdb (const Options &options, const QString &arguments) -> decltype(openProcess({})) |
bool | copyQtFiles (Options *options) |
QStringList | getLibraryProjectsInOutputFolder (const Options &options) |
QString | findInPath (const QString &fileName) |
static GradleProperties | readGradleProperties (const QString &path) |
static bool | mergeGradleProperties (const QString &path, GradleProperties properties) |
bool | buildAndroidProject (const Options &options) |
bool | uninstallApk (const Options &options) |
QString | packagePath (const Options &options, PackageType packageType) |
bool | installApk (const Options &options) |
bool | copyPackage (const Options &options) |
bool | copyStdCpp (Options *options) |
static QString | zipalignPath (const Options &options, bool *ok) |
bool | signAAB (const Options &options) |
bool | signPackage (const Options &options) |
bool | writeDependencyFile (const Options &options) |
int | generateJavaQmlComponents (const Options &options) |
int | main (int argc, char *argv[]) |
[ctor_close] |
Variables | |
static const bool | mustReadOutputAnyway = true |
static QStringList | dependenciesForDepfile |
static const QHash< QByteArray, QByteArray > | elfArchitectures |
typedef QMap< QByteArray, QByteArray > GradleProperties |
enum ErrorCode |
enum ErrorCode |
enum PackageType |
enum PackageType |
QStringList allFilesInside | ( | const QDir & | current, |
const QDir & | rootDir ) |
bool copyFiles | ( | const QDir & | sourceDirectory, |
const QDir & | destinationDirectory, | ||
const Options & | options, | ||
bool | forceOverwrite = false ) |
Definition at line 1426 of file main.cpp.
References Options::useLegacyPackaging.
bool copyGradleTemplate | ( | const Options & | options | ) |
Definition at line 1493 of file main.cpp.
References Options::isZstdCompressionEnabled.
QList< QtDependency > findFilesRecursively | ( | const Options & | options, |
const QFileInfo & | info, | ||
const QString & | rootPath ) |
QList< QtDependency > findFilesRecursively | ( | const Options & | options, |
const QString & | fileName ) |
QStringList getLibraryProjectsInOutputFolder | ( | const Options & | options | ) |
QStringList getQtLibsFromElf | ( | const Options & | options, |
const QString & | fileName ) |
bool goodToCopy | ( | const Options * | options, |
const QString & | file, | ||
QStringList * | unmetDependencies ) |
GradleBuildConfigs gradleBuildConfigs | ( | const QString & | path | ) |
bool isDeployment | ( | const Options * | options, |
Options::DeploymentMechanism | deployment ) |
int main | ( | int | argc, |
char * | argv[] ) |
[ctor_close]
[0] [1]
[main_cpp]
[main.cpp body]
The main function for the string list model example.
Create a default directory model and, using the index-based interface to the model and some QLabel widgets, populate the window's layout with the names of objects in the directory.
[0] //! [1]
[1]
[using a custom style]
[4]
[QApplication subclass]
[2]
[21]
[getter functions]
[0]
[3]
[main]
This creates and populates a model with values from a string list then displays the contents of the model using a QListView widget. [0]
[ctor_close]
[printing a custom type]
[printing a custom type] [storing a custom value]
[storing a custom value]
[retrieving a custom value]
[retrieving a custom value]
[0]
[0] [1]
[1]
[0]
[0]
[1]
[1] [2]
[2]
[0]
[0]
[2]
[2]
[22]
[22]
[3]
[3]
[4]
[4]
[10]
[10]
[qcinfo_stream]
[qcinfo_stream]
[11]
[11]
[12]
[12]
[13]
[13]
[qcinfo_printf]
[qcinfo_printf]
[14]
[14]
[15]
[15]
[16]
[16]
[17]
[17]
[0]
[0]
[1]
[1]
[2]
[2]
[Window class using revision]
[Window class using revision]
[0]
[0]
[1]
[1]
[2]
[2]
[write output] [start stream]
[start stream]
[write element]
[write element]
[finish stream]
[finish stream] [write output]
[1]
[1]
[0]
[0]
[0]
[0] //! [1]
[1]
[0]
[0] //! [1]
[1]
[0]
[0] //! [1]
[1] //! [2]
[2]
[0]
[0]
[1]
[1]
[Adding a resource]
[Adding a resource]
[Inserting an image with a cursor]
[Inserting an image with a cursor]
[Inserting an image using HTML]
[Inserting an image using HTML]
[0]
[0] //! [1]
[1]
[1]
[2]
[2]
[3]
[0]
[1]
[1]
|
static |
QString packagePath | ( | const Options & | options, |
PackageType | packageType ) |
bool parseCmakeBoolean | ( | const QJsonValue & | value | ) |
bool parseOptions | ( | ) |
Definition at line 384 of file main.cpp.
References Options::auxMode, Options::build, Options::buildAAB, Options::buildAar, Options::Bundled, Options::copyDependenciesOnly, Options::deploymentMechanism, Options::helpRequested, Options::installApk, Options::internalSf, Options::noRccBundleCleanup, Options::protectedAuthenticationPath, Options::releasePackage, Options::sectionsOnly, Options::timing, Options::Unbundled, Options::uninstallApk, and Options::verbose.
|
static |
bool readInputFileDirectory | ( | Options * | options, |
QJsonObject & | jsonObject, | ||
const QString | keyName ) |
auto runAdb | ( | const Options & | options, |
const QString & | arguments ) -> decltype(openProcess({})) |
Definition at line 1657 of file main.cpp.
References Options::deploymentMechanism, and Options::verbose.
|
static |
|
static |