aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/accessibility/content/Button.qml
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@digia.com>2013-01-09 09:16:24 +0100
committerSergio Ahumada <sergio.ahumada@digia.com>2013-01-09 09:16:51 +0100
commit7830710e57cbbbc8a2fb37fc97eb99f552ecdd83 (patch)
tree3fe141b7921ec3820c1db13fe1827c051e8f5060 /examples/quick/accessibility/content/Button.qml
parent0beb478b7f4c50f6b57cdc164ffe8029d2895149 (diff)
parentd37547add0369d45182271754c0a35032d7de2d3 (diff)
Merge branch 'stable' into release
Diffstat (limited to 'examples/quick/accessibility/content/Button.qml')
-rw-r--r--examples/quick/accessibility/content/Button.qml18
1 files changed, 10 insertions, 8 deletions
diff --git a/examples/quick/accessibility/content/Button.qml b/examples/quick/accessibility/content/Button.qml
index 2d17e18ae3..fa26177d32 100644
--- a/examples/quick/accessibility/content/Button.qml
+++ b/examples/quick/accessibility/content/Button.qml
@@ -61,11 +61,12 @@ Rectangle {
height: 30
gradient: Gradient {
GradientStop { position: 0.0; color: "lightsteelblue" }
- GradientStop { position: 1.0; color: "blue" }
+ GradientStop { position: 1.0;
+ color: button.focus ? "red" : "blue" }
}
- border.width: 2
- border.color: "black";
- radius: 10
+ // border.width: 1
+ //border.color: "black";
+ radius: 5
antialiasing: true
Text {
@@ -73,14 +74,15 @@ Rectangle {
text: parent.description
anchors.centerIn: parent
font.pixelSize: parent.height * .5
- style: Text.Sunken; color: "white"; styleColor: "black"
+ style: Text.Sunken
+ color: "white"
+ styleColor: "black"
}
MouseArea {
id: mouseArea
anchors.fill: parent
- onClicked: {
- parent.clicked()
- }
+ onClicked: parent.clicked()
}
+ Keys.onSpacePressed: clicked()
}