QGIS API Documentation  2.99.0-Master (dc72e14)
Public Member Functions | List of all members
QgsProjectVersion Class Reference

A class to describe the version of a project. More...

#include <qgsprojectversion.h>

Public Member Functions

 QgsProjectVersion ()
 Creates a new NULL version. More...
 
 QgsProjectVersion (int major, int minor, int sub, const QString &name="")
 
 QgsProjectVersion (const QString &string)
 
bool isNull () const
 Returns true if this is a NULL project version. More...
 
int majorVersion ()
 
int minorVersion ()
 
bool operator!= (const QgsProjectVersion &other) const
 Boolean not equal operator. More...
 
bool operator== (const QgsProjectVersion &other) const
 Boolean equal operator. More...
 
bool operator> (const QgsProjectVersion &other) const
 Boolean > operator. More...
 
bool operator>= (const QgsProjectVersion &other) const
 Boolean >= operator. More...
 
int subVersion ()
 
QString text ()
 

Detailed Description

A class to describe the version of a project.

Used in places where you need to check if the current version of QGIS is greater than the one used to create a project file.

Definition at line 31 of file qgsprojectversion.h.

Constructor & Destructor Documentation

◆ QgsProjectVersion() [1/3]

QgsProjectVersion::QgsProjectVersion ( )
inline

Creates a new NULL version.

Definition at line 39 of file qgsprojectversion.h.

◆ QgsProjectVersion() [2/3]

QgsProjectVersion::QgsProjectVersion ( int  major,
int  minor,
int  sub,
const QString &  name = "" 
)

Definition at line 24 of file qgsprojectversion.cpp.

◆ QgsProjectVersion() [3/3]

QgsProjectVersion::QgsProjectVersion ( const QString &  string)

Definition at line 32 of file qgsprojectversion.cpp.

Member Function Documentation

◆ isNull()

bool QgsProjectVersion::isNull ( ) const

Returns true if this is a NULL project version.

Definition at line 94 of file qgsprojectversion.cpp.

◆ majorVersion()

int QgsProjectVersion::majorVersion ( )
inline

Definition at line 47 of file qgsprojectversion.h.

◆ minorVersion()

int QgsProjectVersion::minorVersion ( )
inline

Definition at line 48 of file qgsprojectversion.h.

◆ operator!=()

bool QgsProjectVersion::operator!= ( const QgsProjectVersion other) const

Boolean not equal operator.

Definition at line 63 of file qgsprojectversion.cpp.

◆ operator==()

bool QgsProjectVersion::operator== ( const QgsProjectVersion other) const

Boolean equal operator.

Definition at line 56 of file qgsprojectversion.cpp.

◆ operator>()

bool QgsProjectVersion::operator> ( const QgsProjectVersion other) const

Boolean > operator.

Definition at line 75 of file qgsprojectversion.cpp.

◆ operator>=()

bool QgsProjectVersion::operator>= ( const QgsProjectVersion other) const

Boolean >= operator.

Definition at line 70 of file qgsprojectversion.cpp.

◆ subVersion()

int QgsProjectVersion::subVersion ( )
inline

Definition at line 49 of file qgsprojectversion.h.

◆ text()

QString QgsProjectVersion::text ( )

Definition at line 82 of file qgsprojectversion.cpp.


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