diff options
Diffstat (limited to 'tests/auto/webchannel/tst_webchannel.h')
-rw-r--r-- | tests/auto/webchannel/tst_webchannel.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/webchannel/tst_webchannel.h b/tests/auto/webchannel/tst_webchannel.h index 7cfce06..eae21f4 100644 --- a/tests/auto/webchannel/tst_webchannel.h +++ b/tests/auto/webchannel/tst_webchannel.h @@ -39,6 +39,19 @@ #include <QtWebChannel/QWebChannelAbstractTransport> +struct TestStruct +{ + TestStruct(int foo = 0, int bar = 0) + : foo(foo) + , bar(bar) + {} + int foo; + int bar; +}; +Q_DECLARE_METATYPE(TestStruct) +using TestStructVector = std::vector<TestStruct>; +Q_DECLARE_METATYPE(TestStructVector) + QT_BEGIN_NAMESPACE class DummyTransport : public QWebChannelAbstractTransport |