Skip to content

Commit

Permalink
Use Plot::drawItems from Makhber
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune committed May 14, 2022
1 parent c383e65 commit 84517ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/plot2D/Plot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
3 changes: 1 addition & 2 deletions src/plot2D/Plot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 84517ab

Please sign in to comment.