5#include <private/qquicksinglepointhandler_p_p.h>
6#include <private/qquickdeliveryagent_p.h>
7#include <private/qquickitem_p.h>
44 void onEnabledChanged()
override;
54 if (
auto parent =
q->parentItem())
89 d->updateHasHoverInChild(
parent,
true);
96 d->updateHasHoverInChild(
parent,
false);
112 emit blockingChanged();
117 switch (
event->type())
138 d->updateHasHoverInChild(
parent,
true);
147 auto &
point =
event->point(0);
178 m_hoveredTablet =
true;
190void QQuickHoverHandler::setHovered(
bool hovered)
196 m_hoveredTablet =
false;
350#include "moc_qquickhoverhandler_p.cpp"
The QEventPoint class provides information about a point in a QPointerEvent.
QString objectName
the name of this object
virtual bool event(QEvent *event)
This virtual function receives events to an object and should return true if the event e was recogniz...
A base class for pointer events.
const QPointingDevice * pointingDevice() const
Returns the source device from which this event originates.
virtual void componentComplete()=0
Invoked after the root component that caused this instantiation has completed construction.
static bool isTabletEvent(const QPointerEvent *ev)
static bool isMouseEvent(const QPointerEvent *ev)
\qmltype HoverHandler \instantiates QQuickHoverHandler \inherits SinglePointHandler \inqmlmodule QtQu...
void onParentChanged(QQuickItem *oldParent, QQuickItem *newParent) override
void updateHasHoverInChild(QQuickItem *item, bool hasHover)
void onEnabledChanged() override
void setBlocking(bool blocking)
\qmlproperty bool QtQuick::HoverHandler::blocking
void handleEventPoint(QPointerEvent *ev, QEventPoint &point) override
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
QQuickHoverHandler(QQuickItem *parent=nullptr)
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
bool event(QEvent *) override
This virtual function receives events to an object and should return true if the event e was recogniz...
static QQuickItemPrivate * get(QQuickItem *item)
void setHasHoverInChild(bool hasHover)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
virtual void onEnabledChanged()
virtual void onParentChanged(QQuickItem *, QQuickItem *)
bool parentContains(const QEventPoint &point) const
Returns true if margin() > 0 and point is within the margin beyond QQuickItem::boundingRect(),...
QQuickItem * parentItem() const
\qmlproperty Item QtQuick::PointerHandler::parent
virtual bool wantsEventPoint(const QPointerEvent *event, const QEventPoint &point)
Returns true if the given point (as part of event) could be relevant at all to this handler,...
void setActive(bool active)
A base class for pointer events containing a single point, such as mouse events.
Qt::MouseButton button() const
Returns the button that caused the event.
Combined button and popup list for selecting options.
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLdouble GLdouble GLdouble GLdouble q
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent