aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-15 00:04:18 +0200
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-09-14 22:07:32 +0000
commit8a10e85db212d88887ad7f14ad7e4048a87a8c2d (patch)
tree3844bf380dc05a20f2bdd3a27ded03ed87d87a92 /examples
parent9ecf1fd9507101607996e8df50093098edab5d64 (diff)
theme example: replace the useless Control(+Rect bg) with a plain Rect
Change-Id: If2880cb3d25d4d1ca061913a41bf2a8f36c48012 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/controls/theme/main.qml6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/quick/controls/theme/main.qml b/examples/quick/controls/theme/main.qml
index 573435fa..b889bb13 100644
--- a/examples/quick/controls/theme/main.qml
+++ b/examples/quick/controls/theme/main.qml
@@ -72,7 +72,7 @@ ApplicationWindow {
Component {
id: pageComponent
- T.Control {
+ Rectangle {
id: page
Theme.accentColor: Qt.hsla(colorSlider.position, 0.5, 0.5, 1.0)
Theme.backgroundColor: darkButton.checked ? "#444" : "#fff"
@@ -80,9 +80,7 @@ ApplicationWindow {
Theme.textColor: darkButton.checked ? "#eee" : "#111"
Theme.pressColor: darkButton.checked ? "#33ffffff" : "#33333333"
Theme.baseColor: darkButton.checked ? "#444" : "#eee"
- background: Rectangle {
- color: Theme.backgroundColor
- }
+ color: Theme.backgroundColor
Flickable {
anchors.fill: parent
contentHeight: column.height + 48