QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Temporarily blocks QgsProject "dirtying" for the lifetime of the object. More...
#include <qgsproject.h>
Public Member Functions | |
QgsProjectDirtyBlocker (const QgsProjectDirtyBlocker &other)=delete | |
QgsProjectDirtyBlocker cannot be copied. More... | |
QgsProjectDirtyBlocker (QgsProject *project) | |
Constructor for QgsProjectDirtyBlocker. More... | |
~QgsProjectDirtyBlocker () | |
QgsProjectDirtyBlocker & | operator= (const QgsProjectDirtyBlocker &other)=delete |
QgsProjectDirtyBlocker cannot be copied. More... | |
Temporarily blocks QgsProject "dirtying" for the lifetime of the object.
QgsProjectDirtyBlocker supports "stacked" blocking, so two QgsProjectDirtyBlockers created for the same project will both need to be destroyed before the project can be dirtied again.
Note that QgsProjectDirtyBlocker only blocks calls which set the project as dirty - calls which set the project as clean are not blocked.
Python scripts should not use QgsProjectDirtyBlocker directly. Instead, use QgsProject.blockDirtying()
Definition at line 2395 of file qgsproject.h.
|
inline |
Constructor for QgsProjectDirtyBlocker.
This will block dirtying the specified project for the lifetime of this object.
Definition at line 2404 of file qgsproject.h.
|
delete |
QgsProjectDirtyBlocker cannot be copied.
|
inline |
Definition at line 2416 of file qgsproject.h.
|
delete |
QgsProjectDirtyBlocker cannot be copied.