diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-25 18:30:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-12 15:52:40 -0800 |
commit | 3b2ae46eb81281b1e145fe58121b542ce30e3925 (patch) | |
tree | cc1c967901726edc017285824329884f09b32faa /profile-widget/profilewidget2.h | |
parent | cd33d88768a14f1ce9651fbd80a40c89aaaec91f (diff) | |
download | subsurface-3b2ae46eb81281b1e145fe58121b542ce30e3925.tar.gz |
profile: move DiveHandler to profile-widget folder
These are the small dots that describe dragable points on
the profile when in the planner. It makes no sense to have
them in desktop's planner-widget code. They belong to the
profile.
Therefore, move the code there and compile on mobile.
Not everything can be compiled on mobile for now, but it
is a start.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.h')
-rw-r--r-- | profile-widget/profilewidget2.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 26552e578..8895fe2ba 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -252,12 +252,14 @@ private: void calculatePictureYPositions(); void updateDurationLine(PictureEntry &e); void updateThumbnailPaintOrder(); +#endif QList<DiveHandler *> handles; +#ifndef SUBSURFACE_MOBILE void repositionDiveHandlers(); int fixHandlerIndex(DiveHandler *activeHandler); - friend class DiveHandler; #endif + friend class DiveHandler; QHash<Qt::Key, QAction *> actionsForKeys; bool shouldCalculateMaxTime; bool shouldCalculateMaxDepth; |