Public Member Functions | List of all members
pqScopedOverrideCursor Class Reference

RAII component that overrides the mouse cursor during an operation. More...

#include <pqScopedOverrideCursor.h>

Inheritance diagram for pqScopedOverrideCursor:
Inheritance graph
[legend]

Public Member Functions

 pqScopedOverrideCursor ()=delete
 
 pqScopedOverrideCursor (Qt::CursorShape cursorShape)
 
virtual ~pqScopedOverrideCursor ()
 

Detailed Description

RAII component that overrides the mouse cursor during an operation.

The normal cursor is restored when the pqScopedOverrideCursor object goes out-of-scope:

/code { pqScopedOverrideCursor cursor(Qt::WaitCursor); for(i = 0; i != really_big_number; ++i) { DoSomethingTimeConsuming(); } } /endcode

Definition at line 26 of file pqScopedOverrideCursor.h.

Constructor & Destructor Documentation

◆ pqScopedOverrideCursor() [1/2]

pqScopedOverrideCursor::pqScopedOverrideCursor ( )
delete

◆ pqScopedOverrideCursor() [2/2]

pqScopedOverrideCursor::pqScopedOverrideCursor ( Qt::CursorShape  cursorShape)

◆ ~pqScopedOverrideCursor()

virtual pqScopedOverrideCursor::~pqScopedOverrideCursor ( )
virtual

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