From 789f3d6ca2ad717da95df7d87c1a66b0ca1a7ff9 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 3 Dec 2014 16:50:47 +0100 Subject: [PATCH] Change templates for Quick file wizards A Item is more light weight than a Rectangle and using it against a white background is useless. Actually Rectangle is not very much used so Item is a better default. Width and height are dangerous too because people exchange them with bindings instead of using anchors or layouts. Change-Id: I4a89ddfc0f96fb3cdb0a9ccad7fcf80b8f28b479 Reviewed-by: Alessandro Portale Reviewed-by: Thomas Hartmann --- share/qtcreator/templates/wizards/files/qtquick1/file.qml | 5 ++--- share/qtcreator/templates/wizards/files/qtquick2/file.qml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/share/qtcreator/templates/wizards/files/qtquick1/file.qml b/share/qtcreator/templates/wizards/files/qtquick1/file.qml index 3fd43ebe13d..89f40a34054 100644 --- a/share/qtcreator/templates/wizards/files/qtquick1/file.qml +++ b/share/qtcreator/templates/wizards/files/qtquick1/file.qml @@ -1,6 +1,5 @@ import QtQuick 1.1 -Rectangle { - width: 100 - height: 62 +Item { + } diff --git a/share/qtcreator/templates/wizards/files/qtquick2/file.qml b/share/qtcreator/templates/wizards/files/qtquick2/file.qml index af5804e72e8..9c36e13c5bf 100644 --- a/share/qtcreator/templates/wizards/files/qtquick2/file.qml +++ b/share/qtcreator/templates/wizards/files/qtquick2/file.qml @@ -1,6 +1,5 @@ import QtQuick 2.0 -Rectangle { - width: 100 - height: 62 +Item { + }