Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | const QLoggingCategory &lcPointerEvents() { static const QLoggingCategory category("qt.quick.pointer.events"); returnexecuted 10206 times by 16 tests: return category; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
category;executed 10206 times by 16 tests: return category; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
} | 10206 |
5 | const QLoggingCategory &lcPointerGrab() { static const QLoggingCategory category("qt.quick.pointer.grab"); returnexecuted 4438 times by 16 tests: return category; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
category;executed 4438 times by 16 tests: return category; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
} | 4438 |
6 | typedef QHash<const QTouchDevice *, QQuickPointerDevice *> PointerDeviceForTouchDeviceHash; | - |
7 | namespace { namespace Q_QGS_g_touchDevices { typedef PointerDeviceForTouchDeviceHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 192 times by 89 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 192 times by 89 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
}executed 192 times by 89 tests: end of block Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 419479 times by 89 tests: return &holder.value; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
&holder.value;executed 419479 times by 89 tests: return &holder.value; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
} } } static QGlobalStatic<PointerDeviceForTouchDeviceHash, Q_QGS_g_touchDevices::innerFunction, Q_QGS_g_touchDevices::guard> g_touchDevices; | 0-419479 |
8 | | - |
9 | struct ConstructableQQuickPointerDevice : public QQuickPointerDevice | - |
10 | { | - |
11 | ConstructableQQuickPointerDevice(DeviceType devType, PointerType pType, Capabilities caps, | - |
12 | int maxPoints, int buttonCount, const QString &name, | - |
13 | qint64 uniqueId = 0) | - |
14 | : QQuickPointerDevice(devType, pType, caps, maxPoints, buttonCount, name, uniqueId) {}executed 194 times by 90 tests: end of block Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
| 194 |
15 | | - |
16 | }; | - |
17 | namespace { namespace Q_QGS_g_genericMouseDevice { typedef ConstructableQQuickPointerDevice Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 194 times by 90 testsEvaluated by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 194 times by 90 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
}executed 194 times by 90 tests: end of block Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type (QQuickPointerDevice::Mouse, QQuickPointerDevice::GenericPointer, QQuickPointerDevice::Position | QQuickPointerDevice::Scroll | QQuickPointerDevice::Hover, 1, 3, QLatin1String("core pointer"), 0))) : value (QQuickPointerDevice::Mouse, QQuickPointerDevice::GenericPointer, QQuickPointerDevice::Position | QQuickPointerDevice::Scroll | QQuickPointerDevice::Hover, 1, 3, QLatin1String("core pointer"), 0) { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 504071 times by 90 tests: return &holder.value; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
&holder.value;executed 504071 times by 90 tests: return &holder.value; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
} } } static QGlobalStatic<ConstructableQQuickPointerDevice, Q_QGS_g_genericMouseDevice::innerFunction, Q_QGS_g_genericMouseDevice::guard> g_genericMouseDevice; | 0-504071 |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | typedef QHash<qint64, QQuickPointerDevice *> PointerDeviceForDeviceIdHash; | - |
24 | namespace { namespace Q_QGS_g_tabletDevices { typedef PointerDeviceForDeviceIdHash Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | never evaluated | FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);never executed: guard.store(QtGlobalStatic::Destroyed); }never executed: end of block }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnnever executed: return &holder.value; &holder.value;never executed: return &holder.value; } } } static QGlobalStatic<PointerDeviceForDeviceIdHash, Q_QGS_g_tabletDevices::innerFunction, Q_QGS_g_tabletDevices::guard> g_tabletDevices; | 0 |
25 | | - |
26 | | - |
27 | static const char *pointStateString(const QQuickEventPoint *point) | - |
28 | { | - |
29 | static const QMetaEnum stateMetaEnum = point->metaObject()->enumerator(point->metaObject()->indexOfEnumerator("State")); | - |
30 | return never executed: return stateMetaEnum.valueToKey(point->state()); stateMetaEnum.valueToKey(point->state());never executed: return stateMetaEnum.valueToKey(point->state()); | 0 |
31 | } | - |
32 | | - |
33 | static const QString pointDeviceName(const QQuickEventPoint *point) | - |
34 | { | - |
35 | auto device = static_cast<const QQuickPointerEvent *>(point->parent())->device(); | - |
36 | QString deviceName = (deviceTRUE | never evaluated | FALSE | never evaluated |
? device->name() : QLatin1String("null device")); | 0 |
37 | deviceName.resize(16, ' '); | - |
38 | return never executed: return deviceName; deviceName;never executed: return deviceName; | 0 |
39 | } | - |
40 | | - |
41 | | - |
42 | QQuickPointerDevice *QQuickPointerDevice::touchDevice(const QTouchDevice *d) | - |
43 | { | - |
44 | if (g_touchDevices->contains(d)TRUE | evaluated 2432 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 20 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 20-2432 |
45 | returnexecuted 2432 times by 10 tests: return g_touchDevices->value(d); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
g_touchDevices->value(d);executed 2432 times by 10 tests: return g_touchDevices->value(d); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 2432 |
46 | | - |
47 | QQuickPointerDevice::DeviceType type = QQuickPointerDevice::TouchScreen; | - |
48 | QString name; | - |
49 | int maximumTouchPoints = 10; | - |
50 | QQuickPointerDevice::Capabilities caps = QQuickPointerDevice::Capabilities(QTouchDevice::Position); | - |
51 | if (dTRUE | evaluated 20 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | never evaluated |
) { | 0-20 |
52 | caps = static_cast<QQuickPointerDevice::Capabilities>(static_cast<int>(d->capabilities()) & 0xFF); | - |
53 | if (d->type() == QTouchDevice::TouchPadTRUE | never evaluated | FALSE | evaluated 20 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) { | 0-20 |
54 | type = QQuickPointerDevice::TouchPad; | - |
55 | caps |= QQuickPointerDevice::Scroll; | - |
56 | } never executed: end of block | 0 |
57 | name = d->name(); | - |
58 | maximumTouchPoints = d->maximumTouchPoints(); | - |
59 | }executed 20 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
else { | 20 |
60 | QMessageLogger(__FILE__, 636, __PRETTY_FUNCTION__).warning() << "QQuickWindowPrivate::touchDevice: creating touch device from nullptr device in QTouchEvent"; | - |
61 | } never executed: end of block | 0 |
62 | | - |
63 | QQuickPointerDevice *dev = new QQuickPointerDevice(type, QQuickPointerDevice::Finger, | - |
64 | caps, maximumTouchPoints, 0, name, 0); | - |
65 | g_touchDevices->insert(d, dev); | - |
66 | returnexecuted 20 times by 10 tests: return dev; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
dev;executed 20 times by 10 tests: return dev; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 20 |
67 | } | - |
68 | | - |
69 | const QTouchDevice *QQuickPointerDevice::qTouchDevice() const | - |
70 | { | - |
71 | return never executed: return g_touchDevices->key(const_cast<QQuickPointerDevice *>(this)); g_touchDevices->key(const_cast<QQuickPointerDevice *>(this));never executed: return g_touchDevices->key(const_cast<QQuickPointerDevice *>(this)); | 0 |
72 | } | - |
73 | | - |
74 | QList<QQuickPointerDevice*> QQuickPointerDevice::touchDevices() | - |
75 | { | - |
76 | returnexecuted 414575 times by 89 tests: return g_touchDevices->values(); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
g_touchDevices->values();executed 414575 times by 89 tests: return g_touchDevices->values(); Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- tst_qquickdynamicpropertyanimation
- ...
| 414575 |
77 | } | - |
78 | | - |
79 | QQuickPointerDevice *QQuickPointerDevice::genericMouseDevice() | - |
80 | { | - |
81 | returnexecuted 504071 times by 90 tests: return g_genericMouseDevice; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
g_genericMouseDevice;executed 504071 times by 90 tests: return g_genericMouseDevice; Executed by:- tst_drawingmodes
- tst_examples
- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qqmlcomponent
- tst_qqmldebugjs
- tst_qqmlimport
- tst_qqmltypeloader
- tst_qquickaccessible
- tst_qquickage
- tst_qquickanchors
- tst_qquickangleddirection
- tst_qquickanimatedimage
- tst_qquickanimatedsprite
- tst_qquickanimationcontroller
- tst_qquickanimations
- tst_qquickapplication
- tst_qquickborderimage
- tst_qquickcumulativedirection
- tst_qquickcustomaffector
- tst_qquickcustomparticle
- tst_qquickdesignersupport
- tst_qquickdrag
- tst_qquickdraghandler
- tst_qquickdroparea
- ...
| 504071 |
82 | } | - |
83 | | - |
84 | QQuickPointerDevice *QQuickPointerDevice::tabletDevice(qint64 id) | - |
85 | { | - |
86 | auto it = g_tabletDevices->find(id); | - |
87 | if (it != g_tabletDevices->end()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
88 | return never executed: return it.value(); it.value();never executed: return it.value(); | 0 |
89 | | - |
90 | | - |
91 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
92 | } | - |
93 | void QQuickEventPoint::reset(Qt::TouchPointState state, const QPointF &scenePos, int pointId, ulong timestamp, const QVector2D &velocity) | - |
94 | { | - |
95 | m_scenePos = scenePos; | - |
96 | m_pointId = pointId; | - |
97 | m_accept = false; | - |
98 | m_state = static_cast<QQuickEventPoint::State>(state); | - |
99 | m_timestamp = timestamp; | - |
100 | if (state == Qt::TouchPointPressedTRUE | evaluated 2288 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 9804 times by 18 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
|
) { | 2288-9804 |
101 | m_pressTimestamp = timestamp; | - |
102 | m_scenePressPos = scenePos; | - |
103 | }executed 2288 times by 16 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 2288 |
104 | m_velocity = (__builtin_expect(!!(velocity.isNull()), true)TRUE | evaluated 12092 times by 18 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| FALSE | never evaluated |
? estimatedVelocity() : velocity); | 0-12092 |
105 | }executed 12092 times by 18 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 12092 |
106 | | - |
107 | void QQuickEventPoint::localizePosition(QQuickItem *target) | - |
108 | { | - |
109 | if (targetTRUE | evaluated 14048 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | never evaluated |
) | 0-14048 |
110 | m_pos = target->mapFromScene(scenePosition());executed 14048 times by 16 tests: m_pos = target->mapFromScene(scenePosition()); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 14048 |
111 | else | - |
112 | m_pos = QPointF(); never executed: m_pos = QPointF(); | 0 |
113 | } | - |
114 | | - |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | QObject *QQuickEventPoint::exclusiveGrabber() const | - |
121 | { | - |
122 | returnexecuted 43931 times by 18 tests: return m_exclusiveGrabber.data(); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
m_exclusiveGrabber.data();executed 43931 times by 18 tests: return m_exclusiveGrabber.data(); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 43931 |
123 | } | - |
124 | void QQuickEventPoint::setExclusiveGrabber(QObject *grabber) | - |
125 | { | - |
126 | if (QQuickPointerHandler *phGrabber = qmlobject_cast<QQuickPointerHandler *>(grabber)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
127 | setGrabberPointerHandler(phGrabber, true); never executed: setGrabberPointerHandler(phGrabber, true); | 0 |
128 | else | - |
129 | setGrabberItem(static_cast<QQuickItem *>(grabber));executed 2 times by 1 test: setGrabberItem(static_cast<QQuickItem *>(grabber)); | 2 |
130 | } | - |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | QQuickItem *QQuickEventPoint::grabberItem() const | - |
138 | { | - |
139 | returnexecuted 57262 times by 18 tests: return (m_grabberIsHandler ? nullptr : static_cast<QQuickItem *>(m_exclusiveGrabber.data())); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
(m_grabberIsHandler ? nullptr : static_cast<QQuickItem *>(m_exclusiveGrabber.data()));executed 57262 times by 18 tests: return (m_grabberIsHandler ? nullptr : static_cast<QQuickItem *>(m_exclusiveGrabber.data())); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 57262 |
140 | } | - |
141 | | - |
142 | | - |
143 | | - |
144 | | - |
145 | | - |
146 | | - |
147 | | - |
148 | void QQuickEventPoint::setGrabberItem(QQuickItem *grabber) | - |
149 | { | - |
150 | if (grabber != m_exclusiveGrabber.data()TRUE | evaluated 3924 times by 15 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 2680 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 2680-3924 |
151 | QQuickPointerHandler *oldGrabberHandler = grabberPointerHandler(); | - |
152 | if (oldGrabberHandlerTRUE | evaluated 12 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| FALSE | evaluated 3912 times by 14 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
|
&& !oldGrabberHandler->approveGrabTransition(this, grabber)TRUE | never evaluated | FALSE | evaluated 12 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
|
) | 0-3912 |
153 | return; never executed: return; | 0 |
154 | if (__builtin_expect(!!(lcPointerGrab().isDebugEnabled()), false)TRUE | never evaluated | FALSE | evaluated 3924 times by 15 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 0-3924 |
155 | for (bool qt_category_enabled = lcPointerGrab().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 854, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this)never executed: QMessageLogger(__FILE__, 854, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab" << m_exclusiveGrabber << "->" << grabber; | 0 |
156 | << ": grab" << m_exclusiveGrabber << "->" << grabber; never executed: QMessageLogger(__FILE__, 854, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab" << m_exclusiveGrabber << "->" << grabber; | 0 |
157 | } never executed: end of block | 0 |
158 | QQuickItem *oldGrabberItem = grabberItem(); | - |
159 | m_exclusiveGrabber = QPointer<QObject>(grabber); | - |
160 | m_grabberIsHandler = false; | - |
161 | m_sceneGrabPos = m_scenePos; | - |
162 | if (oldGrabberHandlerTRUE | evaluated 12 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| FALSE | evaluated 3912 times by 14 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 12-3912 |
163 | oldGrabberHandler->onGrabChanged(oldGrabberHandler, (grabber ? CancelGrabExclusive : UngrabExclusive), this); | - |
164 | }executed 12 times by 3 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
else if (oldGrabberItemTRUE | evaluated 2016 times by 14 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 1896 times by 14 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
|
&& oldGrabberItem != grabberTRUE | evaluated 2016 times by 14 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | never evaluated |
&& grabberTRUE | evaluated 120 times by 6 testsEvaluated by:- tst_qquickflickable
- tst_qquickitem
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| FALSE | evaluated 1896 times by 14 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
|
&& grabber->window()TRUE | evaluated 120 times by 6 testsEvaluated by:- tst_qquickflickable
- tst_qquickitem
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| FALSE | never evaluated |
) { | 0-2016 |
165 | QQuickWindowPrivate *windowPriv = QQuickWindowPrivate::get(grabber->window()); | - |
166 | windowPriv->sendUngrabEvent(oldGrabberItem, windowPriv->isDeliveringTouchAsMouse()); | - |
167 | }executed 120 times by 6 tests: end of block Executed by:- tst_qquickflickable
- tst_qquickitem
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
| 120 |
168 | for (QPointer<QQuickPointerHandler> passiveGrabber : m_passiveGrabbers) | - |
169 | passiveGrabber->onGrabChanged(passiveGrabber, OverrideGrabPassive, this);executed 56 times by 3 tests: passiveGrabber->onGrabChanged(passiveGrabber, OverrideGrabPassive, this); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 56 |
170 | }executed 3924 times by 15 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktextedit
- tst_qquicktextinput
| 3924 |
171 | }executed 6604 times by 16 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 6604 |
172 | | - |
173 | | - |
174 | | - |
175 | | - |
176 | | - |
177 | | - |
178 | QQuickPointerHandler *QQuickEventPoint::grabberPointerHandler() const | - |
179 | { | - |
180 | returnexecuted 8941 times by 16 tests: return (m_grabberIsHandler ? static_cast<QQuickPointerHandler *>(m_exclusiveGrabber.data()) : nullptr); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
(m_grabberIsHandler ? static_cast<QQuickPointerHandler *>(m_exclusiveGrabber.data()) : nullptr);executed 8941 times by 16 tests: return (m_grabberIsHandler ? static_cast<QQuickPointerHandler *>(m_exclusiveGrabber.data()) : nullptr); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 8941 |
181 | } | - |
182 | | - |
183 | | - |
184 | | - |
185 | | - |
186 | | - |
187 | | - |
188 | void QQuickEventPoint::setGrabberPointerHandler(QQuickPointerHandler *grabber, bool exclusive) | - |
189 | { | - |
190 | if (__builtin_expect(!!(lcPointerGrab().isDebugEnabled()), false)TRUE | never evaluated | FALSE | evaluated 472 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) { | 0-472 |
191 | if (exclusiveTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
192 | if (m_exclusiveGrabber != grabberTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
193 | for (bool qt_category_enabled = lcPointerGrab().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 892, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this)never executed: QMessageLogger(__FILE__, 892, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (exclusive)" << m_exclusiveGrabber << "->" << grabber; | 0 |
194 | << ": grab (exclusive)" << m_exclusiveGrabber << "->" << grabber; never executed: QMessageLogger(__FILE__, 892, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (exclusive)" << m_exclusiveGrabber << "->" << grabber; | 0 |
195 | } never executed: end of block else { | 0 |
196 | for (bool qt_category_enabled = lcPointerGrab().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 895, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this)never executed: QMessageLogger(__FILE__, 895, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (passive)" << grabber; | 0 |
197 | << ": grab (passive)" << grabber; never executed: QMessageLogger(__FILE__, 895, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (passive)" << grabber; | 0 |
198 | } never executed: end of block | 0 |
199 | } | - |
200 | if (exclusiveTRUE | evaluated 290 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 182 times by 4 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
|
) { | 182-290 |
201 | if (grabber != m_exclusiveGrabber.data()TRUE | evaluated 264 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 26 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquicktaphandler
|
) { | 26-264 |
202 | QQuickPointerHandler *oldGrabberHandler = grabberPointerHandler(); | - |
203 | QQuickItem *oldGrabberItem = grabberItem(); | - |
204 | m_exclusiveGrabber = QPointer<QObject>(grabber); | - |
205 | m_grabberIsHandler = true; | - |
206 | m_sceneGrabPos = m_scenePos; | - |
207 | if (grabberTRUE | evaluated 144 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 120 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) { | 120-144 |
208 | grabber->onGrabChanged(grabber, GrabExclusive, this); | - |
209 | for (QPointer<QQuickPointerHandler> passiveGrabber : m_passiveGrabbers) { | - |
210 | if (!passiveGrabber.isNull()TRUE | evaluated 102 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| FALSE | never evaluated |
&& passiveGrabber != grabberTRUE | evaluated 24 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| FALSE | evaluated 78 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
|
) | 0-102 |
211 | passiveGrabber->onGrabChanged(grabber, OverrideGrabPassive, this);executed 24 times by 3 tests: passiveGrabber->onGrabChanged(grabber, OverrideGrabPassive, this); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 24 |
212 | }executed 102 times by 3 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 102 |
213 | }executed 144 times by 5 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 144 |
214 | if (oldGrabberHandlerTRUE | evaluated 120 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 144 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 120-144 |
215 | oldGrabberHandler->onGrabChanged(oldGrabberHandler, (grabber ? CancelGrabExclusive : UngrabExclusive), this);executed 120 times by 5 tests: oldGrabberHandler->onGrabChanged(oldGrabberHandler, (grabber ? CancelGrabExclusive : UngrabExclusive), this); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 120 |
216 | else if (oldGrabberItemTRUE | evaluated 4 times by 1 testEvaluated by:- tst_multipointtoucharea_interop
| FALSE | evaluated 140 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& pointerEvent()->asPointerTouchEvent()TRUE | evaluated 4 times by 1 testEvaluated by:- tst_multipointtoucharea_interop
| FALSE | never evaluated |
) | 0-140 |
217 | oldGrabberItem->touchUngrabEvent();executed 4 times by 1 test: oldGrabberItem->touchUngrabEvent(); Executed by:- tst_multipointtoucharea_interop
| 4 |
218 | | - |
219 | | - |
220 | m_exclusiveGrabber = QPointer<QObject>(grabber); | - |
221 | m_grabberIsHandler = true; | - |
222 | m_sceneGrabPos = m_scenePos; | - |
223 | }executed 264 times by 5 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 264 |
224 | }executed 290 times by 5 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
else { | 290 |
225 | if (!grabberTRUE | never evaluated | FALSE | evaluated 182 times by 4 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
|
) { | 0-182 |
226 | QMessageLogger(__FILE__, 925, __PRETTY_FUNCTION__).debug() << "can't set passive grabber to null"; | - |
227 | return; never executed: return; | 0 |
228 | } | - |
229 | auto ptr = QPointer<QQuickPointerHandler>(grabber); | - |
230 | if (!m_passiveGrabbers.contains(ptr)TRUE | evaluated 182 times by 4 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
| FALSE | never evaluated |
) { | 0-182 |
231 | m_passiveGrabbers.append(ptr); | - |
232 | grabber->onGrabChanged(grabber, GrabPassive, this); | - |
233 | }executed 182 times by 4 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
| 182 |
234 | }executed 182 times by 4 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
| 182 |
235 | } | - |
236 | | - |
237 | | - |
238 | | - |
239 | | - |
240 | | - |
241 | | - |
242 | void QQuickEventPoint::cancelExclusiveGrab() | - |
243 | { | - |
244 | if (m_exclusiveGrabber.isNull()TRUE | never evaluated | FALSE | evaluated 12 times by 1 testEvaluated by:- tst_multipointtoucharea_interop
|
) | 0-12 |
245 | QMessageLogger(__FILE__, 944, __PRETTY_FUNCTION__).warning("cancelGrab: no grabber"); never executed: QMessageLogger(__FILE__, 944, __PRETTY_FUNCTION__).warning("cancelGrab: no grabber"); | 0 |
246 | else | - |
247 | cancelExclusiveGrabImpl();executed 12 times by 1 test: cancelExclusiveGrabImpl(); Executed by:- tst_multipointtoucharea_interop
| 12 |
248 | } | - |
249 | | - |
250 | void QQuickEventPoint::cancelExclusiveGrabImpl(QTouchEvent *cancelEvent) | - |
251 | { | - |
252 | if (m_exclusiveGrabber.isNull()TRUE | never evaluated | FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickpincharea
|
) | 0-16 |
253 | return; never executed: return; | 0 |
254 | if (__builtin_expect(!!(lcPointerGrab().isDebugEnabled()), false)TRUE | never evaluated | FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickpincharea
|
) { | 0-16 |
255 | for (bool qt_category_enabled = lcPointerGrab().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 954, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this)never executed: QMessageLogger(__FILE__, 954, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (exclusive)" << m_exclusiveGrabber << "-> nullptr"; | 0 |
256 | << ": grab (exclusive)" << m_exclusiveGrabber << "-> nullptr"; never executed: QMessageLogger(__FILE__, 954, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (exclusive)" << m_exclusiveGrabber << "-> nullptr"; | 0 |
257 | } never executed: end of block | 0 |
258 | if (auto handler = grabberPointerHandler()TRUE | evaluated 12 times by 1 testEvaluated by:- tst_multipointtoucharea_interop
| FALSE | evaluated 4 times by 1 test |
) { | 4-12 |
259 | handler->onGrabChanged(handler, CancelGrabExclusive, this); | - |
260 | }executed 12 times by 1 test: end of block Executed by:- tst_multipointtoucharea_interop
else if (auto item = grabberItem()TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) { | 0-12 |
261 | if (cancelEventTRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
) | 0-4 |
262 | QCoreApplication::sendEvent(item, cancelEvent);executed 4 times by 1 test: QCoreApplication::sendEvent(item, cancelEvent); | 4 |
263 | else | - |
264 | item->touchUngrabEvent(); never executed: item->touchUngrabEvent(); | 0 |
265 | } | - |
266 | m_exclusiveGrabber.clear(); | - |
267 | }executed 16 times by 2 tests: end of block Executed by:- tst_multipointtoucharea_interop
- tst_qquickpincharea
| 16 |
268 | | - |
269 | | - |
270 | | - |
271 | | - |
272 | | - |
273 | | - |
274 | void QQuickEventPoint::cancelPassiveGrab(QQuickPointerHandler *handler) | - |
275 | { | - |
276 | if (removePassiveGrabber(handler)TRUE | evaluated 26 times by 2 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| FALSE | never evaluated |
) { | 0-26 |
277 | if (__builtin_expect(!!(lcPointerGrab().isDebugEnabled()), false)TRUE | never evaluated | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
|
) { | 0-26 |
278 | for (bool qt_category_enabled = lcPointerGrab().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | never evaluated |
; qt_category_enabled = false) QMessageLogger(__FILE__, 977, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this)never executed: QMessageLogger(__FILE__, 977, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (passive)" << handler << "removed"; | 0 |
279 | << ": grab (passive)" << handler << "removed"; never executed: QMessageLogger(__FILE__, 977, __PRETTY_FUNCTION__, lcPointerGrab().categoryName()).debug() << pointDeviceName(this) << "point" << hex << m_pointId << pointStateString(this) << ": grab (passive)" << handler << "removed"; | 0 |
280 | } never executed: end of block | 0 |
281 | handler->onGrabChanged(handler, CancelGrabPassive, this); | - |
282 | }executed 26 times by 2 tests: end of block Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 26 |
283 | }executed 26 times by 2 tests: end of block Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 26 |
284 | | - |
285 | | - |
286 | | - |
287 | | - |
288 | | - |
289 | bool QQuickEventPoint::removePassiveGrabber(QQuickPointerHandler *handler) | - |
290 | { | - |
291 | returnexecuted 26 times by 2 tests: return m_passiveGrabbers.removeOne(handler); Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
m_passiveGrabbers.removeOne(handler);executed 26 times by 2 tests: return m_passiveGrabbers.removeOne(handler); Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 26 |
292 | } | - |
293 | void QQuickEventPoint::cancelAllGrabs(QQuickPointerHandler *handler) | - |
294 | { | - |
295 | if (m_exclusiveGrabber == handlerTRUE | never evaluated | FALSE | evaluated 26 times by 2 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
|
) { | 0-26 |
296 | handler->onGrabChanged(handler, CancelGrabExclusive, this); | - |
297 | m_exclusiveGrabber.clear(); | - |
298 | } never executed: end of block | 0 |
299 | cancelPassiveGrab(handler); | - |
300 | }executed 26 times by 2 tests: end of block Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
| 26 |
301 | void QQuickEventPoint::setAccepted(bool accepted) | - |
302 | { | - |
303 | if (m_accept != acceptedTRUE | evaluated 10206 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 3858 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 3858-10206 |
304 | for (bool qt_category_enabled = lcPointerEvents().isDebugEnabled(); qt_category_enabledTRUE | never evaluated | FALSE | evaluated 10206 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
|
; qt_category_enabled = false) QMessageLogger(__FILE__, 1027, __PRETTY_FUNCTION__, lcPointerEvents().categoryName()).debug() << this << m_accept << "->" << accepted;never executed: QMessageLogger(__FILE__, 1027, __PRETTY_FUNCTION__, lcPointerEvents().categoryName()).debug() << this << m_accept << "->" << accepted; | 0-10206 |
305 | m_accept = accepted; | - |
306 | }executed 10206 times by 16 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 10206 |
307 | }executed 14064 times by 16 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 14064 |
308 | QQuickEventTouchPoint::QQuickEventTouchPoint(QQuickPointerTouchEvent *parent) | - |
309 | : QQuickEventPoint(parent), m_rotation(0), m_pressure(0) | - |
310 | {}executed 272 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 272 |
311 | | - |
312 | void QQuickEventTouchPoint::reset(const QTouchEvent::TouchPoint &tp, ulong timestamp) | - |
313 | { | - |
314 | QQuickEventPoint::reset(tp.state(), tp.scenePos(), tp.id(), timestamp, tp.velocity()); | - |
315 | m_exclusiveGrabber.clear(); | - |
316 | m_passiveGrabbers.clear(); | - |
317 | m_rotation = tp.rotation(); | - |
318 | m_pressure = tp.pressure(); | - |
319 | m_ellipseDiameters = tp.ellipseDiameters(); | - |
320 | m_uniqueId = tp.uniqueId(); | - |
321 | }executed 1938 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1938 |
322 | | - |
323 | struct PointVelocityData { | - |
324 | QVector2D velocity; | - |
325 | QPointF pos; | - |
326 | ulong timestamp; | - |
327 | }; | - |
328 | | - |
329 | typedef QMap<quint64, PointVelocityData*> PointDataForPointIdMap; | - |
330 | namespace { namespace Q_QGS_g_previousPointData { typedef PointDataForPointIdMap Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::InitializedTRUE | evaluated 36 times by 18 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 36 times by 18 tests: guard.store(QtGlobalStatic::Destroyed); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
}executed 36 times by 18 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 13218 times by 18 tests: return &holder.value; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
&holder.value;executed 13218 times by 18 tests: return &holder.value; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
} } } static QGlobalStatic<PointDataForPointIdMap, Q_QGS_g_previousPointData::innerFunction, Q_QGS_g_previousPointData::guard> g_previousPointData; | 0-13218 |
331 | static const int PointVelocityAgeLimit = 500; | - |
332 | | - |
333 | | - |
334 | | - |
335 | | - |
336 | | - |
337 | | - |
338 | QVector2D QQuickEventPoint::estimatedVelocity() const | - |
339 | { | - |
340 | PointVelocityData *prevPoint = g_previousPointData->value(m_pointId); | - |
341 | if (!prevPointTRUE | evaluated 294 times by 18 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| FALSE | evaluated 11798 times by 17 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 294-11798 |
342 | | - |
343 | auto end = g_previousPointData->end(); | - |
344 | for (auto it = g_previousPointData->begin(); it != endTRUE | evaluated 349 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 294 times by 18 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
|
; ) { | 294-349 |
345 | PointVelocityData *data = it.value(); | - |
346 | if (m_timestamp - data->timestamp > PointVelocityAgeLimitTRUE | evaluated 244 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 105 times by 6 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquicktaphandler
|
) { | 105-244 |
347 | it = g_previousPointData->erase(it); | - |
348 | delete data; | - |
349 | }executed 244 times by 8 tests: end of block Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
else { | 244 |
350 | ++it; | - |
351 | }executed 105 times by 6 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquicktaphandler
| 105 |
352 | } | - |
353 | | - |
354 | prevPoint = new PointVelocityData; | - |
355 | prevPoint->velocity = QVector2D(); | - |
356 | prevPoint->timestamp = 0; | - |
357 | prevPoint->pos = QPointF(); | - |
358 | g_previousPointData->insert(m_pointId, prevPoint); | - |
359 | }executed 294 times by 18 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 294 |
360 | const ulong timeElapsed = m_timestamp - prevPoint->timestamp; | - |
361 | if (timeElapsed == 0TRUE | evaluated 1040 times by 13 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| FALSE | evaluated 11052 times by 17 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
|
) | 1040-11052 |
362 | returnexecuted 1040 times by 13 tests: return m_velocity; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
m_velocity;executed 1040 times by 13 tests: return m_velocity; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 1040 |
363 | | - |
364 | QVector2D newVelocity; | - |
365 | if (prevPoint->timestamp != 0TRUE | evaluated 10740 times by 17 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| FALSE | evaluated 312 times by 17 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
|
) | 312-10740 |
366 | newVelocity = QVector2D(m_scenePos - prevPoint->pos)/timeElapsed;executed 10740 times by 17 tests: newVelocity = QVector2D(m_scenePos - prevPoint->pos)/timeElapsed; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 10740 |
367 | | - |
368 | | - |
369 | | - |
370 | static const float KalmanGain = 0.7f; | - |
371 | QVector2D filteredVelocity = newVelocity * KalmanGain + m_velocity * (1.0f - KalmanGain); | - |
372 | | - |
373 | prevPoint->velocity = filteredVelocity; | - |
374 | prevPoint->pos = m_scenePos; | - |
375 | prevPoint->timestamp = m_timestamp; | - |
376 | returnexecuted 11052 times by 17 tests: return filteredVelocity; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
filteredVelocity;executed 11052 times by 17 tests: return filteredVelocity; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 11052 |
377 | } | - |
378 | QQuickPointerEvent::~QQuickPointerEvent() | - |
379 | {} | - |
380 | | - |
381 | QQuickPointerEvent *QQuickPointerMouseEvent::reset(QEvent *event) | - |
382 | { | - |
383 | auto ev = static_cast<QMouseEvent*>(event); | - |
384 | m_event = ev; | - |
385 | if (!eventTRUE | evaluated 10144 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| FALSE | evaluated 10144 times by 16 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
|
) | 10144 |
386 | returnexecuted 10144 times by 16 tests: return this; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
this;executed 10144 times by 16 tests: return this; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 10144 |
387 | | - |
388 | m_device = QQuickPointerDevice::genericMouseDevice(); | - |
389 | m_device->eventDeliveryTargets().clear(); | - |
390 | m_button = ev->button(); | - |
391 | m_pressedButtons = ev->buttons(); | - |
392 | Qt::TouchPointState state = Qt::TouchPointStationary; | - |
393 | switch (ev->type()) { | - |
394 | caseexecuted 1798 times by 14 tests: case QEvent::MouseButtonPress: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
QEvent::MouseButtonPress:executed 1798 times by 14 tests: case QEvent::MouseButtonPress: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 1798 |
395 | m_point->clearPassiveGrabbers(); | - |
396 | (void)0; | - |
397 | caseexecuted 132 times by 3 tests: case QEvent::MouseButtonDblClick: Executed by:- tst_qquickmousearea
- tst_qquicktextedit
- tst_qquicktextinput
QEvent::MouseButtonDblClick:executed 132 times by 3 tests: case QEvent::MouseButtonDblClick: Executed by:- tst_qquickmousearea
- tst_qquicktextedit
- tst_qquicktextinput
code before this statement executed 1798 times by 14 tests: case QEvent::MouseButtonDblClick: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 132-1798 |
398 | state = Qt::TouchPointPressed; | - |
399 | break;executed 1930 times by 14 tests: break; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 1930 |
400 | caseexecuted 1786 times by 14 tests: case QEvent::MouseButtonRelease: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
QEvent::MouseButtonRelease:executed 1786 times by 14 tests: case QEvent::MouseButtonRelease: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 1786 |
401 | state = Qt::TouchPointReleased; | - |
402 | break;executed 1786 times by 14 tests: break; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 1786 |
403 | caseexecuted 6428 times by 16 tests: case QEvent::MouseMove: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
QEvent::MouseMove:executed 6428 times by 16 tests: case QEvent::MouseMove: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 6428 |
404 | state = Qt::TouchPointMoved; | - |
405 | break;executed 6428 times by 16 tests: break; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 6428 |
406 | default never executed: default: :never executed: default: | 0 |
407 | break; never executed: break; | 0 |
408 | } | - |
409 | m_point->reset(state, ev->windowPos(), quint64(1) << 24, ev->timestamp()); | - |
410 | returnexecuted 10144 times by 16 tests: return this; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
this;executed 10144 times by 16 tests: return this; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 10144 |
411 | } | - |
412 | | - |
413 | void QQuickSinglePointEvent::localize(QQuickItem *target) | - |
414 | { | - |
415 | m_point->localizePosition(target); | - |
416 | }executed 2493 times by 14 tests: end of block Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 2493 |
417 | | - |
418 | QQuickPointerEvent *QQuickPointerTouchEvent::reset(QEvent *event) | - |
419 | { | - |
420 | auto ev = static_cast<QTouchEvent*>(event); | - |
421 | m_event = ev; | - |
422 | if (!eventTRUE | evaluated 1220 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1220 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 1220 |
423 | returnexecuted 1220 times by 10 tests: return this; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
this;executed 1220 times by 10 tests: return this; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1220 |
424 | | - |
425 | m_device = QQuickPointerDevice::touchDevice(ev->device()); | - |
426 | m_device->eventDeliveryTargets().clear(); | - |
427 | m_button = Qt::NoButton; | - |
428 | m_pressedButtons = Qt::NoButton; | - |
429 | | - |
430 | const QList<QTouchEvent::TouchPoint> &tps = ev->touchPoints(); | - |
431 | int newPointCount = tps.count(); | - |
432 | m_touchPoints.reserve(newPointCount); | - |
433 | | - |
434 | for (int i = m_touchPoints.size(); i < newPointCountTRUE | evaluated 272 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1220 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) | 272-1220 |
435 | m_touchPoints.insert(i, new QQuickEventTouchPoint(this));executed 272 times by 10 tests: m_touchPoints.insert(i, new QQuickEventTouchPoint(this)); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 272 |
436 | | - |
437 | | - |
438 | struct ToPreserve { | - |
439 | int pointId; | - |
440 | ulong pressTimestamp; | - |
441 | QPointF scenePressPos; | - |
442 | QPointF sceneGrabPos; | - |
443 | QObject * grabber; | - |
444 | QVector <QPointer <QQuickPointerHandler> > passiveGrabbers; | - |
445 | | - |
446 | ToPreserve() : pointId(0), pressTimestamp(0), grabber(nullptr) {}executed 1938 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1938 |
447 | }; | - |
448 | QVector<ToPreserve> preserves(newPointCount); | - |
449 | | - |
450 | | - |
451 | | - |
452 | for (int i = 0; i < newPointCountTRUE | evaluated 1938 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1220 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 1220-1938 |
453 | int pid = tps.at(i).id(); | - |
454 | if (auto point = pointById(pid)TRUE | evaluated 1656 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 282 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) { | 282-1656 |
455 | preserves[i].pointId = pid; | - |
456 | preserves[i].pressTimestamp = point->m_pressTimestamp; | - |
457 | preserves[i].scenePressPos = point->scenePressPosition(); | - |
458 | preserves[i].sceneGrabPos = point->sceneGrabPosition(); | - |
459 | preserves[i].grabber = point->exclusiveGrabber(); | - |
460 | preserves[i].passiveGrabbers = point->passiveGrabbers(); | - |
461 | }executed 1656 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1656 |
462 | }executed 1938 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1938 |
463 | | - |
464 | for (int i = 0; i < newPointCountTRUE | evaluated 1938 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1220 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 1220-1938 |
465 | auto point = m_touchPoints.at(i); | - |
466 | point->reset(tps.at(i), ev->timestamp()); | - |
467 | const auto &preserved = preserves.at(i); | - |
468 | if (point->state() == QQuickEventPoint::PressedTRUE | evaluated 358 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1580 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) { | 358-1580 |
469 | if (preserved.grabberTRUE | never evaluated | FALSE | evaluated 358 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 0-358 |
470 | QMessageLogger(__FILE__, 1374, __PRETTY_FUNCTION__).warning() << "TouchPointPressed without previous release event" << point; never executed: QMessageLogger(__FILE__, 1374, __PRETTY_FUNCTION__).warning() << "TouchPointPressed without previous release event" << point; | 0 |
471 | point->setGrabberItem(nullptr); | - |
472 | point->clearPassiveGrabbers(); | - |
473 | }executed 358 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
else { | 358 |
474 | | - |
475 | ((preserved.pointId == 0 || preserved.pointId == point->pointId()) ? static_cast<void>(0) : qt_assert("preserved.pointId == 0 || preserved.pointId == point->pointId()", __FILE__, 1379)); | - |
476 | point->m_pressTimestamp = preserved.pressTimestamp; | - |
477 | point->m_scenePressPos = preserved.scenePressPos; | - |
478 | point->m_sceneGrabPos = preserved.sceneGrabPos; | - |
479 | point->m_exclusiveGrabber = preserved.grabber; | - |
480 | point->m_grabberIsHandler = (qmlobject_cast<QQuickPointerHandler *>(point->m_exclusiveGrabber) != nullptr); | - |
481 | point->m_passiveGrabbers = preserved.passiveGrabbers; | - |
482 | }executed 1580 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1580 |
483 | } | - |
484 | m_pointCount = newPointCount; | - |
485 | returnexecuted 1220 times by 10 tests: return this; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
this;executed 1220 times by 10 tests: return this; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1220 |
486 | } | - |
487 | | - |
488 | void QQuickPointerTouchEvent::localize(QQuickItem *target) | - |
489 | { | - |
490 | for (auto point : qAsConst(m_touchPoints)) | - |
491 | point->localizePosition(target);executed 11545 times by 10 tests: point->localizePosition(target); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 11545 |
492 | }executed 6155 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 6155 |
493 | | - |
494 | | - |
495 | QQuickPointerEvent *QQuickPointerNativeGestureEvent::reset(QEvent *event) | - |
496 | { | - |
497 | auto ev = static_cast<QNativeGestureEvent*>(event); | - |
498 | m_event = ev; | - |
499 | if (!eventTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
500 | return never executed: return this; this;never executed: return this; | 0 |
501 | | - |
502 | m_device = QQuickPointerDevice::touchDevice(ev->device()); | - |
503 | m_device->eventDeliveryTargets().clear(); | - |
504 | Qt::TouchPointState state = Qt::TouchPointMoved; | - |
505 | switch (type()) { | - |
506 | case never executed: case Qt::BeginNativeGesture: Qt::BeginNativeGesture:never executed: case Qt::BeginNativeGesture: | 0 |
507 | state = Qt::TouchPointPressed; | - |
508 | break; never executed: break; | 0 |
509 | case never executed: case Qt::EndNativeGesture: Qt::EndNativeGesture:never executed: case Qt::EndNativeGesture: | 0 |
510 | state = Qt::TouchPointReleased; | - |
511 | break; never executed: break; | 0 |
512 | default never executed: default: :never executed: default: | 0 |
513 | break; never executed: break; | 0 |
514 | } | - |
515 | quint64 deviceId = QTouchDevicePrivate::get(const_cast<QTouchDevice *>(ev->device()))->id; | - |
516 | m_point->reset(state, ev->windowPos(), deviceId << 24, ev->timestamp()); | - |
517 | return never executed: return this; this;never executed: return this; | 0 |
518 | } | - |
519 | | - |
520 | | - |
521 | QQuickEventPoint *QQuickSinglePointEvent::point(int i) const | - |
522 | { | - |
523 | if (i == 0TRUE | evaluated 67397 times by 17 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| FALSE | never evaluated |
) | 0-67397 |
524 | returnexecuted 67397 times by 17 tests: return m_point; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
m_point;executed 67397 times by 17 tests: return m_point; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 67397 |
525 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
526 | } | - |
527 | | - |
528 | QQuickPointerEvent *QQuickPointerScrollEvent::reset(QEvent *event) | - |
529 | { | - |
530 | m_event = static_cast<QInputEvent*>(event); | - |
531 | if (!eventTRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qquickitem
- tst_qquickmousearea
| FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_qquickitem
- tst_qquickmousearea
|
) | 10 |
532 | returnexecuted 10 times by 2 tests: return this; Executed by:- tst_qquickitem
- tst_qquickmousearea
this;executed 10 times by 2 tests: return this; Executed by:- tst_qquickitem
- tst_qquickmousearea
| 10 |
533 | | - |
534 | if (event->type() == QEvent::WheelTRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qquickitem
- tst_qquickmousearea
| FALSE | never evaluated |
) { | 0-10 |
535 | auto ev = static_cast<QWheelEvent*>(event); | - |
536 | m_device = QQuickPointerDevice::genericMouseDevice(); | - |
537 | m_device->eventDeliveryTargets().clear(); | - |
538 | | - |
539 | m_pressedButtons = ev->buttons(); | - |
540 | m_angleDelta = QVector2D(ev->angleDelta()); | - |
541 | m_pixelDelta = QVector2D(ev->pixelDelta()); | - |
542 | m_phase = ev->phase(); | - |
543 | m_synthSource = ev->source(); | - |
544 | m_inverted = ev->inverted(); | - |
545 | | - |
546 | m_point->reset(Qt::TouchPointMoved, ev->posF(), quint64(1) << 24, ev->timestamp()); | - |
547 | }executed 10 times by 2 tests: end of block Executed by:- tst_qquickitem
- tst_qquickmousearea
| 10 |
548 | | - |
549 | | - |
550 | returnexecuted 10 times by 2 tests: return this; Executed by:- tst_qquickitem
- tst_qquickmousearea
this;executed 10 times by 2 tests: return this; Executed by:- tst_qquickitem
- tst_qquickmousearea
| 10 |
551 | } | - |
552 | | - |
553 | void QQuickPointerScrollEvent::localize(QQuickItem *target) | - |
554 | { | - |
555 | m_point->localizePosition(target); | - |
556 | }executed 10 times by 2 tests: end of block Executed by:- tst_qquickitem
- tst_qquickmousearea
| 10 |
557 | | - |
558 | QQuickEventPoint *QQuickPointerTouchEvent::point(int i) const | - |
559 | { | - |
560 | if (i >= 0TRUE | evaluated 17254 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | never evaluated |
&& i < m_pointCountTRUE | evaluated 17254 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | never evaluated |
) | 0-17254 |
561 | returnexecuted 17254 times by 10 tests: return m_touchPoints.at(i); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
m_touchPoints.at(i);executed 17254 times by 10 tests: return m_touchPoints.at(i); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 17254 |
562 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
563 | } | - |
564 | | - |
565 | QQuickEventPoint::QQuickEventPoint(QQuickPointerEvent *parent) | - |
566 | : QObject(parent), m_pointId(0), m_exclusiveGrabber(nullptr), m_timestamp(0), m_pressTimestamp(0), | - |
567 | m_state(QQuickEventPoint::Released), m_accept(false), m_grabberIsHandler(false) | - |
568 | { | - |
569 | (void)m_reserved;; | - |
570 | }executed 808 times by 18 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 808 |
571 | | - |
572 | QQuickPointerEvent *QQuickEventPoint::pointerEvent() const | - |
573 | { | - |
574 | returnexecuted 2017 times by 4 tests: return static_cast<QQuickPointerEvent *>(parent()); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
static_cast<QQuickPointerEvent *>(parent());executed 2017 times by 4 tests: return static_cast<QQuickPointerEvent *>(parent()); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
| 2017 |
575 | } | - |
576 | | - |
577 | bool QQuickSinglePointEvent::allPointsAccepted() const | - |
578 | { | - |
579 | returnexecuted 8218 times by 14 tests: return m_point->isAccepted(); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
m_point->isAccepted();executed 8218 times by 14 tests: return m_point->isAccepted(); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 8218 |
580 | } | - |
581 | | - |
582 | bool QQuickSinglePointEvent::allUpdatedPointsAccepted() const | - |
583 | { | - |
584 | return never executed: return m_point->state() == QQuickEventPoint::Pressed || m_point->isAccepted(); m_point->state() == QQuickEventPoint::Pressed || m_point->isAccepted();never executed: return m_point->state() == QQuickEventPoint::Pressed || m_point->isAccepted(); | 0 |
585 | } | - |
586 | | - |
587 | bool QQuickSinglePointEvent::allPointsGrabbed() const | - |
588 | { | - |
589 | returnexecuted 1784 times by 16 tests: return m_point->exclusiveGrabber() != nullptr; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
m_point->exclusiveGrabber() != nullptr;executed 1784 times by 16 tests: return m_point->exclusiveGrabber() != nullptr; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 1784 |
590 | } | - |
591 | | - |
592 | QMouseEvent *QQuickPointerMouseEvent::asMouseEvent(const QPointF &localPos) const | - |
593 | { | - |
594 | auto event = static_cast<QMouseEvent *>(m_event); | - |
595 | event->setLocalPos(localPos); | - |
596 | returnexecuted 9770 times by 14 tests: return event; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
event;executed 9770 times by 14 tests: return event; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 9770 |
597 | } | - |
598 | | - |
599 | | - |
600 | | - |
601 | | - |
602 | QVector<QObject *> QQuickSinglePointEvent::exclusiveGrabbers() const | - |
603 | { | - |
604 | QVector<QObject *> result; | - |
605 | if (QObject *grabber = m_point->exclusiveGrabber()TRUE | never evaluated | FALSE | never evaluated |
) | 0 |
606 | result << grabber; never executed: result << grabber; | 0 |
607 | return never executed: return result; result;never executed: return result; | 0 |
608 | } | - |
609 | | - |
610 | | - |
611 | | - |
612 | | - |
613 | void QQuickSinglePointEvent::clearGrabbers() const | - |
614 | { | - |
615 | m_point->setGrabberItem(nullptr); | - |
616 | m_point->clearPassiveGrabbers(); | - |
617 | }executed 1706 times by 14 tests: end of block Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 1706 |
618 | | - |
619 | | - |
620 | | - |
621 | | - |
622 | bool QQuickSinglePointEvent::hasExclusiveGrabber(const QQuickPointerHandler *handler) const | - |
623 | { | - |
624 | returnexecuted 124 times by 4 tests: return handler && (m_point->exclusiveGrabber() == handler); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
handler && (m_point->exclusiveGrabber() == handler);executed 124 times by 4 tests: return handler && (m_point->exclusiveGrabber() == handler); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 124 |
625 | } | - |
626 | | - |
627 | bool QQuickPointerMouseEvent::isPressEvent() const | - |
628 | { | - |
629 | auto me = static_cast<QMouseEvent*>(m_event); | - |
630 | returnexecuted 5686 times by 16 tests: return ((me->type() == QEvent::MouseButtonPress || me->type() == QEvent::MouseButtonDblClick) && (me->buttons() & me->button()) == me->buttons()); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
((me->type() == QEvent::MouseButtonPress || me->type() == QEvent::MouseButtonDblClick) &&executed 5686 times by 16 tests: return ((me->type() == QEvent::MouseButtonPress || me->type() == QEvent::MouseButtonDblClick) && (me->buttons() & me->button()) == me->buttons()); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 5686 |
631 | (me->buttons() & me->button()) == me->buttons());executed 5686 times by 16 tests: return ((me->type() == QEvent::MouseButtonPress || me->type() == QEvent::MouseButtonDblClick) && (me->buttons() & me->button()) == me->buttons()); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 5686 |
632 | } | - |
633 | | - |
634 | bool QQuickPointerMouseEvent::isDoubleClickEvent() const | - |
635 | { | - |
636 | auto me = static_cast<QMouseEvent*>(m_event); | - |
637 | returnexecuted 2245 times by 14 tests: return (me->type() == QEvent::MouseButtonDblClick); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
(me->type() == QEvent::MouseButtonDblClick);executed 2245 times by 14 tests: return (me->type() == QEvent::MouseButtonDblClick); Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktextedit
- tst_qquicktextinput
| 2245 |
638 | } | - |
639 | | - |
640 | bool QQuickPointerMouseEvent::isUpdateEvent() const | - |
641 | { | - |
642 | auto me = static_cast<QMouseEvent*>(m_event); | - |
643 | return never executed: return me->type() == QEvent::MouseMove; me->type() == QEvent::MouseMove;never executed: return me->type() == QEvent::MouseMove; | 0 |
644 | } | - |
645 | | - |
646 | bool QQuickPointerMouseEvent::isReleaseEvent() const | - |
647 | { | - |
648 | auto me = static_cast<QMouseEvent*>(m_event); | - |
649 | returnexecuted 12139 times by 16 tests: return me && me->type() == QEvent::MouseButtonRelease; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
me && me->type() == QEvent::MouseButtonRelease;executed 12139 times by 16 tests: return me && me->type() == QEvent::MouseButtonRelease; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpointerhandler
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickwidget
| 12139 |
650 | } | - |
651 | | - |
652 | bool QQuickPointerTouchEvent::allPointsAccepted() const | - |
653 | { | - |
654 | for (int i = 0; i < m_pointCountTRUE | evaluated 6174 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1773 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 1773-6174 |
655 | if (!m_touchPoints.at(i)->isAccepted()TRUE | evaluated 3145 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 3029 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 3029-3145 |
656 | returnexecuted 3145 times by 10 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
false;executed 3145 times by 10 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 3145 |
657 | }executed 3029 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 3029 |
658 | returnexecuted 1773 times by 10 tests: return true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
true;executed 1773 times by 10 tests: return true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1773 |
659 | } | - |
660 | | - |
661 | bool QQuickPointerTouchEvent::allUpdatedPointsAccepted() const | - |
662 | { | - |
663 | for (int i = 0; i < m_pointCountTRUE | evaluated 1344 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 264 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 264-1344 |
664 | auto point = m_touchPoints.at(i); | - |
665 | if (point->state() != QQuickEventPoint::PressedTRUE | evaluated 1028 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 316 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& !point->isAccepted()TRUE | evaluated 956 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 72 times by 4 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
|
) | 72-1028 |
666 | returnexecuted 956 times by 10 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
false;executed 956 times by 10 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 956 |
667 | }executed 388 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 388 |
668 | returnexecuted 264 times by 10 tests: return true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
true;executed 264 times by 10 tests: return true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 264 |
669 | } | - |
670 | | - |
671 | bool QQuickPointerTouchEvent::allPointsGrabbed() const | - |
672 | { | - |
673 | for (int i = 0; i < m_pointCountTRUE | evaluated 3990 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 630 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 630-3990 |
674 | if (!m_touchPoints.at(i)->exclusiveGrabber()TRUE | evaluated 2866 times by 9 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1124 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 1124-2866 |
675 | returnexecuted 2866 times by 9 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
false;executed 2866 times by 9 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 2866 |
676 | }executed 1124 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1124 |
677 | returnexecuted 630 times by 10 tests: return true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
true;executed 630 times by 10 tests: return true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 630 |
678 | } | - |
679 | | - |
680 | | - |
681 | | - |
682 | | - |
683 | QVector<QObject *> QQuickPointerTouchEvent::exclusiveGrabbers() const | - |
684 | { | - |
685 | QVector<QObject *> result; | - |
686 | for (int i = 0; i < m_pointCountTRUE | evaluated 2116 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1312 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 1312-2116 |
687 | if (QObject *grabber = m_touchPoints.at(i)->exclusiveGrabber()TRUE | evaluated 1336 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 780 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) { | 780-1336 |
688 | if (!result.contains(grabber)TRUE | evaluated 1048 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 288 times by 3 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
|
) | 288-1048 |
689 | result << grabber;executed 1048 times by 10 tests: result << grabber; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1048 |
690 | }executed 1336 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1336 |
691 | }executed 2116 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 2116 |
692 | returnexecuted 1312 times by 10 tests: return result; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
result;executed 1312 times by 10 tests: return result; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1312 |
693 | } | - |
694 | | - |
695 | | - |
696 | | - |
697 | | - |
698 | | - |
699 | void QQuickPointerTouchEvent::clearGrabbers() const | - |
700 | { | - |
701 | for (auto point: m_touchPoints) { | - |
702 | point->setGrabberItem(nullptr); | - |
703 | point->clearPassiveGrabbers(); | - |
704 | }executed 304 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 304 |
705 | }executed 186 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 186 |
706 | | - |
707 | Qt::TouchPointStates QQuickPointerTouchEvent::touchPointStates() const | - |
708 | { | - |
709 | returnexecuted 4949 times by 10 tests: return m_event ? static_cast<QTouchEvent*>(m_event)->touchPointStates() : Qt::TouchPointStates(); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
m_eventexecuted 4949 times by 10 tests: return m_event ? static_cast<QTouchEvent*>(m_event)->touchPointStates() : Qt::TouchPointStates(); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 4949 |
710 | ? static_cast<QTouchEvent*>(m_event)->touchPointStates()executed 4949 times by 10 tests: return m_event ? static_cast<QTouchEvent*>(m_event)->touchPointStates() : Qt::TouchPointStates(); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 4949 |
711 | : Qt::TouchPointStates();executed 4949 times by 10 tests: return m_event ? static_cast<QTouchEvent*>(m_event)->touchPointStates() : Qt::TouchPointStates(); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 4949 |
712 | } | - |
713 | | - |
714 | | - |
715 | | - |
716 | | - |
717 | | - |
718 | bool QQuickPointerTouchEvent::hasExclusiveGrabber(const QQuickPointerHandler *handler) const | - |
719 | { | - |
720 | for (auto point: m_touchPoints) | - |
721 | if (point->exclusiveGrabber() == handlerTRUE | evaluated 58 times by 3 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
| FALSE | evaluated 2416 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 58-2416 |
722 | returnexecuted 58 times by 3 tests: return true; Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
true;executed 58 times by 3 tests: return true; Executed by:- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquicktaphandler
| 58 |
723 | returnexecuted 1370 times by 5 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
false;executed 1370 times by 5 tests: return false; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1370 |
724 | } | - |
725 | | - |
726 | bool QQuickPointerTouchEvent::isPressEvent() const | - |
727 | { | - |
728 | returnexecuted 1757 times by 10 tests: return touchPointStates() & Qt::TouchPointPressed; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
touchPointStates() & Qt::TouchPointPressed;executed 1757 times by 10 tests: return touchPointStates() & Qt::TouchPointPressed; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1757 |
729 | } | - |
730 | | - |
731 | bool QQuickPointerTouchEvent::isUpdateEvent() const | - |
732 | { | - |
733 | returnexecuted 204 times by 10 tests: return touchPointStates() & (Qt::TouchPointMoved | Qt::TouchPointStationary); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
touchPointStates() & (Qt::TouchPointMoved | Qt::TouchPointStationary);executed 204 times by 10 tests: return touchPointStates() & (Qt::TouchPointMoved | Qt::TouchPointStationary); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 204 |
734 | } | - |
735 | | - |
736 | bool QQuickPointerTouchEvent::isReleaseEvent() const | - |
737 | { | - |
738 | returnexecuted 2988 times by 10 tests: return touchPointStates() & Qt::TouchPointReleased; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
touchPointStates() & Qt::TouchPointReleased;executed 2988 times by 10 tests: return touchPointStates() & Qt::TouchPointReleased; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 2988 |
739 | } | - |
740 | | - |
741 | QVector<QPointF> QQuickPointerEvent::unacceptedPressedPointScenePositions() const | - |
742 | { | - |
743 | QVector<QPointF> points; | - |
744 | for (int i = 0; i < pointCount()TRUE | never evaluated | FALSE | never evaluated |
; ++i) { | 0 |
745 | if (!point(i)->isAccepted()TRUE | never evaluated | FALSE | never evaluated |
&& point(i)->state() == QQuickEventPoint::PressedTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
746 | points << point(i)->scenePosition(); never executed: points << point(i)->scenePosition(); | 0 |
747 | } never executed: end of block | 0 |
748 | return never executed: return points; points;never executed: return points; | 0 |
749 | } | - |
750 | QMouseEvent *QQuickPointerTouchEvent::syntheticMouseEvent(int pointID, QQuickItem *relativeTo) const | - |
751 | { | - |
752 | const QTouchEvent::TouchPoint *p = touchPointById(pointID); | - |
753 | if (!pTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
754 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
755 | QEvent::Type type; | - |
756 | Qt::MouseButton buttons = Qt::LeftButton; | - |
757 | switch (p->state()) { | - |
758 | case never executed: case Qt::TouchPointPressed: Qt::TouchPointPressed:never executed: case Qt::TouchPointPressed: | 0 |
759 | type = QEvent::MouseButtonPress; | - |
760 | break; never executed: break; | 0 |
761 | case never executed: case Qt::TouchPointMoved: Qt::TouchPointMoved:never executed: case Qt::TouchPointMoved: | 0 |
762 | case never executed: case Qt::TouchPointStationary: Qt::TouchPointStationary:never executed: case Qt::TouchPointStationary: | 0 |
763 | type = QEvent::MouseMove; | - |
764 | break; never executed: break; | 0 |
765 | case never executed: case Qt::TouchPointReleased: Qt::TouchPointReleased:never executed: case Qt::TouchPointReleased: | 0 |
766 | type = QEvent::MouseButtonRelease; | - |
767 | buttons = Qt::NoButton; | - |
768 | break; never executed: break; | 0 |
769 | default never executed: default: :never executed: default: | 0 |
770 | ((false) ? static_cast<void>(0) : qt_assert("false", __FILE__, 1682)); | - |
771 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
772 | } | - |
773 | m_synthMouseEvent = QMouseEvent(type, relativeTo->mapFromScene(p->scenePos()), | - |
774 | p->scenePos(), p->screenPos(), Qt::LeftButton, buttons, m_event->modifiers()); | - |
775 | m_synthMouseEvent.setAccepted(true); | - |
776 | m_synthMouseEvent.setTimestamp(m_event->timestamp()); | - |
777 | | - |
778 | | - |
779 | | - |
780 | | - |
781 | | - |
782 | | - |
783 | | - |
784 | if (m_deviceTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
785 | QGuiApplicationPrivate::setMouseEventCapsAndVelocity(&m_synthMouseEvent, m_device->capabilities(), p->velocity()); never executed: QGuiApplicationPrivate::setMouseEventCapsAndVelocity(&m_synthMouseEvent, m_device->capabilities(), p->velocity()); | 0 |
786 | QGuiApplicationPrivate::setMouseEventSource(&m_synthMouseEvent, Qt::MouseEventSynthesizedByQt); | - |
787 | return never executed: return &m_synthMouseEvent; &m_synthMouseEvent;never executed: return &m_synthMouseEvent; | 0 |
788 | } | - |
789 | | - |
790 | | - |
791 | bool QQuickPointerNativeGestureEvent::isPressEvent() const | - |
792 | { | - |
793 | return never executed: return type() == Qt::BeginNativeGesture; type() == Qt::BeginNativeGesture;never executed: return type() == Qt::BeginNativeGesture; | 0 |
794 | } | - |
795 | | - |
796 | bool QQuickPointerNativeGestureEvent::isUpdateEvent() const | - |
797 | { | - |
798 | switch (type()) { | - |
799 | case never executed: case Qt::BeginNativeGesture: Qt::BeginNativeGesture:never executed: case Qt::BeginNativeGesture: | 0 |
800 | case never executed: case Qt::EndNativeGesture: Qt::EndNativeGesture:never executed: case Qt::EndNativeGesture: | 0 |
801 | return never executed: return false; false;never executed: return false; | 0 |
802 | default never executed: default: :never executed: default: | 0 |
803 | return never executed: return true; true;never executed: return true; | 0 |
804 | } | - |
805 | } | - |
806 | | - |
807 | bool QQuickPointerNativeGestureEvent::isReleaseEvent() const | - |
808 | { | - |
809 | return never executed: return type() == Qt::EndNativeGesture; type() == Qt::EndNativeGesture;never executed: return type() == Qt::EndNativeGesture; | 0 |
810 | } | - |
811 | | - |
812 | Qt::NativeGestureType QQuickPointerNativeGestureEvent::type() const | - |
813 | { | - |
814 | return never executed: return static_cast<QNativeGestureEvent *>(m_event)->gestureType(); static_cast<QNativeGestureEvent *>(m_event)->gestureType();never executed: return static_cast<QNativeGestureEvent *>(m_event)->gestureType(); | 0 |
815 | } | - |
816 | | - |
817 | qreal QQuickPointerNativeGestureEvent::value() const | - |
818 | { | - |
819 | return never executed: return static_cast<QNativeGestureEvent *>(m_event)->value(); static_cast<QNativeGestureEvent *>(m_event)->value();never executed: return static_cast<QNativeGestureEvent *>(m_event)->value(); | 0 |
820 | } | - |
821 | bool QQuickPointerScrollEvent::isPressEvent() const | - |
822 | { | - |
823 | return never executed: return phase() == Qt::ScrollBegin; phase() == Qt::ScrollBegin;never executed: return phase() == Qt::ScrollBegin; | 0 |
824 | } | - |
825 | | - |
826 | | - |
827 | | - |
828 | | - |
829 | | - |
830 | | - |
831 | | - |
832 | bool QQuickPointerScrollEvent::isUpdateEvent() const | - |
833 | { | - |
834 | return never executed: return phase() == Qt::ScrollUpdate || phase() == Qt::NoScrollPhase; phase() == Qt::ScrollUpdate || phase() == Qt::NoScrollPhase;never executed: return phase() == Qt::ScrollUpdate || phase() == Qt::NoScrollPhase; | 0 |
835 | } | - |
836 | | - |
837 | | - |
838 | | - |
839 | | - |
840 | | - |
841 | | - |
842 | | - |
843 | bool QQuickPointerScrollEvent::isReleaseEvent() const | - |
844 | { | - |
845 | return never executed: return phase() == Qt::ScrollEnd; phase() == Qt::ScrollEnd;never executed: return phase() == Qt::ScrollEnd; | 0 |
846 | } | - |
847 | QQuickEventPoint *QQuickSinglePointEvent::pointById(int pointId) const | - |
848 | { | - |
849 | if (m_pointTRUE | evaluated 246 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquicktaphandler
| FALSE | never evaluated |
&& pointId == m_point->pointId()TRUE | evaluated 246 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquicktaphandler
| FALSE | never evaluated |
) | 0-246 |
850 | returnexecuted 246 times by 3 tests: return m_point; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquicktaphandler
m_point;executed 246 times by 3 tests: return m_point; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquicktaphandler
| 246 |
851 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
852 | } | - |
853 | | - |
854 | QQuickEventPoint *QQuickPointerTouchEvent::pointById(int pointId) const | - |
855 | { | - |
856 | auto it = std::find_if(m_touchPoints.constBegin(), m_touchPoints.constEnd(), | - |
857 | [pointId](const QQuickEventTouchPoint *tp) { returnexecuted 7133 times by 10 tests: return tp->pointId() == pointId; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
tp->pointId() == pointId;executed 7133 times by 10 tests: return tp->pointId() == pointId; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
} ); | 7133 |
858 | if (it != m_touchPoints.constEnd()TRUE | evaluated 4637 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 282 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 282-4637 |
859 | returnexecuted 4637 times by 10 tests: return *it; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
*it;executed 4637 times by 10 tests: return *it; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 4637 |
860 | returnexecuted 282 times by 10 tests: return nullptr; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
nullptr;executed 282 times by 10 tests: return nullptr; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 282 |
861 | } | - |
862 | | - |
863 | | - |
864 | | - |
865 | | - |
866 | | - |
867 | | - |
868 | | - |
869 | const QTouchEvent::TouchPoint *QQuickPointerTouchEvent::touchPointById(int pointId) const | - |
870 | { | - |
871 | const QTouchEvent *ev = asTouchEvent(); | - |
872 | if (!evTRUE | never evaluated | FALSE | evaluated 1722 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 0-1722 |
873 | return never executed: return nullptr; nullptr;never executed: return nullptr; | 0 |
874 | const QList<QTouchEvent::TouchPoint> &tps = ev->touchPoints(); | - |
875 | auto it = std::find_if(tps.constBegin(), tps.constEnd(), | - |
876 | [pointId](QTouchEvent::TouchPoint const& tp) { returnexecuted 2472 times by 10 tests: return tp.id() == pointId; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
tp.id() == pointId;executed 2472 times by 10 tests: return tp.id() == pointId; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
} ); | 2472 |
877 | | - |
878 | returnexecuted 1722 times by 10 tests: return (it == tps.constEnd() ? nullptr : it.operator->()); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
(it == tps.constEnd() ? nullptr : it.operator->());executed 1722 times by 10 tests: return (it == tps.constEnd() ? nullptr : it.operator->()); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1722 |
879 | } | - |
880 | QTouchEvent *QQuickPointerTouchEvent::touchEventForItem(QQuickItem *item, bool isFiltering) const | - |
881 | { | - |
882 | QList<QTouchEvent::TouchPoint> touchPoints; | - |
883 | Qt::TouchPointStates eventStates; | - |
884 | | - |
885 | | - |
886 | | - |
887 | | - |
888 | bool anyPressOrReleaseInside = false; | - |
889 | bool anyGrabber = false; | - |
890 | QMatrix4x4 transformMatrix(QQuickItemPrivate::get(item)->windowToItemTransform()); | - |
891 | for (int i = 0; i < m_pointCountTRUE | evaluated 3403 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1991 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
; ++i) { | 1991-3403 |
892 | auto p = m_touchPoints.at(i); | - |
893 | if (p->isAccepted()TRUE | evaluated 1049 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 2354 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 1049-2354 |
894 | continue;executed 1049 times by 7 tests: continue; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1049 |
895 | | - |
896 | bool isGrabber = p->exclusiveGrabber() == item; | - |
897 | if (isGrabberTRUE | evaluated 922 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
| FALSE | evaluated 1432 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) | 922-1432 |
898 | anyGrabber = true;executed 922 times by 8 tests: anyGrabber = true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
| 922 |
899 | | - |
900 | bool isInside = item->contains(item->mapFromScene(p->scenePosition())); | - |
901 | bool hasAnotherGrabber = p->exclusiveGrabber()TRUE | evaluated 1486 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 868 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& p->exclusiveGrabber() != itemTRUE | evaluated 564 times by 6 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 922 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
|
; | 564-1486 |
902 | | - |
903 | | - |
904 | bool grabberIsChild = false; | - |
905 | auto parent = p->grabberItem(); | - |
906 | while (isFilteringTRUE | evaluated 640 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickmultipointtoucharea
| FALSE | evaluated 1768 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& parentTRUE | evaluated 214 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickmultipointtoucharea
| FALSE | evaluated 426 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickmultipointtoucharea
|
) { | 214-1768 |
907 | if (parent == itemTRUE | evaluated 160 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquickmultipointtoucharea
| FALSE | evaluated 54 times by 1 test |
) { | 54-160 |
908 | grabberIsChild = true; | - |
909 | break;executed 160 times by 2 tests: break; Executed by:- tst_qquickflickable
- tst_qquickmultipointtoucharea
| 160 |
910 | } | - |
911 | parent = parent->parentItem(); | - |
912 | }executed 54 times by 1 test: end of block | 54 |
913 | | - |
914 | bool filterRelevant = isFilteringTRUE | evaluated 586 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickmultipointtoucharea
| FALSE | evaluated 1768 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& grabberIsChildTRUE | evaluated 160 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquickmultipointtoucharea
| FALSE | evaluated 426 times by 3 testsEvaluated by:- tst_flickableinterop
- tst_qquickflickable
- tst_qquickmultipointtoucharea
|
; | 160-1768 |
915 | if (!(isGrabberTRUE | evaluated 922 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
| FALSE | evaluated 1432 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
|| (isInsideTRUE | evaluated 878 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 554 times by 6 testsEvaluated by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& (!hasAnotherGrabberTRUE | evaluated 650 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 228 times by 5 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickmultipointtoucharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
|| isFilteringTRUE | evaluated 150 times by 1 test | FALSE | evaluated 78 times by 4 testsEvaluated by:- tst_multipointtoucharea_interop
- tst_qquickmultipointtoucharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
)) || filterRelevantTRUE | never evaluated | FALSE | evaluated 632 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
)) | 0-1432 |
916 | continue;executed 632 times by 7 tests: continue; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 632 |
917 | if ((p->state() == QQuickEventPoint::PressedTRUE | evaluated 428 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1294 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
|| p->state() == QQuickEventPoint::ReleasedTRUE | evaluated 252 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1042 times by 9 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
) && isInsideTRUE | evaluated 674 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickmousearea
- tst_qquickpointerhandler
|
) | 6-1294 |
918 | anyPressOrReleaseInside = true;executed 674 times by 10 tests: anyPressOrReleaseInside = true; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 674 |
919 | const QTouchEvent::TouchPoint *tp = touchPointById(p->pointId()); | - |
920 | if (tpTRUE | evaluated 1722 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | never evaluated |
) { | 0-1722 |
921 | eventStates |= tp->state(); | - |
922 | QTouchEvent::TouchPoint tpCopy = *tp; | - |
923 | tpCopy.setPos(item->mapFromScene(tpCopy.scenePos())); | - |
924 | tpCopy.setLastPos(item->mapFromScene(tpCopy.lastScenePos())); | - |
925 | tpCopy.setStartPos(item->mapFromScene(tpCopy.startScenePos())); | - |
926 | tpCopy.setRect(item->mapRectFromScene(tpCopy.sceneRect())); | - |
927 | tpCopy.setVelocity(transformMatrix.mapVector(tpCopy.velocity()).toVector2D()); | - |
928 | touchPoints << tpCopy; | - |
929 | }executed 1722 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1722 |
930 | }executed 1722 times by 10 tests: end of block Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1722 |
931 | | - |
932 | | - |
933 | | - |
934 | if (eventStates == Qt::TouchPointStationaryTRUE | evaluated 74 times by 4 testsEvaluated by:- tst_flickableinterop
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquicktaphandler
| FALSE | evaluated 1917 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
|| touchPoints.isEmpty()TRUE | evaluated 701 times by 7 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| FALSE | evaluated 1216 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
|| (!anyPressOrReleaseInsideTRUE | evaluated 650 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
| FALSE | evaluated 566 times by 10 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
|
&& !anyGrabberTRUE | evaluated 242 times by 2 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
| FALSE | evaluated 408 times by 8 testsEvaluated by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
|
&& !isFilteringTRUE | evaluated 2 times by 1 testEvaluated by:- tst_multipointtoucharea_interop
| FALSE | evaluated 240 times by 1 test |
)) | 2-1917 |
935 | returnexecuted 777 times by 7 tests: return nullptr; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
nullptr;executed 777 times by 7 tests: return nullptr; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 777 |
936 | | - |
937 | | - |
938 | const QTouchEvent &event = *asTouchEvent(); | - |
939 | QEvent::Type eventType = event.type(); | - |
940 | switch (eventStates) { | - |
941 | caseexecuted 300 times by 9 tests: case Qt::TouchPointPressed: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
Qt::TouchPointPressed:executed 300 times by 9 tests: case Qt::TouchPointPressed: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 300 |
942 | eventType = QEvent::TouchBegin; | - |
943 | break;executed 300 times by 9 tests: break; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 300 |
944 | caseexecuted 178 times by 9 tests: case Qt::TouchPointReleased: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
Qt::TouchPointReleased:executed 178 times by 9 tests: case Qt::TouchPointReleased: Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 178 |
945 | eventType = QEvent::TouchEnd; | - |
946 | break;executed 178 times by 9 tests: break; Executed by:- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 178 |
947 | defaultexecuted 736 times by 8 tests: default: Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
:executed 736 times by 8 tests: default: Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
| 736 |
948 | eventType = QEvent::TouchUpdate; | - |
949 | break;executed 736 times by 8 tests: break; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
| 736 |
950 | } | - |
951 | | - |
952 | QTouchEvent *touchEvent = new QTouchEvent(eventType); | - |
953 | touchEvent->setWindow(event.window()); | - |
954 | touchEvent->setTarget(item); | - |
955 | touchEvent->setDevice(event.device()); | - |
956 | touchEvent->setModifiers(event.modifiers()); | - |
957 | touchEvent->setTouchPoints(touchPoints); | - |
958 | touchEvent->setTouchPointStates(eventStates); | - |
959 | touchEvent->setTimestamp(event.timestamp()); | - |
960 | touchEvent->accept(); | - |
961 | returnexecuted 1214 times by 10 tests: return touchEvent; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
touchEvent;executed 1214 times by 10 tests: return touchEvent; Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 1214 |
962 | } | - |
963 | | - |
964 | QTouchEvent *QQuickPointerTouchEvent::asTouchEvent() const | - |
965 | { | - |
966 | returnexecuted 2936 times by 10 tests: return static_cast<QTouchEvent *>(m_event); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
static_cast<QTouchEvent *>(m_event);executed 2936 times by 10 tests: return static_cast<QTouchEvent *>(m_event); Executed by:- tst_flickableinterop
- tst_multipointtoucharea_interop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem
- tst_qquickmousearea
- tst_qquickmultipointtoucharea
- tst_qquickpincharea
- tst_qquickpointerhandler
- tst_qquicktaphandler
| 2936 |
967 | } | - |
968 | | - |
969 | | - |
970 | | - |
971 | __attribute__((visibility("default"))) QDebug operator<<(QDebug dbg, const QQuickPointerDevice *dev) | - |
972 | { | - |
973 | QDebugStateSaver saver(dbg); | - |
974 | dbg.nospace(); | - |
975 | if (!devTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
976 | dbg << "QQuickPointerDevice(0)"; | - |
977 | return never executed: return dbg; dbg;never executed: return dbg; | 0 |
978 | } | - |
979 | dbg << "QQuickPointerDevice("<< dev->name() << ' '; | - |
980 | QtDebugUtils::formatQEnum(dbg, dev->type()); | - |
981 | dbg << ' '; | - |
982 | QtDebugUtils::formatQEnum(dbg, dev->pointerType()); | - |
983 | dbg << " caps:"; | - |
984 | QtDebugUtils::formatQFlags(dbg, dev->capabilities()); | - |
985 | if (dev->type() == QQuickPointerDevice::TouchScreenTRUE | never evaluated | FALSE | never evaluated |
|| | 0 |
986 | dev->type() == QQuickPointerDevice::TouchPadTRUE | never evaluated | FALSE | never evaluated |
) | 0 |
987 | dbg << " maxTouchPoints:" << dev->maximumTouchPoints(); never executed: dbg << " maxTouchPoints:" << dev->maximumTouchPoints(); | 0 |
988 | else | - |
989 | dbg << " buttonCount:" << dev->buttonCount(); never executed: dbg << " buttonCount:" << dev->buttonCount(); | 0 |
990 | dbg << ')'; | - |
991 | return never executed: return dbg; dbg;never executed: return dbg; | 0 |
992 | } | - |
993 | | - |
994 | __attribute__((visibility("default"))) QDebug operator<<(QDebug dbg, const QQuickPointerEvent *event) | - |
995 | { | - |
996 | QDebugStateSaver saver(dbg); | - |
997 | dbg.nospace(); | - |
998 | dbg << "QQuickPointerEvent("; | - |
999 | dbg << event->timestamp(); | - |
1000 | dbg << " dev:"; | - |
1001 | QtDebugUtils::formatQEnum(dbg, event->device()->type()); | - |
1002 | if (event->buttons() != Qt::NoButtonTRUE | never evaluated | FALSE | never evaluated |
) { | 0 |
1003 | dbg << " buttons:"; | - |
1004 | QtDebugUtils::formatQEnum(dbg, event->buttons()); | - |
1005 | } never executed: end of block | 0 |
1006 | dbg << " ["; | - |
1007 | int c = event->pointCount(); | - |
1008 | for (int i = 0; i < cTRUE | never evaluated | FALSE | never evaluated |
; ++i) | 0 |
1009 | dbg << event->point(i) << ' '; never executed: dbg << event->point(i) << ' '; | 0 |
1010 | dbg << "])"; | - |
1011 | return never executed: return dbg; dbg;never executed: return dbg; | 0 |
1012 | } | - |
1013 | | - |
1014 | __attribute__((visibility("default"))) QDebug operator<<(QDebug dbg, const QQuickEventPoint *event) | - |
1015 | { | - |
1016 | QDebugStateSaver saver(dbg); | - |
1017 | dbg.nospace(); | - |
1018 | dbg << "QQuickEventPoint(accepted:" << event->isAccepted() | - |
1019 | << " state:"; | - |
1020 | QtDebugUtils::formatQEnum(dbg, event->state()); | - |
1021 | dbg << " scenePos:" << event->scenePosition() << " id:" << hex << event->pointId() << dec | - |
1022 | << " timeHeld:" << event->timeHeld() << ')'; | - |
1023 | return never executed: return dbg; dbg;never executed: return dbg; | 0 |
1024 | } | - |
1025 | | - |
1026 | | - |
1027 | | - |
1028 | | - |
| | |