diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-02-14 21:19:44 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-14 21:50:05 -0800 |
commit | 822ed2062542e830ade32e83c88f481eb3464b5a (patch) | |
tree | 2c7a15f3ff0f11cddc18533259ae1b8b8fd81205 /qt-ui/profile | |
parent | bd5cc109f0ad0b16ac0d5402a60268331cfdf2b9 (diff) | |
download | subsurface-822ed2062542e830ade32e83c88f481eb3464b5a.tar.gz |
Left-Align the last Temperature Text.
The last temperature text used to have the same align flags
as all the other texts: Right. this makes it much more appealing.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp index 7246309bf..3c9191f46 100644 --- a/qt-ui/profile/diveprofileitem.cpp +++ b/qt-ui/profile/diveprofileitem.cpp @@ -267,6 +267,7 @@ void DiveTemperatureItem::modelDataChanged(const QModelIndex& topLeft, const QMo ((abs(last_valid_temp - last_printed_temp) > 500) || ((double)last / (double)sec < 0.75))) { createTextItem(sec, last_valid_temp); } + texts.last()->setAlignment(Qt::AlignLeft | Qt::AlignBottom); } void DiveTemperatureItem::createTextItem(int sec, int mkelvin) |