CTreeWidgetFilter.h
Go to the documentation of this file.
1 #ifndef iwidgets_CTreeWidgetFilter_included
2 #define iwidgets_CTreeWidgetFilter_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 #if QT_VERSION >= 0x050000
8 #include <QtWidgets/QTreeWidget>
9 #else
10 #include <QtGui/QTreeWidget>
11 #endif
12 
13 #include <iwidgets/iwidgets.h>
14 
15 
16 namespace iwidgets
17 {
18 
19 
25 class CTreeWidgetFilter: public QObject
26 {
27 public:
28  typedef QObject BaseClass;
29 
35  explicit CTreeWidgetFilter(QTreeWidget* slavePtr);
36 
37 protected:
38  // reimplemented (QObject)
39  virtual bool eventFilter(QObject* sourcePtr, QEvent* eventPtr);
40 
41 private:
42  QTreeWidget& m_slave;
43 };
44 
45 
46 } // namespace iwidgets
47 
48 
49 #endif // !iwidgets_CTreeWidgetFilter_included
50 
51 
virtual bool eventFilter(QObject *sourcePtr, QEvent *eventPtr)
Provide some corrections in QTreeWidget object.
CTreeWidgetFilter(QTreeWidget *slavePtr)
Constructor.

© 2007-2017 Witold Gantzke and Kirill Lepskiy