QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Temporarily sets a cursor override for the QApplication for the lifetime of the object. More...
#include <qgsguiutils.h>
Public Member Functions | |
QgsTemporaryCursorOverride (const QCursor &cursor) | |
Constructor for QgsTemporaryCursorOverride. | |
~QgsTemporaryCursorOverride () | |
void | release () |
Releases the cursor override early (i.e. | |
Temporarily sets a cursor override for the QApplication for the lifetime of the object.
When the object is deleted, the cursor override is removed.
Definition at line 246 of file qgsguiutils.h.
QgsTemporaryCursorOverride::QgsTemporaryCursorOverride | ( | const QCursor & | cursor | ) |
Constructor for QgsTemporaryCursorOverride.
Sets the application override cursor to cursor.
Definition at line 353 of file qgsguiutils.cpp.
QgsTemporaryCursorOverride::~QgsTemporaryCursorOverride | ( | ) |
Definition at line 358 of file qgsguiutils.cpp.
void QgsTemporaryCursorOverride::release | ( | ) |
Releases the cursor override early (i.e.
before this object is destroyed).
Definition at line 364 of file qgsguiutils.cpp.