summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-07 15:05:22 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-08 07:17:04 -0800
commit9756be59aa8255dd9db21fab7a2147227ef844b5 (patch)
tree3fe2ded04e55751bca7f53a6a7d2b037095d599e /qt-ui
parent9cf6b2be6bc8f49e4e26e0d10a7d9d48afcdc05a (diff)
downloadsubsurface-9756be59aa8255dd9db21fab7a2147227ef844b5.tar.gz
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/profile/profilewidget2.cpp2
1 files changed, 0 insertions, 2 deletions
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);
}
-