From 9b84f8216000595a12d0c4b3b3a301c62aa1b7b8 Mon Sep 17 00:00:00 2001 From: Boris Barbulovski Date: Sun, 9 Feb 2014 19:00:03 +0100 Subject: DiveTextItem improvements * Add colorIndex to initialize list. * Reorder initialize to correct order. Note: colorIndex initialize value is set too SAC_DEFAULT. I do not know what is the rigth value since this variable member is not used anywhere. Signed-off-by: Boris Barbulovski Signed-off-by: Dirk Hohndel --- qt-ui/profile/divetextitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/profile/divetextitem.cpp b/qt-ui/profile/divetextitem.cpp index b939c54fc..bc19d070a 100644 --- a/qt-ui/profile/divetextitem.cpp +++ b/qt-ui/profile/divetextitem.cpp @@ -10,9 +10,10 @@ #include DiveTextItem::DiveTextItem(QGraphicsItem* parent): QGraphicsItemGroup(parent), + internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter), textBackgroundItem(NULL), textItem(NULL), - internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter) + colorIndex(SAC_DEFAULT) { setFlag(ItemIgnoresTransformations); } -- cgit v1.2.3-70-g09d2