From fadc4fe78003a3dedd1c734ca2cdc61ddd3ac675 Mon Sep 17 00:00:00 2001
From: Joakim Bygdell <j.bygdell@gmail.com>
Date: Tue, 5 Jan 2016 15:00:06 +0100
Subject: [PATCH] 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>

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>
---
 profile-widget/profilewidget2.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 63ce51f..f895900 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);
-- 
2.4.9 (Apple Git-60)

