diff options
-rw-r--r-- | src/testlib/qtestspontaneevent.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/testlib/qtestspontaneevent.h b/src/testlib/qtestspontaneevent.h index ae10fabd31..aac4397070 100644 --- a/src/testlib/qtestspontaneevent.h +++ b/src/testlib/qtestspontaneevent.h @@ -49,54 +49,13 @@ QT_BEGIN_NAMESPACE - -#ifndef QTEST_NO_SIZEOF_CHECK -template <int> -class QEventSizeOfChecker -{ -private: - QEventSizeOfChecker() {} -}; - -template <> -class QEventSizeOfChecker<sizeof(QEvent)> -{ -public: - QEventSizeOfChecker() {} -}; -#endif - class QSpontaneKeyEvent { public: - void setSpontaneous() { spont = 1; Q_UNUSED(posted) Q_UNUSED(m_accept) Q_UNUSED(reserved) } - bool spontaneous() { return spont; } - virtual void dummyFunc() {} - virtual ~QSpontaneKeyEvent() {} - -#ifndef QTEST_NO_SIZEOF_CHECK - inline void ifYouGetCompileErrorHereYouUseWrongQt() - { - // this is a static assert in case QEvent changed in Qt - QEventSizeOfChecker<sizeof(QSpontaneKeyEvent)> dummy; - } -#endif - - // ### Qt 6: remove everything except this function: static inline void setSpontaneous(QEvent *ev) { ev->setSpontaneous(); } - -protected: - void *d; - ushort t; - -private: - ushort posted : 1; - ushort spont : 1; - ushort m_accept : 1; - ushort reserved : 13; }; QT_END_NAMESPACE |