kleopatra
#include <kdsignalblocker.h>
Public Member Functions | |
KDSignalBlocker (QObject *o) | |
KDSignalBlocker (QObject &o) | |
~KDSignalBlocker () | |
Detailed Description
Exception-safe and convenient wrapper around QObject::blockSignals()
All methods in this class are nothrow if QObject::blockSignals() and QObject::signalsBlocked() are nothrow, which they normally are.
Definition at line 30 of file kdsignalblocker.h.
Constructor & Destructor Documentation
|
explicit |
Constructor. Blocks signals on o.
- Postcondition
- o->signalsBlocked() == true
Definition at line 44 of file kdsignalblocker.cpp.
|
explicit |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Postcondition
- o.signalsBlocked() == true
Definition at line 55 of file kdsignalblocker.cpp.
KDSignalBlocker::~KDSignalBlocker | ( | ) |
Destructor. Unblocks signals (unless they were blocked before)
- Postcondition
- o->signalsBlocked() is the same as just before this instance has been constructed.
Definition at line 66 of file kdsignalblocker.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.