summaryrefslogtreecommitdiffstats
path: root/examples/qmlsurface
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-09-12 07:58:26 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-09-12 08:26:00 +0300
commit2dc1b3809943e3d294e2363a2b0d185607b8854f (patch)
treed077d9ee51d9df83adc38b65fab3fc3da6462dcc /examples/qmlsurface
parentd93f5f3b64fdb52cc150232f6b6d80ffdb57db78 (diff)
QML documentation
Task-number: QTRD-2133 Change-Id: I2568b3cd6e83ee933536d7fec2e48f9f121b213e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlsurface')
-rw-r--r--examples/qmlsurface/qml/qmlsurface/main.qml16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/qmlsurface/qml/qmlsurface/main.qml b/examples/qmlsurface/qml/qmlsurface/main.qml
index 4be6aa68..917c366d 100644
--- a/examples/qmlsurface/qml/qmlsurface/main.qml
+++ b/examples/qmlsurface/qml/qmlsurface/main.qml
@@ -43,8 +43,8 @@ Item {
height: surfaceView.height
//shadowQuality: Surface3D.ShadowMedium
theme: Surface3D.ThemeDark
- smooth: true
- surfaceGrid: false
+ smoothSurfaceEnabled: true
+ surfaceGridEnabled: false
font.family: "STCaiyun"
font.pointSize: 35
cameraPreset: Surface3D.PresetIsometricLeft
@@ -74,11 +74,11 @@ Item {
width: 200
text: "Show Surface Grid"
onClicked: {
- if (surfaceplot.surfaceGrid == false) {
- surfaceplot.surfaceGrid = true;
+ if (surfaceplot.surfaceGridEnabled == false) {
+ surfaceplot.surfaceGridEnabled = true;
text = "Hide Surface Grid"
} else {
- surfaceplot.surfaceGrid = false;
+ surfaceplot.surfaceGridEnabled = false;
text = "Show Surface Grid"
}
}
@@ -90,11 +90,11 @@ Item {
width: surfaceGridToggle.width
text: "Show Flat"
onClicked: {
- if (surfaceplot.smoothSurface == true) {
- surfaceplot.smoothSurface = false;
+ if (surfaceplot.smoothSurfaceEnabled == true) {
+ surfaceplot.smoothSurfaceEnabled = false;
text = "Show Smooth"
} else {
- surfaceplot.smoothSurface = true;
+ surfaceplot.smoothSurfaceEnabled = true;
text = "Show Flat"
}
}