summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2016-01-05 15:00:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-05 10:58:11 -0800
commitf747abaeb270e860dc81672077284d496d55c07a (patch)
tree7eeba3ab3ec3b079a6a7947394ad98a13ed56302 /profile-widget
parenta015e5f4cbe87b637466cbbf1d0fa4814baf34c1 (diff)
downloadsubsurface-f747abaeb270e860dc81672077284d496d55c07a.tar.gz
Small changes to the profile
Due to the small screen of mobile devices, the positions of the temperature graph and the time axis needs to be shifted upwards a bit to prevent them from overlapping with the dive computer name. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 63ce51f87..f89590033 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -393,6 +393,9 @@ void ProfileWidget2::setupItemSizes()
// Time Axis Config
itemPos.time.pos.on.setX(3);
itemPos.time.pos.on.setY(95);
+#ifdef SUBSURFACE_MOBILE
+ itemPos.time.pos.on.setY(89);
+#endif
itemPos.time.pos.off.setX(3);
itemPos.time.pos.off.setY(110);
itemPos.time.expanded.setP1(QPointF(0, 0));
@@ -427,6 +430,9 @@ void ProfileWidget2::setupItemSizes()
// Temperature axis config
itemPos.temperature.pos.on.setX(3);
itemPos.temperature.pos.on.setY(60);
+#ifdef SUBSURFACE_MOBILE
+ itemPos.temperature.pos.on.setY(50);
+#endif
itemPos.temperatureAll.pos.on.setY(51);
itemPos.temperature.pos.off.setX(-10);
itemPos.temperature.pos.off.setY(40);