mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: flip through dive computers on mobile
UI fixed by Dirk. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d66376a8f3
commit
7c8dc016b5
5 changed files with 82 additions and 7 deletions
|
@ -576,11 +576,9 @@ void ProfileScene::plotDive(const struct dive *dIn, int dcIn, DivePlannerPointsM
|
|||
dcText = tr("Manually added dive");
|
||||
else if (dcText.isEmpty())
|
||||
dcText = tr("Unknown dive computer");
|
||||
#ifndef SUBSURFACE_MOBILE
|
||||
int nr;
|
||||
if ((nr = number_of_computers(d)) > 1)
|
||||
int nr = number_of_computers(d);
|
||||
if (nr > 1)
|
||||
dcText += tr(" (#%1 of %2)").arg(dc + 1).arg(nr);
|
||||
#endif
|
||||
diveComputerText->set(dcText, getColor(TIME_TEXT, isGrayscale));
|
||||
|
||||
// Reset animation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue