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