diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-02-15 13:14:49 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-03-19 13:17:06 +0100 |
commit | af7e85bf55ec24492cfdee12394a7aa4e5031228 (patch) | |
tree | 4a36984a9881722464113a86ed6c9677b3241016 /src/quick/handlers/qquickhoverhandler.cpp | |
parent | 1bc7b77d7eff77b3761e543a18e4c7a795ea9f43 (diff) |
Remove QQWindowPriv::is[Mouse|Touch|Tablet]Event
They are moved to QQuickDeliveryAgentPrivate.
Change-Id: I5d6656dd6362dd03f0f4321cff07a8b207fadd39
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/quick/handlers/qquickhoverhandler.cpp')
-rw-r--r-- | src/quick/handlers/qquickhoverhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/handlers/qquickhoverhandler.cpp b/src/quick/handlers/qquickhoverhandler.cpp index a22d5ddcae..b934940126 100644 --- a/src/quick/handlers/qquickhoverhandler.cpp +++ b/src/quick/handlers/qquickhoverhandler.cpp @@ -122,7 +122,7 @@ bool QQuickHoverHandler::wantsPointerEvent(QPointerEvent *event) // the hovered property to transition to false prematurely. // If a QQuickPointerTabletEvent caused the hovered property to become true, // then only another QQuickPointerTabletEvent can make it become false. - if (!(m_hoveredTablet && QQuickWindowPrivate::isMouseEvent(event))) + if (!(m_hoveredTablet && QQuickDeliveryAgentPrivate::isMouseEvent(event))) setHovered(false); return false; @@ -134,7 +134,7 @@ void QQuickHoverHandler::handleEventPoint(QPointerEvent *ev, QEventPoint &point) if (point.state() == QEventPoint::Released && ev->pointingDevice()->pointerType() == QPointingDevice::PointerType::Finger) hovered = false; - else if (QQuickWindowPrivate::isTabletEvent(ev)) + else if (QQuickDeliveryAgentPrivate::isTabletEvent(ev)) m_hoveredTablet = true; setHovered(hovered); setPassiveGrab(ev, point); |