summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-12 12:05:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-12 10:32:58 -0700
commita537894553698880f09957fe9b423b280d5df444 (patch)
tree1241e1d8d592260ee23c7885a460e9eb67a5dec3 /profile-widget
parent9771c57a54d4f56aadb623b9203d4b7320067273 (diff)
downloadsubsurface-a537894553698880f09957fe9b423b280d5df444.tar.gz
profile: remove ProfileWidget2::replotEnabled
The last setter was removed in the previous commit. Let's remove this complexity. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp9
-rw-r--r--profile-widget/profilewidget2.h2
2 files changed, 0 insertions, 11 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp
index 8fbd00b49..3a8ab4d54 100644
--- a/profile-widget/profilewidget2.cpp
+++ b/profile-widget/profilewidget2.cpp
@@ -376,14 +376,10 @@ void ProfileWidget2::setupItemOnScene()
timeAxis->setLinesVisible(true);
profileYAxis->setLinesVisible(true);
gasYAxis->setZValue(timeAxis->zValue() + 1);
-
- replotEnabled = true;
}
void ProfileWidget2::replot(struct dive *d)
{
- if (!replotEnabled)
- return;
dataModel->clear();
plotDive(d, true, false);
}
@@ -1402,11 +1398,6 @@ struct int ProfileWidget2::getEntryFromPos(QPointF pos)
}
#endif
-void ProfileWidget2::setReplot(bool state)
-{
- replotEnabled = state;
-}
-
#ifndef SUBSURFACE_MOBILE
void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
{
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index 4f60bf885..43a7f51b6 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -108,7 +108,6 @@ slots: // Necessary to call from QAction's signals.
void actionRequestedReplot(bool triggered);
void setEmptyState();
void setProfileState();
- void setReplot(bool state);
void replot(dive *d = 0);
#ifndef SUBSURFACE_MOBILE
void plotPictures();
@@ -185,7 +184,6 @@ private:
ToolTipItem *toolTipItem;
#endif
bool isPlotZoomed;
- bool replotEnabled;
// All those here should probably be merged into one structure,
// So it's esyer to replicate for more dives later.
// In the meantime, keep it here.