Make the meta type shortcut in this test more robust.
Change-Id: Ie9f5ea3a62c80b2a4255eda0995133d0471c7538 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>bb10
parent
51d634ce2e
commit
510eb8da78
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue