mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9771c57a54
commit
a537894553
2 changed files with 0 additions and 11 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue