summaryrefslogtreecommitdiffstats
path: root/doc/src/vbarmodelmapper.qdocinc
diff options
context:
space:
mode:
authorTitta Heikkala <titta.heikkala@digia.com>2013-10-23 14:55:35 +0300
committerTitta Heikkala <titta.heikkala@digia.com>2013-10-28 10:19:05 +0200
commit2ce3423968b53608871b5fd75c202c0699f569b4 (patch)
tree2dbc27f2e1ef877de545d5c105d224180d6b1f79 /doc/src/vbarmodelmapper.qdocinc
parentc98d8af1763df3e8f3c2b8b2117ebcd882b6b16d (diff)
Fix Charts documentation
The documentation structure is changed so that it can be generated with both Qt5 and Qt4. Also the erroneous VBarModelMapper is removed from VBoxPlotModelMapper documentation. Task-number: QTRD-2492, QTRD-2495 Change-Id: I45028915ca55f6ff1170db58518a8f08ac4158fb Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'doc/src/vbarmodelmapper.qdocinc')
-rw-r--r--doc/src/vbarmodelmapper.qdocinc19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/src/vbarmodelmapper.qdocinc b/doc/src/vbarmodelmapper.qdocinc
new file mode 100644
index 00000000..b6c4b6df
--- /dev/null
+++ b/doc/src/vbarmodelmapper.qdocinc
@@ -0,0 +1,19 @@
+\inherits BarModelMapper
+
+VBarModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source
+for any bar series. It is possible to use both QAbstractItemModel and bar series data API to manipulate data.
+VBarModelMapper keeps the series and the model in sync.
+
+The following QML example would create a bar series with three bar sets (assuming the
+model has at least four columns). Each bar set would contain data starting from row 1. The name of a set would be
+defined by the horizontal header (of the column).
+\code
+ BarSeries {
+ VBarModelMapper {
+ model: myCustomModel // QAbstractItemModel derived implementation
+ firstBarSetColumn: 1
+ lastBarSetColumn: 3
+ firstRow: 1
+ }
+ }
+\endcode