summaryrefslogtreecommitdiffstats
path: root/examples/declarative/loader/Button.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/loader/Button.qml')
-rw-r--r--examples/declarative/loader/Button.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/declarative/loader/Button.qml b/examples/declarative/loader/Button.qml
index d01a658..928ff06 100644
--- a/examples/declarative/loader/Button.qml
+++ b/examples/declarative/loader/Button.qml
@@ -1,16 +1,16 @@
import Qt 4.6
Rectangle {
- id: Container
+ id: container
property var text
signal clicked
- height: Text.height + 10
- width: Text.width + 20
+ height: text.height + 10
+ width: text.width + 20
border.width: 1
radius: 4
color: "grey"
- MouseRegion { anchors.fill: parent; onClicked: Container.clicked() }
- Text { id: Text; anchors.centerIn:parent; font.pointSize: 10; text: parent.text }
+ MouseRegion { anchors.fill: parent; onClicked: container.clicked() }
+ Text { id: text; anchors.centerIn:parent; font.pointSize: 10; text: parent.text }
}