Remove warning about item not on the scene.

This patch fixes a warning about the QGraphicsItems not being on the
QGraphicsScene, and thus, cannot be removed from it.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-01-17 10:15:41 -02:00 committed by Dirk Hohndel
parent c88ccfae99
commit 470de7ee07

View file

@ -32,8 +32,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) :
timeAxis(new TimeAxis()),
depthController(new DiveRectItem()),
timeController(new DiveRectItem()),
diveProfileItem(new DiveProfileItem()),
temperatureItem(new DiveTemperatureItem()),
diveProfileItem(NULL),
temperatureItem(NULL),
cartesianPlane(new DiveCartesianPlane())
{
setScene(new QGraphicsScene());