diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-02-07 15:05:22 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-08 07:17:04 -0800 |
commit | 9756be59aa8255dd9db21fab7a2147227ef844b5 (patch) | |
tree | 3fe2ded04e55751bca7f53a6a7d2b037095d599e /qt-ui | |
parent | 9cf6b2be6bc8f49e4e26e0d10a7d9d48afcdc05a (diff) | |
download | subsurface-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.cpp | 2 |
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); } - |