VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrvCoreQtUtil.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <QtCore/QObject>
13 
14 #define BLOCK_SIGNALS(widget,codeblock)\
15  { bool restore = widget->blockSignals(true);\
16  codeblock;\
17  widget->blockSignals(restore);\
18  }
19 
21 {
22 public:
24  : myWidget(w)
25  {
26  mySignalsBlocked = myWidget.blockSignals(true);
27  }
28 
30  {
31  myWidget.blockSignals(mySignalsBlocked);
32  }
33 
34 private:
37 };
Definition: vrvCoreQtUtil.h:20
DtScopedSignalBlock(QObject &w)
Definition: vrvCoreQtUtil.h:23
bool mySignalsBlocked
Definition: vrvCoreQtUtil.h:36
~DtScopedSignalBlock()
Definition: vrvCoreQtUtil.h:29
QObject & myWidget
Definition: vrvCoreQtUtil.h:35

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)