From 84517ab7d8728734d65150933c7b951c2500ec92 Mon Sep 17 00:00:00 2001 From: Mehdi Chinoune Date: Sat, 14 May 2022 14:54:12 +0100 Subject: [PATCH] Use Plot::drawItems from Makhber --- src/plot2D/Plot.cpp | 4 ++-- src/plot2D/Plot.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plot2D/Plot.cpp b/src/plot2D/Plot.cpp index 3a177d584..d1e0bb9e9 100644 --- a/src/plot2D/Plot.cpp +++ b/src/plot2D/Plot.cpp @@ -151,9 +151,9 @@ void Plot::printFrame(QPainter *painter, const QRect &rect) const painter->restore(); } -void Plot::drawItems(QPainter *painter, const QRect &rect, const QwtScaleMap map[axisCnt]) const +void Plot::drawItems(QPainter *painter, const QRectF &rect, const QwtScaleMap map[axisCnt]) const { - // QwtPlot::drawItems(painter, rect, map, pfilter); + QwtPlot::drawItems(painter, rect, map); for (int i = 0; i < QwtPlot::axisCnt; i++) { if (!axisEnabled(i)) diff --git a/src/plot2D/Plot.h b/src/plot2D/Plot.h index 544bf3096..534af4519 100644 --- a/src/plot2D/Plot.h +++ b/src/plot2D/Plot.h @@ -97,8 +97,7 @@ class MAKHBER_EXPORT Plot : public QwtPlot void print(QPainter *, const QRect &rect) const; protected: - using QwtPlot::drawItems; // To Silent Clang warnings - void drawItems(QPainter *painter, const QRect &rect, const QwtScaleMap map[axisCnt]) const; + void drawItems(QPainter *painter, const QRectF &rect, const QwtScaleMap map[axisCnt]) const; void drawInwardTicks(QPainter *painter, const QRectF &rect, const QwtScaleMap &map, int axis, bool min, bool maj) const;