libyui-qt
 
Loading...
Searching...
No Matches
YQSignalBlocker Class Reference

#include <YQSignalBlocker.h>

Public Member Functions

 YQSignalBlocker (QObject *qobject)
 
 ~YQSignalBlocker ()
 

Detailed Description

Helper class to block Qt signals for QWidgets or QObjects as long as this object exists.

This object will restore the old blocked state when it goes out of scope.

Constructor & Destructor Documentation

◆ YQSignalBlocker()

YQSignalBlocker::YQSignalBlocker ( QObject * qobject)

Constructor.

Qt signals for 'qobject' will be blocked as long as this object exists. Remember that a QWidget is also a QObject.

◆ ~YQSignalBlocker()

YQSignalBlocker::~YQSignalBlocker ( )

Destructor.

This will restore the old signal state.


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