diff options
author | Titta Heikkala <titta.heikkala@digia.com> | 2013-10-23 14:55:35 +0300 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@digia.com> | 2013-10-28 10:19:05 +0200 |
commit | 2ce3423968b53608871b5fd75c202c0699f569b4 (patch) | |
tree | 2dbc27f2e1ef877de545d5c105d224180d6b1f79 /src/barchart/qvbarmodelmapper.cpp | |
parent | c98d8af1763df3e8f3c2b8b2117ebcd882b6b16d (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 'src/barchart/qvbarmodelmapper.cpp')
-rw-r--r-- | src/barchart/qvbarmodelmapper.cpp | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/barchart/qvbarmodelmapper.cpp b/src/barchart/qvbarmodelmapper.cpp index 4cd98ea3..43fd61e3 100644 --- a/src/barchart/qvbarmodelmapper.cpp +++ b/src/barchart/qvbarmodelmapper.cpp @@ -24,6 +24,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! \class QVBarModelMapper + \inmodule Qt Charts \brief Vertical model mapper for bar series. \mainclass @@ -33,28 +34,21 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE Adding/removing value from the BarSet causes the the same change in the rest of the BarSets added to the same series. \note Used model has to support adding/removing rows/columns and modifying the data of the cells. */ +#ifdef QDOC_QT5 /*! - \qmlclass VBarModelMapper - \mainclass + \qmltype VBarModelMapper + \instantiates QVBarModelMapper + \inqmlmodule QtCommercial.Chart + + \include /doc/src/vbarmodelmapper.qdocinc +*/ +#else +/*! + \qmlclass VBarModelMapper QVBarModelMapper - 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 + \include ../doc/src/vbarmodelmapper.qdocinc */ +#endif /*! \property QVBarModelMapper::series |