@@ -189,6 +189,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||||
189 |
|
189 | |||
190 | /*! |
|
190 | /*! | |
191 | This is depreciated constructor. |
|
191 | This is depreciated constructor. | |
|
192 | \a parent | |||
192 | */ |
|
193 | */ | |
193 | QAbstractBarSeries::QAbstractBarSeries(QObject *parent) : |
|
194 | QAbstractBarSeries::QAbstractBarSeries(QObject *parent) : | |
194 | QAbstractSeries(*(QAbstractBarSeriesPrivate*)(0),parent) |
|
195 | QAbstractSeries(*(QAbstractBarSeriesPrivate*)(0),parent) | |
@@ -384,6 +385,11 bool QAbstractBarSeries::isLabelsVisible() const | |||||
384 | return d->m_labelsVisible; |
|
385 | return d->m_labelsVisible; | |
385 | } |
|
386 | } | |
386 |
|
387 | |||
|
388 | /*! | |||
|
389 | Sets the grouped drawing mode for bars. If \a grouping is true, then the bars | |||
|
390 | are drawn at same position inside group. Can be used for example to draw negative bars | |||
|
391 | at same position on axis than positive bars. | |||
|
392 | */ | |||
387 | void QAbstractBarSeries::setGrouping(bool grouping) |
|
393 | void QAbstractBarSeries::setGrouping(bool grouping) | |
388 | { |
|
394 | { | |
389 | Q_D(QAbstractBarSeries); |
|
395 | Q_D(QAbstractBarSeries); |
@@ -59,8 +59,6 public: | |||||
59 | void setLabelsVisible(bool visible = true); |
|
59 | void setLabelsVisible(bool visible = true); | |
60 | bool isLabelsVisible() const; |
|
60 | bool isLabelsVisible() const; | |
61 |
|
61 | |||
62 | // TODO. Good name for this. This affects how bars are laid out on chart. (for example with pyramid chart) |
|
|||
63 | // Also do we support same for stacked and percent bar charts or just normal bar charts? |
|
|||
64 | void setGrouping(bool grouping = true); |
|
62 | void setGrouping(bool grouping = true); | |
65 |
|
63 | |||
66 | protected: |
|
64 | protected: |
@@ -72,6 +72,9 QAbstractSeries::SeriesType QBarSeries::type() const | |||||
72 | return QAbstractSeries::SeriesTypeBar; |
|
72 | return QAbstractSeries::SeriesTypeBar; | |
73 | } |
|
73 | } | |
74 |
|
74 | |||
|
75 | /*! | |||
|
76 | Destructor. Removes series from chart. | |||
|
77 | */ | |||
75 | QBarSeries::~QBarSeries() |
|
78 | QBarSeries::~QBarSeries() | |
76 | { |
|
79 | { | |
77 | Q_D(QBarSeries); |
|
80 | Q_D(QBarSeries); |
General Comments 0
You need to be logged in to leave comments.
Login now