summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp6
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.h2
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;