@@ -274,6 +274,10 BarChartModel& QBarSeries::modelInternal() | |||||
274 | return *m_internalModel; |
|
274 | return *m_internalModel; | |
275 | } |
|
275 | } | |
276 |
|
276 | |||
|
277 | /*! | |||
|
278 | \fn bool QBarSeries::setModel(QAbstractItemModel *model) | |||
|
279 | Sets the \a model to be used as a data source | |||
|
280 | */ | |||
277 | bool QBarSeries::setModel(QAbstractItemModel *model) |
|
281 | bool QBarSeries::setModel(QAbstractItemModel *model) | |
278 | { |
|
282 | { | |
279 | // disconnect signals from old model |
|
283 | // disconnect signals from old model |
@@ -58,7 +58,6 public: | |||||
58 | void setLabelsVisible(bool visible = true); |
|
58 | void setLabelsVisible(bool visible = true); | |
59 |
|
59 | |||
60 | bool setModel(QAbstractItemModel *model); |
|
60 | bool setModel(QAbstractItemModel *model); | |
61 | // QAbstractItemModel *modelExt() { return m_model; } |
|
|||
62 | void setModelMapping(int categories, int bottomBoundry, int topBoundry, Qt::Orientation orientation = Qt::Vertical); |
|
61 | void setModelMapping(int categories, int bottomBoundry, int topBoundry, Qt::Orientation orientation = Qt::Vertical); | |
63 | void setModelMappingShift(int first, int count); |
|
62 | void setModelMappingShift(int first, int count); | |
64 |
|
63 |
@@ -630,6 +630,10 qreal QPieSeries::total() const | |||||
630 | \sa pieSize(), setPieSize() |
|
630 | \sa pieSize(), setPieSize() | |
631 | */ |
|
631 | */ | |
632 |
|
632 | |||
|
633 | /*! | |||
|
634 | \fn bool QPieSeries::setModel(QAbstractItemModel *model) | |||
|
635 | Sets the \a model to be used as a data source | |||
|
636 | */ | |||
633 | bool QPieSeries::setModel(QAbstractItemModel* model) |
|
637 | bool QPieSeries::setModel(QAbstractItemModel* model) | |
634 | { |
|
638 | { | |
635 | Q_D(QPieSeries); |
|
639 | Q_D(QPieSeries); |
@@ -54,6 +54,7 public: | |||||
54 | // TODO |
|
54 | // TODO | |
55 | virtual bool setModel(QAbstractItemModel* /*model*/) { return false; } |
|
55 | virtual bool setModel(QAbstractItemModel* /*model*/) { return false; } | |
56 | QAbstractItemModel* model() const { return m_model; } |
|
56 | QAbstractItemModel* model() const { return m_model; } | |
|
57 | ||||
57 | void setName(QString name) { m_name = name; } |
|
58 | void setName(QString name) { m_name = name; } | |
58 | QString name() const { return m_name; } |
|
59 | QString name() const { return m_name; } | |
59 |
|
60 |
@@ -62,7 +62,6 public: | |||||
62 | QBrush brush() const {return m_brush;} |
|
62 | QBrush brush() const {return m_brush;} | |
63 |
|
63 | |||
64 | bool setModel(QAbstractItemModel *model); |
|
64 | bool setModel(QAbstractItemModel *model); | |
65 | // QAbstractItemModel* model() const { return m_model; } |
|
|||
66 |
|
65 | |||
67 | virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); |
|
66 | virtual void setModelMapping(int modelX, int modelY, Qt::Orientation orientation = Qt::Vertical); | |
68 | virtual void setModelMappingRange(int first, int count = 0); |
|
67 | virtual void setModelMappingRange(int first, int count = 0); |
General Comments 0
You need to be logged in to leave comments.
Login now