From 470de7ee07582d00f0d93cbce411a919dd9b1cdc Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 17 Jan 2014 10:15:41 -0200 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index d8dad5a84..9708f2bd3 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -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()); -- cgit v1.2.3-70-g09d2