mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8d54c9640d
commit
1a4380c8c1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue