aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-06-30 07:40:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-03 14:30:46 -0700
commit2a0ae4991bf29a38a564858676c7a0ff7a16e7e4 (patch)
tree69953ea0937a2f2dc131b636fd5573c328921024 /profile-widget
parent329fcf7fdca40b73ec502d0835278f8ab3a70ff1 (diff)
downloadsubsurface-2a0ae4991bf29a38a564858676c7a0ff7a16e7e4.tar.gz
profile: remove EDIT_STATE from ProfileWidget2
This state is not used anywhere. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp4
-rw-r--r--profile-widget/profilewidget2.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 883cb7e62..90058ebb6 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -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();
}
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index b5114c63d..07be89783 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -60,7 +60,6 @@ public:
enum State {
EMPTY,
PROFILE,
- EDIT,
ADD,
PLAN,
INVALID