From: Stephen Kelly Date: Mon, 9 Jan 2012 14:57:00 +0000 (+0100) Subject: Make the meta type shortcut in this test more robust. X-Git-Tag: qt-v5.0.0-alpha1~1954 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=510eb8da78f082d5c41270deef33a41ec5428d42;p=profile%2Fivi%2Fqtbase.git Make the meta type shortcut in this test more robust. Change-Id: Ie9f5ea3a62c80b2a4255eda0995133d0471c7538 Reviewed-by: Jędrzej Nowacki --- diff --git a/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp b/tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp index c4b9a5d..228b734 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 -{ enum { Defined = 1 }; static inline int qt_metatype_id() { return QMetaType::Int; } }; -template<> struct QMetaTypeId -{ enum { Defined = 1 }; static inline int qt_metatype_id() { return QMetaType::Int; } }; -template<> struct QMetaTypeId -{ enum { Defined = 1 }; static inline int qt_metatype_id() { return QMetaType::Int; } }; +template<> struct QMetaTypeId : public QMetaTypeId +{ static inline int qt_metatype_id() { return QMetaType::Int; } }; +template<> struct QMetaTypeId : public QMetaTypeId +{ static inline int qt_metatype_id() { return QMetaType::Int; } }; +template<> struct QMetaTypeId : public QMetaTypeId +{ static inline int qt_metatype_id() { return QMetaType::Int; } }; QT_END_NAMESPACE class TestEdit : public QTextEdit