Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlengine.cpp File Reference
#include "qqmlengine_p.h"
#include "qqmlengine.h"
#include "qqmlcontext_p.h"
#include "qqml.h"
#include "qqmlcontext.h"
#include "qqmlscriptstring.h"
#include "qqmlglobal_p.h"
#include "qqmlnotifier_p.h"
#include "qqmlincubator.h"
#include "qqmlabstracturlinterceptor.h"
#include <private/qqmldirparser_p.h>
#include <private/qqmlboundsignal_p.h>
#include <private/qqmljsdiagnosticmessage_p.h>
#include <private/qqmltype_p_p.h>
#include <private/qqmlpluginimporter_p.h>
#include <QtCore/qstandardpaths.h>
#include <QtCore/qmetaobject.h>
#include <QDebug>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qcryptographichash.h>
#include <QtCore/qdir.h>
#include <QtCore/qmutex.h>
#include <QtCore/qthread.h>
#include <private/qthread_p.h>
#include <private/qqmlscriptdata_p.h>
#include <QtQml/private/qqmlcomponentattached_p.h>
#include <QtQml/private/qqmlsourcecoordinate_p.h>
#include <QtQml/private/qqmlcomponent_p.h>
#include <private/qobject_p.h>
#include <private/qmetaobject_p.h>
#include <private/qqmlbind_p.h>
#include <private/qqmlconnections_p.h>
#include <private/qqmlplatform_p.h>
#include <private/qqmlloggingcategory_p.h>
#include <private/qv4sequenceobject_p.h>
#include "moc_qqmlengine_p.cpp"
#include "moc_qqmlengine.cpp"
+ Include dependency graph for qqmlengine.cpp:

Go to the source code of this file.

Classes

class  QQmlThreadNotifierProxyObject
 
class  QQmlDataExtended
 

Functions

template<>
int qmlRegisterType< void > (const char *uri, int versionMajor, int versionMinor, const char *qmlName)
 
static void dumpwarning (const QQmlError &error)
 
static void dumpwarning (const QList< QQmlError > &errors)
 
bool QQml_isFileCaseCorrect (const QString &fileName, int lengthIn)
 Returns true if the case of fileName is equivalent to the file case of fileName on disk, and false otherwise.
 
void hasJsOwnershipIndicator (QQmlGuardImpl *)
 

Function Documentation

◆ dumpwarning() [1/2]

static void dumpwarning ( const QList< QQmlError > &  errors)
static

Definition at line 1580 of file qqmlengine.cpp.

References QList< T >::at(), dumpwarning(), and QList< T >::size().

+ Here is the call graph for this function:

◆ dumpwarning() [2/2]

static void dumpwarning ( const QQmlError error)
static

Definition at line 1553 of file qqmlengine.cpp.

References QMessageLogger::critical(), QMessageLogger::debug(), error, QMessageLogger::info(), QtCriticalMsg, QtDebugMsg, QtFatalMsg, QtInfoMsg, QtWarningMsg, and QMessageLogger::warning().

Referenced by dumpwarning(), QQmlEnginePrivate::warning(), QQmlEnginePrivate::warning(), QQmlEnginePrivate::warning(), QQmlEnginePrivate::warning(), QQmlEnginePrivate::warning(), and QQmlEnginePrivate::warning().

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

◆ hasJsOwnershipIndicator()

void hasJsOwnershipIndicator ( QQmlGuardImpl )

Definition at line 2161 of file qqmlengine.cpp.

◆ qmlRegisterType< void >()

template<>
int qmlRegisterType< void > ( const char *  uri,
int  versionMajor,
int  versionMinor,
const char *  qmlName 
)

Definition at line 442 of file qqmlengine.cpp.

References QQmlPrivate::RegisterType::CurrentVersion, QTypeRevision::fromVersion(), QQmlPrivate::None, QQmlPrivate::qmlregister(), QQmlPrivate::TypeRegistration, and QTypeRevision::zero().

Referenced by QQmlEnginePrivate::init().

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

◆ QQml_isFileCaseCorrect()

bool QQml_isFileCaseCorrect ( const QString fileName,
int  length = -1 
)

Returns true if the case of fileName is equivalent to the file case of fileName on disk, and false otherwise.

This is used to ensure that the behavior of QML on a case-insensitive file system is the same as on a case-sensitive file system. This function performs a "best effort" attempt to determine the real case of the file. It may have false positives (say the case is correct when it isn't), but it should never have a false negative (say the case is incorrect when it is correct).

Length specifies specifies the number of characters to be checked from behind. That is, if a file name results from a relative path specification like "foo/bar.qml" and is made absolute, the original length (11) should be passed indicating that only the last part of the relative path should be checked.

Definition at line 2088 of file qqmlengine.cpp.

References QFileInfo::absoluteFilePath(), QString::at(), QFileInfo::canonicalFilePath(), fileName, info, QString::lastIndexOf(), QString::length(), Q_UNUSED, and qMin().

Referenced by QQmlPluginImporter::importDynamicPlugin(), QQmlFile::load(), QQmlFile::load(), QQmlTypeLoader::qmldirContent(), and QQmlImportInstance::resolveType().

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