summaryrefslogtreecommitdiffstats
path: root/profile-widget/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-11-03 21:17:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-24 09:22:16 -0800
commitd8e38764fd24bd0bce965a7404a92227d98bbf36 (patch)
tree430e5e6075999ca4d80c6b2605dbf80a8291db8d /profile-widget/profilewidget2.h
parent350f6aa2fd34469fbd8f270f8f840542b2c24374 (diff)
downloadsubsurface-d8e38764fd24bd0bce965a7404a92227d98bbf36.tar.gz
Drag and Drop Images
Now that we have the possibility to add images without meaningful time stamps to a dive, we should let the user provide that time offset manually. This patch allowed pictures to be dragged from the image list to the profile. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget/profilewidget2.h')
-rw-r--r--profile-widget/profilewidget2.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index c73d675bb..9255fe3aa 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -149,6 +149,10 @@ protected:
virtual void mouseDoubleClickEvent(QMouseEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
+ void dropEvent(QDropEvent *event) Q_DECL_OVERRIDE;
+ void dragEnterEvent(QDragEnterEvent *event) Q_DECL_OVERRIDE;
+ void dragMoveEvent(QDragMoveEvent *event) Q_DECL_OVERRIDE;
+
private: /*methods*/
void fixBackgroundPos();