summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/playground-qml/DetailView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/playground-qml/DetailView.qml')
-rw-r--r--examples/qt3d/playground-qml/DetailView.qml29
1 files changed, 9 insertions, 20 deletions
diff --git a/examples/qt3d/playground-qml/DetailView.qml b/examples/qt3d/playground-qml/DetailView.qml
index aa442278b..d3389bbd0 100644
--- a/examples/qt3d/playground-qml/DetailView.qml
+++ b/examples/qt3d/playground-qml/DetailView.qml
@@ -37,26 +37,15 @@
import Qt3D.Core 2.0
import Qt3D.Render 2.0
-
Entity {
-
- property Entity camera : Entity {
- components : [
- CameraLens {
- projectionType: CameraLens.PerspectiveProjection
- fieldOfView: 60
- aspectRatio: 16/9
- nearPlane: 0.001
- farPlane: 10000.0
- },
- Transform {
- LookAt {
- position: Qt.vector3d( 10.0, 10.0, -25.0 )
- upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
- viewCenter: Qt.vector3d( 0.0, 0.0, 10.0 )
- }
- }
- ]
+ property Entity camera: Camera {
+ projectionType: CameraLens.PerspectiveProjection
+ fieldOfView: 60
+ aspectRatio: 16/9
+ nearPlane: 0.001
+ farPlane: 10000.0
+ position: Qt.vector3d( 10.0, 10.0, -25.0 )
+ upVector: Qt.vector3d( 0.0, 1.0, 0.0 )
+ viewCenter: Qt.vector3d( 0.0, 0.0, 10.0 )
}
-
}