Make the meta type shortcut in this test more robust.

Change-Id: Ie9f5ea3a62c80b2a4255eda0995133d0471c7538
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
bb10
Stephen Kelly 2012-01-09 15:57:00 +01:00 committed by Qt by Nokia
parent 51d634ce2e
commit 510eb8da78
1 changed files with 6 additions and 6 deletions

View File

@ -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