13#include <QtCore/qobject.h>
26 m_initialState = m_object->signalsBlocked();
27 m_object->blockSignals(
true);
35 m_object->blockSignals(m_initialState);
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
The SignalBlockWrapper is a RAII wrapper for blocking signals of a given QObject.
Definition SignalBlockWrapper.h:18
~SignalBlockWrapper()
Destructor. The "blocked signals" state of the provided object will be set back to the initial value,...
Definition SignalBlockWrapper.h:33
SignalBlockWrapper(QObject *_object)
Constructor. The currently set "block signals" state of the given object will be stored and the signa...
Definition SignalBlockWrapper.h:24