mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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>
This commit is contained in:
parent
6a6fe045b4
commit
9b84f82160
1 changed files with 2 additions and 1 deletions
|
@ -10,9 +10,10 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
DiveTextItem::DiveTextItem(QGraphicsItem* parent): QGraphicsItemGroup(parent),
|
DiveTextItem::DiveTextItem(QGraphicsItem* parent): QGraphicsItemGroup(parent),
|
||||||
|
internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter),
|
||||||
textBackgroundItem(NULL),
|
textBackgroundItem(NULL),
|
||||||
textItem(NULL),
|
textItem(NULL),
|
||||||
internalAlignFlags(Qt::AlignHCenter | Qt::AlignVCenter)
|
colorIndex(SAC_DEFAULT)
|
||||||
{
|
{
|
||||||
setFlag(ItemIgnoresTransformations);
|
setFlag(ItemIgnoresTransformations);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue