From 2caea1cd56172d7db90042ec5367358de101620a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 3 Jun 2021 17:22:16 +0200 Subject: [PATCH] profile: remove ProfileWidget2::setFontPrintScale() The font print scale is now set once on construction and this function can therefore be removed. Signed-off-by: Berthold Stoeger --- profile-widget/profilewidget2.cpp | 6 ------ profile-widget/profilewidget2.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 78f2d761f..5f868eaed 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1543,12 +1543,6 @@ void ProfileWidget2::setPrintMode(bool mode, bool grayscale) #endif } -void ProfileWidget2::setFontPrintScale(double scale) -{ - fontPrintScale = scale; - emit fontPrintScaleChanged(scale); -} - double ProfileWidget2::getFontPrintScale() const { if (printMode) diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h index 3d2eea781..969135d82 100644 --- a/profile-widget/profilewidget2.h +++ b/profile-widget/profilewidget2.h @@ -78,7 +78,6 @@ public: bool isPointOutOfBoundaries(const QPointF &point) const; bool isPlanner() const; double getFontPrintScale() const; - void setFontPrintScale(double scale); void draw(QPainter *painter, const QRect &pos); QImage toImage(QSize size); #ifndef SUBSURFACE_MOBILE @@ -88,7 +87,6 @@ public: int animSpeed; signals: - void fontPrintScaleChanged(double scale); void editCurrentDive(); public