Fix positioning of many text items.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-29 13:48:06 -02:00 committed by Dirk Hohndel
parent 354acb0fe6
commit 042c34df09
3 changed files with 10 additions and 13 deletions

View file

@ -137,7 +137,7 @@ void DiveCartesianAxis::updateTicks()
}
} else {
if(showText){
label->setAlignment(Qt::AlignVCenter| Qt::AlignRight);
label->setAlignment(Qt::AlignVCenter| Qt::AlignLeft);
label->setPos(m.x1() - tickSize, scene()->sceneRect().height() + 10);
label->animateMoveTo(m.x1() - tickSize, childPos);
}