diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2018-12-21 15:57:31 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-12-21 16:52:15 +0000 |
commit | fd9d88e3a9f24eb84d029fb9324b4f03ae58ffeb (patch) | |
tree | 620ae8f4d3f0f0f564ff6f97318e9fbb659c0666 /tests/auto/qml/qqmlecmascript | |
parent | 8fc9828a369b227d94428f4015b6f5006d312517 (diff) |
Tests: Add a ctor to MyQmlObject::MyType to mark it as complex
This is a band aid fix for the fact that we don't have a way to mark a
type as not-passable-as-int in this case.
Task-number: QTBUG-72719
Change-Id: I781d6bfbd1717d2cf6b3f9a31ae176e3b87704b6
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/testtypes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.h b/tests/auto/qml/qqmlecmascript/testtypes.h index 8d89df31db..96525f3a44 100644 --- a/tests/auto/qml/qqmlecmascript/testtypes.h +++ b/tests/auto/qml/qqmlecmascript/testtypes.h @@ -179,6 +179,7 @@ public: Q_INVOKABLE MyQmlObject *returnme() { return this; } struct MyType { + MyType() {} int value; }; struct MyOtherType { |