diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-19 15:51:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-09-19 15:51:11 +0200 |
commit | 9c605834652206f550ecca66c464ca990e4d30c0 (patch) | |
tree | a65dca7dbd6142cee685afd875a1038152133a82 /qfunctionconfigurator | |
parent | 93a6f3ba19998e7590c263d5673c8f26cd6a4b1e (diff) |
qfc: pass -Wall -pedantic -Wextra
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.cpp | 6 | ||||
-rw-r--r-- | qfunctionconfigurator/qfunctionconfigurator.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp index 4a5f7ca6..0bd9aad0 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.cpp +++ b/qfunctionconfigurator/qfunctionconfigurator.cpp @@ -208,7 +208,7 @@ void QFunctionConfigurator::drawBackground(const QRectF &fullRect) // // Draw the Function for the graph, on a Pixmap. // -void QFunctionConfigurator::drawFunction(const QRectF &fullRect) +void QFunctionConfigurator::drawFunction() { if (!_config) return; @@ -277,7 +277,7 @@ int i; } if (_draw_function) { - drawFunction(e->rect()); // Draw the Function on a Pixmap + drawFunction(); // Draw the Function on a Pixmap _draw_function = false; } p.drawPixmap(0, 0, _function); // Always draw the background and the function @@ -650,7 +650,7 @@ void QFunctionConfigurator::setCaption(QString cap) update(); } -void QFunctionConfigurator::resizeEvent(QResizeEvent *e) +void QFunctionConfigurator::resizeEvent(QResizeEvent *) { range = QRectF(40, 20, MaxInput * pPerEGU_Input, MaxOutput * pPerEGU_Output); diff --git a/qfunctionconfigurator/qfunctionconfigurator.h b/qfunctionconfigurator/qfunctionconfigurator.h index c9290722..6669f92e 100644 --- a/qfunctionconfigurator/qfunctionconfigurator.h +++ b/qfunctionconfigurator/qfunctionconfigurator.h @@ -153,7 +153,7 @@ protected slots: protected: void drawBackground(const QRectF &rect); - void drawFunction(const QRectF &rect); + void drawFunction(); void drawPoint(QPainter *painter, const QPointF &pt, QColor colBG ); void drawLine(QPainter *painter, const QPointF &start, const QPointF &end, QPen pen); bool markContains(const QPointF &pt, const QPointF &coord) const; |