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>
This commit is contained in:
Joakim Bygdell 2016-01-05 15:00:06 +01:00 committed by Dirk Hohndel
parent a015e5f4cb
commit f747abaeb2

View file

@ -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);