diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-09 19:00:03 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-09 14:42:06 -0800 |
commit | 9b84f8216000595a12d0c4b3b3a301c62aa1b7b8 (patch) | |
tree | f4b51dddf689cbc34d6e378e28263263f73f930f /qt-ui/profile/divetextitem.cpp | |
parent | 6a6fe045b40b8ff9a46581d7a8c225ee8fb47942 (diff) | |
download | subsurface-9b84f8216000595a12d0c4b3b3a301c62aa1b7b8.tar.gz |
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 <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetextitem.cpp')
-rw-r--r-- | qt-ui/profile/divetextitem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <QDebug> 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); } |