[PATCH] Small changes to the profile

Joakim Bygdell j.bygdell at gmail.com
Tue Jan 5 06:25:24 PST 2016


Due to the small screen of mobile devices,
the positions of the temperature graph and the dive computer name
needs to be shifted upwards a bit to prevent them from overlapping with the
time axis.

Signed-off-by: Joakim Bygdell <j.bygdell at gmail.com>
---
 profile-widget/profilewidget2.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 63ce51f..5e69d2e 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -426,7 +426,7 @@ void ProfileWidget2::setupItemSizes()
 
 	// Temperature axis config
 	itemPos.temperature.pos.on.setX(3);
-	itemPos.temperature.pos.on.setY(60);
+	itemPos.temperature.pos.on.setY(50);
 	itemPos.temperatureAll.pos.on.setY(51);
 	itemPos.temperature.pos.off.setX(-10);
 	itemPos.temperature.pos.off.setY(40);
@@ -455,6 +455,9 @@ void ProfileWidget2::setupItemSizes()
 
 	itemPos.dcLabel.on.setX(3);
 	itemPos.dcLabel.on.setY(100);
+#ifdef SUBSURFACE_MOBILE
+	itemPos.dcLabel.on.setY(95);
+#endif
 	itemPos.dcLabel.off.setX(-10);
 	itemPos.dcLabel.off.setY(100);
 
-- 
2.4.9 (Apple Git-60)



More information about the subsurface mailing list