From f747abaeb270e860dc81672077284d496d55c07a Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Tue, 5 Jan 2016 15:00:06 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3-70-g09d2