diff options
Diffstat (limited to 'examples/qt3d/controls/main.qml')
-rw-r--r-- | examples/qt3d/controls/main.qml | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/examples/qt3d/controls/main.qml b/examples/qt3d/controls/main.qml index 5d1f9c02c..a734a1385 100644 --- a/examples/qt3d/controls/main.qml +++ b/examples/qt3d/controls/main.qml @@ -50,7 +50,7 @@ import QtQuick 2.0 import QtQuick.Scene3D 2.0 -import QtQuick.Controls 1.4 +import QtQuick.Controls 2.0 import QtQuick.Layouts 1.2 Item { @@ -86,8 +86,8 @@ Item { Slider { id: color_r Layout.fillWidth: true - minimumValue: 0 - maximumValue: 255 + from: 0 + to: 255 value: 128 } } @@ -96,8 +96,8 @@ Item { Slider { id: color_g Layout.fillWidth: true - minimumValue: 0 - maximumValue: 255 + from: 0 + to: 255 value: 195 } } @@ -106,8 +106,8 @@ Item { Slider { id: color_b Layout.fillWidth: true - minimumValue: 0 - maximumValue: 255 + from: 0 + to: 255 value: 66 } } @@ -115,8 +115,8 @@ Item { Slider { id: shining Layout.fillWidth: true - minimumValue: 30 - maximumValue: 90 + from: 30 + to: 90 value: 50 } } @@ -137,8 +137,8 @@ Item { Slider { id: rotation_x Layout.fillWidth: true - minimumValue: -45 - maximumValue: 45 + from: -45 + to: 45 value: rotationValue } } @@ -147,8 +147,8 @@ Item { Slider { id: rotation_y Layout.fillWidth: true - minimumValue: -45 - maximumValue: 45 + from: -45 + to: 45 value: rotationValue } } @@ -157,8 +157,8 @@ Item { Slider { id: rotation_z Layout.fillWidth: true - minimumValue: -45 - maximumValue: 45 + from: -45 + to: 45 value: rotationValue } } @@ -182,8 +182,8 @@ Item { Slider { id: viewCenter_z Layout.fillWidth: true - minimumValue: 4 - maximumValue: 12 + from: 4 + to: 12 value: 7.5 onValueChanged: watch.setPositionZ(value) } |