From 3b2ae46eb81281b1e145fe58121b542ce30e3925 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 25 Nov 2020 18:30:49 +0100 Subject: 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 --- desktop-widgets/diveplanner.h | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'desktop-widgets/diveplanner.h') 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 #include #include #include -#include -#include 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 { -- cgit v1.2.3-70-g09d2