From b079c8e9c18a4846741b181139725ac892e905e0 Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Tue, 14 Jan 2025 06:49:57 +0100 Subject: [PATCH] Rename parameter 'rect' to 'canvasRect' in draw method. --- include/qwtble/NotchedMarker.h | 2 +- src/NotchedMarker.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/qwtble/NotchedMarker.h b/include/qwtble/NotchedMarker.h index 6aeb60f..78af34d 100644 --- a/include/qwtble/NotchedMarker.h +++ b/include/qwtble/NotchedMarker.h @@ -21,7 +21,7 @@ class QWTBLE_EXPORT NotchedMarker : public QwtPlotItem int rtti() const override; void draw(QPainter* painter, const QwtScaleMap& xMap, - const QwtScaleMap& yMap, const QRectF& rect) const override; + const QwtScaleMap& yMap, const QRectF& canvasRect) const override; /// @brief Activate or disable drawing of legend. /// @param drawLegend Draw legend. True for drawing, false for not drawing. diff --git a/src/NotchedMarker.cpp b/src/NotchedMarker.cpp index dbfc74a..5f27214 100644 --- a/src/NotchedMarker.cpp +++ b/src/NotchedMarker.cpp @@ -23,7 +23,8 @@ NotchedMarker::NotchedMarker(QVector quantiles) int NotchedMarker::rtti() const { return QwtPlotItem::Rtti_PlotUserItem; } void NotchedMarker::draw(QPainter* painter, const QwtScaleMap& xMap, - const QwtScaleMap& yMap, const QRectF& rect) const + const QwtScaleMap& yMap, + const QRectF& canvasRect) const { if (quantilesVector_.empty() || plot()->axisScaleDiv(QwtPlot::yLeft).isEmpty()) @@ -32,7 +33,7 @@ void NotchedMarker::draw(QPainter* painter, const QwtScaleMap& xMap, painter->save(); painter->setBrush(QBrush(Qt::red, Qt::NoBrush)); if (drawLegend_) - drawLegend(painter, rect); + drawLegend(painter, canvasRect); drawElements(painter, xMap, yMap); painter->restore(); }