@@ -40,7 +40,7 void BarPresenter::layoutChanged() | |||
|
40 | 40 | |
|
41 | 41 | int itemIndex(0); |
|
42 | 42 | for (int category=0; category < categoryCount; category++) { |
|
43 | qreal xPos = categoryWidth * category + categoryWidth /2; | |
|
43 | qreal xPos = categoryWidth * category + categoryWidth /2 + mBarWidth/2; | |
|
44 | 44 | qreal yPos = mHeight; |
|
45 | 45 | for (int set = 0; set < setCount; set++) { |
|
46 | 46 | qreal barHeight = mSeries->valueAt(set,category) * scale; |
@@ -56,7 +56,7 void BarPresenter::layoutChanged() | |||
|
56 | 56 | } |
|
57 | 57 | |
|
58 | 58 | // Position separators |
|
59 |
qreal xPos = categoryWidth + categoryWidth/2 |
|
|
59 | qreal xPos = categoryWidth + categoryWidth/2; | |
|
60 | 60 | for (int s=0; s < mSeparators.count(); s++) { |
|
61 | 61 | Separator* sep = mSeparators.at(s); |
|
62 | 62 | sep->setPos(xPos,0); |
@@ -68,7 +68,7 void BarPresenter::layoutChanged() | |||
|
68 | 68 | // Position floating values |
|
69 | 69 | itemIndex = 0; |
|
70 | 70 | for (int category=0; category < mSeries->categoryCount(); category++) { |
|
71 |
qreal xPos = categoryWidth * category + categoryWidth/2 + mBarWidth |
|
|
71 | qreal xPos = categoryWidth * category + categoryWidth/2 + mBarWidth; | |
|
72 | 72 | qreal yPos = mHeight; |
|
73 | 73 | for (int set=0; set < mSeries->barsetCount(); set++) { |
|
74 | 74 | qreal barHeight = mSeries->valueAt(set,category) * scale; |
General Comments 0
You need to be logged in to leave comments.
Login now