Fix warnings in stocqt-example.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Mon, 13 May 2013 13:30:17 +0000 (15:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 14 May 2013 20:22:28 +0000 (22:22 +0200)
Task-number: QTBUG-31083

Change-Id: I97d429c1a30664373478636c6b066dbdcd2a46ee
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
examples/quick/demos/stocqt/content/CheckBox.qml
examples/quick/demos/stocqt/content/StockSettings.qml

index 9c429d6..1e7dcf7 100644 (file)
 
 import QtQuick 2.0
 
-Row {
+Item {
     id: button
     property alias text: txt.text
     property bool buttonEnabled: true
     width: 140
     height: 25
-    spacing: 5
     x: 5
     MouseArea {
         id: mouse
@@ -75,14 +74,14 @@ Row {
             radius: 1
             color: mouse.pressed || buttonEnabled ? "#76644A" : "transparent"
         }
-        Text {
-            id: txt
-            anchors.left: checkbox.right
-            anchors.leftMargin: 4
-            anchors.verticalCenter: parent.verticalCenter
-            text: "Close "
-            color: "#ecc089"
-            font.pixelSize: 18
-        }
+    }
+    Text {
+        id: txt
+        anchors.left: checkbox.right
+        anchors.leftMargin: 4
+        anchors.verticalCenter: parent.verticalCenter
+        text: "Close "
+        color: "#ecc089"
+        font.pixelSize: 18
     }
 }
index 5978a3b..0715241 100644 (file)
@@ -88,7 +88,6 @@ Rectangle {
         anchors.leftMargin: 30
         anchors.top: startDateText.bottom
         anchors.topMargin: 8
-        date: new Date(1995, 3, 25)
     }
 
     Text {
@@ -212,4 +211,6 @@ Rectangle {
             onClicked: root.chartType = "all"
         }
     }
+
+    Component.onCompleted: startDatePicker.date = new Date(1995, 3, 25)
 }