Fix QPointerEvent::allPointsGrabbed()

Amends 8932e80d0c to make implementation
match docs: the ! went missing during repeated patch rebasing, apparently.

Pick-to: 6.2 6.3 6.4
Task-number: QTBUG-101932
Change-Id: I3fe910774f5bdf4ab0342a9cf1994bb489f20e87
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Shawn Rutledge 2022-07-07 20:19:02 +02:00
parent e1a787a76e
commit 65adfd5ec5

View File

@ -264,12 +264,13 @@ QEventPoint *QPointerEvent::pointById(int id)
}
/*!
Returns \c true if every point in points() has an exclusiveGrabber().
Returns \c true if every point in points() has either an exclusiveGrabber()
or one or more passiveGrabbers().
*/
bool QPointerEvent::allPointsGrabbed() const
{
for (const auto &p : points()) {
if (exclusiveGrabber(p) && passiveGrabbers(p).isEmpty())
if (!exclusiveGrabber(p) && passiveGrabbers(p).isEmpty())
return false;
}
return true;