diff options
author | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2015-10-29 17:55:58 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2015-10-30 07:44:29 +0000 |
commit | 5e63a05ea53ea35e895d1b7e3c9bc5bba4f18540 (patch) | |
tree | 7ff5c4b1e72e91de57cb2d85f24694bfd11ba37e /examples/charts/qmlchart/qml/qmlchart/View3.qml | |
parent | 0b24d110d889878b2ae968d5731dcb71b77ffac3 (diff) |
Use Item instead of Rectangle as a background item where possible
Using Rectangle as background is not recommended if it is only for
color. It is more efficient to simply set the window color.
Change-Id: I3447ca394d74fa415bde4e9d2f210c81f354555e
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Diffstat (limited to 'examples/charts/qmlchart/qml/qmlchart/View3.qml')
-rw-r--r-- | examples/charts/qmlchart/qml/qmlchart/View3.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/charts/qmlchart/qml/qmlchart/View3.qml b/examples/charts/qmlchart/qml/qmlchart/View3.qml index e53a1c10..9abf8738 100644 --- a/examples/charts/qmlchart/qml/qmlchart/View3.qml +++ b/examples/charts/qmlchart/qml/qmlchart/View3.qml @@ -22,7 +22,7 @@ import QtQuick 2.0 import QtCharts 2.0 -Rectangle { +Item { anchors.fill: parent //![1] |