summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPasi Keränen <pasi.keranen@digia.com>2015-09-04 15:12:54 +0300
committerTomi Korpipää <tomi.korpipaa@theqtcompany.com>2015-09-07 04:29:38 +0000
commitbdcaa493148617e18c7265915771bba5d32f0d77 (patch)
tree3935d70110fc204f191ab538f620007fdba72940 /examples
parentab89f8496c140be6442db5fc0987aaaf16c48113 (diff)
Fixes button label behavior on touch devices.
On touch devices the button labels were invisible until clicked. This task removes the on hover animation to make the text visible all the time Change-Id: Ie93157655acd34add5df8ac3966c802818f878ec Task-number: QTBUG-48107 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/canvas3d/canvas3d/threejs/planets/PlanetButton.qml17
1 files changed, 0 insertions, 17 deletions
diff --git a/examples/canvas3d/canvas3d/threejs/planets/PlanetButton.qml b/examples/canvas3d/canvas3d/threejs/planets/PlanetButton.qml
index 25d2a86..6ca834f 100644
--- a/examples/canvas3d/canvas3d/threejs/planets/PlanetButton.qml
+++ b/examples/canvas3d/canvas3d/threejs/planets/PlanetButton.qml
@@ -58,16 +58,6 @@ Rectangle {
anchors.fill: parent
hoverEnabled: true
onClicked: { planetSelector.focusedPlanet = focusPlanet; }
- onEntered: PropertyAnimation { target: planetText; property: "opacity"; to: 1 }
- onExited: PropertyAnimation { target: planetText;
- property: "opacity";
- to: {
- if (planetText.text != "Solar System")
- 0
- else
- 1
- }
- }
}
}
@@ -78,13 +68,6 @@ Rectangle {
font.pixelSize: fontSize
font.weight: Font.Light
color: "white"
- opacity: {
- if (text == "Solar System") {
- opacity = 1;
- } else {
- opacity = 0;
- }
- }
}
}