Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlJS::Dom::Version Class Reference

#include <qqmldomelements_p.h>

+ Collaboration diagram for QQmlJS::Dom::Version:

Public Member Functions

 Version (qint32 majorVersion=Undefined, qint32 minorVersion=Undefined)
 
bool iterateDirectSubpaths (DomItem &self, DirectVisitor)
 
bool isLatest () const
 
bool isValid () const
 
QString stringValue () const
 
QString majorString () const
 
QString majorSymbolicString () const
 
QString minorString () const
 
int compare (const Version &o) const
 

Static Public Member Functions

static Version fromString (QStringView v)
 

Public Attributes

qint32 majorVersion
 
qint32 minorVersion
 

Static Public Attributes

static constexpr DomType kindValue = DomType::Version
 
static constexpr qint32 Undefined = -1
 
static constexpr qint32 Latest = -2
 

Detailed Description

Definition at line 155 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ Version()

QQmlJS::Dom::Version::Version ( qint32  majorVersion = Undefined,
qint32  minorVersion = Undefined 
)

Definition at line 221 of file qqmldomelements.cpp.

Member Function Documentation

◆ compare()

int QQmlJS::Dom::Version::compare ( const Version o) const
inline

Definition at line 190 of file qqmldomelements_p.h.

References o.

◆ fromString()

Version QQmlJS::Dom::Version::fromString ( QStringView  v)
static

Definition at line 201 of file qqmldomelements.cpp.

References QRegularExpression::anchoredPattern(), Latest, ok, QStringLiteral, and Undefined.

Referenced by QQmlJS::Dom::Paths::moduleScopePath().

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

◆ isLatest()

bool QQmlJS::Dom::Version::isLatest ( ) const

Definition at line 223 of file qqmldomelements.cpp.

References Latest, majorVersion, and minorVersion.

Referenced by iterateDirectSubpaths(), and stringValue().

+ Here is the caller graph for this function:

◆ isValid()

bool QQmlJS::Dom::Version::isValid ( ) const

Definition at line 228 of file qqmldomelements.cpp.

References majorVersion, and minorVersion.

Referenced by QQmlJS::Dom::ModuleIndex::exportsWithNameAndMinorVersion(), and iterateDirectSubpaths().

+ Here is the caller graph for this function:

◆ iterateDirectSubpaths()

bool QQmlJS::Dom::Version::iterateDirectSubpaths ( DomItem self,
DirectVisitor  visitor 
)

Definition at line 248 of file qqmldomelements.cpp.

References isLatest(), isValid(), majorVersion, minorVersion, and stringValue().

+ Here is the call graph for this function:

◆ majorString()

QString QQmlJS::Dom::Version::majorString ( ) const
inline

Definition at line 170 of file qqmldomelements_p.h.

References QString::number(), and Undefined.

+ Here is the call graph for this function:

◆ majorSymbolicString()

QString QQmlJS::Dom::Version::majorSymbolicString ( ) const
inline

Definition at line 176 of file qqmldomelements_p.h.

References QString::number(), and Undefined.

Referenced by QQmlJS::Dom::Paths::moduleScopePath().

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

◆ minorString()

QString QQmlJS::Dom::Version::minorString ( ) const
inline

Definition at line 184 of file qqmldomelements_p.h.

References QString::number(), and Undefined.

Referenced by QQmlJS::Dom::Paths::moduleScopePath().

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

◆ stringValue()

QString QQmlJS::Dom::Version::stringValue ( ) const

Definition at line 233 of file qqmldomelements.cpp.

References QChar::fromLatin1(), isLatest(), majorVersion, minorVersion, and QString::number().

Referenced by iterateDirectSubpaths().

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

Member Data Documentation

◆ kindValue

constexpr DomType QQmlJS::Dom::Version::kindValue = DomType::Version
staticconstexpr

Definition at line 158 of file qqmldomelements_p.h.

◆ Latest

◆ majorVersion

◆ minorVersion

◆ Undefined

constexpr qint32 QQmlJS::Dom::Version::Undefined = -1
staticconstexpr

The documentation for this class was generated from the following files: