From 9756be59aa8255dd9db21fab7a2147227ef844b5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 7 Feb 2014 15:05:22 -0200 Subject: Remove duplicated additem This addItem was being called twice, and a warning that the item was already in the scene was annoying me. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index 740869d08..a13b3ee5d 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -141,7 +141,6 @@ void ProfileWidget2::setupItemOnScene() cartesianPlane->setBottomAxis(timeAxis); cartesianPlane->setLeftAxis(profileYAxis); - scene()->addItem(cartesianPlane); diveComputerText->setAlignment(Qt::AlignLeft | Qt::AlignTop); diveComputerText->setBrush(getColor(TIME_TEXT)); @@ -358,4 +357,3 @@ bool ProfileWidget2::eventFilter(QObject *object, QEvent *event) } return QGraphicsView::eventFilter(object, event); } - -- cgit v1.2.3-70-g09d2