summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-12-18 10:47:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-18 08:34:00 -0800
commit1a4380c8c12998e7cd3cebd39f0153aebbceb067 (patch)
tree96a4f9058bbe3ba85e7003b708b505f1a3d9b158 /qt-ui/profile
parent8d54c9640d028bfc51b02ff8cffe14b36bc5f51a (diff)
downloadsubsurface-1a4380c8c12998e7cd3cebd39f0153aebbceb067.tar.gz
Connect QGraphicsScene to its parrent
This is to prevent a leak of QGraphicsScene. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index 6713d5bcb..d631e3cc1 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -446,7 +446,7 @@ void ProfileWidget2::setupItem(AbstractProfilePolygonItem *item, DiveCartesianAx
void ProfileWidget2::setupSceneAndFlags()
{
- setScene(new QGraphicsScene());
+ setScene(new QGraphicsScene(this));
scene()->setSceneRect(0, 0, 100, 100);
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);