summaryrefslogtreecommitdiffstats
path: root/stats/chartitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'stats/chartitem.cpp')
-rw-r--r--stats/chartitem.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/stats/chartitem.cpp b/stats/chartitem.cpp
index 7c5339596..c8bdd130e 100644
--- a/stats/chartitem.cpp
+++ b/stats/chartitem.cpp
@@ -242,7 +242,12 @@ ChartTextItem::ChartTextItem(StatsView &v, ChartZValue z, const QFont &f, const
void ChartTextItem::setColor(const QColor &c)
{
- img->fill(Qt::transparent);
+ setColor(c, Qt::transparent);
+}
+
+void ChartTextItem::setColor(const QColor &c, const QColor &background)
+{
+ img->fill(background);
double y = 0.0;
painter->setPen(QPen(c));
painter->setFont(f);