![]() |
Qt 6.x
The Qt SDK
|
#include <qqmlapplicationengine_p.h>
Definition at line 27 of file qqmlapplicationengine_p.h.
QT_BEGIN_NAMESPACE QQmlApplicationEnginePrivate::QQmlApplicationEnginePrivate | ( | QQmlEngine * | e | ) |
Definition at line 16 of file qqmlapplicationengine.cpp.
References QLocale::bcp47Name().
QQmlApplicationEnginePrivate::~QQmlApplicationEnginePrivate | ( | ) |
Definition at line 22 of file qqmlapplicationengine.cpp.
void QQmlApplicationEnginePrivate::_q_loadTranslations | ( | ) |
Definition at line 65 of file qqmlapplicationengine.cpp.
References QCoreApplication::installTranslator(), QString::isEmpty(), QCoreApplication::removeTranslator(), and translationsDirectory.
Referenced by init(), startLoad(), and startLoad().
void QQmlApplicationEnginePrivate::cleanUp | ( | ) |
Definition at line 34 of file qqmlapplicationengine.cpp.
References objects, and qDeleteAll().
void QQmlApplicationEnginePrivate::ensureInitialized | ( | ) |
Definition at line 26 of file qqmlapplicationengine.cpp.
References init(), and isInitialized.
Referenced by startLoad(), and startLoad().
void QQmlApplicationEnginePrivate::ensureLoadingFinishes | ( | QQmlComponent * | component | ) |
Definition at line 158 of file qqmlapplicationengine.cpp.
References QObject::connect(), finishLoad(), and QQmlComponent::statusChanged().
Referenced by startLoad(), and startLoad().
void QQmlApplicationEnginePrivate::finishLoad | ( | QQmlComponent * | component | ) |
Definition at line 124 of file qqmlapplicationengine.cpp.
References QObject::connect(), QList< T >::constLast(), QObject::destroyed(), QMap< Key, T >::empty(), QQmlComponent::Error, initialProperties, QQmlComponent::Loading, QQmlComponent::Null, objects, qWarning, QQmlComponent::Ready, QList< T >::removeAll(), and QQmlEnginePrivate::warning().
Referenced by ensureLoadingFinishes().
void QQmlApplicationEnginePrivate::init | ( | ) |
Definition at line 43 of file qqmlapplicationengine.cpp.
References _q_loadTranslations(), QObject::connect(), QQmlEngine::exit(), QCoreApplication::exit(), extraFileSelectors, QCoreApplication::installTranslator(), QCoreApplication::instance(), QLibraryInfo::path(), Qt::QueuedConnection, QCoreApplication::quit(), QQmlEngine::quit(), selector, QFileSelector::setExtraSelectors(), QObject::setProperty(), QLibraryInfo::TranslationsPath, and QJSEngine::uiLanguageChanged().
Referenced by ensureInitialized().
void QQmlApplicationEnginePrivate::startLoad | ( | const QUrl & | url, |
const QByteArray & | data = QByteArray() , |
||
bool | dataFlag = false |
||
) |
Definition at line 88 of file qqmlapplicationengine.cpp.
References _q_loadTranslations(), QString::clear(), ensureInitialized(), ensureLoadingFinishes(), fi, QFileInfo::path(), QUrl::scheme(), translationsDirectory, url, and QQmlFile::urlToLocalFileOrQrc().
void QQmlApplicationEnginePrivate::startLoad | ( | QAnyStringView | uri, |
QAnyStringView | type | ||
) |
Definition at line 112 of file qqmlapplicationengine.cpp.
References _q_loadTranslations(), ensureInitialized(), and ensureLoadingFinishes().
QStringList QQmlApplicationEnginePrivate::extraFileSelectors |
Definition at line 44 of file qqmlapplicationengine_p.h.
Referenced by init().
QVariantMap QQmlApplicationEnginePrivate::initialProperties |
Definition at line 43 of file qqmlapplicationengine_p.h.
Referenced by finishLoad().
bool QQmlApplicationEnginePrivate::isInitialized = false |
Definition at line 49 of file qqmlapplicationengine_p.h.
Referenced by ensureInitialized().
Definition at line 42 of file qqmlapplicationengine_p.h.
Referenced by cleanUp(), and finishLoad().
QString QQmlApplicationEnginePrivate::translationsDirectory |
Definition at line 45 of file qqmlapplicationengine_p.h.
Referenced by _q_loadTranslations(), and startLoad().