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>
This commit is contained in:
parent
9cf6b2be6b
commit
9756be59aa
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user