diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-29 13:48:06 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-29 09:35:16 -0800 |
commit | 042c34df0962cec5e4557cfe6f61e747173778ad (patch) | |
tree | e55923f50c9d38c180333221d0fc7cc28005d837 /qt-ui/profile/divetextitem.cpp | |
parent | 354acb0fe62917291ce5c26f4d6696c858f78d49 (diff) | |
download | subsurface-042c34df0962cec5e4557cfe6f61e747173778ad.tar.gz |
Fix positioning of many text items.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/divetextitem.cpp')
-rw-r--r-- | qt-ui/profile/divetextitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/divetextitem.cpp b/qt-ui/profile/divetextitem.cpp index 72ba480a9..b939c54fc 100644 --- a/qt-ui/profile/divetextitem.cpp +++ b/qt-ui/profile/divetextitem.cpp @@ -57,7 +57,7 @@ void DiveTextItem::updateText() qreal xPos = 0, yPos = 0; QRectF rect = fm.boundingRect(internalText); - yPos = (internalAlignFlags & Qt::AlignTop) ? -rect.height() : + yPos = (internalAlignFlags & Qt::AlignTop) ? 0 : (internalAlignFlags & Qt::AlignBottom) ? +rect.height() : /*(internalAlignFlags & Qt::AlignVCenter ? */ +rect.height() / 4; |