summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/shared/hoverpoints.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2018-12-07 11:58:03 +0100
committerChristian Ehrlicher <[email protected]>2019-01-23 18:48:59 +0000
commitbce32c8ab8c547d0fc9d12d192546dde361443fa (patch)
tree8a9a3a8e043bd68de8c7de242d58c207ea77e1db /examples/widgets/painting/shared/hoverpoints.cpp
parent770b4afeed37ddf036dcbc287b68f9f7b151af27 (diff)
Cleanup Widgets examples - foreach
Cleanup the Widgets examples - replace foreach with range-based for loop in mainwindows and painting subdirectories Change-Id: I3c1556dffd22e29dd0a5ba960e699291c496278a Reviewed-by: Konstantin Shegunov <[email protected]> Reviewed-by: Paul Wicking <[email protected]> Reviewed-by: Luca Beldi <[email protected]> Reviewed-by: Martin Smith <[email protected]>
Diffstat (limited to 'examples/widgets/painting/shared/hoverpoints.cpp')
-rw-r--r--examples/widgets/painting/shared/hoverpoints.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/painting/shared/hoverpoints.cpp b/examples/widgets/painting/shared/hoverpoints.cpp
index a16bda4835d..74c78088ad7 100644
--- a/examples/widgets/painting/shared/hoverpoints.cpp
+++ b/examples/widgets/painting/shared/hoverpoints.cpp
@@ -174,7 +174,7 @@ bool HoverPoints::eventFilter(QObject *object, QEvent *event)
const QTouchEvent *const touchEvent = static_cast<const QTouchEvent*>(event);
const QList<QTouchEvent::TouchPoint> points = touchEvent->touchPoints();
const qreal pointSize = qMax(m_pointSize.width(), m_pointSize.height());
- foreach (const QTouchEvent::TouchPoint &touchPoint, points) {
+ for (const QTouchEvent::TouchPoint &touchPoint : points) {
const int id = touchPoint.id();
switch (touchPoint.state()) {
case Qt::TouchPointPressed: