Exemplo n.º 1
0
ScopedQtSignalsBlocker::ScopedQtSignalsBlocker( QObject& objectToBlock )
:
m_objectToBlock( objectToBlock ),
m_previousBlockState( objectToBlock.blockSignals( true ) )
{
}
/*!
  \overload

  \post o.signalsBlocked() == true
*/
KDSignalBlocker::KDSignalBlocker( QObject & o )
    : blocked( o.signalsBlocked() ), object( &o )
{
    o.blockSignals( true );
}