From 2a0ae4991bf29a38a564858676c7a0ff7a16e7e4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 30 Jun 2021 07:40:13 +0200 Subject: profile: remove EDIT_STATE from ProfileWidget2 This state is not used anywhere. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 4 ++-- profile-widget/profilewidget2.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'profile-widget') 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 -- cgit v1.2.3-70-g09d2