5#include <private/qquickitem_p.h>
37 return d->acceptedDevices;
43 return d->acceptedPointerTypes;
78 return d->acceptedButtons;
84 if (
d->acceptedButtons == buttons)
87 d->acceptedButtons = buttons;
94 return d->acceptedModifiers;
263 <<
"checking device type" <<
d->acceptedDevices
264 <<
"pointer type" <<
d->acceptedPointerTypes
265 <<
"modifiers" <<
d->acceptedModifiers;
266 if (!
d->acceptedDevices.testFlag(
event->device()->type()))
268 if (!
d->acceptedPointerTypes.testFlag(
event->pointingDevice()->pointerType()))
283#include "moc_qquickpointerdevicehandler_p.cpp"
QString objectName
the name of this object
A base class for pointer events.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setAcceptedButtons(Qt::MouseButtons buttons)
QInputDevice::DeviceTypes acceptedDevices
void acceptedButtonsChanged()
void acceptedPointerTypesChanged()
void acceptedDevicesChanged()
void setAcceptedDevices(QInputDevice::DeviceTypes acceptedDevices)
\qmlproperty flags PointerDeviceHandler::acceptedDevices
void acceptedModifiersChanged()
QPointingDevice::PointerTypes acceptedPointerTypes
void setAcceptedPointerTypes(QPointingDevice::PointerTypes acceptedPointerTypes)
\qmlproperty flags PointerDeviceHandler::acceptedPointerTypes
void setAcceptedModifiers(Qt::KeyboardModifiers acceptedModifiers)
\qmlproperty flags PointerDeviceHandler::acceptedModifiers
Qt::MouseButtons acceptedButtons
QQuickPointerDeviceHandler(QQuickItem *parent=nullptr)
\qmltype PointerDeviceHandler \qmlabstract
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
Qt::KeyboardModifiers acceptedModifiers
virtual bool wantsPointerEvent(QPointerEvent *event)
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
A base class for pointer events containing a single point, such as mouse events.
Qt::MouseButtons buttons() const
Returns the button state when the event was generated.
Combined button and popup list for selecting options.
#define qCDebug(category,...)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent