diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-11-15 10:39:15 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-11-15 12:43:19 +0200 |
commit | 27241b083df419f3a2de928c1d3f5dd8f6459030 (patch) | |
tree | cfe9c73f6b5b35a58a66700f0e4e5187120203ed /examples/qmlscatter/qml/qmlscatter/main.qml | |
parent | cc22cc40e889b5b2f0e49ce32f660395cef865b7 (diff) |
Enable giving series and proxies as child items in QML
Task-number: QTRD-2359
Change-Id: I37558b169bb60ee90993c1a8703da0c6745a9db0
Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Reviewed-by: Pasi Keränen <pasi.keranen@digia.com>
Diffstat (limited to 'examples/qmlscatter/qml/qmlscatter/main.qml')
-rw-r--r-- | examples/qmlscatter/qml/qmlscatter/main.qml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/examples/qmlscatter/qml/qmlscatter/main.qml b/examples/qmlscatter/qml/qmlscatter/main.qml index 1e80b52a..6cae72f8 100644 --- a/examples/qmlscatter/qml/qmlscatter/main.qml +++ b/examples/qmlscatter/qml/qmlscatter/main.qml @@ -56,9 +56,6 @@ Item { theme: AbstractGraph3D.ThemeIsabelle shadowQuality: AbstractGraph3D.ShadowQualitySoftLow //! [3] - //! [5] - seriesList: [graphData.series] - //! [5] //! [6] axisX.segmentCount: 3 axisX.subSegmentCount: 2 @@ -70,6 +67,18 @@ Item { axisY.subSegmentCount: 2 axisY.labelFormat: "%.2f" //! [6] + //! [5] + Scatter3DSeries { + id: scatterSeries + itemLabelFormat: "X:@xLabel Y:@yLabel Z:@zLabel" + + ItemModelScatterDataProxy { + activeMapping: graphData.mapping + itemModel: graphData.model + } + } + + //! [5] } } |