diff options
Diffstat (limited to 'tests/manual/pointer')
-rw-r--r-- | tests/manual/pointer/inputinspector.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/manual/pointer/inputinspector.cpp b/tests/manual/pointer/inputinspector.cpp index b919c489f4..ee1b4e70c0 100644 --- a/tests/manual/pointer/inputinspector.cpp +++ b/tests/manual/pointer/inputinspector.cpp @@ -141,9 +141,9 @@ QVector<QObject*> InputInspector::passiveGrabbers_helper(int pointId /*= 0*/) co QVector<QObject*> result; const QPointingDevice *device = pointerDevice(); if (device && source()) { - for (auto eventPoint : QPointingDevicePrivate::get(device)->activePoints) { - if (!pointId || eventPoint.id() == pointId) { - for (auto pg : eventPoint.passiveGrabbers()) { + for (auto &epd : QPointingDevicePrivate::get(device)->activePoints.values()) { + if (!pointId || epd.eventPoint.id() == pointId) { + for (auto pg : epd.passiveGrabbers) { if (!result.contains(pg)) result << pg; } @@ -158,9 +158,9 @@ QVector<QObject*> InputInspector::exclusiveGrabbers_helper(int pointId /*= 0*/) QVector<QObject*> result; const QPointingDevice *device = pointerDevice(); if (device && source()) { - for (auto eventPoint : QPointingDevicePrivate::get(device)->activePoints) { - if (!pointId || eventPoint.id() == pointId) { - if (auto g = eventPoint.exclusiveGrabber()) { + for (auto &epd : QPointingDevicePrivate::get(device)->activePoints.values()) { + if (!pointId || epd.eventPoint.id() == pointId) { + if (auto g = epd.exclusiveGrabber.data()) { if (!result.contains(g)) result << g; } |