Changeset View
Changeset View
Standalone View
Standalone View
autotests/kdeplatformtheme_unittest.cpp
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | |||||
75 | public: | 75 | public: | ||
76 | EventTest(QObject *tested, QEvent::Type type) | 76 | EventTest(QObject *tested, QEvent::Type type) | ||
77 | : QObject(), gotEvent(false), m_type(type) | 77 | : QObject(), gotEvent(false), m_type(type) | ||
78 | { | 78 | { | ||
79 | tested->installEventFilter(this); | 79 | tested->installEventFilter(this); | ||
80 | 80 | | |||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | bool eventFilter(QObject *, QEvent *e) Q_DECL_OVERRIDE | 83 | bool eventFilter(QObject *, QEvent *e) override | ||
84 | { | 84 | { | ||
85 | if (e->type() == m_type) { | 85 | if (e->type() == m_type) { | ||
86 | gotEvent = true; | 86 | gotEvent = true; | ||
87 | } | 87 | } | ||
88 | return false; | 88 | return false; | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | bool gotEvent; | 91 | bool gotEvent; | ||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |