QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
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. | |
QgsProjectVersion | currentVersion () const |
The current project version. | |
QDomDocument & | dom () |
The current dom document. | |
void | dump () |
Prints the contents to the console. | |
bool | updateRevision (const QgsProjectVersion &version) |
Static Public Member Functions | |
static void | convertRasterProperties (QDomDocument &doc, QDomNode &parentNode, QDomElement &rasterPropertiesElem, QgsRasterLayer *rlayer) |
static Q_DECL_DEPRECATED void | fixOldSymbolLayerReferences (const QMap< QString, QgsMapLayer * > &mapLayers) |
QgsSymbolLayerReference uses QgsSymbolLayer unique uuid identifier since QGIS 3.30, instead of the symbol key (rule for QgsRuleBasedRenderer for instance) and index path, so this method migrates mapLayers old references to new ones. | |
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 38 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 49 of file qgsprojectfiletransform.h.
|
static |
Definition at line 379 of file qgsprojectfiletransform.cpp.
QgsProjectVersion QgsProjectFileTransform::currentVersion | ( | ) | const |
The current project version.
Definition at line 599 of file qgsprojectfiletransform.cpp.
QDomDocument & QgsProjectFileTransform::dom | ( | ) |
The current dom document.
Definition at line 594 of file qgsprojectfiletransform.cpp.
void QgsProjectFileTransform::dump | ( | ) |
Prints the contents to the console.
Definition at line 117 of file qgsprojectfiletransform.cpp.
|
static |
QgsSymbolLayerReference uses QgsSymbolLayer unique uuid identifier since QGIS 3.30, instead of the symbol key (rule for QgsRuleBasedRenderer for instance) and index path, so this method migrates mapLayers old references to new ones.
Definition at line 718 of file qgsprojectfiletransform.cpp.
bool QgsProjectFileTransform::updateRevision | ( | const QgsProjectVersion & | version | ) |
Definition at line 65 of file qgsprojectfiletransform.cpp.