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

View file

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