profile: remove ProfileWidget::setPrintMode()

The print mode is passed on construction, not retroactively.
This function thus became unused.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2021-08-04 08:17:54 +02:00 committed by Dirk Hohndel
parent 51dc5113c2
commit 4fb2cc8267
2 changed files with 0 additions and 15 deletions

View file

@ -815,20 +815,6 @@ void ProfileWidget2::changeGas(int tank, int seconds)
}
#endif
void ProfileWidget2::setPrintMode(bool grayscale)
{
profileScene->printMode = true;
resetZoom();
// set printMode for axes
profileScene->isGrayscale = grayscale;
#ifndef SUBSURFACE_MOBILE
mouseFollowerHorizontal->setVisible(false);
mouseFollowerVertical->setVisible(false);
toolTipItem->setVisible(false);
#endif
}
#ifndef SUBSURFACE_MOBILE
void ProfileWidget2::editName(DiveEventItem *item)
{

View file

@ -51,7 +51,6 @@ public:
void setProfileState(const struct dive *d, int dc);
void setPlanState(const struct dive *d, int dc);
void setEditState(const struct dive *d, int dc);
void setPrintMode(bool grayscale = false);
bool isPlanner() const;
void clear();
#ifndef SUBSURFACE_MOBILE