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