@@ -64,13 +64,14 QAbstractSeries::SeriesType QGroupedBarSeries::type() const | |||
|
64 | 64 | |
|
65 | 65 | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
|
66 | 66 | |
|
67 |
QGroupedBarSeriesPrivate::QGroupedBarSeriesPrivate( |
|
|
67 | QGroupedBarSeriesPrivate::QGroupedBarSeriesPrivate(QGroupedBarSeries *q) : QBarSeriesPrivate(q) | |
|
68 | 68 | { |
|
69 | 69 | |
|
70 | 70 | } |
|
71 | 71 | |
|
72 | 72 | void QGroupedBarSeriesPrivate::scaleDomain(Domain& domain) |
|
73 | 73 | { |
|
74 | Q_Q(QGroupedBarSeries); | |
|
74 | 75 | qreal minX(domain.minX()); |
|
75 | 76 | qreal minY(domain.minY()); |
|
76 | 77 | qreal maxX(domain.maxX()); |
@@ -78,7 +79,7 void QGroupedBarSeriesPrivate::scaleDomain(Domain& domain) | |||
|
78 | 79 | int tickXCount(domain.tickXCount()); |
|
79 | 80 | int tickYCount(domain.tickYCount()); |
|
80 | 81 | |
|
81 |
qreal x = |
|
|
82 | qreal x = q->categoryCount(); | |
|
82 | 83 | qreal y = maxCategorySum(); |
|
83 | 84 | minX = qMin(minX, x); |
|
84 | 85 | minY = qMin(minY, y); |
@@ -39,7 +39,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
39 | 39 | class QPercentBarSeriesPrivate: public QBarSeriesPrivate |
|
40 | 40 | { |
|
41 | 41 | public: |
|
42 |
QPercentBarSeriesPrivate( |
|
|
42 | QPercentBarSeriesPrivate(QPercentBarSeries* q); | |
|
43 | 43 | void scaleDomain(Domain& domain); |
|
44 | 44 | Chart* createGraphics(ChartPresenter* presenter); |
|
45 | 45 |
@@ -71,6 +71,7 QStackedBarSeriesPrivate::QStackedBarSeriesPrivate(QStackedBarSeries *q) : QBarS | |||
|
71 | 71 | |
|
72 | 72 | void QStackedBarSeriesPrivate::scaleDomain(Domain& domain) |
|
73 | 73 | { |
|
74 | Q_Q(QStackedBarSeries); | |
|
74 | 75 | qreal minX(domain.minX()); |
|
75 | 76 | qreal minY(domain.minY()); |
|
76 | 77 | qreal maxX(domain.maxX()); |
@@ -78,7 +79,7 void QStackedBarSeriesPrivate::scaleDomain(Domain& domain) | |||
|
78 | 79 | int tickXCount(domain.tickXCount()); |
|
79 | 80 | int tickYCount(domain.tickYCount()); |
|
80 | 81 | |
|
81 |
qreal x = |
|
|
82 | qreal x = q->categoryCount(); | |
|
82 | 83 | qreal y = maxCategorySum(); |
|
83 | 84 | minX = qMin(minX, x); |
|
84 | 85 | minY = qMin(minY, y); |
@@ -39,7 +39,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
39 | 39 | class QStackedBarSeriesPrivate: public QBarSeriesPrivate |
|
40 | 40 | { |
|
41 | 41 | public: |
|
42 |
QStackedBarSeriesPrivate( |
|
|
42 | QStackedBarSeriesPrivate(QStackedBarSeries* q); | |
|
43 | 43 | Chart* createGraphics(ChartPresenter* presenter); |
|
44 | 44 | void scaleDomain(Domain& domain); |
|
45 | 45 |
General Comments 0
You need to be logged in to leave comments.
Login now