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)
|
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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,6 @@ public:
|
||||||
enum State {
|
enum State {
|
||||||
EMPTY,
|
EMPTY,
|
||||||
PROFILE,
|
PROFILE,
|
||||||
EDIT,
|
|
||||||
ADD,
|
ADD,
|
||||||
PLAN,
|
PLAN,
|
||||||
INVALID
|
INVALID
|
||||||
|
|
Loading…
Add table
Reference in a new issue