summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/profilewidget2.h
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-18 08:47:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-18 07:22:39 -0800
commit8571268d21deced25ac2cd332f3976f67f953e94 (patch)
treea2cbe1e5ea62db87488c8b783447181b9146bf95 /qt-ui/profile/profilewidget2.h
parentbdea7dd0d6bdcbd7aaeedaa366fab72cbabb6762 (diff)
downloadsubsurface-8571268d21deced25ac2cd332f3976f67f953e94.tar.gz
Have ProfileWidget2 delete its allocated data
This creates a destructor for ProfileWidget2 that deletetes its new'ed objects on exit. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r--qt-ui/profile/profilewidget2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h
index 9808a964b..5a612d983 100644
--- a/qt-ui/profile/profilewidget2.h
+++ b/qt-ui/profile/profilewidget2.h
@@ -120,6 +120,7 @@ slots: // Necessary to call from QAction's signals.
void divePlannerHandlerClicked();
void divePlannerHandlerReleased();
protected:
+ virtual ~ProfileWidget2();
virtual void resizeEvent(QResizeEvent *event);
virtual void wheelEvent(QWheelEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);