42 if (
d->pointInfo.id() != -1) {
46 int candidatePointCount = 0;
49 for (
int i = 0;
i <
event->pointCount(); ++
i) {
50 auto &
p =
event->point(
i);
51 const bool found = (
p.id() ==
d->pointInfo.id());
55 ++candidatePointCount;
65 <<
"was received as a stray TouchBegin event. Canceling existing gesture"
66 " and starting over.";
71 <<
"is missing from current event, but was neither canceled nor released."
72 " Ignoring:" <<
event->type();
76 if (candidatePointCount == 1 || (candidatePointCount > 1 &&
d->ignoreAdditionalPoints)) {
87 int candidatePointCount = 0;
89 for (
int i = 0;
i <
event->pointCount(); ++
i) {
90 auto &
p =
event->point(
i);
92 ++candidatePointCount;
99 if (chosen && candidatePointCount == 1) {
104 return d->pointInfo.id() != -1;
135 switch (transition) {
161 d->ignoreAdditionalPoints =
v;
175 d->pointInfo.m_id =
id;
206#include "moc_qquicksinglepointhandler_p.cpp"
The QEventPoint class provides information about a point in a QPointerEvent.
int id
the ID number of this event point.
void setAccepted(bool accepted=true)
\inmodule QtCore\reentrant
A base class for pointer events.
GrabTransition
This enum represents a transition of exclusive or passive grab from one object (possibly nullptr) to ...
QPointF sceneGrabPosition
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
QPointF mapFromScene(const QPointF &point) const
Maps the given point in the scene's coordinate system to the equivalent point within this item's coor...
void setPosition(const QPointF &)
Qt::MouseButtons acceptedButtons
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
void cancelAllGrabs(QPointerEvent *event, QEventPoint &point)
Cancel any existing grab of the given point.
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,...
virtual void onGrabChanged(QQuickPointerHandler *grabber, QPointingDevice::GrabTransition transition, QPointerEvent *event, QEventPoint &point)
Notification that the grab has changed in some way which is relevant to this handler.
virtual void handlePointerEventImpl(QPointerEvent *event)
This function can be overridden to implement whatever behavior a specific subclass is intended to hav...
bool setExclusiveGrab(QPointerEvent *ev, const QEventPoint &point, bool grab=true)
Acquire or give up the exclusive grab of the given point, according to the grab state,...
void setActive(bool active)
QQuickSinglePointHandlerPrivate()
\readonly \qmlproperty handlerPoint QtQuick::SinglePointHandler::point
QQuickHandlerPoint pointInfo
virtual void handleEventPoint(QPointerEvent *event, QEventPoint &point)
QQuickSinglePointHandler(QQuickItem *parent=nullptr)
\qmltype SinglePointHandler \qmlabstract \preliminary \instantiates QQuickSinglePointHandler \inherit...
QEventPoint & currentPoint(QPointerEvent *ev)
void handlePointerEventImpl(QPointerEvent *event) override
This function can be overridden to implement whatever behavior a specific subclass is intended to hav...
bool wantsPointerEvent(QPointerEvent *event) override
It is the responsibility of this function to decide whether the event could be relevant at all to thi...
void moveTarget(QPointF pos, QEventPoint &point)
void onGrabChanged(QQuickPointerHandler *grabber, QPointingDevice::GrabTransition transition, QPointerEvent *event, QEventPoint &point) override
Notification that the grab has changed in some way which is relevant to this handler.
void setIgnoreAdditionalPoints(bool v=true)
A base class for pointer events containing a single point, such as mouse events.
Combined button and popup list for selecting options.
QTextStream & hex(QTextStream &stream)
Calls QTextStream::setIntegerBase(16) on stream and returns stream.
#define qCWarning(category,...)
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLsizei const GLfloat * v
[13]
GLdouble GLdouble GLdouble GLdouble q
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent