mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
2 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue