profile: remove EDIT_STATE from ProfileWidget2

This state is not used anywhere.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-06-30 07:40:13 +02:00 committed by Dirk Hohndel
parent 329fcf7fdc
commit 2a0ae4991b
2 changed files with 2 additions and 3 deletions

View file

@ -866,7 +866,7 @@ void ProfileWidget2::mousePressEvent(QMouseEvent *event)
if (zoomLevel)
return;
QGraphicsView::mousePressEvent(event);
if (currentState == PLAN || currentState == ADD || currentState == EDIT)
if (currentState == PLAN || currentState == ADD)
shouldCalculateMaxDepth = shouldCalculateMaxTime = false;
}
@ -890,7 +890,7 @@ void ProfileWidget2::mouseReleaseEvent(QMouseEvent *event)
if (zoomLevel)
return;
QGraphicsView::mouseReleaseEvent(event);
if (currentState == PLAN || currentState == ADD || currentState == EDIT) {
if (currentState == PLAN || currentState == ADD) {
shouldCalculateMaxTime = shouldCalculateMaxDepth = true;
replot();
}

View file

@ -60,7 +60,6 @@ public:
enum State {
EMPTY,
PROFILE,
EDIT,
ADD,
PLAN,
INVALID