diff options
-rw-r--r-- | tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp b/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp index c4b9a5df99..228b73414e 100644 --- a/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp +++ b/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp @@ -152,12 +152,12 @@ protected: }; QT_BEGIN_NAMESPACE -template<> struct QMetaTypeId<tst_QShortcut::Widget> -{ enum { Defined = 1 }; static inline int qt_metatype_id() { return QMetaType::Int; } }; -template<> struct QMetaTypeId<tst_QShortcut::Result> -{ enum { Defined = 1 }; static inline int qt_metatype_id() { return QMetaType::Int; } }; -template<> struct QMetaTypeId<tst_QShortcut::Action> -{ enum { Defined = 1 }; static inline int qt_metatype_id() { return QMetaType::Int; } }; +template<> struct QMetaTypeId<tst_QShortcut::Widget> : public QMetaTypeId<int> +{ static inline int qt_metatype_id() { return QMetaType::Int; } }; +template<> struct QMetaTypeId<tst_QShortcut::Result> : public QMetaTypeId<int> +{ static inline int qt_metatype_id() { return QMetaType::Int; } }; +template<> struct QMetaTypeId<tst_QShortcut::Action> : public QMetaTypeId<int> +{ static inline int qt_metatype_id() { return QMetaType::Int; } }; QT_END_NAMESPACE class TestEdit : public QTextEdit |