aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-02-14 21:19:44 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-14 21:50:05 -0800
commit822ed2062542e830ade32e83c88f481eb3464b5a (patch)
tree2c7a15f3ff0f11cddc18533259ae1b8b8fd81205 /qt-ui/profile
parentbd5cc109f0ad0b16ac0d5402a60268331cfdf2b9 (diff)
downloadsubsurface-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.cpp1
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)