diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-09-24 11:30:10 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-09-24 11:32:14 +0300 |
commit | 7bc0b11a81b7cd1eccd48c222e4fa96dda0182cc (patch) | |
tree | 0eeda58cd8ec8641e91328c1adea6c8221eca06c /examples/qmlsurface/qml/qmlsurface/main.qml | |
parent | f842e21c7fa44d806c06a1463c723632b10e6172 (diff) |
Gradient setting API added to Surface
Task-number: QTRD-2288
Change-Id: Ibe8db55cb0435db71c1d2a9081e2dab746b46c07
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'examples/qmlsurface/qml/qmlsurface/main.qml')
-rw-r--r-- | examples/qmlsurface/qml/qmlsurface/main.qml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/qmlsurface/qml/qmlsurface/main.qml b/examples/qmlsurface/qml/qmlsurface/main.qml index 7d83c1a0..758b0346 100644 --- a/examples/qmlsurface/qml/qmlsurface/main.qml +++ b/examples/qmlsurface/qml/qmlsurface/main.qml @@ -37,6 +37,12 @@ Item { height: mainview.height anchors.right: mainview.right; + Gradient { + id: surfaceGradient + GradientStop { position: 0.0; color: "darkslategray" } + GradientStop { position: 1.0; color: "peru" } + } + Surface3D { id: surfaceplot width: surfaceView.width @@ -60,9 +66,10 @@ Item { axisY.segmentCount: 5 axisY.subSegmentCount: 2 axisY.labelFormat: "%i" + //gradient: surfaceGradient Component.onCompleted: { - setGradientColorAt(0, "black"); - setGradientColorAt(1, "white"); + setGradientColorAt(0, "darkslategray"); + setGradientColorAt(1, "peru"); } } } |