From 4fb2cc8267700c86165ca33107a4868ee6afb899 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 4 Aug 2021 08:17:54 +0200 Subject: [PATCH] profile: remove ProfileWidget::setPrintMode() The print mode is passed on construction, not retroactively. This function thus became unused. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 14 -------------- profile-widget/profilewidget2.h | 1 - 2 files changed, 15 deletions(-) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 352651ea8..bc88b6658 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -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) { diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index a68181117..87df3463b 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -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