Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmljsimporter.cpp File Reference
#include "qqmljsimporter_p.h"
#include "qqmljstypedescriptionreader_p.h"
#include "qqmljstypereader_p.h"
#include "qqmljsimportvisitor_p.h"
#include "qqmljslogger_p.h"
#include <QtQml/private/qqmlimportresolver_p.h>
#include <QtCore/qfileinfo.h>
#include <QtCore/qdiriterator.h>
+ Include dependency graph for qqmljsimporter.cpp:

Go to the source code of this file.

Functions

static const QString prefixedName (const QString &prefix, const QString &name)
 
static QQmlDirParser createQmldirParserForFile (const QString &filename)
 
static QString internalName (const QQmlJSScope::ConstPtr &scope)
 
static bool isComposite (const QQmlJSScope::ConstPtr &scope)
 
static bool isVersionAllowed (const QQmlJSScope::Export &exportEntry, const QQmlJSScope::Import &importDescription)
 

Variables

static const QLatin1String SlashQmldir = QLatin1String("/qmldir")
 
static const QLatin1String SlashPluginsDotQmltypes = QLatin1String("/plugins.qmltypes")
 

Function Documentation

◆ createQmldirParserForFile()

static QQmlDirParser createQmldirParserForFile ( const QString filename)
static

Definition at line 28 of file qqmljsimporter.cpp.

References QString::fromUtf8(), QQmlDirParser::parse(), and QIODeviceBase::ReadOnly.

+ Here is the call graph for this function:

◆ internalName()

static QString internalName ( const QQmlJSScope::ConstPtr scope)
static

Definition at line 119 of file qqmljsimporter.cpp.

References factory, QDeferredSharedPointer< T >::factory(), and QQmlJSScope::internalName().

Referenced by QQmlJSScope::create(), QQmlJSScope::isSameType(), QQmlSA::DebugPropertyPass::onBinding(), QQmlSA::DebugPropertyPass::onRead(), QQmlJSScope::setInternalName(), and QQmlJSImportVisitor::visit().

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

◆ isComposite()

static bool isComposite ( const QQmlJSScope::ConstPtr scope)
static

Definition at line 126 of file qqmljsimporter.cpp.

References QDeferredSharedPointer< T >::factory(), and QQmlJSScope::isComposite().

Referenced by QQmlJS::Dom::Component::setIsComposite().

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

◆ isVersionAllowed()

static bool isVersionAllowed ( const QQmlJSScope::Export exportEntry,
const QQmlJSScope::Import importDescription 
)
static

Definition at line 310 of file qqmljsimporter.cpp.

References QTypeRevision::hasMajorVersion(), QTypeRevision::hasMinorVersion(), QTypeRevision::majorVersion(), QTypeRevision::minorVersion(), QQmlJSScope::Import::version(), and QQmlJSScope::Export::version().

+ Here is the call graph for this function:

◆ prefixedName()

static const QString prefixedName ( const QString prefix,
const QString name 
)
static

Definition at line 22 of file qqmljsimporter.cpp.

References QString::endsWith(), QString::isEmpty(), and Q_ASSERT.

Referenced by QQmlJSImporter::importModule().

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

Variable Documentation

◆ SlashPluginsDotQmltypes

const QLatin1String SlashPluginsDotQmltypes = QLatin1String("/plugins.qmltypes")
static

Definition at line 20 of file qqmljsimporter.cpp.

◆ SlashQmldir

const QLatin1String SlashQmldir = QLatin1String("/qmldir")
static

Definition at line 19 of file qqmljsimporter.cpp.

Referenced by QQmlJSImporter::importQmldirs().