Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickdeliveryagent.cpp File Reference

(424417e7468ea5363bb1bcd105d2032bba2d9dc3)

#include <QtCore/qdebug.h>
#include <QtGui/private/qevent_p.h>
#include <QtGui/private/qeventpoint_p.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/qpa/qplatformtheme.h>
#include <QtQml/private/qabstractanimationjob_p.h>
#include <QtQuick/private/qquickdeliveryagent_p_p.h>
#include <QtQuick/private/qquickhoverhandler_p.h>
#include <QtQuick/private/qquickpointerhandler_p_p.h>
#include <QtQuick/private/qquickitem_p.h>
#include <QtQuick/private/qquickprofiler_p.h>
#include <QtQuick/private/qquickrendercontrol_p.h>
#include <QtQuick/private/qquickwindow_p.h>
#include <QtCore/qpointer.h>
#include <QtCore/qvarlengtharray.h>
#include <algorithm>
#include <memory>
#include "moc_qquickdeliveryagent_p.cpp"
Include dependency graph for qquickdeliveryagent.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE Q_GUI_EXPORT bool qt_sendShortcutOverrideEvent (QObject *o, ulong timestamp, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1)
static bool allowSyntheticRightClick ()
static QQuickDeliveryAgentPrivate::HoverItems::iterator findHoverStateByItem (QQuickDeliveryAgentPrivate::HoverItems &hoverItems, QQuickItem *item)
static QQuickDeliveryAgentPrivate::HoverItems::const_iterator findHoverStateByItem (const QQuickDeliveryAgentPrivate::HoverItems &hoverItems, const QQuickItem *item)
static void markHovered (QQuickDeliveryAgentPrivate::HoverItemState &state, uint hoverId, bool fromTouch)
static bool windowHasFocus (QQuickWindow *win)
static QQuickItem * findFurthestFocusScopeAncestor (QQuickItem *item)
static bool isEndOfFingerTouchSequence (const QTouchEvent *event)
QDebug operator<< (QDebug debug, const QQuickDeliveryAgent *da)

Function Documentation

◆ allowSyntheticRightClick()

bool allowSyntheticRightClick ( )
static

Definition at line 49 of file qquickdeliveryagent.cpp.

◆ findFurthestFocusScopeAncestor()

QQuickItem * findFurthestFocusScopeAncestor ( QQuickItem * item)
static

Definition at line 399 of file qquickdeliveryagent.cpp.

◆ findHoverStateByItem() [1/2]

QQuickDeliveryAgentPrivate::HoverItems::const_iterator findHoverStateByItem ( const QQuickDeliveryAgentPrivate::HoverItems & hoverItems,
const QQuickItem * item )
static

Definition at line 69 of file qquickdeliveryagent.cpp.

◆ findHoverStateByItem() [2/2]

QQuickDeliveryAgentPrivate::HoverItems::iterator findHoverStateByItem ( QQuickDeliveryAgentPrivate::HoverItems & hoverItems,
QQuickItem * item )
static

Definition at line 61 of file qquickdeliveryagent.cpp.

◆ isEndOfFingerTouchSequence()

bool isEndOfFingerTouchSequence ( const QTouchEvent * event)
static

Returns true if event ends a finger touch sequence: that is, of one or more touchpoints, every point has been released, and we are sure that they came from fingers, not synthesized.

Finger touch has no hover state of its own (until we support hover-detecting touchscreens). Stylus-proximity hover must not be cleared here.

This mirrors the rule in QQuickHoverHandler::handleEventPoint().

Definition at line 1869 of file qquickdeliveryagent.cpp.

◆ markHovered()

void markHovered ( QQuickDeliveryAgentPrivate::HoverItemState & state,
uint hoverId,
bool fromTouch )
static

Marks state as hovered, by a device that is a fingertip if fromTouch is true.

fromTouch is refreshed only if the entry is not hovered right now: an entry whose hoverId is 0 is a leftover from a hover that has already ended (it stays in hoverItems until deliverHoverEvent() prunes it), so hovering it again belongs to whichever device is establishing hover now. As long as the entry is hovered it keeps the flag it got when hover began, so that a finger tapping an item that a cursor already hovers cannot turn the cursor's hover into touch hover - which clearTouchHover() would then take away when the contact ends.

Definition at line 88 of file qquickdeliveryagent.cpp.

◆ operator<<()

QDebug operator<< ( QDebug debug,
const QQuickDeliveryAgent * da )

Definition at line 3304 of file qquickdeliveryagent.cpp.

◆ qt_sendShortcutOverrideEvent()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT bool qt_sendShortcutOverrideEvent ( QObject * o,
ulong timestamp,
int k,
Qt::KeyboardModifiers mods,
const QString & text = QString(),
bool autorep = false,
ushort count = 1 )
extern

Definition at line 1174 of file qwindowsysteminterface.cpp.

◆ windowHasFocus()

bool windowHasFocus ( QQuickWindow * win)
inlinestatic

Definition at line 391 of file qquickdeliveryagent.cpp.