Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 (const DomItem &self, DirectVisitor) const
 
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 160 of file qqmldomelements_p.h.

Constructor & Destructor Documentation

◆ Version()

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

Definition at line 220 of file qqmldomelements.cpp.

Member Function Documentation

◆ compare()

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

Definition at line 195 of file qqmldomelements_p.h.

References o.

◆ fromString()

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

Definition at line 200 of file qqmldomelements.cpp.

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

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 222 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 227 of file qqmldomelements.cpp.

References majorVersion, and minorVersion.

Referenced by iterateDirectSubpaths().

+ Here is the caller graph for this function:

◆ iterateDirectSubpaths()

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

Definition at line 247 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 175 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 181 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 189 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 232 of file qqmldomelements.cpp.

References 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 163 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: