mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
a015e5f4cb
commit
f747abaeb2
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue