VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)