QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QWidgetUpdateBlocker Class Reference

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 ()
 
QWidgetUpdateBlockeroperator= (const QWidgetUpdateBlocker &other)=delete
 
void release ()
 Releases the update block early (i.e.
 

Detailed Description

Temporarily disables updates for a QWidget for the lifetime of the object.

When the object is deleted, the updates are re-enabled.

Since
QGIS 3.34

Definition at line 215 of file qgsguiutils.h.

Constructor & Destructor Documentation

◆ QWidgetUpdateBlocker() [1/2]

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.

◆ QWidgetUpdateBlocker() [2/2]

QWidgetUpdateBlocker::QWidgetUpdateBlocker ( const QWidgetUpdateBlocker other)
delete

◆ ~QWidgetUpdateBlocker()

QWidgetUpdateBlocker::~QWidgetUpdateBlocker ( )

Definition at line 422 of file qgsguiutils.cpp.

Member Function Documentation

◆ operator=()

QWidgetUpdateBlocker & QWidgetUpdateBlocker::operator= ( const QWidgetUpdateBlocker other)
delete

◆ release()

void QWidgetUpdateBlocker::release ( )

Releases the update block early (i.e.

before this object is destroyed).

Definition at line 413 of file qgsguiutils.cpp.


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