summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-25 18:30:49 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-12 15:52:40 -0800
commit3b2ae46eb81281b1e145fe58121b542ce30e3925 (patch)
treecc1c967901726edc017285824329884f09b32faa /desktop-widgets/diveplanner.h
parentcd33d88768a14f1ce9651fbd80a40c89aaaec91f (diff)
downloadsubsurface-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 'desktop-widgets/diveplanner.h')
-rw-r--r--desktop-widgets/diveplanner.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/desktop-widgets/diveplanner.h b/desktop-widgets/diveplanner.h
index e0e2dc026..7f1857f6a 100644
--- a/desktop-widgets/diveplanner.h
+++ b/desktop-widgets/diveplanner.h
@@ -2,41 +2,14 @@
#ifndef DIVEPLANNER_H
#define DIVEPLANNER_H
-#include <QGraphicsPathItem>
#include <QAbstractTableModel>
#include <QAbstractButton>
#include <QDateTime>
-#include <QSignalMapper>
-#include <QElapsedTimer>
class QListView;
class QModelIndex;
class DivePlannerPointsModel;
-class DiveHandler : public QObject, public QGraphicsEllipseItem {
- Q_OBJECT
-public:
- DiveHandler();
-
-protected:
- void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
- void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
- void mousePressEvent(QGraphicsSceneMouseEvent *event);
- void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
-signals:
- void moved();
- void clicked();
- void released();
-private:
- int parentIndex();
-public
-slots:
- void selfRemove();
- void changeGas();
-private:
- QElapsedTimer t;
-};
-
#include "ui_diveplanner.h"
class DivePlannerWidget : public QWidget {