summaryrefslogtreecommitdiffstats
path: root/examples/widgets/touch/fingerpaint/scribblearea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/touch/fingerpaint/scribblearea.cpp')
-rw-r--r--examples/widgets/touch/fingerpaint/scribblearea.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/touch/fingerpaint/scribblearea.cpp b/examples/widgets/touch/fingerpaint/scribblearea.cpp
index 4af0ec8e7e..ed06545b43 100644
--- a/examples/widgets/touch/fingerpaint/scribblearea.cpp
+++ b/examples/widgets/touch/fingerpaint/scribblearea.cpp
@@ -216,13 +216,13 @@ bool ScribbleArea::event(QEvent *event)
QPainter painter(&image);
painter.setPen(Qt::NoPen);
painter.setBrush(myPenColors.at(touchPoint.id() % myPenColors.count()));
- painter.drawEllipse(touchPoint.pos(), diams.width() / 2, diams.height() / 2);
+ painter.drawEllipse(touchPoint.position(), diams.width() / 2, diams.height() / 2);
painter.end();
modified = true;
const int rad = 2;
QRectF rect(QPointF(), diams);
- rect.moveCenter(touchPoint.pos());
+ rect.moveCenter(touchPoint.position());
update(rect.toRect().adjusted(-rad,-rad, +rad, +rad));
}
break;