QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Temporarily disables updates for a QWidget for the lifetime of the object. More...
#include <qgsguiutils.h>
Public Member Functions | |
QWidgetUpdateBlocker (const QWidgetUpdateBlocker &other)=delete | |
QWidgetUpdateBlocker (QWidget *widget) | |
Constructor for QWidgetUpdateBlocker. | |
~QWidgetUpdateBlocker () | |
QWidgetUpdateBlocker & | operator= (const QWidgetUpdateBlocker &other)=delete |
void | release () |
Releases the update block early (i.e. | |
Temporarily disables updates for a QWidget for the lifetime of the object.
When the object is deleted, the updates are re-enabled.
Definition at line 215 of file qgsguiutils.h.
QWidgetUpdateBlocker::QWidgetUpdateBlocker | ( | QWidget * | widget | ) |
Constructor for QWidgetUpdateBlocker.
Blocks updates for the specified widget.
The caller must ensure that widget exists for the lifetime of this object.
Definition at line 407 of file qgsguiutils.cpp.
|
delete |
QWidgetUpdateBlocker::~QWidgetUpdateBlocker | ( | ) |
Definition at line 422 of file qgsguiutils.cpp.
|
delete |
void QWidgetUpdateBlocker::release | ( | ) |
Releases the update block early (i.e.
before this object is destroyed).
Definition at line 413 of file qgsguiutils.cpp.