##// END OF EJS Templates
Updated BarModelMapper docs
Marek Rosa -
r1485:d394c78609d7
parent child
Show More
@@ -33,10 +33,10 QTCOMMERCIALCHART_BEGIN_NAMESPACE
33 \mainclass
33 \mainclass
34
34
35 Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series.
35 Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series.
36 The instance of this class cannot be created directly. QHBarModelMapper of QVBarModelMapper should be used instead. This class is used to create a connection between QBarSeries and QAbstractItemModel derived model object.
36 The instance of this class cannot be created directly. QHBarModelMapper of QVBarModelMapper should be used instead.
37 Curently it is NOT possible to use both QAbstractItemModel and QBarSeries model API.
37 This class is used to create a connection between QBarSeries and QAbstractItemModel derived model object.
38 When the series is set to the mapper the QBarSeries and QBarSet API that affect the data (append, setValue, remove) should not be used.
38 Model mapper maintains equal size of all the BarSets.
39 The model and the QBarSeries won't be kept in sync. Model API should be used to insert,remove,modify BarSets.
39 Adding/removing value from the BarSet causes the the same change in the rest of the BarSets added to the same series.
40 NOTE: used model has to support adding/removing rows/columns and modifying the data of the cells.
40 NOTE: used model has to support adding/removing rows/columns and modifying the data of the cells.
41 */
41 */
42
42
@@ -29,9 +29,8 QTCOMMERCIALCHART_BEGIN_NAMESPACE
29
29
30 Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series.
30 Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series.
31 Horizontal model mapper is used to create a connection between QBarSeries and QAbstractItemModel derived model object.
31 Horizontal model mapper is used to create a connection between QBarSeries and QAbstractItemModel derived model object.
32 Curently it is NOT possible to use both QAbstractItemModel and QBarSeries model API.
32 Model mapper maintains equal size of all the BarSets.
33 When the series is set to the mapper the QBarSeries and QBarSet API that affect the data (append, setValue, remove) should not be used.
33 Adding/removing value from the BarSet causes the the same change in the rest of the BarSets added to the same series.
34 The model and the QBarSeries won't be kept in sync. Model API should be used to insert,remove,modify BarSets.
35 NOTE: used model has to support adding/removing rows/columns and modifying the data of the cells.
34 NOTE: used model has to support adding/removing rows/columns and modifying the data of the cells.
36 */
35 */
37
36
@@ -29,9 +29,8 QTCOMMERCIALCHART_BEGIN_NAMESPACE
29
29
30 Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series.
30 Model mappers allow you to use QAbstractItemModel derived models as a data source for a chart series.
31 Vertical model mapper is used to create a connection between QBarSeries and QAbstractItemModel derived model object.
31 Vertical model mapper is used to create a connection between QBarSeries and QAbstractItemModel derived model object.
32 Curently it is NOT possible to use both QAbstractItemModel and QBarSeries model API.
32 Model mapper maintains equal size of all the BarSets.
33 When the series is set to the mapper the QBarSeries and QBarSet API that affect the data (append, setValue, remove) should not be used.
33 Adding/removing value from the BarSet causes the the same change in the rest of the BarSets added to the same series.
34 The model and the QBarSeries won't be kept in sync. Model API should be used to insert,remove,modify BarSets.
35 NOTE: used model has to support adding/removing rows/columns and modifying the data of the cells.
34 NOTE: used model has to support adding/removing rows/columns and modifying the data of the cells.
36 */
35 */
37
36
General Comments 0
You need to be logged in to leave comments. Login now