![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qqmlimport_p.h>
Public Types | |
| enum | Precedence { Lowest = std::numeric_limits<quint8>::max() , Implicit = Lowest / 2 , Highest = 0 } |
Public Member Functions | |
| bool | setQmldirContent (const QString &resolvedUrl, const QQmlTypeLoaderQmldirContent &qmldir, QQmlImportNamespace *nameSpace, QList< QQmlError > *errors) |
| bool | resolveType (QQmlTypeLoader *typeLoader, const QHashedStringRef &typetype, QQmlImportResolutionResult *resultresult, QQmlType::RegistrationType=QQmlType::AnyRegistrationType, QQmlImport::RecursionRestriction recursionRestriction=QQmlImport::PreventRecursion) const |
Static Public Member Functions | |
| static QQmlDirScripts | getVersionedScripts (const QQmlDirScripts &qmldirscripts, QTypeRevision version) |
Public Attributes | |
| QString | uri |
| QString | url |
| QTypeRevision | version |
| bool | isLibrary |
| bool | implicitlyImported = false |
| bool | isInlineComponent = false |
| quint8 | precedence = 0 |
| QQmlDirComponents | qmlDirComponents |
| QQmlDirScripts | qmlDirScripts |
A QQmlImportType represents a single import of a document, held within a namespace.
Definition at line 65 of file qqmlimport_p.h.
| Enumerator | |
|---|---|
| Lowest | |
| Implicit | |
| Highest | |
Definition at line 67 of file qqmlimport_p.h.
|
static |
Definition at line 521 of file qqmlimport.cpp.
| bool QQmlImportInstance::resolveType | ( | QQmlTypeLoader * | typeLoader, |
| const QHashedStringRef & | type, | ||
| QQmlImportResolutionResult * | result, | ||
| QQmlType::RegistrationType | registrationType = QQmlType::AnyRegistrationType, | ||
| QQmlImport::RecursionRestriction | recursionRestriction = QQmlImport::PreventRecursion ) const |
Searching only in the namespace {ns} in result (previously returned in a call to resolveType(), type is found and returned to a QQmlType stored at {type} in result. If the type is from a QML file, the returned type will be a CompositeType.
If the return pointer is 0, the corresponding search is not done.
Definition at line 555 of file qqmlimport.cpp.
References QQmlImport::AllowRecursion, isInlineComponent, isLibrary, QQmlImport::PreventRecursion, and QQmlImportResolutionResult::typeRecursionDetected.
| bool QQmlImportInstance::setQmldirContent | ( | const QString & | resolvedUrl, |
| const QQmlTypeLoaderQmldirContent & | qmldir, | ||
| QQmlImportNamespace * | nameSpace, | ||
| QList< QQmlError > * | errors ) |
Definition at line 491 of file qqmlimport.cpp.
| bool QQmlImportInstance::implicitlyImported = false |
Definition at line 80 of file qqmlimport_p.h.
| bool QQmlImportInstance::isInlineComponent = false |
Definition at line 81 of file qqmlimport_p.h.
Referenced by resolveType(), and QQmlImportNamespace::resolveType().
| bool QQmlImportInstance::isLibrary |
Definition at line 77 of file qqmlimport_p.h.
Referenced by resolveType().
| quint8 QQmlImportInstance::precedence = 0 |
Definition at line 83 of file qqmlimport_p.h.
| QQmlDirComponents QQmlImportInstance::qmlDirComponents |
Definition at line 85 of file qqmlimport_p.h.
| QQmlDirScripts QQmlImportInstance::qmlDirScripts |
Definition at line 86 of file qqmlimport_p.h.
| QString QQmlImportInstance::uri |
Definition at line 73 of file qqmlimport_p.h.
| QString QQmlImportInstance::url |
Definition at line 74 of file qqmlimport_p.h.
| QTypeRevision QQmlImportInstance::version |
Definition at line 75 of file qqmlimport_p.h.