diff options
Diffstat (limited to 'examples/declarative/tutorials/samegame/samegame1/Button.qml')
| -rw-r--r-- | examples/declarative/tutorials/samegame/samegame1/Button.qml | 17 | 
1 files changed, 13 insertions, 4 deletions
| diff --git a/examples/declarative/tutorials/samegame/samegame1/Button.qml b/examples/declarative/tutorials/samegame/samegame1/Button.qml index e84b1ce..96a80eb 100644 --- a/examples/declarative/tutorials/samegame/samegame1/Button.qml +++ b/examples/declarative/tutorials/samegame/samegame1/Button.qml @@ -8,9 +8,9 @@ Rectangle {      signal clicked -    width: buttonLabel.width + 20; height: buttonLabel.height + 6 -    smooth: true +    width: buttonLabel.width + 20; height: buttonLabel.height + 5      border { width: 1; color: Qt.darker(activePalette.button) } +    smooth: true      radius: 8      // color the button with a gradient @@ -27,8 +27,17 @@ Rectangle {          GradientStop { position: 1.0; color: activePalette.button }      } -    MouseArea { id: mouseArea; anchors.fill: parent; onClicked: container.clicked() } +    MouseArea { +        id: mouseArea +        anchors.fill: parent +        onClicked: container.clicked(); +    } -    Text { id: buttonLabel; text: container.text; anchors.centerIn: container; color: activePalette.buttonText } +    Text { +        id: buttonLabel +        anchors.centerIn: container +        color: activePalette.buttonText +        text: container.text +    }  }  //![0] | 
