CSignalBlocker.h
Go to the documentation of this file.
1 #ifndef iqt_CSignalBlocker_included
2 #define iqt_CSignalBlocker_included
3 
4 
5 // Qt includes
6 #include <QtCore/QObject>
7 
8 // ACF includes
9 #include <iqt/iqt.h>
10 
11 
12 namespace iqt
13 {
14 
15 
20 {
21 public:
22 
29  CSignalBlocker(QObject* objectPtr, bool blockChilds = false);
30 
34  virtual ~CSignalBlocker();
35 
36 private:
43  void BlockChilds(QObject* objectPtr, bool block);
44 
45 private:
46  QObject* m_objectPtr;
47  bool m_blockChilds;
48 };
49 
50 
51 } // namespace iqt
52 
53 
54 #endif // !iqt_CSignalBlocker_included
55 
virtual ~CSignalBlocker()
Destructor.
Simple helper class blocking Qt signals of specified QObject.
CSignalBlocker(QObject *objectPtr, bool blockChilds=false)
Constructor.

© 2007-2017 Witold Gantzke and Kirill Lepskiy