QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
Class to convert from older project file versions to newer. More...
#include <qgsprojectfiletransform.h>
Public Member Functions | |
QgsProjectFileTransform (QDomDocument &domDocument, const QgsProjectVersion &version) | |
Create an instance from a Dom and a supplied version. More... | |
QgsProjectVersion | currentVersion () const |
The current project version. More... | |
QDomDocument & | dom () |
The current dom document. More... | |
void | dump () |
Prints the contents via QgsDebugMsg() More... | |
bool | updateRevision (const QgsProjectVersion &version) |
Static Public Member Functions | |
static void | convertRasterProperties (QDomDocument &doc, QDomNode &parentNode, QDomElement &rasterPropertiesElem, QgsRasterLayer *rlayer) |
Class to convert from older project file versions to newer.
This class provides possibility to store a project file as a QDomDocument, and provides the ability to specify version of the project file, and perform upgrades to a more recent version
Definition at line 37 of file qgsprojectfiletransform.h.
|
inline |
Create an instance from a Dom and a supplied version.
domDocument | The Dom document to use as content |
version | Version number |
Definition at line 48 of file qgsprojectfiletransform.h.
|
static |
Definition at line 887 of file qgsprojectfiletransform.cpp.
QgsProjectVersion QgsProjectFileTransform::currentVersion | ( | ) | const |
The current project version.
Definition at line 1107 of file qgsprojectfiletransform.cpp.
QDomDocument & QgsProjectFileTransform::dom | ( | ) |
The current dom document.
Definition at line 1102 of file qgsprojectfiletransform.cpp.
void QgsProjectFileTransform::dump | ( | ) |
Prints the contents via QgsDebugMsg()
Definition at line 121 of file qgsprojectfiletransform.cpp.
bool QgsProjectFileTransform::updateRevision | ( | const QgsProjectVersion & | version | ) |
Definition at line 69 of file qgsprojectfiletransform.cpp.