@@ -56,6 +56,10 private Q_SLOTS: | |||
|
56 | 56 | protected: |
|
57 | 57 | QList<QBarSet *> m_barSets; |
|
58 | 58 | QBarCategories m_categories; |
|
59 | qreal m_barMargin; | |
|
60 | int m_mapCategories; | |
|
61 | int m_mapBarBottom; | |
|
62 | int m_mapBarTop; | |
|
59 | 63 | QBarModelMapper *m_mapper; |
|
60 | 64 | private: |
|
61 | 65 | Q_DECLARE_PUBLIC(QBarSeries) |
@@ -33,6 +33,7 | |||
|
33 | 33 | #include <QPieSlice> |
|
34 | 34 | #include <QAreaSeries> |
|
35 | 35 | #include <QBarSeries> |
|
36 | #include <QGroupedBarSeries> | |
|
36 | 37 | #include <QBarSet> |
|
37 | 38 | #include <QBarModelMapper> |
|
38 | 39 | #include <QPushButton> |
@@ -418,7 +419,7 void TableWidget::updateChartType(bool toggle) | |||
|
418 | 419 | { |
|
419 | 420 | m_chart->setAnimationOptions(QChart::SeriesAnimations); |
|
420 | 421 | |
|
421 | QBarSeries* barSeries = new QBarSeries(); | |
|
422 | QGroupedBarSeries* barSeries = new QGroupedBarSeries(); | |
|
422 | 423 | barSeries->setCategories(QStringList()); |
|
423 | 424 | barSeries->setModel(m_model); |
|
424 | 425 | // barSeries->setModelMappingRange(2, 5); |
General Comments 0
You need to be logged in to leave comments.
Login now