From 510eb8da78f082d5c41270deef33a41ec5428d42 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 9 Jan 2012 15:57:00 +0100 Subject: Make the meta type shortcut in this test more robust. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie9f5ea3a62c80b2a4255eda0995133d0471c7538 Reviewed-by: Jędrzej Nowacki --- tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/auto/gui/kernel/qshortcut/tst_qshortcut.cpp') 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 -{ 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 -- cgit v1.2.3