@@ -142,6 +142,7 QVector<QRectF> BarChartItem::calculateLayout() | |||
|
142 | 142 | label->setPos(xPos + (rect.width()/2 - label->boundingRect().width()/2) |
|
143 | 143 | ,yPos - barHeight/2 - label->boundingRect().height()/2); |
|
144 | 144 | label->setFont(barSet->labelFont()); |
|
145 | label->setBrush(barSet->labelBrush()); | |
|
145 | 146 | |
|
146 | 147 | itemIndex++; |
|
147 | 148 | } |
@@ -77,6 +77,7 QVector<QRectF> GroupedBarChartItem::calculateLayout() | |||
|
77 | 77 | label->setPos(xPos + (rect.width()/2 - label->boundingRect().width()/2) |
|
78 | 78 | ,yPos - barHeight/2 - label->boundingRect().height()/2); |
|
79 | 79 | label->setFont(barSet->labelFont()); |
|
80 | label->setBrush(barSet->labelBrush()); | |
|
80 | 81 | |
|
81 | 82 | itemIndex++; |
|
82 | 83 | } |
@@ -81,6 +81,7 QVector<QRectF> PercentBarChartItem::calculateLayout() | |||
|
81 | 81 | label->setPos(xPos + (rect.width()/2 - label->boundingRect().width()/2) |
|
82 | 82 | ,yPos - barHeight/2 - label->boundingRect().height()/2); |
|
83 | 83 | label->setFont(barSet->labelFont()); |
|
84 | label->setBrush(barSet->labelBrush()); | |
|
84 | 85 | itemIndex++; |
|
85 | 86 | yPos -= barHeight; |
|
86 | 87 | } |
@@ -74,6 +74,7 QVector<QRectF> StackedBarChartItem::calculateLayout() | |||
|
74 | 74 | label->setPos(xPos + (rect.width()/2 - label->boundingRect().width()/2) |
|
75 | 75 | ,yPos - barHeight/2 - label->boundingRect().height()/2); |
|
76 | 76 | label->setFont(barSet->labelFont()); |
|
77 | label->setBrush(barSet->labelBrush()); | |
|
77 | 78 | itemIndex++; |
|
78 | 79 | yPos -= barHeight; |
|
79 | 80 | } |
General Comments 0
You need to be logged in to leave comments.
Login now