diff options
Diffstat (limited to 'examples/declarative/tutorials/gettingStarted/parts/part4/SimpleButton.qml')
-rw-r--r-- | examples/declarative/tutorials/gettingStarted/parts/part4/SimpleButton.qml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/tutorials/gettingStarted/parts/part4/SimpleButton.qml b/examples/declarative/tutorials/gettingStarted/parts/part4/SimpleButton.qml index 384a6c52..7978ed42 100644 --- a/examples/declarative/tutorials/gettingStarted/parts/part4/SimpleButton.qml +++ b/examples/declarative/tutorials/gettingStarted/parts/part4/SimpleButton.qml @@ -42,16 +42,16 @@ import QtQuick 1.0 Rectangle { id: simplebutton - color: "grey" + color: "grey" width: 150; height: 75 - + Text{ id: buttonLabel anchors.centerIn: parent - text: "button label" + text: "button label" } - MouseArea{ + MouseArea{ id: buttonMouseArea anchors.fill: parent onClicked: console.log(buttonLabel.text + " clicked" ) |