diff options
Diffstat (limited to 'qt-ui/profile/divetextitem.cpp')
-rw-r--r-- | qt-ui/profile/divetextitem.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/qt-ui/profile/divetextitem.cpp b/qt-ui/profile/divetextitem.cpp index ddaf6efb2..24f9d6b25 100644 --- a/qt-ui/profile/divetextitem.cpp +++ b/qt-ui/profile/divetextitem.cpp @@ -14,13 +14,11 @@ DiveTextItem::DiveTextItem(QGraphicsItem *parent) : QGraphicsItemGroup(parent), internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter), textBackgroundItem(new QGraphicsPathItem(this)), textItem(new QGraphicsPathItem(this)), - colorIndex(SAC_DEFAULT), scale(1.0) { setFlag(ItemIgnoresTransformations); textBackgroundItem->setBrush(QBrush(getColor(TEXT_BACKGROUND))); textBackgroundItem->setPen(Qt::NoPen); - textItem->setBrush(brush); textItem->setPen(Qt::NoPen); } @@ -32,8 +30,7 @@ void DiveTextItem::setAlignment(int alignFlags) void DiveTextItem::setBrush(const QBrush &b) { - brush = b; - updateText(); + textItem->setBrush(b); } void DiveTextItem::setScale(double newscale) |