summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/planets-qml/PlanetsMain.qml
diff options
context:
space:
mode:
authorMika Salmela <mika.salmela@theqtcompany.com>2015-06-23 16:56:59 +0300
committerMika Salmela <mika.salmela@theqtcompany.com>2015-06-23 14:06:17 +0000
commit5cc86303d61264d98b51c7130dd36f50131a67ee (patch)
tree3032e743a383c56c49af1dcee109b772c06234e9 /examples/qt3d/planets-qml/PlanetsMain.qml
parentdbe0950dfa2e6351af45a564e62b7a47ba6e7be2 (diff)
Add ES2 support to planets-qml example
Change-Id: Ic5208d2149efbd03b82417ce3af17747375663f5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'examples/qt3d/planets-qml/PlanetsMain.qml')
-rw-r--r--examples/qt3d/planets-qml/PlanetsMain.qml8
1 files changed, 1 insertions, 7 deletions
diff --git a/examples/qt3d/planets-qml/PlanetsMain.qml b/examples/qt3d/planets-qml/PlanetsMain.qml
index 84705e696..f72c93715 100644
--- a/examples/qt3d/planets-qml/PlanetsMain.qml
+++ b/examples/qt3d/planets-qml/PlanetsMain.qml
@@ -55,7 +55,6 @@ Item {
anchors.fill: parent
anchors.margins: 10
focus: true
- aspects: "input"
SolarSystem { id: solarsystem }
}
@@ -64,18 +63,13 @@ Item {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
- onClicked: {
- solarsystem.setFreeCamera(false)
+ onClicked:
focusedPlanet = 100
- }
- onDoubleClicked:
- solarsystem.setFreeCamera(true)
}
}
//! [1]
onFocusedPlanetChanged: {
- solarsystem.setFreeCamera(false)
if (focusedPlanet == 100) {
info.opacity = 0
updatePlanetInfo()