forked from qt-creator/qt-creator
QmlDesigner: Add default root id to templates
Task-number: QDS-12248 Change-Id: I105ada4f4b3a2eb5b3f422de7426dfaf8dc0a34a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -7,6 +7,7 @@ import %{ApplicationImport}
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
%{RootItem} {
|
%{RootItem} {
|
||||||
|
id: root
|
||||||
@if %{UseImport}
|
@if %{UseImport}
|
||||||
width: Constants.width
|
width: Constants.width
|
||||||
height: Constants.height
|
height: Constants.height
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import %{ApplicationImport}
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
%{RootItem} {
|
%{RootItem} {
|
||||||
|
id: root
|
||||||
@if %{UseImport}
|
@if %{UseImport}
|
||||||
width: Constants.width
|
width: Constants.width
|
||||||
height: Constants.height
|
height: Constants.height
|
||||||
|
|||||||
Reference in New Issue
Block a user