diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-05-08 11:05:39 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-05-08 13:21:37 +0000 |
commit | 12829b50fc85587c9c08c834efd63ebe8ccbbcd2 (patch) | |
tree | b11c01184d57fed8d34510464ea30ec307c4fa07 /tests/auto/qml/qqmllanguage/data/bareQmlImport.qml | |
parent | fd6321c03e2d63997078bfa41332dbddefbb86b0 (diff) |
Register QObject along with QQmlComponent as basic type of the language
Apparently we need it somewhere. Before the restructuring of imports all
QtQml types were automatically registered on QQmlEnginePrivate::init().
We don't do this anymore, so we need to register the basic building
blocks of the language separately now.
Fixes: QTBUG-75645
Change-Id: I77fe23f709304586cd16986650b0056ea87bcd45
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmllanguage/data/bareQmlImport.qml')
-rw-r--r-- | tests/auto/qml/qqmllanguage/data/bareQmlImport.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmllanguage/data/bareQmlImport.qml b/tests/auto/qml/qqmllanguage/data/bareQmlImport.qml new file mode 100644 index 0000000000..3567cdb5a3 --- /dev/null +++ b/tests/auto/qml/qqmllanguage/data/bareQmlImport.qml @@ -0,0 +1,6 @@ +import QML 1.0 +QtObject { + property Component component: Component { + QtObject {} + } +} |