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:
parent
329fcf7fdc
commit
2a0ae4991b
@ -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();
|
||||
}
|
||||
|
||||
@ -60,7 +60,6 @@ public:
|
||||
enum State {
|
||||
EMPTY,
|
||||
PROFILE,
|
||||
EDIT,
|
||||
ADD,
|
||||
PLAN,
|
||||
INVALID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user