McuSupport: Use module version for import in wizard generated code

Allows Qt Creator to work with the qml document, e.g. open it in Qt
Quick Designer. Qul does not require an import version but accepts one.

Change-Id: Idd52bc855b31cf7d25a8a6b524f629e2904bda17
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Alessandro Portale
2019-10-09 16:13:32 +02:00
parent 4aee89d472
commit 2f7aafbe09

View File

@@ -1,5 +1,5 @@
pragma main; pragma main;
import QtQuick import QtQuick 2.0
Rectangle { Rectangle {
width: 480 width: 480
@@ -9,5 +9,6 @@ Rectangle {
anchors.centerIn: parent anchors.centerIn: parent
color: "salmon" color: "salmon"
text: "Hello World!" text: "Hello World!"
font.pixelSize: 14
} }
} }