OpenCoverage

qquickwindow.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickwindow.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2018 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQuick module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qquickwindow.h"-
41#include "qquickwindow_p.h"-
42#include "qquickwindowattached_p.h"-
43-
44#include "qquickitem.h"-
45#include "qquickitem_p.h"-
46#include "qquickevents_p_p.h"-
47-
48#include <private/qquickdrag_p.h>-
49#include <private/qquickhoverhandler_p.h>-
50#include <private/qquickpointerhandler_p.h>-
51-
52#include <QtQuick/private/qsgrenderer_p.h>-
53#include <QtQuick/private/qsgtexture_p.h>-
54#include <private/qsgrenderloop_p.h>-
55#include <private/qquickrendercontrol_p.h>-
56#include <private/qquickanimatorcontroller_p.h>-
57#include <private/qquickprofiler_p.h>-
58-
59#include <private/qguiapplication_p.h>-
60#include <QtGui/QInputMethod>-
61-
62#include <private/qabstractanimation_p.h>-
63-
64#include <QtGui/qpainter.h>-
65#include <QtGui/qevent.h>-
66#include <QtGui/qmatrix4x4.h>-
67#include <QtCore/qvarlengtharray.h>-
68#include <QtCore/qabstractanimation.h>-
69#include <QtCore/QLibraryInfo>-
70#include <QtCore/QRunnable>-
71#include <QtQml/qqmlincubator.h>-
72-
73#include <QtQuick/private/qquickpixmapcache_p.h>-
74-
75#include <private/qqmlmemoryprofiler_p.h>-
76#include <private/qqmldebugserviceinterfaces_p.h>-
77#include <private/qqmldebugconnector_p.h>-
78#if QT_CONFIG(opengl)-
79# include <private/qopenglvertexarrayobject_p.h>-
80# include <private/qsgdefaultrendercontext_p.h>-
81#endif-
82#ifndef QT_NO_DEBUG_STREAM-
83#include <private/qdebug_p.h>-
84#endif-
85-
86QT_BEGIN_NAMESPACE-
87-
88Q_LOGGING_CATEGORY(DBG_TOUCH, "qt.quick.touch")
executed 3630 times by 10 tests: return category;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
3630
89Q_LOGGING_CATEGORY(DBG_TOUCH_TARGET, "qt.quick.touch.target")
executed 461 times by 10 tests: return category;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
461
90Q_LOGGING_CATEGORY(DBG_MOUSE, "qt.quick.mouse")
executed 10305 times by 16 tests: return category;
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
10305
91Q_LOGGING_CATEGORY(DBG_MOUSE_TARGET, "qt.quick.mouse.target")
executed 1852 times by 13 tests: return category;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1852
92Q_LOGGING_CATEGORY(lcWheelTarget, "qt.quick.wheel.target")
executed 4 times by 2 tests: return category;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
4
93Q_LOGGING_CATEGORY(lcGestureTarget, "qt.quick.gesture.target")
never executed: return category;
0
94Q_LOGGING_CATEGORY(DBG_HOVER_TRACE, "qt.quick.hover.trace")
executed 2375020 times by 42 tests: return category;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
2375020
95Q_LOGGING_CATEGORY(DBG_FOCUS, "qt.quick.focus")
executed 47249 times by 22 tests: return category;
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
47249
96Q_LOGGING_CATEGORY(DBG_DIRTY, "qt.quick.dirty")
executed 599283 times by 76 tests: return category;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
599283
97Q_LOGGING_CATEGORY(lcTransient, "qt.quick.window.transient")
executed 24 times by 3 tests: return category;
Executed by:
  • tst_qqmlcomponent
  • tst_qquickloader
  • tst_qquickmousearea
24
98-
99extern Q_GUI_EXPORT QImage qt_gl_read_framebuffer(const QSize &size, bool alpha_format, bool include_alpha);-
100-
101bool QQuickWindowPrivate::defaultAlphaBuffer = false;-
102-
103#if defined(QT_QUICK_DEFAULT_TEXT_RENDER_TYPE)-
104QQuickWindow::TextRenderType QQuickWindowPrivate::textRenderType = QQuickWindow::QT_QUICK_DEFAULT_TEXT_RENDER_TYPE;-
105#else-
106QQuickWindow::TextRenderType QQuickWindowPrivate::textRenderType = QQuickWindow::QtTextRendering;-
107#endif-
108-
109void QQuickWindowPrivate::updateFocusItemTransform()-
110{-
111#if QT_CONFIG(im)-
112 Q_Q(QQuickWindow);-
113 QQuickItem *focus = q->activeFocusItem();-
114 if (focus && QGuiApplication::focusObject() == focus) {
focusDescription
TRUEevaluated 3269 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
QGuiApplicatio...ect() == focusDescription
TRUEevaluated 3265 times by 17 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickaccessible
0-3269
115 QQuickItemPrivate *focusPrivate = QQuickItemPrivate::get(focus);-
116 QGuiApplication::inputMethod()->setInputItemTransform(focusPrivate->itemToWindowTransform());-
117 QGuiApplication::inputMethod()->setInputItemRectangle(QRectF(0, 0, focusPrivate->width, focusPrivate->height));-
118 focus->updateInputMethod(Qt::ImInputItemClipRectangle);-
119 }
executed 3265 times by 17 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
3265
120#endif-
121}
executed 3269 times by 18 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
3269
122-
123class QQuickWindowIncubationController : public QObject, public QQmlIncubationController-
124{-
125 Q_OBJECT-
126-
127public:-
128 QQuickWindowIncubationController(QSGRenderLoop *loop)-
129 : m_renderLoop(loop), m_timer(0)-
130 {-
131 // Allow incubation for 1/3 of a frame.-
132 m_incubation_time = qMax(1, int(1000 / QGuiApplication::primaryScreen()->refreshRate()) / 3);-
133-
134 QAnimationDriver *animationDriver = m_renderLoop->animationDriver();-
135 if (animationDriver) {
animationDriverDescription
TRUEnever evaluated
FALSEevaluated 3308 times by 84 tests
Evaluated by:
  • tst_drawingmodes
  • 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_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
0-3308
136 connect(animationDriver, SIGNAL(stopped()), this, SLOT(animationStopped()));-
137 connect(m_renderLoop, SIGNAL(timeToIncubate()), this, SLOT(incubate()));-
138 }
never executed: end of block
0
139 }
executed 3308 times by 84 tests: end of block
Executed by:
  • tst_drawingmodes
  • 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_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3308
140-
141protected:-
142 void timerEvent(QTimerEvent *) override-
143 {-
144 killTimer(m_timer);-
145 m_timer = 0;-
146 incubate();-
147 }
executed 1442 times by 6 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
1442
148-
149 void incubateAgain() {-
150 if (m_timer == 0) {
m_timer == 0Description
TRUEevaluated 1485 times by 7 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 1310 times by 6 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
1310-1485
151 // Wait for a while before processing the next batch. Using a-
152 // timer to avoid starvation of system events.-
153 m_timer = startTimer(m_incubation_time);-
154 }
executed 1485 times by 7 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
1485
155 }
executed 2795 times by 7 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2795
156-
157public slots:-
158 void incubate() {-
159 if (incubatingObjectCount()) {
incubatingObjectCount()Description
TRUEevaluated 949 times by 6 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
FALSEevaluated 493 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
493-949
160 if (m_renderLoop->interleaveIncubation()) {
m_renderLoop->...veIncubation()Description
TRUEnever evaluated
FALSEevaluated 949 times by 6 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
0-949
161 incubateFor(m_incubation_time);-
162 } else {
never executed: end of block
0
163 incubateFor(m_incubation_time * 2);-
164 if (incubatingObjectCount())
incubatingObjectCount()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquicklistview
FALSEevaluated 943 times by 6 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
6-943
165 incubateAgain();
executed 6 times by 2 tests: incubateAgain();
Executed by:
  • tst_qqmltypeloader
  • tst_qquicklistview
6
166 }
executed 949 times by 6 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
949
167 }-
168 }
executed 1442 times by 6 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
1442
169-
170 void animationStopped() { incubate(); }
never executed: end of block
0
171-
172protected:-
173 void incubatingObjectCountChanged(int count) override-
174 {-
175 if (count && !m_renderLoop->interleaveIncubation())
countDescription
TRUEevaluated 2789 times by 7 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEevaluated 2610 times by 7 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
!m_renderLoop-...veIncubation()Description
TRUEevaluated 2789 times by 7 tests
Evaluated by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
FALSEnever evaluated
0-2789
176 incubateAgain();
executed 2789 times by 7 tests: incubateAgain();
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
2789
177 }
executed 5399 times by 7 tests: end of block
Executed by:
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
5399
178-
179private:-
180 QSGRenderLoop *m_renderLoop;-
181 int m_incubation_time;-
182 int m_timer;-
183};-
184-
185#include "qquickwindow.moc"-
186#include "moc_qquickwindow_p.cpp"-
187-
188-
189#if QT_CONFIG(accessibility)-
190/*!-
191 Returns an accessibility interface for this window, or 0 if such an-
192 interface cannot be created.-
193*/-
194QAccessibleInterface *QQuickWindow::accessibleRoot() const-
195{-
196 return QAccessible::queryAccessibleInterface(const_cast<QQuickWindow*>(this));
executed 10 times by 1 test: return QAccessible::queryAccessibleInterface(const_cast<QQuickWindow*>(this));
Executed by:
  • tst_qquickaccessible
10
197}-
198#endif-
199-
200-
201/*-
202Focus behavior-
203==============-
204-
205Prior to being added to a valid window items can set and clear focus with no-
206effect. Only once items are added to a window (by way of having a parent set that-
207already belongs to a window) do the focus rules apply. Focus goes back to-
208having no effect if an item is removed from a window.-
209-
210When an item is moved into a new focus scope (either being added to a window-
211for the first time, or having its parent changed), if the focus scope already has-
212a scope focused item that takes precedence over the item being added. Otherwise,-
213the focus of the added tree is used. In the case of a tree of items being-
214added to a window for the first time, which may have a conflicted focus state (two-
215or more items in one scope having focus set), the same rule is applied item by item --
216thus the first item that has focus will get it (assuming the scope doesn't already-
217have a scope focused item), and the other items will have their focus cleared.-
218*/-
219-
220QQuickRootItem::QQuickRootItem()-
221{-
222}-
223-
224/*! \reimp */-
225void QQuickWindow::exposeEvent(QExposeEvent *)-
226{-
227 Q_D(QQuickWindow);-
228 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 8057 times by 79 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
FALSEnever evaluated
0-8057
229 d->windowManager->exposureChanged(this);
executed 8057 times by 79 tests: d->windowManager->exposureChanged(this);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
8057
230}
executed 8057 times by 79 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
8057
231-
232/*! \reimp */-
233void QQuickWindow::resizeEvent(QResizeEvent *ev)-
234{-
235 Q_D(QQuickWindow);-
236 if (d->contentItem)
d->contentItemDescription
TRUEevaluated 3935 times by 79 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
FALSEnever evaluated
0-3935
237 d->contentItem->setSize(ev->size());
executed 3935 times by 79 tests: d->contentItem->setSize(ev->size());
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
3935
238 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 3935 times by 79 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
FALSEnever evaluated
0-3935
239 d->windowManager->resize(this);
executed 3935 times by 79 tests: d->windowManager->resize(this);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
3935
240}
executed 3935 times by 79 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
3935
241-
242/*! \reimp */-
243void QQuickWindow::showEvent(QShowEvent *)-
244{-
245 Q_D(QQuickWindow);-
246 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 3968 times by 81 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
FALSEnever evaluated
0-3968
247 d->windowManager->show(this);
executed 3968 times by 81 tests: d->windowManager->show(this);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
3968
248}
executed 3968 times by 81 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • ...
3968
249-
250/*! \reimp */-
251void QQuickWindow::hideEvent(QHideEvent *)-
252{-
253 Q_D(QQuickWindow);-
254 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 162 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickitem
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_scenegraph
FALSEnever evaluated
0-162
255 d->windowManager->hide(this);
executed 162 times by 6 tests: d->windowManager->hide(this);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickitem
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_scenegraph
162
256}
executed 162 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickitem
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_scenegraph
162
257-
258/*! \reimp */-
259void QQuickWindow::focusOutEvent(QFocusEvent *ev)-
260{-
261 Q_D(QQuickWindow);-
262 if (d->contentItem)
d->contentItemDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
FALSEnever evaluated
0-20
263 d->contentItem->setFocus(false, ev->reason());
executed 20 times by 5 tests: d->contentItem->setFocus(false, ev->reason());
Executed by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20
264}
executed 20 times by 5 tests: end of block
Executed by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20
265-
266/*! \reimp */-
267void QQuickWindow::focusInEvent(QFocusEvent *ev)-
268{-
269 Q_D(QQuickWindow);-
270 if (d->contentItem)
d->contentItemDescription
TRUEevaluated 1078 times by 17 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-1078
271 d->contentItem->setFocus(true, ev->reason());
executed 1078 times by 17 tests: d->contentItem->setFocus(true, ev->reason());
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1078
272 d->updateFocusItemTransform();-
273}
executed 1078 times by 17 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1078
274-
275#if QT_CONFIG(im)-
276static bool transformDirtyOnItemOrAncestor(const QQuickItem *item)-
277{-
278 while (item) {
itemDescription
TRUEevaluated 585 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 224 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
224-585
279 if (QQuickItemPrivate::get(item)->dirtyAttributes & (
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
280 QQuickItemPrivate::TransformOrigin |
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
281 QQuickItemPrivate::Transform |
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
282 QQuickItemPrivate::BasicTransform |
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
283 QQuickItemPrivate::Position |
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
284 QQuickItemPrivate::Size |
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
285 QQuickItemPrivate::ParentChanged |
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
286 QQuickItemPrivate::Clip)) {
QQuickItemPriv...Private::Clip)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 558 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
27-558
287 return true;
executed 27 times by 2 tests: return true;
Executed by:
  • tst_qquicktextedit
  • tst_qquicktextinput
27
288 }-
289 item = item->parentItem();-
290 }
executed 558 times by 5 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
558
291 return false;
executed 224 times by 5 tests: return false;
Executed by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
224
292}-
293#endif-
294-
295void QQuickWindowPrivate::polishItems()-
296{-
297 // An item can trigger polish on another item, or itself for that matter,-
298 // during its updatePolish() call. Because of this, we cannot simply-
299 // iterate through the set, we must continue pulling items out until it-
300 // is empty.-
301 // In the case where polish is called from updatePolish() either directly-
302 // or indirectly, we use a recursionSafeguard to print a warning to-
303 // the user.-
304 int recursionSafeguard = INT_MAX;-
305 while (!itemsToPolish.isEmpty() && --recursionSafeguard > 0) {
!itemsToPolish.isEmpty()Description
TRUEevaluated 331969 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickshape
  • ...
FALSEevaluated 50619 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
--recursionSafeguard > 0Description
TRUEevaluated 331969 times by 35 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickshape
  • ...
FALSEnever evaluated
0-331969
306 QQuickItem *item = itemsToPolish.takeLast();-
307 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
308 itemPrivate->polishScheduled = false;-
309 itemPrivate->updatePolish();-
310 item->updatePolish();-
311 }
executed 331969 times by 35 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickshape
  • ...
331969
312-
313 if (recursionSafeguard == 0)
recursionSafeguard == 0Description
TRUEnever evaluated
FALSEevaluated 50619 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-50619
314 qWarning("QQuickWindow: possible QQuickItem::polish() loop");
never executed: QMessageLogger(__FILE__, 314, __PRETTY_FUNCTION__).warning("QQuickWindow: possible QQuickItem::polish() loop");
0
315-
316#if QT_CONFIG(im)-
317 if (QQuickItem *focusItem = q_func()->activeFocusItem()) {
QQuickItem *fo...iveFocusItem()Description
TRUEevaluated 6548 times by 15 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 44071 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
6548-44071
318 // If the current focus item, or any of its anchestors, has changed location-
319 // inside the window, we need inform IM about it. This to ensure that overlays-
320 // such as selection handles will be updated.-
321 const bool isActiveFocusItem = (focusItem == QGuiApplication::focusObject());-
322 const bool hasImEnabled = focusItem->inputMethodQuery(Qt::ImEnabled).toBool();-
323 if (isActiveFocusItem && hasImEnabled && transformDirtyOnItemOrAncestor(focusItem))
isActiveFocusItemDescription
TRUEevaluated 6548 times by 15 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
hasImEnabledDescription
TRUEevaluated 251 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 6297 times by 15 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
transformDirty...tor(focusItem)Description
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 224 times by 5 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
  • tst_qquicktextinput
0-6548
324 updateFocusItemTransform();
executed 27 times by 2 tests: updateFocusItemTransform();
Executed by:
  • tst_qquicktextedit
  • tst_qquicktextinput
27
325 }
executed 6548 times by 15 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
6548
326#endif-
327}
executed 50619 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50619
328-
329/*!-
330 * Schedules the window to render another frame.-
331 *-
332 * Calling QQuickWindow::update() differs from QQuickItem::update() in that-
333 * it always triggers a repaint, regardless of changes in the underlying-
334 * scene graph or not.-
335 */-
336void QQuickWindow::update()-
337{-
338 Q_D(QQuickWindow);-
339 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 1746 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquicktext
FALSEnever evaluated
0-1746
340 d->windowManager->update(this);
executed 1746 times by 7 tests: d->windowManager->update(this);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquicktext
1746
341 else if (d->renderControl)
d->renderControlDescription
TRUEnever evaluated
FALSEnever evaluated
0
342 QQuickRenderControlPrivate::get(d->renderControl)->update();
never executed: QQuickRenderControlPrivate::get(d->renderControl)->update();
0
343}
executed 1746 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickitem2
  • tst_qquickloader
  • tst_qquicktext
1746
344-
345static void updatePixelRatioHelper(QQuickItem *item, float pixelRatio)-
346{-
347 if (item->flags() & QQuickItem::ItemHasContents) {
item->flags() ...temHasContentsDescription
TRUEnever evaluated
FALSEnever evaluated
0
348 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
349 itemPrivate->itemChange(QQuickItem::ItemDevicePixelRatioHasChanged, pixelRatio);-
350 }
never executed: end of block
0
351-
352 QList <QQuickItem *> items = item->childItems();-
353 for (int i = 0; i < items.size(); ++i)
i < items.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
354 updatePixelRatioHelper(items.at(i), pixelRatio);
never executed: updatePixelRatioHelper(items.at(i), pixelRatio);
0
355}
never executed: end of block
0
356-
357void QQuickWindow::physicalDpiChanged()-
358{-
359 Q_D(QQuickWindow);-
360 const qreal newPixelRatio = screen()->devicePixelRatio();-
361 if (qFuzzyCompare(newPixelRatio, d->devicePixelRatio))
qFuzzyCompare(...icePixelRatio)Description
TRUEnever evaluated
FALSEnever evaluated
0
362 return;
never executed: return;
0
363 d->devicePixelRatio = newPixelRatio;-
364 if (d->contentItem)
d->contentItemDescription
TRUEnever evaluated
FALSEnever evaluated
0
365 updatePixelRatioHelper(d->contentItem, newPixelRatio);
never executed: updatePixelRatioHelper(d->contentItem, newPixelRatio);
0
366}
never executed: end of block
0
367-
368void QQuickWindow::handleScreenChanged(QScreen *screen)-
369{-
370 Q_D(QQuickWindow);-
371 if (screen) {
screenDescription
TRUEnever evaluated
FALSEnever evaluated
0
372 physicalDpiChanged();-
373 // When physical DPI changes on the same screen, either the resolution or the device pixel-
374 // ratio changed. We must check what it is. Device pixel ratio does not have its own-
375 // ...Changed() signal.-
376 d->physicalDpiChangedConnection = connect(screen, SIGNAL(physicalDotsPerInchChanged(qreal)),-
377 this, SLOT(physicalDpiChanged()));-
378 } else {
never executed: end of block
0
379 disconnect(d->physicalDpiChangedConnection);-
380 }
never executed: end of block
0
381-
382 d->forcePolish();-
383}
never executed: end of block
0
384-
385void forcePolishHelper(QQuickItem *item)-
386{-
387 if (item->flags() & QQuickItem::ItemHasContents) {
item->flags() ...temHasContentsDescription
TRUEnever evaluated
FALSEnever evaluated
0
388 item->polish();-
389 }
never executed: end of block
0
390-
391 QList <QQuickItem *> items = item->childItems();-
392 for (int i=0; i<items.size(); ++i)
i<items.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
393 forcePolishHelper(items.at(i));
never executed: forcePolishHelper(items.at(i));
0
394}
never executed: end of block
0
395-
396/*!-
397 Schedules polish events on all items in the scene.-
398*/-
399void QQuickWindowPrivate::forcePolish()-
400{-
401 Q_Q(QQuickWindow);-
402 if (!q->screen())
!q->screen()Description
TRUEnever evaluated
FALSEnever evaluated
0
403 return;
never executed: return;
0
404 forcePolishHelper(contentItem);-
405}
never executed: end of block
0
406-
407void forceUpdate(QQuickItem *item)-
408{-
409 if (item->flags() & QQuickItem::ItemHasContents)
item->flags() ...temHasContentsDescription
TRUEevaluated 39556 times by 68 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
FALSEevaluated 12870 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
12870-39556
410 item->update();
executed 39556 times by 68 tests: item->update();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
39556
411 QQuickItemPrivate::get(item)->dirty(QQuickItemPrivate::ChildrenUpdateMask);-
412-
413 QList <QQuickItem *> items = item->childItems();-
414 for (int i=0; i<items.size(); ++i)
i<items.size()Description
TRUEevaluated 48928 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 52426 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
48928-52426
415 forceUpdate(items.at(i));
executed 48928 times by 75 tests: forceUpdate(items.at(i));
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
48928
416}
executed 52426 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
52426
417-
418void QQuickWindowPrivate::syncSceneGraph()-
419{-
420 QML_MEMORY_SCOPE_STRING("SceneGraph");-
421 Q_Q(QQuickWindow);-
422-
423 animationController->beforeNodeSync();-
424-
425 emit q->beforeSynchronizing();-
426 runAndClearJobs(&beforeSynchronizingJobs);-
427 if (!renderer) {
!rendererDescription
TRUEevaluated 3498 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 47121 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
3498-47121
428 forceUpdate(contentItem);-
429-
430 QSGRootNode *rootNode = new QSGRootNode;-
431 rootNode->appendChildNode(QQuickItemPrivate::get(contentItem)->itemNode());-
432 renderer = context->createRenderer();-
433 renderer->setRootNode(rootNode);-
434 }
executed 3498 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
3498
435-
436 updateDirtyNodes();-
437-
438 animationController->afterNodeSync();-
439-
440 // Copy the current state of clearing from window into renderer.-
441 renderer->setClearColor(clearColor);-
442 QSGAbstractRenderer::ClearMode mode = QSGAbstractRenderer::ClearStencilBuffer | QSGAbstractRenderer::ClearDepthBuffer;-
443 if (clearBeforeRendering)
clearBeforeRenderingDescription
TRUEevaluated 50619 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEnever evaluated
0-50619
444 mode |= QSGAbstractRenderer::ClearColorBuffer;
executed 50619 times by 76 tests: mode |= QSGAbstractRenderer::ClearColorBuffer;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50619
445 renderer->setClearMode(mode);-
446-
447 renderer->setCustomRenderMode(customRenderMode);-
448-
449 emit q->afterSynchronizing();-
450 runAndClearJobs(&afterSynchronizingJobs);-
451}
executed 50619 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50619
452-
453void QQuickWindowPrivate::renderSceneGraph(const QSize &size)-
454{-
455 QML_MEMORY_SCOPE_STRING("SceneGraph");-
456 Q_Q(QQuickWindow);-
457 if (!renderer)
!rendererDescription
TRUEnever evaluated
FALSEevaluated 50623 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-50623
458 return;
never executed: return;
0
459-
460 animationController->advance();-
461 emit q->beforeRendering();-
462 runAndClearJobs(&beforeRenderingJobs);-
463 if (!customRenderStage || !customRenderStage->render()) {
!customRenderStageDescription
TRUEevaluated 50623 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEnever evaluated
!customRenderStage->render()Description
TRUEnever evaluated
FALSEnever evaluated
0-50623
464 int fboId = 0;-
465 const qreal devicePixelRatio = q->effectiveDevicePixelRatio();-
466 if (renderTargetId) {
renderTargetIdDescription
TRUEevaluated 336 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEevaluated 50287 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
336-50287
467 QRect rect(QPoint(0, 0), renderTargetSize);-
468 fboId = renderTargetId;-
469 renderer->setDeviceRect(rect);-
470 renderer->setViewportRect(rect);-
471 if (QQuickRenderControl::renderWindowFor(q)) {
QQuickRenderCo...erWindowFor(q)Description
TRUEevaluated 324 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickwidget
12-324
472 renderer->setProjectionMatrixToRect(QRect(QPoint(0, 0), size));-
473 renderer->setDevicePixelRatio(devicePixelRatio);-
474 } else {
executed 324 times by 2 tests: end of block
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
324
475 renderer->setProjectionMatrixToRect(QRect(QPoint(0, 0), rect.size()));-
476 renderer->setDevicePixelRatio(1);-
477 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickwidget
12
478 } else {-
479 QRect rect(QPoint(0, 0), devicePixelRatio * size);-
480 renderer->setDeviceRect(rect);-
481 renderer->setViewportRect(rect);-
482 renderer->setProjectionMatrixToRect(QRect(QPoint(0, 0), size));-
483 renderer->setDevicePixelRatio(devicePixelRatio);-
484 }
executed 50287 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50287
485-
486 context->renderNextFrame(renderer, fboId);-
487 }
executed 50623 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50623
488 emit q->afterRendering();-
489 runAndClearJobs(&afterRenderingJobs);-
490}
executed 50623 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50623
491-
492QQuickWindowPrivate::QQuickWindowPrivate()-
493 : contentItem(nullptr)-
494 , activeFocusItem(nullptr)-
495#if QT_CONFIG(cursor)-
496 , cursorItem(nullptr)-
497#endif-
498#if QT_CONFIG(draganddrop)-
499 , dragGrabber(nullptr)-
500#endif-
501 , touchMouseId(-1)-
502 , touchMouseDevice(nullptr)-
503 , touchMousePressTimestamp(0)-
504 , dirtyItemList(nullptr)-
505 , devicePixelRatio(0)-
506 , context(nullptr)-
507 , renderer(nullptr)-
508 , windowManager(nullptr)-
509 , renderControl(nullptr)-
510 , pointerEventRecursionGuard(0)-
511 , customRenderStage(nullptr)-
512 , clearColor(Qt::white)-
513 , clearBeforeRendering(true)-
514 , persistentGLContext(true)-
515 , persistentSceneGraph(true)-
516 , lastWheelEventAccepted(false)-
517 , componentCompleted(true)-
518 , allowChildEventFiltering(true)-
519 , allowDoubleClick(true)-
520 , lastFocusReason(Qt::OtherFocusReason)-
521 , renderTarget(nullptr)-
522 , renderTargetId(0)-
523 , vaoHelper(nullptr)-
524 , incubationController(nullptr)-
525{-
526#if QT_CONFIG(draganddrop)-
527 dragGrabber = new QQuickDragGrabber;-
528#endif-
529}
executed 5366 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
  • ...
5366
530-
531QQuickWindowPrivate::~QQuickWindowPrivate()-
532{-
533 delete customRenderStage;-
534 if (QQmlInspectorService *service = QQmlDebugConnector::service<QQmlInspectorService>())
QQmlInspectorS...ctorService>()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmldebugjs
FALSEevaluated 5322 times by 88 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • 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
  • tst_qquickellipseextruder
  • ...
8-5322
535 service->removeWindow(q_func());
executed 8 times by 1 test: service->removeWindow(q_func());
Executed by:
  • tst_qqmldebugjs
8
536}
executed 5330 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
  • ...
5330
537-
538void QQuickWindowPrivate::init(QQuickWindow *c, QQuickRenderControl *control)-
539{-
540 q_ptr = c;-
541-
542 Q_Q(QQuickWindow);-
543-
544 contentItem = new QQuickRootItem;-
545 QQml_setParent_noEvent(contentItem, c);-
546 QQmlEngine::setObjectOwnership(contentItem, QQmlEngine::CppOwnership);-
547 QQuickItemPrivate *contentItemPrivate = QQuickItemPrivate::get(contentItem);-
548 contentItemPrivate->window = q;-
549 contentItemPrivate->windowRefCount = 1;-
550 contentItemPrivate->flags |= QQuickItem::ItemIsFocusScope;-
551 contentItem->setSize(q->size());-
552-
553 customRenderMode = qgetenv("QSG_VISUALIZE");-
554 renderControl = control;-
555 if (renderControl)
renderControlDescription
TRUEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEevaluated 5248 times by 89 tests
Evaluated 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
  • ...
118-5248
556 QQuickRenderControlPrivate::get(renderControl)->window = q;
executed 118 times by 2 tests: QQuickRenderControlPrivate::get(renderControl)->window = q;
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
118
557-
558 if (!renderControl)
!renderControlDescription
TRUEevaluated 5248 times by 89 tests
Evaluated 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
  • ...
FALSEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
118-5248
559 windowManager = QSGRenderLoop::instance();
executed 5248 times by 89 tests: windowManager = QSGRenderLoop::instance();
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
  • ...
5248
560-
561 Q_ASSERT(windowManager || renderControl);-
562-
563 if (QScreen *screen = q->screen())
QScreen *screen = q->screen()Description
TRUEevaluated 5366 times by 90 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-5366
564 devicePixelRatio = screen->devicePixelRatio();
executed 5366 times by 90 tests: devicePixelRatio = screen->devicePixelRatio();
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
  • ...
5366
565-
566 QSGContext *sg;-
567 if (renderControl) {
renderControlDescription
TRUEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEevaluated 5248 times by 89 tests
Evaluated 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
  • ...
118-5248
568 QQuickRenderControlPrivate *renderControlPriv = QQuickRenderControlPrivate::get(renderControl);-
569 sg = renderControlPriv->sg;-
570 context = renderControlPriv->rc;-
571 } else {
executed 118 times by 2 tests: end of block
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
118
572 windowManager->addWindow(q);-
573 sg = windowManager->sceneGraphContext();-
574 context = windowManager->createRenderContext(sg);-
575 }
executed 5248 times by 89 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
  • ...
5248
576-
577 q->setSurfaceType(windowManager ? windowManager->windowSurfaceType() : QSurface::OpenGLSurface);-
578 q->setFormat(sg->defaultSurfaceFormat());-
579-
580 animationController = new QQuickAnimatorController(q);-
581-
582 QObject::connect(context, SIGNAL(initialized()), q, SIGNAL(sceneGraphInitialized()), Qt::DirectConnection);-
583 QObject::connect(context, SIGNAL(invalidated()), q, SIGNAL(sceneGraphInvalidated()), Qt::DirectConnection);-
584 QObject::connect(context, SIGNAL(invalidated()), q, SLOT(cleanupSceneGraph()), Qt::DirectConnection);-
585-
586 QObject::connect(q, SIGNAL(focusObjectChanged(QObject*)), q, SIGNAL(activeFocusItemChanged()));-
587 QObject::connect(q, SIGNAL(screenChanged(QScreen*)), q, SLOT(handleScreenChanged(QScreen*)));-
588 QObject::connect(qApp, SIGNAL(applicationStateChanged(Qt::ApplicationState)),-
589 q, SLOT(handleApplicationStateChanged(Qt::ApplicationState)));-
590 QObject::connect(q, SIGNAL(frameSwapped()), q, SLOT(runJobsAfterSwap()), Qt::DirectConnection);-
591-
592 if (QQmlInspectorService *service = QQmlDebugConnector::service<QQmlInspectorService>())
QQmlInspectorS...ctorService>()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qqmldebugjs
FALSEevaluated 5358 times by 89 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • 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
  • ...
8-5358
593 service->addWindow(q);
executed 8 times by 1 test: service->addWindow(q);
Executed by:
  • tst_qqmldebugjs
8
594}
executed 5366 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
  • ...
5366
595-
596void QQuickWindow::handleApplicationStateChanged(Qt::ApplicationState state)-
597{-
598 Q_D(QQuickWindow);-
599 if (state != Qt::ApplicationActive && d->contentItem)
state != Qt::ApplicationActiveDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickapplication
FALSEevaluated 36 times by 17 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
d->contentItemDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickapplication
FALSEnever evaluated
0-36
600 d->contentItem->windowDeactivateEvent();
executed 4 times by 1 test: d->contentItem->windowDeactivateEvent();
Executed by:
  • tst_qquickapplication
4
601}
executed 40 times by 17 tests: end of block
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
40
602-
603/*!-
604 \property QQuickWindow::data-
605 \internal-
606*/-
607-
608QQmlListProperty<QObject> QQuickWindowPrivate::data()-
609{-
610 return QQmlListProperty<QObject>(q_func(), nullptr, QQuickWindowPrivate::data_append,
executed 148 times by 8 tests: return QQmlListProperty<QObject>(q_func(), nullptr, QQuickWindowPrivate::data_append, QQuickWindowPrivate::data_count, QQuickWindowPrivate::data_at, QQuickWindowPrivate::data_clear);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
148
611 QQuickWindowPrivate::data_count,
executed 148 times by 8 tests: return QQmlListProperty<QObject>(q_func(), nullptr, QQuickWindowPrivate::data_append, QQuickWindowPrivate::data_count, QQuickWindowPrivate::data_at, QQuickWindowPrivate::data_clear);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
148
612 QQuickWindowPrivate::data_at,
executed 148 times by 8 tests: return QQmlListProperty<QObject>(q_func(), nullptr, QQuickWindowPrivate::data_append, QQuickWindowPrivate::data_count, QQuickWindowPrivate::data_at, QQuickWindowPrivate::data_clear);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
148
613 QQuickWindowPrivate::data_clear);
executed 148 times by 8 tests: return QQmlListProperty<QObject>(q_func(), nullptr, QQuickWindowPrivate::data_append, QQuickWindowPrivate::data_count, QQuickWindowPrivate::data_at, QQuickWindowPrivate::data_clear);
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
148
614}-
615-
616static QMouseEvent *touchToMouseEvent(QEvent::Type type, const QTouchEvent::TouchPoint &p, QTouchEvent *event, QQuickItem *item, bool transformNeeded = true)-
617{-
618 // The touch point local position and velocity are not yet transformed.-
619 QMouseEvent *me = new QMouseEvent(type, transformNeeded ? item->mapFromScene(p.scenePos()) : p.pos(), p.scenePos(), p.screenPos(),-
620 Qt::LeftButton, (type == QEvent::MouseButtonRelease ? Qt::NoButton : Qt::LeftButton), event->modifiers());-
621 me->setAccepted(true);-
622 me->setTimestamp(event->timestamp());-
623 QVector2D transformedVelocity = p.velocity();-
624 if (transformNeeded) {
transformNeededDescription
TRUEnever evaluated
FALSEevaluated 631 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-631
625 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
626 QMatrix4x4 transformMatrix(itemPrivate->windowToItemTransform());-
627 transformedVelocity = transformMatrix.mapVector(p.velocity()).toVector2D();-
628 }
never executed: end of block
0
629 QGuiApplicationPrivate::setMouseEventCapsAndVelocity(me, event->device()->capabilities(), transformedVelocity);-
630 QGuiApplicationPrivate::setMouseEventSource(me, Qt::MouseEventSynthesizedByQt);-
631 return me;
executed 631 times by 8 tests: return me;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
631
632}-
633-
634bool QQuickWindowPrivate::checkIfDoubleClicked(ulong newPressEventTimestamp)-
635{-
636 bool doubleClicked;-
637-
638 if (touchMousePressTimestamp == 0) {
touchMousePressTimestamp == 0Description
TRUEevaluated 14 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
6-14
639 // just initialize the variable-
640 touchMousePressTimestamp = newPressEventTimestamp;-
641 doubleClicked = false;-
642 } else {
executed 14 times by 5 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
14
643 ulong timeBetweenPresses = newPressEventTimestamp - touchMousePressTimestamp;-
644 ulong doubleClickInterval = static_cast<ulong>(QGuiApplication::styleHints()->-
645 mouseDoubleClickInterval());-
646 doubleClicked = timeBetweenPresses < doubleClickInterval;-
647 if (doubleClicked) {
doubleClickedDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickflickable
2-4
648 touchMousePressTimestamp = 0;-
649 } else {
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
4
650 touchMousePressTimestamp = newPressEventTimestamp;-
651 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickflickable
2
652 }-
653-
654 return doubleClicked;
executed 20 times by 5 tests: return doubleClicked;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
20
655}-
656-
657bool QQuickWindowPrivate::deliverTouchAsMouse(QQuickItem *item, QQuickPointerEvent *pointerEvent)-
658{-
659 Q_Q(QQuickWindow);-
660 auto device = pointerEvent->device();-
661-
662 // A touch event from a trackpad is likely to be followed by a mouse or gesture event, so mouse event synth is redundant-
663 if (device->type() == QQuickPointerDevice::TouchPad && device->capabilities().testFlag(QQuickPointerDevice::MouseEmulation)) {
device->type()...vice::TouchPadDescription
TRUEnever evaluated
FALSEevaluated 197 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
device->capabi...ouseEmulation)Description
TRUEnever evaluated
FALSEnever evaluated
0-197
664 qCDebug(DBG_TOUCH_TARGET) << "skipping delivery of synth-mouse event from" << device;
never executed: QMessageLogger(__FILE__, 664, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "skipping delivery of synth-mouse event from" << device;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
665 return false;
never executed: return false;
0
666 }-
667-
668 // FIXME: make this work for mouse events too and get rid of the asTouchEvent in here.-
669 Q_ASSERT(pointerEvent->asPointerTouchEvent());-
670 QScopedPointer<QTouchEvent> event(pointerEvent->asPointerTouchEvent()->touchEventForItem(item));-
671 if (event.isNull())
event.isNull()Description
TRUEnever evaluated
FALSEevaluated 197 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-197
672 return false;
never executed: return false;
0
673-
674 // For each point, check if it is accepted, if not, try the next point.-
675 // Any of the fingers can become the mouse one.-
676 // This can happen because a mouse area might not accept an event at some point but another.-
677 for (int i = 0; i < event->touchPoints().count(); ++i) {
i < event->tou...ints().count()Description
TRUEevaluated 205 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 28 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
28-205
678 const QTouchEvent::TouchPoint &p = event->touchPoints().at(i);-
679 // A new touch point-
680 if (touchMouseId == -1 && p.state() & Qt::TouchPointPressed) {
touchMouseId == -1Description
TRUEevaluated 56 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 149 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
p.state() & Qt...chPointPressedDescription
TRUEevaluated 42 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
14-149
681 QPointF pos = item->mapFromScene(p.scenePos());-
682-
683 // probably redundant, we check bounds in the calling function (matchingNewPoints)-
684 if (!item->contains(pos))
!item->contains(pos)Description
TRUEnever evaluated
FALSEevaluated 42 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-42
685 break;
never executed: break;
0
686-
687 qCDebug(DBG_TOUCH_TARGET) << "TP (mouse)" << hex << p.id() << "->" << item;
never executed: QMessageLogger(__FILE__, 687, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "TP (mouse)" << hex << p.id() << "->" << item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 42 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-42
688 QScopedPointer<QMouseEvent> mousePress(touchToMouseEvent(QEvent::MouseButtonPress, p, event.data(), item, false));-
689-
690 // Send a single press and see if that's accepted-
691 QCoreApplication::sendEvent(item, mousePress.data());-
692 event->setAccepted(mousePress->isAccepted());-
693 if (mousePress->isAccepted()) {
mousePress->isAccepted()Description
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 22 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
20-22
694 touchMouseDevice = device;-
695 touchMouseId = p.id();-
696 if (!q->mouseGrabberItem())
!q->mouseGrabberItem()Description
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-20
697 item->grabMouse();
executed 20 times by 5 tests: item->grabMouse();
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
20
698 auto pointerEventPoint = pointerEvent->pointById(p.id());-
699 pointerEventPoint->setGrabberItem(item);-
700-
701 if (checkIfDoubleClicked(event->timestamp())) {
checkIfDoubleC...->timestamp())Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
FALSEevaluated 16 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
4-16
702 QScopedPointer<QMouseEvent> mouseDoubleClick(touchToMouseEvent(QEvent::MouseButtonDblClick, p, event.data(), item, false));-
703 QCoreApplication::sendEvent(item, mouseDoubleClick.data());-
704 event->setAccepted(mouseDoubleClick->isAccepted());-
705 if (!mouseDoubleClick->isAccepted()) {
!mouseDoubleCl...->isAccepted()Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
0-4
706 touchMouseId = -1;-
707 touchMouseDevice = nullptr;-
708 }
never executed: end of block
0
709 }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
4
710-
711 return true;
executed 20 times by 5 tests: return true;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
20
712 }-
713 // try the next point-
714-
715 // Touch point was there before and moved-
716 } else if (touchMouseDevice == device && p.id() == touchMouseId) {
executed 22 times by 5 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
touchMouseDevice == deviceDescription
TRUEevaluated 149 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
p.id() == touchMouseIdDescription
TRUEevaluated 149 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-149
717 if (p.state() & Qt::TouchPointMoved) {
p.state() & Qt...ouchPointMovedDescription
TRUEevaluated 113 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 36 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
36-113
718 if (QQuickItem *mouseGrabberItem = q->mouseGrabberItem()) {
QQuickItem *mo...eGrabberItem()Description
TRUEevaluated 113 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-113
719 QScopedPointer<QMouseEvent> me(touchToMouseEvent(QEvent::MouseMove, p, event.data(), mouseGrabberItem, false));-
720 QCoreApplication::sendEvent(item, me.data());-
721 event->setAccepted(me->isAccepted());-
722 if (me->isAccepted()) {
me->isAccepted()Description
TRUEevaluated 113 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-113
723 qCDebug(DBG_TOUCH_TARGET) << "TP (mouse)" << hex << p.id() << "->" << mouseGrabberItem;
never executed: QMessageLogger(__FILE__, 723, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "TP (mouse)" << hex << p.id() << "->" << mouseGrabberItem;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 113 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
0-113
724 }
executed 113 times by 5 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
113
725 return event->isAccepted();
executed 113 times by 5 tests: return event->isAccepted();
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
113
726 } else {-
727 // no grabber, check if we care about mouse hover-
728 // FIXME: this should only happen once, not recursively... I'll ignore it just ignore hover now.-
729 // hover for touch???-
730 QScopedPointer<QMouseEvent> me(touchToMouseEvent(QEvent::MouseMove, p, event.data(), item, false));-
731 if (lastMousePosition.isNull())
lastMousePosition.isNull()Description
TRUEnever evaluated
FALSEnever evaluated
0
732 lastMousePosition = me->windowPos();
never executed: lastMousePosition = me->windowPos();
0
733 QPointF last = lastMousePosition;-
734 lastMousePosition = me->windowPos();-
735-
736 bool accepted = me->isAccepted();-
737 bool delivered = deliverHoverEvent(contentItem, me->windowPos(), last, me->modifiers(), me->timestamp(), accepted);-
738 if (!delivered) {
!deliveredDescription
TRUEnever evaluated
FALSEnever evaluated
0
739 //take care of any exits-
740 accepted = clearHover(me->timestamp());-
741 }
never executed: end of block
0
742 me->setAccepted(accepted);-
743 break;
never executed: break;
0
744 }-
745 } else if (p.state() & Qt::TouchPointReleased) {
p.state() & Qt...hPointReleasedDescription
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-36
746 // currently handled point was released-
747 if (QQuickItem *mouseGrabberItem = q->mouseGrabberItem()) {
QQuickItem *mo...eGrabberItem()Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-36
748 QScopedPointer<QMouseEvent> me(touchToMouseEvent(QEvent::MouseButtonRelease, p, event.data(), mouseGrabberItem, false));-
749 QCoreApplication::sendEvent(item, me.data());-
750-
751 if (item->acceptHoverEvents() && p.screenPos() != QGuiApplicationPrivate::lastCursorPosition) {
item->acceptHoverEvents()Description
TRUEnever evaluated
FALSEevaluated 36 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
p.screenPos() ...CursorPositionDescription
TRUEnever evaluated
FALSEnever evaluated
0-36
752 QPointF localMousePos(qInf(), qInf());-
753 if (QWindow *w = item->window())
QWindow *w = item->window()Description
TRUEnever evaluated
FALSEnever evaluated
0
754 localMousePos = item->mapFromScene(w->mapFromGlobal(QGuiApplicationPrivate::lastCursorPosition.toPoint()));
never executed: localMousePos = item->mapFromScene(w->mapFromGlobal(QGuiApplicationPrivate::lastCursorPosition.toPoint()));
0
755 QMouseEvent mm(QEvent::MouseMove, localMousePos, QGuiApplicationPrivate::lastCursorPosition,-
756 Qt::NoButton, Qt::NoButton, event->modifiers());-
757 QCoreApplication::sendEvent(item, &mm);-
758 }
never executed: end of block
0
759 if (q->mouseGrabberItem()) // might have ungrabbed due to event
q->mouseGrabberItem()Description
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-36
760 q->mouseGrabberItem()->ungrabMouse();
executed 36 times by 5 tests: q->mouseGrabberItem()->ungrabMouse();
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
36
761-
762 touchMouseId = -1;-
763 touchMouseDevice = nullptr;-
764 return me->isAccepted();
executed 36 times by 5 tests: return me->isAccepted();
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
36
765 }-
766 }
never executed: end of block
0
767 break;
never executed: break;
0
768 }-
769 }
executed 36 times by 5 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
36
770 return false;
executed 28 times by 5 tests: return false;
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
28
771}-
772-
773void QQuickWindowPrivate::grabTouchPoints(QObject *grabber, const QVector<int> &ids)-
774{-
775 for (int i = 0; i < ids.count(); ++i) {
i < ids.count()Description
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
22-46
776 int id = ids.at(i);-
777 if (Q_UNLIKELY(id < 0)) {
__builtin_expe...d < 0), false)Description
TRUEnever evaluated
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
0-46
778 qWarning("ignoring grab of touchpoint %d", id);-
779 continue;
never executed: continue;
0
780 }-
781 if (id == touchMouseId) {
id == touchMouseIdDescription
TRUEnever evaluated
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
0-46
782 auto point = pointerEventInstance(touchMouseDevice)->pointById(id);-
783 auto touchMouseGrabber = point->grabberItem();-
784 if (touchMouseGrabber) {
touchMouseGrabberDescription
TRUEnever evaluated
FALSEnever evaluated
0
785 point->setExclusiveGrabber(nullptr);-
786 touchMouseGrabber->mouseUngrabEvent();-
787 touchMouseGrabber->touchUngrabEvent();-
788 touchMouseDevice = nullptr;-
789 touchMouseId = -1;-
790 }
never executed: end of block
0
791 qCDebug(DBG_MOUSE_TARGET) << "grabTouchPoints: mouse grabber changed due to grabTouchPoints:" << touchMouseGrabber << "-> null";
never executed: QMessageLogger(__FILE__, 791, __PRETTY_FUNCTION__, DBG_MOUSE_TARGET().categoryName()).debug() << "grabTouchPoints: mouse grabber changed due to grabTouchPoints:" << touchMouseGrabber << "-> null";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
792 }
never executed: end of block
0
793-
794 const auto touchDevices = QQuickPointerDevice::touchDevices();-
795 for (auto device : touchDevices) {-
796 auto point = pointerEventInstance(device)->pointById(id);-
797 if (!point)
!pointDescription
TRUEnever evaluated
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
0-46
798 continue;
never executed: continue;
0
799 QObject *oldGrabber = point->exclusiveGrabber();-
800 if (oldGrabber == grabber)
oldGrabber == grabberDescription
TRUEevaluated 44 times by 2 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpincharea
2-44
801 continue;
executed 44 times by 2 tests: continue;
Executed by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
44
802 point->setExclusiveGrabber(grabber);-
803 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickpincharea
2
804 }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
46
805}
executed 22 times by 2 tests: end of block
Executed by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
22
806-
807/*!-
808 Ungrabs all touchpoint grabs and/or the mouse grab from the given item \a grabber.-
809 This should not be called when processing a release event - that's redundant.-
810 It is called in other cases, when the points may not be released, but the item-
811 nevertheless must lose its grab due to becoming disabled, invisible, etc.-
812 QQuickEventPoint::setGrabberItem() calls touchUngrabEvent() when all points are released,-
813 but if not all points are released, it cannot be sure whether to call touchUngrabEvent()-
814 or not; so we have to do it here.-
815*/-
816void QQuickWindowPrivate::removeGrabber(QQuickItem *grabber, bool mouse, bool touch)-
817{-
818 Q_Q(QQuickWindow);-
819 if (Q_LIKELY(mouse) && q->mouseGrabberItem() == grabber) {
__builtin_expe...(mouse), true)Description
TRUEevaluated 415991 times by 89 tests
Evaluated 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
  • ...
FALSEevaluated 132 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmultipointtoucharea
q->mouseGrabbe...m() == grabberDescription
TRUEevaluated 1644 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 414347 times by 89 tests
Evaluated 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
  • ...
132-415991
820 bool fromTouch = isDeliveringTouchAsMouse();-
821 auto point = fromTouch ?
fromTouchDescription
TRUEevaluated 36 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 1608 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
36-1608
822 pointerEventInstance(touchMouseDevice)->pointById(touchMouseId) :-
823 pointerEventInstance(QQuickPointerDevice::genericMouseDevice())->point(0);-
824 QQuickItem *oldGrabber = point->grabberItem();-
825 qCDebug(DBG_MOUSE_TARGET) << "removeGrabber" << oldGrabber << "-> null";
never executed: QMessageLogger(__FILE__, 825, __PRETTY_FUNCTION__, DBG_MOUSE_TARGET().categoryName()).debug() << "removeGrabber" << oldGrabber << "-> null";
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 1644 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • 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-1644
826 point->setGrabberItem(nullptr);-
827 sendUngrabEvent(oldGrabber, fromTouch);-
828 }
executed 1644 times by 13 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1644
829 if (Q_LIKELY(touch)) {
__builtin_expe...(touch), true)Description
TRUEevaluated 414527 times by 89 tests
Evaluated 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
  • ...
FALSEevaluated 1596 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1596-414527
830 bool ungrab = false;-
831 const auto touchDevices = QQuickPointerDevice::touchDevices();-
832 for (auto device : touchDevices) {-
833 if (auto pointerEvent = queryPointerEventInstance(device)) {
auto pointerEv...stance(device)Description
TRUEevaluated 3012 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1822 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1822-3012
834 for (int i = 0; i < pointerEvent->pointCount(); ++i) {
i < pointerEvent->pointCount()Description
TRUEevaluated 5746 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 3012 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
3012-5746
835 if (pointerEvent->point(i)->exclusiveGrabber() == grabber) {
pointerEvent->...r() == grabberDescription
TRUEevaluated 96 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmultipointtoucharea
FALSEevaluated 5650 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
96-5650
836 pointerEvent->point(i)->setGrabberItem(nullptr);-
837 ungrab = true;-
838 }
executed 96 times by 2 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickmultipointtoucharea
96
839 }
executed 5746 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
5746
840 }
executed 3012 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
3012
841 }
executed 4834 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
4834
842 if (ungrab)
ungrabDescription
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmultipointtoucharea
FALSEevaluated 414469 times by 89 tests
Evaluated 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
  • ...
58-414469
843 grabber->touchUngrabEvent();
executed 58 times by 2 tests: grabber->touchUngrabEvent();
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickmultipointtoucharea
58
844 }
executed 414527 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
  • ...
414527
845}
executed 416123 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
  • ...
416123
846-
847void QQuickWindowPrivate::sendUngrabEvent(QQuickItem *grabber, bool touch)-
848{-
849 if (!grabber)
!grabberDescription
TRUEevaluated 1706 times by 14 tests
Evaluated 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
FALSEevaluated 1764 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1706-1764
850 return;
executed 1706 times by 14 tests: return;
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
851 QEvent e(QEvent::UngrabMouse);-
852 hasFiltered.clear();-
853 if (!sendFilteredMouseEvent(&e, grabber, grabber->parentItem())) {
!sendFilteredM...>parentItem())Description
TRUEevaluated 1764 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-1764
854 grabber->mouseUngrabEvent();-
855 if (touch)
touchDescription
TRUEevaluated 42 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 1722 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
42-1722
856 grabber->touchUngrabEvent();
executed 42 times by 5 tests: grabber->touchUngrabEvent();
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
42
857 }
executed 1764 times by 13 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1764
858}
executed 1764 times by 13 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1764
859-
860/*!-
861Translates the data in \a touchEvent to this window. This method leaves the item local positions in-
862\a touchEvent untouched (these are filled in later).-
863*/-
864void QQuickWindowPrivate::translateTouchEvent(QTouchEvent *touchEvent)-
865{-
866 QList<QTouchEvent::TouchPoint> touchPoints = touchEvent->touchPoints();-
867 for (int i = 0; i < touchPoints.count(); ++i) {
i < touchPoints.count()Description
TRUEevaluated 1988 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1240 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1240-1988
868 QTouchEvent::TouchPoint &touchPoint = touchPoints[i];-
869-
870 touchPoint.setSceneRect(touchPoint.rect());-
871 touchPoint.setStartScenePos(touchPoint.startPos());-
872 touchPoint.setLastScenePos(touchPoint.lastPos());-
873 }
executed 1988 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
1988
874 touchEvent->setTouchPoints(touchPoints);-
875}
executed 1240 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
1240
876-
877-
878static inline bool windowHasFocus(QQuickWindow *win)-
879{-
880 const QWindow *focusWindow = QGuiApplication::focusWindow();-
881 return win == focusWindow || QQuickRenderControl::renderWindowFor(win) == focusWindow;
executed 1078 times by 18 tests: return win == focusWindow || QQuickRenderControl::renderWindowFor(win) == focusWindow;
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1078
882}-
883-
884/*!-
885Set the focus inside \a scope to be \a item.-
886If the scope contains the active focus item, it will be changed to \a item.-
887Calls notifyFocusChangesRecur for all changed items.-
888*/-
889void QQuickWindowPrivate::setFocusInScope(QQuickItem *scope, QQuickItem *item, Qt::FocusReason reason, FocusOptions options)-
890{-
891 Q_Q(QQuickWindow);-
892-
893 Q_ASSERT(item);-
894 Q_ASSERT(scope || item == contentItem);-
895-
896 qCDebug(DBG_FOCUS) << "QQuickWindowPrivate::setFocusInScope():";
never executed: QMessageLogger(__FILE__, 896, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << "QQuickWindowPrivate::setFocusInScope():";
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 6575 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-6575
897 qCDebug(DBG_FOCUS) << " scope:" << (QObject *)scope;
never executed: QMessageLogger(__FILE__, 897, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " scope:" << (QObject *)scope;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 6575 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-6575
898 if (scope)
scopeDescription
TRUEevaluated 5497 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 1078 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1078-5497
899 qCDebug(DBG_FOCUS) << " scopeSubFocusItem:" << (QObject *)QQuickItemPrivate::get(scope)->subFocusItem;
never executed: QMessageLogger(__FILE__, 899, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " scopeSubFocusItem:" << (QObject *)QQuickItemPrivate::get(scope)->subFocusItem;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 5497 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-5497
900 qCDebug(DBG_FOCUS) << " item:" << (QObject *)item;
never executed: QMessageLogger(__FILE__, 900, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " item:" << (QObject *)item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 6575 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-6575
901 qCDebug(DBG_FOCUS) << " activeFocusItem:" << (QObject *)activeFocusItem;
never executed: QMessageLogger(__FILE__, 901, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " activeFocusItem:" << (QObject *)activeFocusItem;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 6575 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-6575
902-
903 QQuickItemPrivate *scopePrivate = scope ? QQuickItemPrivate::get(scope) : nullptr;
scopeDescription
TRUEevaluated 5497 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 1078 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1078-5497
904 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
905-
906 QQuickItem *oldActiveFocusItem = nullptr;-
907 QQuickItem *currentActiveFocusItem = activeFocusItem;-
908 QQuickItem *newActiveFocusItem = nullptr;-
909 bool sendFocusIn = false;-
910-
911 lastFocusReason = reason;-
912-
913 QVarLengthArray<QQuickItem *, 20> changed;-
914-
915 // Does this change the active focus?-
916 if (item == contentItem || scopePrivate->activeFocus) {
item == contentItemDescription
TRUEevaluated 1078 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 5497 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
scopePrivate->activeFocusDescription
TRUEevaluated 644 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4853 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
644-5497
917 oldActiveFocusItem = activeFocusItem;-
918 if (item->isEnabled()) {
item->isEnabled()Description
TRUEevaluated 1716 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickitem
6-1716
919 newActiveFocusItem = item;-
920 while (newActiveFocusItem->isFocusScope()
newActiveFocus...isFocusScope()Description
TRUEevaluated 1194 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 1228 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1194-1228
921 && newActiveFocusItem->scopedFocusItem()
newActiveFocus...pedFocusItem()Description
TRUEevaluated 708 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 486 times by 17 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
486-708
922 && newActiveFocusItem->scopedFocusItem()->isEnabled()) {
newActiveFocus...)->isEnabled()Description
TRUEevaluated 706 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickitem
2-706
923 newActiveFocusItem = newActiveFocusItem->scopedFocusItem();-
924 }
executed 706 times by 9 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
706
925 } else {
executed 1716 times by 18 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1716
926 newActiveFocusItem = scope;-
927 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickitem
6
928-
929 if (oldActiveFocusItem) {
oldActiveFocusItemDescription
TRUEevaluated 644 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 1078 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
644-1078
930#if QT_CONFIG(im)-
931 QGuiApplication::inputMethod()->commit();-
932#endif-
933-
934 activeFocusItem = nullptr;-
935-
936 QQuickItem *afi = oldActiveFocusItem;-
937 while (afi && afi != scope) {
afiDescription
TRUEevaluated 1734 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
afi != scopeDescription
TRUEevaluated 1090 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 644 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
0-1734
938 if (QQuickItemPrivate::get(afi)->activeFocus) {
QQuickItemPriv...)->activeFocusDescription
TRUEevaluated 506 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 584 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
506-584
939 QQuickItemPrivate::get(afi)->activeFocus = false;-
940 changed << afi;-
941 }
executed 506 times by 7 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
506
942 afi = afi->parentItem();-
943 }
executed 1090 times by 7 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
1090
944 }
executed 644 times by 7 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
644
945 }
executed 1722 times by 18 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1722
946-
947 if (item != contentItem && !(options & DontChangeSubFocusItem)) {
item != contentItemDescription
TRUEevaluated 5497 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 1078 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
!(options & Do...eSubFocusItem)Description
TRUEevaluated 5489 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickitem
8-5497
948 QQuickItem *oldSubFocusItem = scopePrivate->subFocusItem;-
949 if (oldSubFocusItem) {
oldSubFocusItemDescription
TRUEevaluated 1819 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 3670 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
1819-3670
950 QQuickItemPrivate::get(oldSubFocusItem)->focus = false;-
951 changed << oldSubFocusItem;-
952 }
executed 1819 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
1819
953-
954 QQuickItemPrivate::get(item)->updateSubFocusItem(scope, true);-
955 }
executed 5489 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
5489
956-
957 if (!(options & DontChangeFocusProperty)) {
!(options & Do...FocusProperty)Description
TRUEevaluated 4771 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 1804 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
1804-4771
958 if (item != contentItem || windowHasFocus(q)) {
item != contentItemDescription
TRUEevaluated 3693 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 1078 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
windowHasFocus(q)Description
TRUEevaluated 1076 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfocusscope
2-3693
959 itemPrivate->focus = true;-
960 changed << item;-
961 }
executed 4769 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
4769
962 }
executed 4771 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
4771
963-
964 if (newActiveFocusItem && contentItem->hasFocus()) {
newActiveFocusItemDescription
TRUEevaluated 1722 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4853 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
contentItem->hasFocus()Description
TRUEevaluated 1720 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickfocusscope
2-4853
965 activeFocusItem = newActiveFocusItem;-
966-
967 QQuickItemPrivate::get(newActiveFocusItem)->activeFocus = true;-
968 changed << newActiveFocusItem;-
969-
970 QQuickItem *afi = newActiveFocusItem->parentItem();-
971 while (afi && afi != scope) {
afiDescription
TRUEevaluated 2140 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 1082 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
afi != scopeDescription
TRUEevaluated 1502 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 638 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
638-2140
972 if (afi->isFocusScope()) {
afi->isFocusScope()Description
TRUEevaluated 706 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 796 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
706-796
973 QQuickItemPrivate::get(afi)->activeFocus = true;-
974 changed << afi;-
975 }
executed 706 times by 9 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
706
976 afi = afi->parentItem();-
977 }
executed 1502 times by 9 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1502
978 updateFocusItemTransform();-
979 sendFocusIn = true;-
980 }
executed 1720 times by 18 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1720
981-
982 // Now that all the state is changed, emit signals & events-
983 // We must do this last, as this process may result in further changes to focus.-
984 if (oldActiveFocusItem) {
oldActiveFocusItemDescription
TRUEevaluated 644 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 5931 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
644-5931
985 QFocusEvent event(QEvent::FocusOut, reason);-
986 QCoreApplication::sendEvent(oldActiveFocusItem, &event);-
987 }
executed 644 times by 7 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
644
988-
989 // Make sure that the FocusOut didn't result in another focus change.-
990 if (sendFocusIn && activeFocusItem == newActiveFocusItem) {
sendFocusInDescription
TRUEevaluated 1720 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4855 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
activeFocusIte...ctiveFocusItemDescription
TRUEevaluated 1716 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktextinput
4-4855
991 QFocusEvent event(QEvent::FocusIn, reason);-
992 QCoreApplication::sendEvent(newActiveFocusItem, &event);-
993 }
executed 1716 times by 18 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1716
994-
995 if (activeFocusItem != currentActiveFocusItem)
activeFocusIte...ctiveFocusItemDescription
TRUEevaluated 1714 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4861 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
1714-4861
996 emit q->focusObjectChanged(activeFocusItem);
executed 1714 times by 18 tests: q->focusObjectChanged(activeFocusItem);
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
1714
997-
998 if (!changed.isEmpty())
!changed.isEmpty()Description
TRUEevaluated 4801 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 1774 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
1774-4801
999 notifyFocusChangesRecur(changed.data(), changed.count() - 1);
executed 4801 times by 20 tests: notifyFocusChangesRecur(changed.data(), changed.count() - 1);
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
4801
1000}
executed 6575 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
6575
1001-
1002void QQuickWindowPrivate::clearFocusInScope(QQuickItem *scope, QQuickItem *item, Qt::FocusReason reason, FocusOptions options)-
1003{-
1004 Q_Q(QQuickWindow);-
1005-
1006 Q_ASSERT(item);-
1007 Q_ASSERT(scope || item == contentItem);-
1008-
1009 qCDebug(DBG_FOCUS) << "QQuickWindowPrivate::clearFocusInScope():";
never executed: QMessageLogger(__FILE__, 1009, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << "QQuickWindowPrivate::clearFocusInScope():";
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 3198 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-3198
1010 qCDebug(DBG_FOCUS) << " scope:" << (QObject *)scope;
never executed: QMessageLogger(__FILE__, 1010, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " scope:" << (QObject *)scope;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 3198 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-3198
1011 qCDebug(DBG_FOCUS) << " item:" << (QObject *)item;
never executed: QMessageLogger(__FILE__, 1011, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " item:" << (QObject *)item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 3198 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-3198
1012 qCDebug(DBG_FOCUS) << " activeFocusItem:" << (QObject *)activeFocusItem;
never executed: QMessageLogger(__FILE__, 1012, __PRETTY_FUNCTION__, DBG_FOCUS().categoryName()).debug() << " activeFocusItem:" << (QObject *)activeFocusItem;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 3198 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-3198
1013-
1014 QQuickItemPrivate *scopePrivate = nullptr;-
1015 if (scope) {
scopeDescription
TRUEevaluated 3178 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20-3178
1016 scopePrivate = QQuickItemPrivate::get(scope);-
1017 if ( !scopePrivate->subFocusItem )
!scopePrivate->subFocusItemDescription
TRUEnever evaluated
FALSEevaluated 3178 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-3178
1018 return;//No focus, nothing to do.
never executed: return;
0
1019 }
executed 3178 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
3178
1020-
1021 QQuickItem *currentActiveFocusItem = activeFocusItem;-
1022 QQuickItem *oldActiveFocusItem = nullptr;-
1023 QQuickItem *newActiveFocusItem = nullptr;-
1024-
1025 lastFocusReason = reason;-
1026-
1027 QVarLengthArray<QQuickItem *, 20> changed;-
1028-
1029 Q_ASSERT(item == contentItem || item == scopePrivate->subFocusItem);-
1030-
1031 // Does this change the active focus?-
1032 if (item == contentItem || scopePrivate->activeFocus) {
item == contentItemDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
FALSEevaluated 3178 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
scopePrivate->activeFocusDescription
TRUEevaluated 444 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2734 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
20-3178
1033 oldActiveFocusItem = activeFocusItem;-
1034 newActiveFocusItem = scope;-
1035-
1036#if QT_CONFIG(im)-
1037 QGuiApplication::inputMethod()->commit();-
1038#endif-
1039-
1040 activeFocusItem = nullptr;-
1041-
1042 if (oldActiveFocusItem) {
oldActiveFocusItemDescription
TRUEevaluated 464 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-464
1043 QQuickItem *afi = oldActiveFocusItem;-
1044 while (afi && afi != scope) {
afiDescription
TRUEevaluated 1156 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
afi != scopeDescription
TRUEevaluated 712 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 444 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
20-1156
1045 if (QQuickItemPrivate::get(afi)->activeFocus) {
QQuickItemPriv...)->activeFocusDescription
TRUEevaluated 508 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 204 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
204-508
1046 QQuickItemPrivate::get(afi)->activeFocus = false;-
1047 changed << afi;-
1048 }
executed 508 times by 10 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
508
1049 afi = afi->parentItem();-
1050 }
executed 712 times by 10 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
712
1051 }
executed 464 times by 10 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
464
1052 }
executed 464 times by 10 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
464
1053-
1054 if (item != contentItem && !(options & DontChangeSubFocusItem)) {
item != contentItemDescription
TRUEevaluated 3178 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
!(options & Do...eSubFocusItem)Description
TRUEevaluated 3172 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickitem
6-3178
1055 QQuickItem *oldSubFocusItem = scopePrivate->subFocusItem;-
1056 if (oldSubFocusItem && !(options & DontChangeFocusProperty)) {
oldSubFocusItemDescription
TRUEevaluated 3172 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
FALSEnever evaluated
!(options & Do...FocusProperty)Description
TRUEevaluated 70 times by 4 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 3102 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
0-3172
1057 QQuickItemPrivate::get(oldSubFocusItem)->focus = false;-
1058 changed << oldSubFocusItem;-
1059 }
executed 70 times by 4 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquicktextedit
  • tst_qquicktextinput
70
1060-
1061 QQuickItemPrivate::get(item)->updateSubFocusItem(scope, false);-
1062-
1063 } else if (!(options & DontChangeFocusProperty)) {
executed 3172 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
!(options & Do...FocusProperty)Description
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickitem
6-3172
1064 QQuickItemPrivate::get(item)->focus = false;-
1065 changed << item;-
1066 }
executed 20 times by 5 tests: end of block
Executed by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20
1067-
1068 if (newActiveFocusItem) {
newActiveFocusItemDescription
TRUEevaluated 444 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2754 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
444-2754
1069 Q_ASSERT(newActiveFocusItem == scope);-
1070 activeFocusItem = scope;-
1071 updateFocusItemTransform();-
1072 }
executed 444 times by 9 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
444
1073-
1074 // Now that all the state is changed, emit signals & events-
1075 // We must do this last, as this process may result in further changes to-
1076 // focus.-
1077 if (oldActiveFocusItem) {
oldActiveFocusItemDescription
TRUEevaluated 464 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2734 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
464-2734
1078 QFocusEvent event(QEvent::FocusOut, reason);-
1079 QCoreApplication::sendEvent(oldActiveFocusItem, &event);-
1080 }
executed 464 times by 10 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
464
1081-
1082 // Make sure that the FocusOut didn't result in another focus change.-
1083 if (newActiveFocusItem && activeFocusItem == newActiveFocusItem) {
newActiveFocusItemDescription
TRUEevaluated 444 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2754 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
activeFocusIte...ctiveFocusItemDescription
TRUEevaluated 444 times by 9 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-2754
1084 QFocusEvent event(QEvent::FocusIn, reason);-
1085 QCoreApplication::sendEvent(newActiveFocusItem, &event);-
1086 }
executed 444 times by 9 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
444
1087-
1088 if (activeFocusItem != currentActiveFocusItem)
activeFocusIte...ctiveFocusItemDescription
TRUEevaluated 462 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2736 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
462-2736
1089 emit q->focusObjectChanged(activeFocusItem);
executed 462 times by 10 tests: q->focusObjectChanged(activeFocusItem);
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
462
1090-
1091 if (!changed.isEmpty())
!changed.isEmpty()Description
TRUEevaluated 464 times by 10 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2734 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
464-2734
1092 notifyFocusChangesRecur(changed.data(), changed.count() - 1);
executed 464 times by 10 tests: notifyFocusChangesRecur(changed.data(), changed.count() - 1);
Executed by:
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
464
1093}
executed 3198 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_qquickwidget
3198
1094-
1095void QQuickWindowPrivate::clearFocusObject()-
1096{-
1097 if (activeFocusItem == contentItem)
activeFocusItem == contentItemDescription
TRUEnever evaluated
FALSEnever evaluated
0
1098 return;
never executed: return;
0
1099-
1100 clearFocusInScope(contentItem, QQuickItemPrivate::get(contentItem)->subFocusItem, Qt::OtherFocusReason);-
1101}
never executed: end of block
0
1102-
1103void QQuickWindowPrivate::notifyFocusChangesRecur(QQuickItem **items, int remaining)-
1104{-
1105 QPointer<QQuickItem> item(*items);-
1106-
1107 if (remaining)
remainingDescription
TRUEevaluated 5003 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
FALSEevaluated 10951 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
5003-10951
1108 notifyFocusChangesRecur(items + 1, remaining - 1);
executed 5003 times by 20 tests: notifyFocusChangesRecur(items + 1, remaining - 1);
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
5003
1109-
1110 if (item) {
itemDescription
TRUEevaluated 15954 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
FALSEnever evaluated
0-15954
1111 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
1112-
1113 if (itemPrivate->notifiedFocus != itemPrivate->focus) {
itemPrivate->n...Private->focusDescription
TRUEevaluated 12492 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
FALSEevaluated 3462 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
3462-12492
1114 itemPrivate->notifiedFocus = itemPrivate->focus;-
1115 emit item->focusChanged(itemPrivate->focus);-
1116 }
executed 12492 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
12492
1117-
1118 if (item && itemPrivate->notifiedActiveFocus != itemPrivate->activeFocus) {
itemPrivate->n...e->activeFocusDescription
TRUEevaluated 3418 times by 18 tests
Evaluated by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 12536 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
3418-12536
1119 itemPrivate->notifiedActiveFocus = itemPrivate->activeFocus;-
1120 itemPrivate->itemChange(QQuickItem::ItemActiveFocusHasChanged, itemPrivate->activeFocus);-
1121 emit item->activeFocusChanged(itemPrivate->activeFocus);-
1122 }
executed 3418 times by 18 tests: end of block
Executed by:
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
3418
1123 }
executed 15954 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
15954
1124}
executed 15954 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
15954
1125-
1126void QQuickWindowPrivate::dirtyItem(QQuickItem *)-
1127{-
1128 Q_Q(QQuickWindow);-
1129 q->maybeUpdate();-
1130}
executed 1705029 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
  • ...
1705029
1131-
1132void QQuickWindowPrivate::cleanup(QSGNode *n)-
1133{-
1134 Q_Q(QQuickWindow);-
1135-
1136 Q_ASSERT(!cleanupNodeList.contains(n));-
1137 cleanupNodeList.append(n);-
1138 q->maybeUpdate();-
1139}
executed 316588 times by 74 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
316588
1140-
1141/*!-
1142 \qmltype Window-
1143 \instantiates QQuickWindow-
1144 \inqmlmodule QtQuick.Window-
1145 \ingroup qtquick-visual-
1146 \brief Creates a new top-level window.-
1147-
1148 The Window object creates a new top-level window for a Qt Quick scene. It automatically sets up the-
1149 window for use with \c {QtQuick 2.x} graphical types.-
1150-
1151 To use this type, you will need to import the module with the following line:-
1152 \code-
1153 import QtQuick.Window 2.2-
1154 \endcode-
1155-
1156 Omitting this import will allow you to have a QML environment without-
1157 access to window system features.-
1158-
1159 A Window can be declared inside an Item or inside another Window; in that-
1160 case the inner Window will automatically become "transient for" the outer-
1161 Window: that is, most platforms will show it centered upon the outer window-
1162 by default, and there may be other platform-dependent behaviors, depending-
1163 also on the \l flags. If the nested window is intended to be a dialog in-
1164 your application, you should also set \l flags to Qt.Dialog, because some-
1165 window managers will not provide the centering behavior without that flag.-
1166 You can also declare multiple windows inside a top-level \l QtObject, in which-
1167 case the windows will have no transient relationship.-
1168-
1169 Alternatively you can set or bind \l x and \l y to position the Window-
1170 explicitly on the screen.-
1171-
1172 When the user attempts to close a window, the \l closing signal will be-
1173 emitted. You can force the window to stay open (for example to prompt the-
1174 user to save changes) by writing an \c onClosing handler and setting-
1175 \c {close.accepted = false}.-
1176*/-
1177/*!-
1178 \class QQuickWindow-
1179 \since 5.0-
1180-
1181 \inmodule QtQuick-
1182-
1183 \brief The QQuickWindow class provides the window for displaying a graphical QML scene.-
1184-
1185 QQuickWindow provides the graphical scene management needed to interact with and display-
1186 a scene of QQuickItems.-
1187-
1188 A QQuickWindow always has a single invisible root item. To add items to this window,-
1189 reparent the items to the root item or to an existing item in the scene.-
1190-
1191 For easily displaying a scene from a QML file, see \l{QQuickView}.-
1192-
1193 \section1 Rendering-
1194-
1195 QQuickWindow uses a scene graph to represent what needs to be rendered.-
1196 This scene graph is disconnected from the QML scene and-
1197 potentially lives in another thread, depending on the platform-
1198 implementation. Since the rendering scene graph lives-
1199 independently from the QML scene, it can also be completely-
1200 released without affecting the state of the QML scene.-
1201-
1202 The sceneGraphInitialized() signal is emitted on the rendering-
1203 thread before the QML scene is rendered to the screen for the-
1204 first time. If the rendering scene graph has been released, the-
1205 signal will be emitted again before the next frame is rendered.-
1206-
1207-
1208 \section2 Integration with OpenGL-
1209-
1210 When using the default OpenGL adaptation, it is possible to integrate-
1211 OpenGL calls directly into the QQuickWindow using the same OpenGL-
1212 context as the Qt Quick Scene Graph. This is done by connecting to the-
1213 QQuickWindow::beforeRendering() or QQuickWindow::afterRendering()-
1214 signal.-
1215-
1216 \note When using QQuickWindow::beforeRendering(), make sure to-
1217 disable clearing before rendering with-
1218 QQuickWindow::setClearBeforeRendering().-
1219-
1220-
1221 \section2 Exposure and Visibility-
1222-
1223 When a QQuickWindow instance is deliberately hidden with hide() or-
1224 setVisible(false), it will stop rendering and its scene graph and-
1225 graphics context might be released. The sceneGraphInvalidated()-
1226 signal will be emitted when this happens.-
1227-
1228 \warning It is crucial that graphics operations and interaction with-
1229 the scene graph happens exclusively on the rendering thread,-
1230 primarily during the updatePaintNode() phase.-
1231-
1232 \warning As signals related to rendering might be emitted from the-
1233 rendering thread, connections should be made using-
1234 Qt::DirectConnection.-
1235-
1236-
1237 \section2 Resource Management-
1238-
1239 QML will try to cache images and scene graph nodes to-
1240 improve performance, but in some low-memory scenarios it might be-
1241 required to aggressively release these resources. The-
1242 releaseResources() can be used to force the clean up of certain-
1243 resources. Calling releaseResources() may result in the entire-
1244 scene graph and in the case of the OpenGL adaptation the associated-
1245 context will be deleted. The sceneGraphInvalidated() signal will be-
1246 emitted when this happens.-
1247-
1248 \note All classes with QSG prefix should be used solely on the scene graph's-
1249 rendering thread. See \l {Scene Graph and Rendering} for more information.-
1250-
1251 \section2 Context and Surface Formats-
1252-
1253 While it is possible to specify a QSurfaceFormat for every QQuickWindow by-
1254 calling the member function setFormat(), windows may also be created from-
1255 QML by using the Window and ApplicationWindow elements. In this case there-
1256 is no C++ code involved in the creation of the window instance, yet-
1257 applications may still wish to set certain surface format values, for-
1258 example to request a given OpenGL version or profile. Such applications can-
1259 call the static function QSurfaceFormat::setDefaultFormat() at startup. The-
1260 specified format will be used for all Quick windows created afterwards.-
1261-
1262 \sa {Scene Graph - OpenGL Under QML}-
1263*/-
1264-
1265/*!-
1266 Constructs a window for displaying a QML scene with parent window \a parent.-
1267*/-
1268QQuickWindow::QQuickWindow(QWindow *parent)-
1269 : QQuickWindow(*new QQuickWindowPrivate, parent)-
1270{-
1271}
executed 1894 times by 20 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickpainteditem
  • tst_qquickrepeater
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickview
  • tst_qquickvisualdatamodel
  • tst_rendernode
1894
1272-
1273-
1274-
1275/*!-
1276 \internal-
1277*/-
1278QQuickWindow::QQuickWindow(QQuickWindowPrivate &dd, QWindow *parent)-
1279 : QWindow(dd, parent)-
1280{-
1281 Q_D(QQuickWindow);-
1282 d->init(this);-
1283}
executed 5248 times by 89 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
  • ...
5248
1284-
1285/*!-
1286 \internal-
1287*/-
1288QQuickWindow::QQuickWindow(QQuickRenderControl *control)-
1289 : QWindow(*(new QQuickWindowPrivate), nullptr)-
1290{-
1291 Q_D(QQuickWindow);-
1292 d->init(this, control);-
1293}
executed 118 times by 2 tests: end of block
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
118
1294-
1295/*!-
1296 \internal-
1297*/-
1298QQuickWindow::QQuickWindow(QQuickWindowPrivate &dd, QQuickRenderControl *control)-
1299 : QWindow(dd, nullptr)-
1300{-
1301 Q_D(QQuickWindow);-
1302 d->init(this, control);-
1303}
never executed: end of block
0
1304-
1305/*!-
1306 Destroys the window.-
1307*/-
1308QQuickWindow::~QQuickWindow()-
1309{-
1310 Q_D(QQuickWindow);-
1311-
1312 if (d->renderControl) {
d->renderControlDescription
TRUEnever evaluated
FALSEevaluated 5330 times by 89 tests
Evaluated 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
  • ...
0-5330
1313 QQuickRenderControlPrivate::get(d->renderControl)->windowDestroyed();-
1314 } else if (d->windowManager) {
never executed: end of block
d->windowManagerDescription
TRUEevaluated 5212 times by 88 tests
Evaluated 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
  • ...
FALSEevaluated 118 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
0-5212
1315 d->windowManager->removeWindow(this);-
1316 d->windowManager->windowDestroyed(this);-
1317 }
executed 5212 times by 88 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
  • ...
5212
1318-
1319 delete d->incubationController; d->incubationController = nullptr;-
1320#if QT_CONFIG(draganddrop)-
1321 delete d->dragGrabber; d->dragGrabber = nullptr;-
1322#endif-
1323 QQuickRootItem *root = d->contentItem;-
1324 d->contentItem = nullptr;-
1325 delete root;-
1326 qDeleteAll(d->pointerEventInstances);-
1327 d->pointerEventInstances.clear();-
1328-
1329 d->renderJobMutex.lock();-
1330 qDeleteAll(d->beforeSynchronizingJobs);-
1331 d->beforeSynchronizingJobs.clear();-
1332 qDeleteAll(d->afterSynchronizingJobs);-
1333 d->afterSynchronizingJobs.clear();-
1334 qDeleteAll(d->beforeRenderingJobs);-
1335 d->beforeRenderingJobs.clear();-
1336 qDeleteAll(d->afterRenderingJobs);-
1337 d->afterRenderingJobs.clear();-
1338 qDeleteAll(d->afterSwapJobs);-
1339 d->afterSwapJobs.clear();-
1340 d->renderJobMutex.unlock();-
1341-
1342 // It is important that the pixmap cache is cleaned up during shutdown.-
1343 // Besides playing nice, this also solves a practical problem that-
1344 // QQuickTextureFactory implementations in other libraries need-
1345 // have their destructors loaded while they the library is still-
1346 // loaded into memory.-
1347 QQuickPixmap::purgeCache();-
1348}
executed 5330 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
  • ...
5330
1349-
1350/*!-
1351 This function tries to release redundant resources currently held by the QML scene.-
1352-
1353 Calling this function might result in the scene graph and the OpenGL context used-
1354 for rendering being released to release graphics memory. If this happens, the-
1355 sceneGraphInvalidated() signal will be called, allowing users to clean up their-
1356 own graphics resources. The setPersistentOpenGLContext() and setPersistentSceneGraph()-
1357 functions can be used to prevent this from happening, if handling the cleanup is-
1358 not feasible in the application, at the cost of higher memory usage.-
1359-
1360 \sa sceneGraphInvalidated(), setPersistentOpenGLContext(), setPersistentSceneGraph()-
1361 */-
1362-
1363void QQuickWindow::releaseResources()-
1364{-
1365 Q_D(QQuickWindow);-
1366 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 254 times by 3 tests
Evaluated by:
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
FALSEnever evaluated
0-254
1367 d->windowManager->releaseResources(this);
executed 254 times by 3 tests: d->windowManager->releaseResources(this);
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
254
1368 QQuickPixmap::purgeCache();-
1369}
executed 254 times by 3 tests: end of block
Executed by:
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickimage
254
1370-
1371-
1372-
1373/*!-
1374 Sets whether the OpenGL context should be preserved, and cannot be-
1375 released until the last window is deleted, to \a persistent. The-
1376 default value is true.-
1377-
1378 The OpenGL context can be released to free up graphics resources-
1379 when the window is obscured, hidden or not rendering. When this-
1380 happens is implementation specific.-
1381-
1382 The QOpenGLContext::aboutToBeDestroyed() signal is emitted from-
1383 the QQuickWindow::openglContext() when the OpenGL context is about-
1384 to be released. The QQuickWindow::sceneGraphInitialized() signal-
1385 is emitted when a new OpenGL context is created for this-
1386 window. Make a Qt::DirectConnection to these signals to be-
1387 notified.-
1388-
1389 The OpenGL context is still released when the last QQuickWindow is-
1390 deleted.-
1391-
1392 \note This only has an effect when using the default OpenGL scene-
1393 graph adaptation.-
1394-
1395 \sa setPersistentSceneGraph(),-
1396 QOpenGLContext::aboutToBeDestroyed(), sceneGraphInitialized()-
1397 */-
1398-
1399void QQuickWindow::setPersistentOpenGLContext(bool persistent)-
1400{-
1401 Q_D(QQuickWindow);-
1402 d->persistentGLContext = persistent;-
1403}
executed 266 times by 1 test: end of block
Executed by:
  • tst_examples
266
1404-
1405-
1406-
1407/*!-
1408 Returns whether the OpenGL context can be released during the-
1409 lifetime of the QQuickWindow.-
1410-
1411 \note This is a hint. When and how this happens is implementation-
1412 specific. It also only has an effect when using the default OpenGL-
1413 scene graph adaptation-
1414 */-
1415-
1416bool QQuickWindow::isPersistentOpenGLContext() const-
1417{-
1418 Q_D(const QQuickWindow);-
1419 return d->persistentGLContext;
never executed: return d->persistentGLContext;
0
1420}-
1421-
1422-
1423-
1424/*!-
1425 Sets whether the scene graph nodes and resources can be released-
1426 to \a persistent. The default value is true.-
1427-
1428 The scene graph nodes and resources can be released to free up-
1429 graphics resources when the window is obscured, hidden or not-
1430 rendering. When this happens is implementation specific.-
1431-
1432 The QQuickWindow::sceneGraphInvalidated() signal is emitted when-
1433 cleanup occurs. The QQuickWindow::sceneGraphInitialized() signal-
1434 is emitted when a new scene graph is recreated for this-
1435 window. Make a Qt::DirectConnection to these signals to be-
1436 notified.-
1437-
1438 The scene graph nodes and resources are still released when the-
1439 last QQuickWindow is deleted.-
1440-
1441 \sa setPersistentOpenGLContext(),-
1442 sceneGraphInvalidated(), sceneGraphInitialized()-
1443 */-
1444-
1445void QQuickWindow::setPersistentSceneGraph(bool persistent)-
1446{-
1447 Q_D(QQuickWindow);-
1448 d->persistentSceneGraph = persistent;-
1449}
executed 266 times by 1 test: end of block
Executed by:
  • tst_examples
266
1450-
1451-
1452-
1453/*!-
1454 Returns whether the scene graph nodes and resources can be-
1455 released during the lifetime of this QQuickWindow.-
1456-
1457 \note This is a hint. When and how this happens is implementation-
1458 specific.-
1459 */-
1460-
1461bool QQuickWindow::isPersistentSceneGraph() const-
1462{-
1463 Q_D(const QQuickWindow);-
1464 return d->persistentSceneGraph;
executed 28 times by 1 test: return d->persistentSceneGraph;
Executed by:
  • tst_qquickwidget
28
1465}-
1466-
1467-
1468-
1469-
1470/*!-
1471 \qmlattachedproperty Item Window::contentItem-
1472 \since 5.4-
1473-
1474 This attached property holds the invisible root item of the scene or-
1475 \c null if the item is not in a window. The Window attached property-
1476 can be attached to any Item.-
1477*/-
1478-
1479/*!-
1480 \property QQuickWindow::contentItem-
1481 \brief The invisible root item of the scene.-
1482-
1483 A QQuickWindow always has a single invisible root item containing all of its content.-
1484 To add items to this window, reparent the items to the contentItem or to an existing-
1485 item in the scene.-
1486*/-
1487QQuickItem *QQuickWindow::contentItem() const-
1488{-
1489 Q_D(const QQuickWindow);-
1490-
1491 return d->contentItem;
executed 15398 times by 90 tests: return d->contentItem;
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
  • ...
15398
1492}-
1493-
1494/*!-
1495 \property QQuickWindow::activeFocusItem-
1496-
1497 \brief The item which currently has active focus or \c null if there is-
1498 no item with active focus.-
1499*/-
1500QQuickItem *QQuickWindow::activeFocusItem() const-
1501{-
1502 Q_D(const QQuickWindow);-
1503-
1504 return d->activeFocusItem;
executed 54206 times by 78 tests: return d->activeFocusItem;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • ...
54206
1505}-
1506-
1507/*!-
1508 \internal-
1509 \reimp-
1510*/-
1511QObject *QQuickWindow::focusObject() const-
1512{-
1513 Q_D(const QQuickWindow);-
1514-
1515 if (d->activeFocusItem)
d->activeFocusItemDescription
TRUEevaluated 12065 times by 17 tests
Evaluated by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-12065
1516 return d->activeFocusItem;
executed 12065 times by 17 tests: return d->activeFocusItem;
Executed by:
  • tst_qquickanimationcontroller
  • tst_qquickapplication
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
12065
1517 return const_cast<QQuickWindow*>(this);
never executed: return const_cast<QQuickWindow*>(this);
0
1518}-
1519-
1520-
1521/*!-
1522 Returns the item which currently has the mouse grab.-
1523*/-
1524QQuickItem *QQuickWindow::mouseGrabberItem() const-
1525{-
1526 Q_D(const QQuickWindow);-
1527-
1528 if (d->isDeliveringTouchAsMouse()) {
d->isDeliveringTouchAsMouse()Description
TRUEevaluated 518 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 474005 times by 90 tests
Evaluated 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
  • ...
518-474005
1529 if (QQuickPointerEvent *event = d->queryPointerEventInstance(d->touchMouseDevice)) {
QQuickPointerE...chMouseDevice)Description
TRUEevaluated 518 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEnever evaluated
0-518
1530 auto point = event->pointById(d->touchMouseId);-
1531 return point ? point->grabberItem() : nullptr;
executed 518 times by 5 tests: return point ? point->grabberItem() : nullptr;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
518
1532 }-
1533 } else if (QQuickPointerEvent *event = d->queryPointerEventInstance(QQuickPointerDevice::genericMouseDevice())) {
never executed: end of block
QQuickPointerE...MouseDevice())Description
TRUEevaluated 40512 times by 17 tests
Evaluated 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
FALSEevaluated 433493 times by 90 tests
Evaluated 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
  • ...
0-433493
1534 Q_ASSERT(event->pointCount());-
1535 return event->point(0)->grabberItem();
executed 40512 times by 17 tests: return event->point(0)->grabberItem();
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
40512
1536 }-
1537 return nullptr;
executed 433493 times by 90 tests: return nullptr;
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
  • ...
433493
1538}-
1539-
1540-
1541bool QQuickWindowPrivate::clearHover(ulong timestamp)-
1542{-
1543 Q_Q(QQuickWindow);-
1544 if (hoverItems.isEmpty())
hoverItems.isEmpty()Description
TRUEevaluated 17477 times by 14 tests
Evaluated 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_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktextinput
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickwidget
10-17477
1545 return false;
executed 17477 times by 14 tests: return false;
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_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktextinput
17477
1546-
1547 QPointF pos = q->mapFromGlobal(QGuiApplicationPrivate::lastCursorPosition.toPoint());-
1548-
1549 bool accepted = false;-
1550 for (QQuickItem* item : qAsConst(hoverItems)) {-
1551 accepted = sendHoverEvent(QEvent::HoverLeave, item, pos, pos, QGuiApplication::keyboardModifiers(), timestamp, true) || accepted;
sendHoverEvent...mestamp, true)Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickwidget
FALSEnever evaluated
acceptedDescription
TRUEnever evaluated
FALSEnever evaluated
0-10
1552 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
1553 if (itemPrivate->hasPointerHandlers()) {
itemPrivate->h...nterHandlers()Description
TRUEnever evaluated
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickwidget
0-10
1554 pos = q->mapFromGlobal(QCursor::pos());-
1555 QQuickPointerEvent *pointerEvent = pointerEventInstance(QQuickPointerDevice::genericMouseDevice(), QEvent::MouseMove);-
1556 pointerEvent->point(0)->reset(Qt::TouchPointMoved, pos, quint64(1) << 24 /* mouse has device ID 1 */, timestamp, QVector2D());-
1557 pointerEvent->point(0)->setAccepted(true);-
1558 pointerEvent->localize(item);-
1559 for (QQuickPointerHandler *h : itemPrivate->extra->pointerHandlers)-
1560 if (QQuickHoverHandler *hh = qmlobject_cast<QQuickHoverHandler *>(h))
QQuickHoverHan...rHandler *>(h)Description
TRUEnever evaluated
FALSEnever evaluated
0
1561 hh->handlePointerEvent(pointerEvent);
never executed: hh->handlePointerEvent(pointerEvent);
0
1562 }
never executed: end of block
0
1563 }
executed 10 times by 3 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickwidget
10
1564 hoverItems.clear();-
1565 return accepted;
executed 10 times by 3 tests: return accepted;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickwidget
10
1566}-
1567-
1568/*! \reimp */-
1569bool QQuickWindow::event(QEvent *e)-
1570{-
1571 Q_D(QQuickWindow);-
1572-
1573 switch (e->type()) {-
1574-
1575 case QEvent::TouchBegin:
executed 216 times by 10 tests: case QEvent::TouchBegin:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
216
1576 case QEvent::TouchUpdate:
executed 840 times by 10 tests: case QEvent::TouchUpdate:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
840
1577 case QEvent::TouchEnd: {
executed 184 times by 10 tests: case QEvent::TouchEnd:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
184
1578 QTouchEvent *touch = static_cast<QTouchEvent*>(e);-
1579 d->handleTouchEvent(touch);-
1580 if (Q_LIKELY(QCoreApplication::testAttribute(Qt::AA_SynthesizeMouseForUnhandledTouchEvents))) {
__builtin_expe...vents)), true)Description
TRUEevaluated 448 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
FALSEevaluated 792 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
448-792
1581 // we consume all touch events ourselves to avoid duplicate-
1582 // mouse delivery by QtGui mouse synthesis-
1583 e->accept();-
1584 }
executed 448 times by 5 tests: end of block
Executed by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
448
1585 return true;
executed 1240 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
1240
1586 }-
1587 break;
dead code: break;
-
1588 case QEvent::TouchCancel:
executed 2 times by 1 test: case QEvent::TouchCancel:
Executed by:
  • tst_qquickpincharea
2
1589 // return in order to avoid the QWindow::event below-
1590 return d->deliverTouchCancelEvent(static_cast<QTouchEvent*>(e));
executed 2 times by 1 test: return d->deliverTouchCancelEvent(static_cast<QTouchEvent*>(e));
Executed by:
  • tst_qquickpincharea
2
1591 break;
dead code: break;
-
1592 case QEvent::Enter: {
executed 600 times by 10 tests: case QEvent::Enter:
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquickwidget
  • tst_touchmouse
600
1593 if (!d->contentItem)
!d->contentItemDescription
TRUEnever evaluated
FALSEevaluated 600 times by 10 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquickwidget
  • tst_touchmouse
0-600
1594 return false;
never executed: return false;
0
1595 QEnterEvent *enter = static_cast<QEnterEvent*>(e);-
1596 bool accepted = enter->isAccepted();-
1597 bool delivered = d->deliverHoverEvent(d->contentItem, enter->windowPos(), d->lastMousePosition,-
1598 QGuiApplication::keyboardModifiers(), 0L, accepted);-
1599 enter->setAccepted(accepted);-
1600 return delivered;
executed 600 times by 10 tests: return delivered;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquickwidget
  • tst_touchmouse
600
1601 }-
1602 break;
dead code: break;
-
1603 case QEvent::Leave:
executed 2 times by 1 test: case QEvent::Leave:
Executed by:
  • tst_qquickwidget
2
1604 d->clearHover();-
1605 d->lastMousePosition = QPointF();-
1606 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickwidget
2
1607#if QT_CONFIG(draganddrop)-
1608 case QEvent::DragEnter:
executed 60 times by 1 test: case QEvent::DragEnter:
Executed by:
  • tst_qquickdroparea
60
1609 case QEvent::DragLeave:
executed 50 times by 1 test: case QEvent::DragLeave:
Executed by:
  • tst_qquickdroparea
50
1610 case QEvent::DragMove:
executed 68 times by 1 test: case QEvent::DragMove:
Executed by:
  • tst_qquickdroparea
68
1611 case QEvent::Drop:
executed 10 times by 1 test: case QEvent::Drop:
Executed by:
  • tst_qquickdroparea
10
1612 d->deliverDragEvent(d->dragGrabber, e);-
1613 break;
executed 188 times by 1 test: break;
Executed by:
  • tst_qquickdroparea
188
1614#endif-
1615 case QEvent::WindowDeactivate:
never executed: case QEvent::WindowDeactivate:
0
1616 if (d->contentItem)
d->contentItemDescription
TRUEnever evaluated
FALSEnever evaluated
0
1617 d->contentItem->windowDeactivateEvent();
never executed: d->contentItem->windowDeactivateEvent();
0
1618 break;
never executed: break;
0
1619 case QEvent::Close: {
never executed: case QEvent::Close:
0
1620 // TOOD Qt 6 (binary incompatible)-
1621 // closeEvent(static_cast<QCloseEvent *>(e));-
1622 QQuickCloseEvent qev;-
1623 qev.setAccepted(e->isAccepted());-
1624 emit closing(&qev);-
1625 e->setAccepted(qev.isAccepted());-
1626 } break;
never executed: break;
0
1627 case QEvent::FocusAboutToChange:
executed 20 times by 5 tests: case QEvent::FocusAboutToChange:
Executed by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20
1628#if QT_CONFIG(im)-
1629 if (d->activeFocusItem)
d->activeFocusItemDescription
TRUEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
FALSEnever evaluated
0-20
1630 qGuiApp->inputMethod()->commit();
executed 20 times by 5 tests: (static_cast<QGuiApplication *>(QCoreApplication::instance()))->inputMethod()->commit();
Executed by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20
1631#endif-
1632 if (mouseGrabberItem())
mouseGrabberItem()Description
TRUEnever evaluated
FALSEevaluated 20 times by 5 tests
Evaluated by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
0-20
1633 mouseGrabberItem()->ungrabMouse();
never executed: mouseGrabberItem()->ungrabMouse();
0
1634 break;
executed 20 times by 5 tests: break;
Executed by:
  • tst_qquickapplication
  • tst_qquickfocusscope
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicktextedit
20
1635 case QEvent::UpdateRequest: {
executed 42673 times by 65 tests: case QEvent::UpdateRequest:
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
42673
1636 if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 42673 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
FALSEnever evaluated
0-42673
1637 d->windowManager->handleUpdateRequest(this);
executed 42673 times by 65 tests: d->windowManager->handleUpdateRequest(this);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
42673
1638 break;
executed 42673 times by 65 tests: break;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
42673
1639 }-
1640#if QT_CONFIG(gestures)-
1641 case QEvent::NativeGesture:
never executed: case QEvent::NativeGesture:
0
1642 d->deliverSinglePointEventUntilAccepted(d->pointerEventInstance(e));-
1643 break;
never executed: break;
0
1644#endif-
1645 case QEvent::ShortcutOverride:
executed 2124 times by 8 tests: case QEvent::ShortcutOverride:
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
2124
1646 if (d->activeFocusItem)
d->activeFocusItemDescription
TRUEevaluated 2102 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquickwidget
22-2102
1647 QCoreApplication::sendEvent(d->activeFocusItem, e);
executed 2102 times by 7 tests: QCoreApplication::sendEvent(d->activeFocusItem, e);
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
2102
1648 return true;
executed 2124 times by 8 tests: return true;
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
2124
1649 default:
executed 56630 times by 90 tests: default:
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
  • ...
56630
1650 break;
executed 56630 times by 90 tests: break;
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
  • ...
56630
1651 }-
1652-
1653 if (e->type() == QEvent::Type(QQuickWindowPrivate::FullUpdateRequest))
e->type() == Q...UpdateRequest)Description
TRUEnever evaluated
FALSEevaluated 99513 times by 90 tests
Evaluated 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
  • ...
0-99513
1654 update();
never executed: update();
0
1655-
1656 return QWindow::event(e);
executed 99513 times by 90 tests: return QWindow::event(e);
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
  • ...
99513
1657}-
1658-
1659/*! \reimp */-
1660void QQuickWindow::keyPressEvent(QKeyEvent *e)-
1661{-
1662 Q_D(QQuickWindow);-
1663 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Key, QQuickProfiler::InputKeyPress, e->key(),
never executed: end of block
executed 3506 times by 8 tests: (void)0 ;
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 3506 times by 8 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
0-3506
1664 e->modifiers());
executed 3506 times by 8 tests: (void)0 ;
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
3506
1665 d->deliverKeyEvent(e);-
1666}
executed 3506 times by 8 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
3506
1667-
1668/*! \reimp */-
1669void QQuickWindow::keyReleaseEvent(QKeyEvent *e)-
1670{-
1671 Q_D(QQuickWindow);-
1672 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Key, QQuickProfiler::InputKeyRelease, e->key(),
never executed: end of block
executed 3126 times by 9 tests: (void)0 ;
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 3126 times by 9 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
0-3126
1673 e->modifiers());
executed 3126 times by 9 tests: (void)0 ;
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
3126
1674 d->deliverKeyEvent(e);-
1675}
executed 3126 times by 9 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
3126
1676-
1677void QQuickWindowPrivate::deliverKeyEvent(QKeyEvent *e)-
1678{-
1679 if (activeFocusItem) {
activeFocusItemDescription
TRUEevaluated 6608 times by 8 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquickwidget
24-6608
1680 QQuickItem *item = activeFocusItem;-
1681 e->accept();-
1682 QCoreApplication::sendEvent(item, e);-
1683 while (!e->isAccepted() && (item = item->parentItem())) {
!e->isAccepted()Description
TRUEevaluated 6132 times by 8 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4030 times by 7 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
(item = item->parentItem())Description
TRUEevaluated 3554 times by 6 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 2578 times by 8 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
2578-6132
1684 e->accept();-
1685 QCoreApplication::sendEvent(item, e);-
1686 }
executed 3554 times by 6 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
  • tst_qquicktextinput
3554
1687 }
executed 6608 times by 8 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
6608
1688}
executed 6632 times by 9 tests: end of block
Executed by:
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshortcut
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
6632
1689-
1690QMouseEvent *QQuickWindowPrivate::cloneMouseEvent(QMouseEvent *event, QPointF *transformedLocalPos)-
1691{-
1692 int caps = QGuiApplicationPrivate::mouseEventCaps(event);-
1693 QVector2D velocity = QGuiApplicationPrivate::mouseEventVelocity(event);-
1694 QMouseEvent *me = new QMouseEvent(event->type(),-
1695 transformedLocalPos ? *transformedLocalPos : event->localPos(),-
1696 event->windowPos(), event->screenPos(),-
1697 event->button(), event->buttons(), event->modifiers());-
1698 QGuiApplicationPrivate::setMouseEventCapsAndVelocity(me, caps, velocity);-
1699 QGuiApplicationPrivate::setMouseEventSource(me, QGuiApplicationPrivate::mouseEventSource(event));-
1700 me->setTimestamp(event->timestamp());-
1701 return me;
executed 1305 times by 7 tests: return me;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
1305
1702}-
1703-
1704void QQuickWindowPrivate::deliverToPassiveGrabbers(const QVector<QPointer <QQuickPointerHandler> > &passiveGrabbers,-
1705 QQuickPointerEvent *pointerEvent)-
1706{-
1707 const QVector<QQuickPointerHandler *> &eventDeliveryTargets = pointerEvent->device()->eventDeliveryTargets();-
1708 QVarLengthArray<QPair<QQuickItem *, bool>, 4> sendFilteredPointerEventResult;-
1709 for (auto handler : passiveGrabbers) {-
1710 // a null pointer in passiveGrabbers is unlikely, unless the grabbing handler was deleted dynamically-
1711 if (Q_LIKELY(handler) && !eventDeliveryTargets.contains(handler)) {
__builtin_expe...andler), true)Description
TRUEevaluated 1153 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
FALSEnever evaluated
!eventDelivery...tains(handler)Description
TRUEevaluated 520 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
FALSEevaluated 633 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
0-1153
1712 bool alreadyFiltered = false;-
1713 QQuickItem *par = handler->parentItem();-
1714-
1715 // see if we already have sent a filter event to the parent-
1716 auto it = std::find_if(sendFilteredPointerEventResult.begin(), sendFilteredPointerEventResult.end(),-
1717 [par](const QPair<QQuickItem *, bool> &pair) { return pair.first == par; });
executed 116 times by 2 tests: return pair.first == par;
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
116
1718 if (it != sendFilteredPointerEventResult.end()) {
it != sendFilt...ntResult.end()Description
TRUEevaluated 100 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
FALSEevaluated 420 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
100-420
1719 // Yes, the event was already filtered to that parent, do not call it again but use-
1720 // the result of the previous call to determine if we should call the handler.-
1721 alreadyFiltered = it->second;-
1722 } else {
executed 100 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
100
1723 alreadyFiltered = sendFilteredPointerEvent(pointerEvent, par);-
1724 sendFilteredPointerEventResult << qMakePair<QQuickItem*, bool>(par, alreadyFiltered);-
1725 }
executed 420 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
420
1726 if (!alreadyFiltered) {
!alreadyFilteredDescription
TRUEevaluated 504 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_flickableinterop
16-504
1727 pointerEvent->localize(handler->parentItem());-
1728 handler->handlePointerEvent(pointerEvent);-
1729 }
executed 504 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
504
1730 }
executed 520 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
520
1731 }
executed 1153 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
1153
1732}
executed 9934 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
9934
1733-
1734-
1735-
1736void QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent *pointerEvent)-
1737{-
1738 auto point = pointerEvent->point(0);-
1739 lastMousePosition = point->scenePosition();-
1740 const bool mouseIsReleased = (point->state() == QQuickEventPoint::Released && pointerEvent->buttons() == Qt::NoButton);
point->state()...oint::ReleasedDescription
TRUEevaluated 1786 times by 14 tests
Evaluated 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
FALSEevaluated 8358 times by 16 tests
Evaluated 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
pointerEvent->...= Qt::NoButtonDescription
TRUEevaluated 1706 times by 14 tests
Evaluated 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
FALSEevaluated 80 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
80-8358
1741-
1742 if (point->exclusiveGrabber()) {
point->exclusiveGrabber()Description
TRUEevaluated 6596 times by 14 tests
Evaluated 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
FALSEevaluated 3548 times by 16 tests
Evaluated 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
3548-6596
1743 if (auto grabber = point->grabberItem()) {
auto grabber =...>grabberItem()Description
TRUEevaluated 6530 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 66 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
66-6530
1744 bool handled = false;-
1745 if (sendFilteredPointerEvent(pointerEvent, grabber))
sendFilteredPo...vent, grabber)Description
TRUEevaluated 116 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 6414 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
116-6414
1746 handled = true;
executed 116 times by 5 tests: handled = true;
Executed by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
116
1747 // if the grabber is an Item:-
1748 // if the update consists of changing button state, don't accept it unless-
1749 // the button is one in which the grabber is interested-
1750 Qt::MouseButtons acceptedButtons = grabber->acceptedMouseButtons();-
1751 if (!handled && pointerEvent->button() != Qt::NoButton && acceptedButtons
!handledDescription
TRUEevaluated 6414 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 116 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
pointerEvent->...= Qt::NoButtonDescription
TRUEevaluated 1790 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4624 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
116-6414
1752 && !(acceptedButtons & pointerEvent->button())) {
!(acceptedButt...ent->button())Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
FALSEevaluated 1772 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
16-1772
1753 pointerEvent->setAccepted(false);-
1754 handled = true;-
1755 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
16
1756-
1757 // send update-
1758 if (!handled) {
!handledDescription
TRUEevaluated 6398 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 132 times by 6 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
132-6398
1759 QPointF localPos = grabber->mapFromScene(lastMousePosition);-
1760 auto me = pointerEvent->asMouseEvent(localPos);-
1761 me->accept();-
1762 QCoreApplication::sendEvent(grabber, me);-
1763 point->setAccepted(me->isAccepted());-
1764 }
executed 6398 times by 12 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
6398
1765-
1766 // release event: ungrab if no buttons are pressed anymore-
1767 if (mouseIsReleased)
mouseIsReleasedDescription
TRUEevaluated 1540 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 4990 times by 11 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1540-4990
1768 removeGrabber(grabber, true, isDeliveringTouchAsMouse());
executed 1540 times by 12 tests: removeGrabber(grabber, true, isDeliveringTouchAsMouse());
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1540
1769 } else {
executed 6530 times by 12 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
6530
1770 // if the grabber is not an Item, it must be a PointerHandler-
1771 auto handler = point->grabberPointerHandler();-
1772 pointerEvent->localize(handler->parentItem());-
1773 if (!sendFilteredPointerEvent(pointerEvent, handler->parentItem()))
!sendFilteredP...>parentItem())Description
TRUEevaluated 62 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_flickableinterop
4-62
1774 handler->handlePointerEvent(pointerEvent);
executed 62 times by 4 tests: handler->handlePointerEvent(pointerEvent);
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
62
1775 if (mouseIsReleased)
mouseIsReleasedDescription
TRUEevaluated 28 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 38 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
28-38
1776 point->setGrabberPointerHandler(nullptr, true);
executed 28 times by 4 tests: point->setGrabberPointerHandler(nullptr, true);
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
28
1777 }
executed 66 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
66
1778 deliverToPassiveGrabbers(point->passiveGrabbers(), pointerEvent);-
1779 } else {
executed 6596 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
6596
1780 bool delivered = false;-
1781 if (pointerEvent->isPressEvent()) {
pointerEvent->isPressEvent()Description
TRUEevaluated 1764 times by 14 tests
Evaluated 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
FALSEevaluated 1784 times by 16 tests
Evaluated 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
1764-1784
1782 // send initial press-
1783 delivered = deliverPressOrReleaseEvent(pointerEvent);-
1784 } else if (pointerEvent->device()->type() == QQuickPointerDevice::Mouse) {
executed 1764 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
pointerEvent->...rDevice::MouseDescription
TRUEevaluated 1784 times by 16 tests
Evaluated 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
FALSEnever evaluated
0-1784
1785 // if this is an update or release from an actual mouse,-
1786 // and the point wasn't grabbed, deliver only to PointerHandlers:-
1787 // passive grabbers first, then the rest-
1788 deliverToPassiveGrabbers(point->passiveGrabbers(), pointerEvent);-
1789-
1790 // If some points weren't grabbed, deliver to non-grabber PointerHandlers in reverse paint order-
1791 if (!pointerEvent->allPointsGrabbed() && pointerEvent->buttons()) {
!pointerEvent-...ointsGrabbed()Description
TRUEevaluated 1774 times by 16 tests
Evaluated 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
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
10-1774
1792 QVector<QQuickItem *> targetItems = pointerTargets(contentItem, point, false, false);-
1793 for (QQuickItem *item : targetItems) {-
1794 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
1795 if (!itemPrivate->extra.isAllocated() || itemPrivate->extra->pointerHandlers.isEmpty())
!itemPrivate->....isAllocated()Description
TRUEevaluated 24 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
FALSEevaluated 534 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
itemPrivate->e...lers.isEmpty()Description
TRUEevaluated 446 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 88 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
24-534
1796 continue;
executed 470 times by 8 tests: continue;
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
470
1797 pointerEvent->localize(item);-
1798 if (!sendFilteredPointerEvent(pointerEvent, item)) {
!sendFilteredP...erEvent, item)Description
TRUEevaluated 82 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_flickableinterop
6-82
1799 if (itemPrivate->handlePointerEvent(pointerEvent, true)) // avoid re-delivering to grabbers
itemPrivate->h...erEvent, true)Description
TRUEevaluated 60 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickpointerhandler
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
22-60
1800 delivered = true;
executed 60 times by 2 tests: delivered = true;
Executed by:
  • tst_flickableinterop
  • tst_qquickpointerhandler
60
1801 }
executed 82 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
82
1802 if (point->exclusiveGrabber())
point->exclusiveGrabber()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_flickableinterop
FALSEevaluated 82 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
6-82
1803 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_flickableinterop
6
1804 }
executed 82 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
82
1805 }
executed 152 times by 8 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
152
1806 }
executed 1784 times by 16 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_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
1784
1807-
1808 if (!delivered)
!deliveredDescription
TRUEevaluated 1898 times by 16 tests
Evaluated 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
FALSEevaluated 1650 times by 14 tests
Evaluated 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
1650-1898
1809 // make sure not to accept unhandled events-
1810 pointerEvent->setAccepted(false);
executed 1898 times by 16 tests: pointerEvent->setAccepted(false);
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
1898
1811 }
executed 3548 times by 16 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_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
3548
1812}-
1813-
1814bool QQuickWindowPrivate::sendHoverEvent(QEvent::Type type, QQuickItem *item,-
1815 const QPointF &scenePos, const QPointF &lastScenePos,-
1816 Qt::KeyboardModifiers modifiers, ulong timestamp,-
1817 bool accepted)-
1818{-
1819 const QTransform transform = QQuickItemPrivate::get(item)->windowToItemTransform();-
1820-
1821 //create copy of event-
1822 QHoverEvent hoverEvent(type, transform.map(scenePos), transform.map(lastScenePos), modifiers);-
1823 hoverEvent.setTimestamp(timestamp);-
1824 hoverEvent.setAccepted(accepted);-
1825-
1826 hasFiltered.clear();-
1827 if (sendFilteredMouseEvent(&hoverEvent, item, item->parentItem()))
sendFilteredMo...>parentItem())Description
TRUEnever evaluated
FALSEevaluated 532 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
0-532
1828 return true;
never executed: return true;
0
1829-
1830 QCoreApplication::sendEvent(item, &hoverEvent);-
1831-
1832 return hoverEvent.isAccepted();
executed 532 times by 6 tests: return hoverEvent.isAccepted();
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
532
1833}-
1834-
1835bool QQuickWindowPrivate::deliverHoverEvent(QQuickItem *item, const QPointF &scenePos, const QPointF &lastScenePos,-
1836 Qt::KeyboardModifiers modifiers, ulong timestamp, bool &accepted)-
1837{-
1838 Q_Q(QQuickWindow);-
1839 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
1840-
1841 if (itemPrivate->flags & QQuickItem::ItemClipsChildrenToShape) {
itemPrivate->f...hildrenToShapeDescription
TRUEnever evaluated
FALSEevaluated 19755 times by 21 tests
Evaluated 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_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_touchmouse
0-19755
1842 QPointF p = item->mapFromScene(scenePos);-
1843 if (!item->contains(p))
!item->contains(p)Description
TRUEnever evaluated
FALSEnever evaluated
0
1844 return false;
never executed: return false;
0
1845 }
never executed: end of block
0
1846-
1847 qCDebug(DBG_HOVER_TRACE) << q << item << scenePos << lastScenePos << "subtreeHoverEnabled" << itemPrivate->subtreeHoverEnabled;
never executed: QMessageLogger(__FILE__, 1847, __PRETTY_FUNCTION__, DBG_HOVER_TRACE().categoryName()).debug() << q << item << scenePos << lastScenePos << "subtreeHoverEnabled" << itemPrivate->subtreeHoverEnabled;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 19755 times by 21 tests
Evaluated 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_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_touchmouse
0-19755
1848 if (itemPrivate->subtreeHoverEnabled) {
itemPrivate->s...eeHoverEnabledDescription
TRUEevaluated 1652 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 18103 times by 21 tests
Evaluated 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_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_touchmouse
1652-18103
1849 QList<QQuickItem *> children = itemPrivate->paintOrderChildItems();-
1850 for (int ii = children.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 1202 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 918 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
918-1202
1851 QQuickItem *child = children.at(ii);-
1852 if (!child->isVisible() || !child->isEnabled() || QQuickItemPrivate::get(child)->culled)
!child->isVisible()Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
FALSEevaluated 1174 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
!child->isEnabled()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquickitem
FALSEevaluated 1164 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
QQuickItemPriv...child)->culledDescription
TRUEnever evaluated
FALSEevaluated 1164 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
0-1174
1853 continue;
executed 38 times by 2 tests: continue;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
38
1854 if (deliverHoverEvent(child, scenePos, lastScenePos, modifiers, timestamp, accepted))
deliverHoverEv...amp, accepted)Description
TRUEevaluated 734 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 430 times by 5 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
430-734
1855 return true;
executed 734 times by 6 tests: return true;
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
734
1856 }
executed 430 times by 5 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
430
1857 }
executed 918 times by 6 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
918
1858-
1859 if (itemPrivate->hasPointerHandlers()) {
itemPrivate->h...nterHandlers()Description
TRUEnever evaluated
FALSEevaluated 19021 times by 21 tests
Evaluated 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_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_touchmouse
0-19021
1860 QQuickPointerEvent *pointerEvent = pointerEventInstance(QQuickPointerDevice::genericMouseDevice(), QEvent::MouseMove);-
1861 pointerEvent->point(0)->reset(Qt::TouchPointMoved, scenePos, quint64(1) << 24 /* mouse has device ID 1 */, timestamp, QVector2D());-
1862 pointerEvent->point(0)->setAccepted(true);-
1863 pointerEvent->localize(item);-
1864 for (QQuickPointerHandler *h : itemPrivate->extra->pointerHandlers)-
1865 if (QQuickHoverHandler *hh = qmlobject_cast<QQuickHoverHandler *>(h))
QQuickHoverHan...rHandler *>(h)Description
TRUEnever evaluated
FALSEnever evaluated
0
1866 hh->handlePointerEvent(pointerEvent);
never executed: hh->handlePointerEvent(pointerEvent);
0
1867 }
never executed: end of block
0
1868-
1869 if (itemPrivate->hoverEnabled) {
itemPrivate->hoverEnabledDescription
TRUEevaluated 600 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 18421 times by 21 tests
Evaluated 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_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_touchmouse
600-18421
1870 QPointF p = item->mapFromScene(scenePos);-
1871 if (item->contains(p)) {
item->contains(p)Description
TRUEevaluated 510 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 90 times by 4 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktextedit
90-510
1872 if (!hoverItems.isEmpty() && hoverItems.at(0) == item) {
!hoverItems.isEmpty()Description
TRUEevaluated 364 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 146 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
hoverItems.at(0) == itemDescription
TRUEevaluated 356 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquicktextedit
8-364
1873 //move-
1874 accepted = sendHoverEvent(QEvent::HoverMove, item, scenePos, lastScenePos, modifiers, timestamp, accepted);-
1875 } else {
executed 356 times by 6 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
356
1876 QList<QQuickItem *> itemsToHover;-
1877 QQuickItem* parent = item;-
1878 itemsToHover << item;-
1879 while ((parent = parent->parentItem()))
(parent = pare...>parentItem())Description
TRUEevaluated 222 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 154 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
154-222
1880 itemsToHover << parent;
executed 222 times by 6 tests: itemsToHover << parent;
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
222
1881-
1882 // Leaving from previous hovered items until we reach the item or one of its ancestors.-
1883 while (!hoverItems.isEmpty() && !itemsToHover.contains(hoverItems.at(0))) {
!hoverItems.isEmpty()Description
TRUEevaluated 12 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquicktextedit
FALSEevaluated 150 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
!itemsToHover....erItems.at(0))Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquicktextedit
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitem
4-150
1884 QQuickItem *hoverLeaveItem = hoverItems.takeFirst();-
1885 sendHoverEvent(QEvent::HoverLeave, hoverLeaveItem, scenePos, lastScenePos, modifiers, timestamp, accepted);-
1886 }
executed 8 times by 3 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquicktextedit
8
1887-
1888 if (!hoverItems.isEmpty() && hoverItems.at(0) == item) {//Not entering a new Item
!hoverItems.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitem
FALSEevaluated 150 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
hoverItems.at(0) == itemDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitem
0-150
1889 // ### Shouldn't we send moves for the parent items as well?-
1890 accepted = sendHoverEvent(QEvent::HoverMove, item, scenePos, lastScenePos, modifiers, timestamp, accepted);-
1891 } else {
never executed: end of block
0
1892 // Enter items that are not entered yet.-
1893 int startIdx = -1;-
1894 if (!hoverItems.isEmpty())
!hoverItems.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitem
FALSEevaluated 150 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
4-150
1895 startIdx = itemsToHover.indexOf(hoverItems.at(0)) - 1;
executed 4 times by 1 test: startIdx = itemsToHover.indexOf(hoverItems.at(0)) - 1;
Executed by:
  • tst_qquickitem
4
1896 if (startIdx == -1)
startIdx == -1Description
TRUEevaluated 150 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitem
4-150
1897 startIdx = itemsToHover.count() - 1;
executed 150 times by 6 tests: startIdx = itemsToHover.count() - 1;
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
150
1898-
1899 for (int i = startIdx; i >= 0; i--) {
i >= 0Description
TRUEevaluated 368 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 154 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
154-368
1900 QQuickItem *itemToHover = itemsToHover.at(i);-
1901 QQuickItemPrivate *itemToHoverPrivate = QQuickItemPrivate::get(itemToHover);-
1902 // The item may be about to be deleted or reparented to another window-
1903 // due to another hover event delivered in this function. If that is the-
1904 // case, sending a hover event here will cause a crash or other bad-
1905 // behavior when the leave event is generated. Checking-
1906 // itemToHoverPrivate->window here prevents that case.-
1907 if (itemToHoverPrivate->window == q && itemToHoverPrivate->hoverEnabled) {
itemToHoverPri...e->window == qDescription
TRUEevaluated 368 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEnever evaluated
itemToHoverPri...->hoverEnabledDescription
TRUEevaluated 158 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
FALSEevaluated 210 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
0-368
1908 hoverItems.prepend(itemToHover);-
1909 sendHoverEvent(QEvent::HoverEnter, itemToHover, scenePos, lastScenePos, modifiers, timestamp, accepted);-
1910 }
executed 158 times by 6 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
158
1911 }
executed 368 times by 6 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
368
1912 }
executed 154 times by 6 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
154
1913 }-
1914 return true;
executed 510 times by 6 tests: return true;
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
510
1915 }-
1916 }
executed 90 times by 4 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktextedit
90
1917-
1918 return false;
executed 18511 times by 21 tests: return false;
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_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktableview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_touchmouse
18511
1919}-
1920-
1921// Simple delivery of non-mouse, non-touch Pointer Events: visit the items and handlers-
1922// in the usual reverse-paint-order until propagation is stopped-
1923bool QQuickWindowPrivate::deliverSinglePointEventUntilAccepted(QQuickPointerEvent *event)-
1924{-
1925 Q_ASSERT(event->pointCount() == 1);-
1926 QQuickEventPoint *point = event->point(0);-
1927 QVector<QQuickItem *> targetItems = pointerTargets(contentItem, point, false, false);-
1928-
1929 for (QQuickItem *item : targetItems) {-
1930 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
1931 event->localize(item);-
1932 // Let Pointer Handlers have the first shot-
1933 itemPrivate->handlePointerEvent(event);-
1934 if (point->isAccepted())
point->isAccepted()Description
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
0-10
1935 return true;
never executed: return true;
0
1936 QPointF g = item->window()->mapToGlobal(point->scenePosition().toPoint());-
1937#if QT_CONFIG(wheelevent)-
1938 // Let the Item have a chance to handle it-
1939 if (QQuickPointerScrollEvent *pse = event->asPointerScrollEvent()) {
QQuickPointerS...rScrollEvent()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
FALSEnever evaluated
0-10
1940 QWheelEvent wheel(point->position(), g, pse->pixelDelta().toPoint(), pse->angleDelta().toPoint(),-
1941 pse->buttons(), pse->modifiers(), pse->phase(),-
1942 pse->isInverted(), pse->synthSource());-
1943 wheel.setTimestamp(pse->timestamp());-
1944 wheel.accept();-
1945 QCoreApplication::sendEvent(item, &wheel);-
1946 if (wheel.isAccepted()) {
wheel.isAccepted()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickitem
4-6
1947 qCDebug(lcWheelTarget) << &wheel << "->" << item;
never executed: QMessageLogger(__FILE__, 1947, __PRETTY_FUNCTION__, lcWheelTarget().categoryName()).debug() << &wheel << "->" << item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
0-4
1948 event->setAccepted(true);-
1949 return true;
executed 4 times by 2 tests: return true;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
4
1950 }-
1951 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickitem
6
1952#endif-
1953#if QT_CONFIG(gestures)-
1954 if (QQuickPointerNativeGestureEvent *pnge = event->asPointerNativeGestureEvent()) {
QQuickPointerN...GestureEvent()Description
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickitem
0-6
1955 QNativeGestureEvent nge(pnge->type(), pnge->device()->qTouchDevice(), point->position(), point->scenePosition(), g,-
1956 pnge->value(), 0L, 0L); // TODO can't copy things I can't access-
1957 nge.accept();-
1958 QCoreApplication::sendEvent(item, &nge);-
1959 if (nge.isAccepted()) {
nge.isAccepted()Description
TRUEnever evaluated
FALSEnever evaluated
0
1960 qCDebug(lcGestureTarget) << &nge << "->" << item;
never executed: QMessageLogger(__FILE__, 1960, __PRETTY_FUNCTION__, lcGestureTarget().categoryName()).debug() << &nge << "->" << item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
1961 event->setAccepted(true);-
1962 return true;
never executed: return true;
0
1963 }-
1964 }
never executed: end of block
0
1965#endif // gestures-
1966 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickitem
6
1967-
1968 return false; // it wasn't handled
executed 6 times by 1 test: return false;
Executed by:
  • tst_qquickitem
6
1969}-
1970-
1971#if QT_CONFIG(wheelevent)-
1972/*! \reimp */-
1973void QQuickWindow::wheelEvent(QWheelEvent *event)-
1974{-
1975 Q_D(QQuickWindow);-
1976 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Mouse, QQuickProfiler::InputMouseWheel,
never executed: end of block
executed 10 times by 2 tests: (void)0 ;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
0-10
1977 event->angleDelta().x(), event->angleDelta().y());
executed 10 times by 2 tests: (void)0 ;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
10
1978-
1979 qCDebug(DBG_MOUSE) << "QQuickWindow::wheelEvent()" << event->pixelDelta() << event->angleDelta() << event->phase();
never executed: QMessageLogger(__FILE__, 1979, __PRETTY_FUNCTION__, DBG_MOUSE().categoryName()).debug() << "QQuickWindow::wheelEvent()" << event->pixelDelta() << event->angleDelta() << event->phase();
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
0-10
1980-
1981 //if the actual wheel event was accepted, accept the compatibility wheel event and return early-
1982 if (d->lastWheelEventAccepted && event->angleDelta().isNull() && event->phase() == Qt::ScrollUpdate)
d->lastWheelEventAcceptedDescription
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
event->angleDelta().isNull()Description
TRUEnever evaluated
FALSEnever evaluated
event->phase()...::ScrollUpdateDescription
TRUEnever evaluated
FALSEnever evaluated
0-10
1983 return;
never executed: return;
0
1984-
1985 event->ignore();-
1986 d->deliverPointerEvent(d->pointerEventInstance(event));-
1987 d->lastWheelEventAccepted = event->isAccepted();-
1988}
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
10
1989#endif // wheelevent-
1990-
1991bool QQuickWindowPrivate::deliverTouchCancelEvent(QTouchEvent *event)-
1992{-
1993 qCDebug(DBG_TOUCH) << event;
never executed: QMessageLogger(__FILE__, 1993, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << event;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpincharea
0-2
1994 Q_Q(QQuickWindow);-
1995-
1996 if (q->mouseGrabberItem())
q->mouseGrabberItem()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpincharea
FALSEnever evaluated
0-2
1997 q->mouseGrabberItem()->ungrabMouse();
executed 2 times by 1 test: q->mouseGrabberItem()->ungrabMouse();
Executed by:
  • tst_qquickpincharea
2
1998 touchMouseId = -1;-
1999 touchMouseDevice = nullptr;-
2000-
2001 // A TouchCancel event will typically not contain any points.-
2002 // Deliver it to all items and handlers that have active touches.-
2003 QQuickPointerEvent *pointerEvent = pointerEventInstance(QQuickPointerDevice::touchDevice(event->device()));-
2004 for (int i = 0; i < pointerEvent->pointCount(); ++i)
i < pointerEvent->pointCount()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickpincharea
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpincharea
2-4
2005 pointerEvent->point(i)->cancelExclusiveGrabImpl(event);
executed 4 times by 1 test: pointerEvent->point(i)->cancelExclusiveGrabImpl(event);
Executed by:
  • tst_qquickpincharea
4
2006-
2007 // The next touch event can only be a TouchBegin, so clean up.-
2008 pointerEvent->clearGrabbers();-
2009 return true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_qquickpincharea
2
2010}-
2011-
2012void QQuickWindowPrivate::deliverDelayedTouchEvent()-
2013{-
2014 // Deliver and delete delayedTouch.-
2015 // Set delayedTouch to 0 before delivery to avoid redelivery in case of-
2016 // event loop recursions (e.g if it the touch starts a dnd session).-
2017 QScopedPointer<QTouchEvent> e(delayedTouch.take());-
2018 deliverPointerEvent(pointerEventInstance(e.data()));-
2019}
executed 708 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
708
2020-
2021bool QQuickWindowPrivate::compressTouchEvent(QTouchEvent *event)-
2022{-
2023 Q_Q(QQuickWindow);-
2024 Qt::TouchPointStates states = event->touchPointStates();-
2025 if (((states & (Qt::TouchPointMoved | Qt::TouchPointStationary)) == 0)
((states & (Qt...ionary)) == 0)Description
TRUEevaluated 400 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 840 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
400-840
2026 || ((states & (Qt::TouchPointPressed | Qt::TouchPointReleased)) != 0)) {
((states & (Qt...leased)) != 0)Description
TRUEevaluated 112 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 728 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
112-728
2027 // we can only compress something that isn't a press or release-
2028 return false;
executed 512 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
512
2029 }-
2030-
2031 if (!delayedTouch) {
!delayedTouchDescription
TRUEevaluated 708 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
20-708
2032 delayedTouch.reset(new QTouchEvent(event->type(), event->device(), event->modifiers(), event->touchPointStates(), event->touchPoints()));-
2033 delayedTouch->setTimestamp(event->timestamp());-
2034 if (renderControl)
renderControlDescription
TRUEnever evaluated
FALSEevaluated 708 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-708
2035 QQuickRenderControlPrivate::get(renderControl)->maybeUpdate();
never executed: QQuickRenderControlPrivate::get(renderControl)->maybeUpdate();
0
2036 else if (windowManager)
windowManagerDescription
TRUEevaluated 708 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEnever evaluated
0-708
2037 windowManager->maybeUpdate(q);
executed 708 times by 10 tests: windowManager->maybeUpdate(q);
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
708
2038 return true;
executed 708 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
708
2039 }-
2040-
2041 // check if this looks like the last touch event-
2042 if (delayedTouch->type() == event->type() &&
delayedTouch->... event->type()Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEnever evaluated
0-20
2043 delayedTouch->device() == event->device() &&
delayedTouch->...vent->device()Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEnever evaluated
0-20
2044 delayedTouch->modifiers() == event->modifiers() &&
delayedTouch->...t->modifiers()Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEnever evaluated
0-20
2045 delayedTouch->touchPoints().count() == event->touchPoints().count())
delayedTouch->...ints().count()Description
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEnever evaluated
0-20
2046 {-
2047 // possible match.. is it really the same?-
2048 bool mismatch = false;-
2049-
2050 QList<QTouchEvent::TouchPoint> tpts = event->touchPoints();-
2051 Qt::TouchPointStates states;-
2052 for (int i = 0; i < event->touchPoints().count(); ++i) {
i < event->tou...ints().count()Description
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
20-50
2053 const QTouchEvent::TouchPoint &tp = tpts.at(i);-
2054 const QTouchEvent::TouchPoint &tpDelayed = delayedTouch->touchPoints().at(i);-
2055 if (tp.id() != tpDelayed.id()) {
tp.id() != tpDelayed.id()Description
TRUEnever evaluated
FALSEevaluated 50 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
0-50
2056 mismatch = true;-
2057 break;
never executed: break;
0
2058 }-
2059-
2060 if (tpDelayed.state() == Qt::TouchPointMoved && tp.state() == Qt::TouchPointStationary)
tpDelayed.stat...ouchPointMovedDescription
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEnever evaluated
tp.state() == ...ointStationaryDescription
TRUEnever evaluated
FALSEevaluated 50 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
0-50
2061 tpts[i].setState(Qt::TouchPointMoved);
never executed: tpts[i].setState(Qt::TouchPointMoved);
0
2062 tpts[i].setLastPos(tpDelayed.lastPos());-
2063 tpts[i].setLastScenePos(tpDelayed.lastScenePos());-
2064 tpts[i].setLastScreenPos(tpDelayed.lastScreenPos());-
2065 tpts[i].setLastNormalizedPos(tpDelayed.lastNormalizedPos());-
2066-
2067 states |= tpts.at(i).state();-
2068 }
executed 50 times by 2 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
50
2069-
2070 // matching touch event? then merge the new event into the old one-
2071 if (!mismatch) {
!mismatchDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
FALSEnever evaluated
0-20
2072 delayedTouch->setTouchPoints(tpts);-
2073 delayedTouch->setTimestamp(event->timestamp());-
2074 return true;
executed 20 times by 2 tests: return true;
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickmousearea
20
2075 }-
2076 }
never executed: end of block
0
2077-
2078 // merging wasn't possible, so deliver the delayed event first, and then delay this one-
2079 deliverDelayedTouchEvent();-
2080 delayedTouch.reset(new QTouchEvent(event->type(), event->device(), event->modifiers(), event->touchPointStates(), event->touchPoints()));-
2081 delayedTouch->setTimestamp(event->timestamp());-
2082 return true;
never executed: return true;
0
2083}-
2084-
2085// entry point for touch event delivery:-
2086// - translate the event to window coordinates-
2087// - compress the event instead of delivering it if applicable-
2088// - call deliverTouchPoints to actually dispatch the points-
2089void QQuickWindowPrivate::handleTouchEvent(QTouchEvent *event)-
2090{-
2091 translateTouchEvent(event);-
2092 if (event->touchPoints().size()) {
event->touchPoints().size()Description
TRUEevaluated 1240 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEnever evaluated
0-1240
2093 auto point = event->touchPoints().at(0);-
2094 if (point.state() == Qt::TouchPointReleased) {
point.state() ...hPointReleasedDescription
TRUEevaluated 198 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1042 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
198-1042
2095 lastMousePosition = QPointF();-
2096 } else {
executed 198 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
198
2097 lastMousePosition = point.pos();-
2098 }
executed 1042 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
1042
2099 }-
2100-
2101 qCDebug(DBG_TOUCH) << event;
never executed: QMessageLogger(__FILE__, 2101, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << event;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 1240 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-1240
2102-
2103 static bool qquickwindow_no_touch_compression = qEnvironmentVariableIsSet("QML_NO_TOUCH_COMPRESSION");-
2104-
2105 if (qquickwindow_no_touch_compression || pointerEventRecursionGuard) {
qquickwindow_n...ch_compressionDescription
TRUEnever evaluated
FALSEevaluated 1240 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
pointerEventRecursionGuardDescription
TRUEnever evaluated
FALSEevaluated 1240 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-1240
2106 deliverPointerEvent(pointerEventInstance(event));-
2107 return;
never executed: return;
0
2108 }-
2109-
2110 if (!compressTouchEvent(event)) {
!compressTouchEvent(event)Description
TRUEevaluated 512 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 728 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
512-728
2111 if (delayedTouch)
delayedTouchDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickpointerhandler
FALSEevaluated 502 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
10-502
2112 deliverDelayedTouchEvent();
executed 10 times by 2 tests: deliverDelayedTouchEvent();
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickpointerhandler
10
2113 deliverPointerEvent(pointerEventInstance(event));-
2114 }
executed 512 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
512
2115}
executed 1240 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
1240
2116-
2117/*! \reimp */-
2118void QQuickWindow::mousePressEvent(QMouseEvent *event)-
2119{-
2120 Q_D(QQuickWindow);-
2121 d->handleMouseEvent(event);-
2122}
executed 1798 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
1798
2123/*! \reimp */-
2124void QQuickWindow::mouseMoveEvent(QMouseEvent *event)-
2125{-
2126 Q_D(QQuickWindow);-
2127 d->handleMouseEvent(event);-
2128}
executed 6428 times by 16 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_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
6428
2129/*! \reimp */-
2130void QQuickWindow::mouseDoubleClickEvent(QMouseEvent *event)-
2131{-
2132 Q_D(QQuickWindow);-
2133 d->handleMouseEvent(event);-
2134}
executed 132 times by 3 tests: end of block
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
132
2135/*! \reimp */-
2136void QQuickWindow::mouseReleaseEvent(QMouseEvent *event)-
2137{-
2138 Q_D(QQuickWindow);-
2139 d->handleMouseEvent(event);-
2140}
executed 1786 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
1786
2141-
2142void QQuickWindowPrivate::handleMouseEvent(QMouseEvent *event)-
2143{-
2144 if (event->source() == Qt::MouseEventSynthesizedBySystem) {
event->source(...esizedBySystemDescription
TRUEnever evaluated
FALSEevaluated 10144 times by 16 tests
Evaluated 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
0-10144
2145 event->accept();-
2146 return;
never executed: return;
0
2147 }-
2148 qCDebug(DBG_MOUSE) << "QQuickWindow::handleMouseEvent()" << event->type() << event->localPos() << event->button() << event->buttons();
never executed: QMessageLogger(__FILE__, 2148, __PRETTY_FUNCTION__, DBG_MOUSE().categoryName()).debug() << "QQuickWindow::handleMouseEvent()" << event->type() << event->localPos() << event->button() << event->buttons();
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 10144 times by 16 tests
Evaluated 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
0-10144
2149-
2150 switch (event->type()) {-
2151 case 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
2152 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Mouse, QQuickProfiler::InputMousePress, event->button(),
never executed: end of block
executed 1798 times by 14 tests: (void)0 ;
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
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 1798 times by 14 tests
Evaluated 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
0-1798
2153 event->buttons());
executed 1798 times by 14 tests: (void)0 ;
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
2154 deliverPointerEvent(pointerEventInstance(event));-
2155 break;
executed 1798 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
1798
2156 case 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
2157 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Mouse, QQuickProfiler::InputMouseRelease, event->button(),
never executed: end of block
executed 1786 times by 14 tests: (void)0 ;
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
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 1786 times by 14 tests
Evaluated 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
0-1786
2158 event->buttons());
executed 1786 times by 14 tests: (void)0 ;
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
2159 deliverPointerEvent(pointerEventInstance(event));-
2160 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
2161 case QEvent::MouseButtonDblClick:
executed 132 times by 3 tests: case QEvent::MouseButtonDblClick:
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
132
2162 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Mouse, QQuickProfiler::InputMouseDoubleClick,
never executed: end of block
executed 132 times by 3 tests: (void)0 ;
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 132 times by 3 tests
Evaluated by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
0-132
2163 event->button(), event->buttons());
executed 132 times by 3 tests: (void)0 ;
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
132
2164 if (allowDoubleClick)
allowDoubleClickDescription
TRUEevaluated 132 times by 3 tests
Evaluated by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEnever evaluated
0-132
2165 deliverPointerEvent(pointerEventInstance(event));
executed 132 times by 3 tests: deliverPointerEvent(pointerEventInstance(event));
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
132
2166 break;
executed 132 times by 3 tests: break;
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
132
2167 case 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
2168 Q_QUICK_INPUT_PROFILE(QQuickProfiler::Mouse, QQuickProfiler::InputMouseMove,
never executed: end of block
executed 6428 times by 16 tests: (void)0 ;
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
QQuickProfiler...leInputEvents)Description
TRUEnever evaluated
FALSEevaluated 6428 times by 16 tests
Evaluated 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
0-6428
2169 event->localPos().x(), event->localPos().y());
executed 6428 times by 16 tests: (void)0 ;
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
2170-
2171 qCDebug(DBG_HOVER_TRACE) << this;
never executed: QMessageLogger(__FILE__, 2171, __PRETTY_FUNCTION__, DBG_HOVER_TRACE().categoryName()).debug() << this;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 6428 times by 16 tests
Evaluated 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
0-6428
2172-
2173 #if QT_CONFIG(cursor)-
2174 updateCursor(event->windowPos());-
2175 #endif-
2176-
2177 if (!pointerEventInstance(QQuickPointerDevice::genericMouseDevice())->point(0)->exclusiveGrabber()) {
!pointerEventI...usiveGrabber()Description
TRUEevaluated 1634 times by 16 tests
Evaluated 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
FALSEevaluated 4794 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1634-4794
2178 QPointF last = lastMousePosition.isNull() ? event->windowPos() : lastMousePosition;
lastMousePosition.isNull()Description
TRUEevaluated 422 times by 16 tests
Evaluated 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
FALSEevaluated 1212 times by 15 tests
Evaluated 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
422-1212
2179 lastMousePosition = event->windowPos();-
2180-
2181 bool accepted = event->isAccepted();-
2182 bool delivered = deliverHoverEvent(contentItem, event->windowPos(), last, event->modifiers(), event->timestamp(), accepted);-
2183 if (!delivered) {
!deliveredDescription
TRUEevaluated 1246 times by 13 tests
Evaluated 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_qquicktextinput
FALSEevaluated 388 times by 6 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickwidget
388-1246
2184 //take care of any exits-
2185 accepted = clearHover(event->timestamp());-
2186 }
executed 1246 times by 13 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_qquicktextinput
1246
2187 event->setAccepted(accepted);-
2188 }
executed 1634 times by 16 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_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
1634
2189 deliverPointerEvent(pointerEventInstance(event));-
2190 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
2191 default:
never executed: default:
0
2192 Q_ASSERT(false);-
2193 break;
never executed: break;
0
2194 }-
2195}-
2196-
2197void QQuickWindowPrivate::flushFrameSynchronousEvents()-
2198{-
2199 Q_Q(QQuickWindow);-
2200-
2201 if (delayedTouch) {
delayedTouchDescription
TRUEevaluated 302 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 49743 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
302-49743
2202 deliverDelayedTouchEvent();-
2203-
2204 // Touch events which constantly start animations (such as a behavior tracking-
2205 // the mouse point) need animations to start.-
2206 QQmlAnimationTimer *ut = QQmlAnimationTimer::instance();-
2207 if (ut && ut->hasStartAnimationPending())
utDescription
TRUEevaluated 302 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEnever evaluated
ut->hasStartAnimationPending()Description
TRUEevaluated 32 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
FALSEevaluated 270 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
0-302
2208 ut->startAnimations();
executed 32 times by 3 tests: ut->startAnimations();
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
32
2209 }
executed 302 times by 8 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
302
2210-
2211 // Once per frame, if any items are dirty, send a synthetic hover,-
2212 // in case items have changed position, visibility, etc.-
2213 // For instance, during animation (including the case of a ListView-
2214 // whose delegates contain MouseAreas), a MouseArea needs to know-
2215 // whether it has moved into a position where it is now under the cursor.-
2216 if (!q->mouseGrabberItem() && !lastMousePosition.isNull() && dirtyItemList) {
!q->mouseGrabberItem()Description
TRUEevaluated 48275 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 1770 times by 11 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquicktextedit
  • tst_qquicktextinput
!lastMousePosition.isNull()Description
TRUEevaluated 16650 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 31625 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
dirtyItemListDescription
TRUEevaluated 16357 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 293 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktextinput
293-48275
2217 bool accepted = false;-
2218 bool delivered = deliverHoverEvent(contentItem, lastMousePosition, lastMousePosition, QGuiApplication::keyboardModifiers(), 0, accepted);-
2219 if (!delivered)
!deliveredDescription
TRUEevaluated 16239 times by 11 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextinput
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_qquicktextedit
118-16239
2220 clearHover(); // take care of any exits
executed 16239 times by 11 tests: clearHover();
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextinput
16239
2221 }
executed 16357 times by 12 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
16357
2222}
executed 50045 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50045
2223-
2224QQuickPointerEvent *QQuickWindowPrivate::queryPointerEventInstance(QQuickPointerDevice *device, QEvent::Type eventType) const-
2225{-
2226 // Search for a matching reusable event object.-
2227 for (QQuickPointerEvent *e : pointerEventInstances) {-
2228 // If device can generate native gestures (e.g. a trackpad), there might be two QQuickPointerEvents:-
2229 // QQuickPointerNativeGestureEvent and QQuickPointerTouchEvent. Use eventType to disambiguate.-
2230#if QT_CONFIG(gestures)-
2231 if (eventType == QEvent::NativeGesture && !qobject_cast<QQuickPointerNativeGestureEvent*>(e))
eventType == Q...:NativeGestureDescription
TRUEnever evaluated
FALSEevaluated 70642 times by 18 tests
Evaluated 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
!qobject_cast<...tureEvent*>(e)Description
TRUEnever evaluated
FALSEnever evaluated
0-70642
2232 continue;
never executed: continue;
0
2233#endif-
2234 if (eventType == QEvent::Wheel && !qobject_cast<QQuickPointerScrollEvent*>(e))
eventType == QEvent::WheelDescription
TRUEnever evaluated
FALSEevaluated 70642 times by 18 tests
Evaluated 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
!qobject_cast<...rollEvent*>(e)Description
TRUEnever evaluated
FALSEnever evaluated
0-70642
2235 continue;
never executed: continue;
0
2236 // Otherwise we assume there's only one event type per device.-
2237 // More disambiguation tests might need to be added above if that changes later.-
2238 if (e->device() == device)
e->device() == deviceDescription
TRUEevaluated 64640 times by 18 tests
Evaluated 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
FALSEevaluated 6002 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
6002-64640
2239 return e;
executed 64640 times by 18 tests: return e;
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
64640
2240 }
executed 6002 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
6002
2241 return nullptr;
executed 435999 times by 90 tests: return nullptr;
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
  • ...
435999
2242}-
2243-
2244QQuickPointerEvent *QQuickWindowPrivate::pointerEventInstance(QQuickPointerDevice *device, QEvent::Type eventType) const-
2245{-
2246 QQuickPointerEvent *ev = queryPointerEventInstance(device, eventType);-
2247 if (ev)
evDescription
TRUEevaluated 20598 times by 18 tests
Evaluated 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
FALSEevaluated 684 times by 18 tests
Evaluated 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
684-20598
2248 return ev;
executed 20598 times by 18 tests: return ev;
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
20598
2249 QQuickWindow *q = const_cast<QQuickWindow*>(q_func());-
2250 switch (device->type()) {-
2251 case QQuickPointerDevice::Mouse:
executed 536 times by 17 tests: case QQuickPointerDevice::Mouse:
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
536
2252 // QWindowSystemInterface::handleMouseEvent() does not take a device parameter:-
2253 // we assume all mouse events come from one mouse (the "core pointer").-
2254 // So when the event is a mouse event, device == QQuickPointerDevice::genericMouseDevice()-
2255 if (eventType == QEvent::Wheel)
eventType == QEvent::WheelDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
FALSEevaluated 526 times by 17 tests
Evaluated 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
10-526
2256 ev = new QQuickPointerScrollEvent(q, device);
executed 10 times by 2 tests: ev = new QQuickPointerScrollEvent(q, device);
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
10
2257 else-
2258 ev = new QQuickPointerMouseEvent(q, device);
executed 526 times by 17 tests: ev = new QQuickPointerMouseEvent(q, device);
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
526
2259 break;
executed 536 times by 17 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_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
536
2260 case QQuickPointerDevice::TouchPad:
never executed: case QQuickPointerDevice::TouchPad:
0
2261 case QQuickPointerDevice::TouchScreen:
executed 148 times by 10 tests: case QQuickPointerDevice::TouchScreen:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
148
2262#if QT_CONFIG(gestures)-
2263 if (eventType == QEvent::NativeGesture)
eventType == Q...:NativeGestureDescription
TRUEnever evaluated
FALSEevaluated 148 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-148
2264 ev = new QQuickPointerNativeGestureEvent(q, device);
never executed: ev = new QQuickPointerNativeGestureEvent(q, device);
0
2265 else // assume QEvent::Type is one of TouchBegin/Update/End-
2266#endif-
2267 ev = new QQuickPointerTouchEvent(q, device);
executed 148 times by 10 tests: ev = new QQuickPointerTouchEvent(q, device);
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
148
2268 break;
executed 148 times by 10 tests: break;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
148
2269 default:
never executed: default:
0
2270 // TODO tablet event types-
2271 break;
never executed: break;
0
2272 }-
2273 pointerEventInstances << ev;-
2274 return ev;
executed 684 times by 18 tests: return ev;
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
684
2275}-
2276-
2277/*!-
2278 \internal-
2279 Returns a QQuickPointerEvent instance suitable for wrapping and delivering \a event.-
2280-
2281 There is a unique instance per QQuickPointerDevice, which is determined-
2282 from \a event's device.-
2283*/-
2284QQuickPointerEvent *QQuickWindowPrivate::pointerEventInstance(QEvent *event) const-
2285{-
2286 QQuickPointerDevice *dev = nullptr;-
2287 switch (event->type()) {-
2288 case 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
2289 case 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
2290 case QEvent::MouseButtonDblClick:
executed 132 times by 3 tests: case QEvent::MouseButtonDblClick:
Executed by:
  • tst_qquickmousearea
  • tst_qquicktextedit
  • tst_qquicktextinput
132
2291 case 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
2292 case QEvent::Wheel:
executed 10 times by 2 tests: case QEvent::Wheel:
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
10
2293 dev = QQuickPointerDevice::genericMouseDevice();-
2294 break;
executed 10154 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
10154
2295 case QEvent::TouchBegin:
executed 216 times by 10 tests: case QEvent::TouchBegin:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
216
2296 case QEvent::TouchUpdate:
executed 820 times by 10 tests: case QEvent::TouchUpdate:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
820
2297 case QEvent::TouchEnd:
executed 184 times by 10 tests: case QEvent::TouchEnd:
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
184
2298 case QEvent::TouchCancel:
never executed: case QEvent::TouchCancel:
0
2299 dev = QQuickPointerDevice::touchDevice(static_cast<QTouchEvent *>(event)->device());-
2300 break;
executed 1220 times by 10 tests: break;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1220
2301 // TODO tablet event types-
2302#if QT_CONFIG(gestures)-
2303 case QEvent::NativeGesture:
never executed: case QEvent::NativeGesture:
0
2304 dev = QQuickPointerDevice::touchDevice(static_cast<QNativeGestureEvent *>(event)->device());-
2305 break;
never executed: break;
0
2306#endif-
2307 default:
never executed: default:
0
2308 break;
never executed: break;
0
2309 }-
2310-
2311 Q_ASSERT(dev);-
2312 return pointerEventInstance(dev, event->type())->reset(event);
executed 11374 times by 18 tests: return pointerEventInstance(dev, event->type())->reset(event);
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
11374
2313}-
2314-
2315void QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent *event)-
2316{-
2317 Q_Q(QQuickWindow);-
2318 // If users spin the eventloop as a result of event delivery, we disable-
2319 // event compression and send events directly. This is because we consider-
2320 // the usecase a bit evil, but we at least don't want to lose events.-
2321 ++pointerEventRecursionGuard;-
2322-
2323 skipDelivery.clear();-
2324 if (event->asPointerMouseEvent()) {
event->asPointerMouseEvent()Description
TRUEevaluated 10144 times by 16 tests
Evaluated 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
FALSEevaluated 1230 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1230-10144
2325 deliverMouseEvent(event->asPointerMouseEvent());-
2326 // failsafe: never allow any kind of grab to persist after release-
2327 if (event->isReleaseEvent() && event->buttons() == Qt::NoButton) {
event->isReleaseEvent()Description
TRUEevaluated 1786 times by 14 tests
Evaluated 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
FALSEevaluated 8358 times by 16 tests
Evaluated 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
event->buttons...= Qt::NoButtonDescription
TRUEevaluated 1706 times by 14 tests
Evaluated 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
FALSEevaluated 80 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
80-8358
2328 QQuickItem *oldGrabber = q->mouseGrabberItem();-
2329 event->clearGrabbers();-
2330 sendUngrabEvent(oldGrabber, false);-
2331 }
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
2332 } else if (event->asPointerTouchEvent()) {
executed 10144 times by 16 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_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
event->asPointerTouchEvent()Description
TRUEevaluated 1220 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
10-10144
2333 deliverTouchEvent(event->asPointerTouchEvent());-
2334 } else {
executed 1220 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
1220
2335 deliverSinglePointEventUntilAccepted(event);-
2336 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
10
2337-
2338 event->reset(nullptr);-
2339-
2340 --pointerEventRecursionGuard;-
2341}
executed 11374 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
11374
2342-
2343// check if item or any of its child items contain the point, or if any pointer handler "wants" the point-
2344// FIXME: should this be iterative instead of recursive?-
2345// If checkMouseButtons is true, it means we are finding targets for a mouse event, so no item for which acceptedMouseButtons() is NoButton will be added.-
2346// If checkAcceptsTouch is true, it means we are finding targets for a touch event, so either acceptTouchEvents() must return true OR-
2347// it must accept a synth. mouse event, thus if acceptTouchEvents() returns false but acceptedMouseButtons() is true, gets added; if not, it doesn't.-
2348QVector<QQuickItem *> QQuickWindowPrivate::pointerTargets(QQuickItem *item, QQuickEventPoint *point, bool checkMouseButtons, bool checkAcceptsTouch) const-
2349{-
2350 QVector<QQuickItem *> targets;-
2351 auto itemPrivate = QQuickItemPrivate::get(item);-
2352 QPointF itemPos = item->mapFromScene(point->scenePosition());-
2353 // if the item clips, we can potentially return early-
2354 if (itemPrivate->flags & QQuickItem::ItemClipsChildrenToShape) {
itemPrivate->f...hildrenToShapeDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickpathview
FALSEevaluated 47210 times by 16 tests
Evaluated 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
8-47210
2355 if (!item->contains(itemPos))
!item->contains(itemPos)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickpathview
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickpathview
4
2356 return targets;
executed 4 times by 1 test: return targets;
Executed by:
  • tst_qquickpathview
4
2357 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickpathview
4
2358-
2359 // recurse for children-
2360 QList<QQuickItem *> children = itemPrivate->paintOrderChildItems();-
2361 for (int ii = children.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 50213 times by 16 tests
Evaluated 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
FALSEevaluated 47214 times by 16 tests
Evaluated 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
47214-50213
2362 QQuickItem *child = children.at(ii);-
2363 auto childPrivate = QQuickItemPrivate::get(child);-
2364 if (!child->isVisible() || !child->isEnabled() || childPrivate->culled)
!child->isVisible()Description
TRUEevaluated 1950 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickitem
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
FALSEevaluated 48263 times by 16 tests
Evaluated 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
!child->isEnabled()Description
TRUEevaluated 994 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickitem
FALSEevaluated 47269 times by 16 tests
Evaluated 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
childPrivate->culledDescription
TRUEevaluated 3281 times by 4 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
FALSEevaluated 43988 times by 16 tests
Evaluated 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
994-48263
2365 continue;
executed 6225 times by 9 tests: continue;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
6225
2366 targets << pointerTargets(child, point, checkMouseButtons, checkAcceptsTouch);-
2367 }
executed 43988 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
43988
2368-
2369 bool relevant = item->contains(itemPos);-
2370 if (itemPrivate->hasPointerHandlers()) {
itemPrivate->h...nterHandlers()Description
TRUEevaluated 5826 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 41388 times by 16 tests
Evaluated 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
5826-41388
2371 if (!relevant)
!relevantDescription
TRUEevaluated 4968 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 858 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
858-4968
2372 if (itemPrivate->anyPointerHandlerWants(point))
itemPrivate->a...erWants(point)Description
TRUEevaluated 952 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
FALSEevaluated 4016 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
952-4016
2373 relevant = true;
executed 952 times by 2 tests: relevant = true;
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
952
2374 } else {
executed 5826 times by 5 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
5826
2375 if (relevant && checkMouseButtons && item->acceptedMouseButtons() == Qt::NoButton)
relevantDescription
TRUEevaluated 13146 times by 16 tests
Evaluated 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
FALSEevaluated 28242 times by 16 tests
Evaluated 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
checkMouseButtonsDescription
TRUEevaluated 7352 times by 14 tests
Evaluated 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
FALSEevaluated 5794 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
item->accepted...= Qt::NoButtonDescription
TRUEevaluated 5115 times by 14 tests
Evaluated 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
FALSEevaluated 2237 times by 13 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
2237-28242
2376 relevant = false;
executed 5115 times by 14 tests: relevant = false;
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
5115
2377 if (relevant && checkAcceptsTouch && !(item->acceptTouchEvents() || item->acceptedMouseButtons()))
relevantDescription
TRUEevaluated 8031 times by 16 tests
Evaluated 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
FALSEevaluated 33357 times by 16 tests
Evaluated 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
checkAcceptsTouchDescription
TRUEevaluated 3224 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 4807 times by 16 tests
Evaluated 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
item->acceptTouchEvents()Description
TRUEevaluated 1890 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1334 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1334-33357
2378 relevant = false;
executed 1172 times by 9 tests: relevant = false;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1172
2379 }
executed 41388 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
41388
2380 if (relevant)
relevantDescription
TRUEevaluated 8669 times by 16 tests
Evaluated 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
FALSEevaluated 38545 times by 16 tests
Evaluated 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
8669-38545
2381 targets << item; // add this item last: children take precedence
executed 8669 times by 16 tests: targets << item;
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
8669
2382 return targets;
executed 47214 times by 16 tests: return targets;
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
47214
2383}-
2384-
2385// return the joined lists-
2386// list1 has priority, common items come last-
2387QVector<QQuickItem *> QQuickWindowPrivate::mergePointerTargets(const QVector<QQuickItem *> &list1, const QVector<QQuickItem *> &list2) const-
2388{-
2389 QVector<QQuickItem *> targets = list1;-
2390 // start at the end of list2-
2391 // if item not in list, append it-
2392 // if item found, move to next one, inserting before the last found one-
2393 int insertPosition = targets.length();-
2394 for (int i = list2.length() - 1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 1830 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 460 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
460-1830
2395 int newInsertPosition = targets.lastIndexOf(list2.at(i), insertPosition);-
2396 if (newInsertPosition >= 0) {
newInsertPosition >= 0Description
TRUEevaluated 1432 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 398 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
398-1432
2397 Q_ASSERT(newInsertPosition <= insertPosition);-
2398 insertPosition = newInsertPosition;-
2399 }
executed 1432 times by 6 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
1432
2400 // check for duplicates, only insert if the item isn't there already-
2401 if (insertPosition == targets.size() || list2.at(i) != targets.at(insertPosition))
insertPosition...targets.size()Description
TRUEnever evaluated
FALSEevaluated 1830 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
list2.at(i) !=...nsertPosition)Description
TRUEevaluated 398 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 1432 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
0-1830
2402 targets.insert(insertPosition, list2.at(i));
executed 398 times by 5 tests: targets.insert(insertPosition, list2.at(i));
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
398
2403 }
executed 1830 times by 6 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
1830
2404 return targets;
executed 460 times by 6 tests: return targets;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
460
2405}-
2406-
2407void QQuickWindowPrivate::deliverTouchEvent(QQuickPointerTouchEvent *event)-
2408{-
2409 qCDebug(DBG_TOUCH) << " - delivering" << event->asTouchEvent();
never executed: QMessageLogger(__FILE__, 2409, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << " - delivering" << event->asTouchEvent();
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 1220 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-1220
2410-
2411 if (event->isPressEvent())
event->isPressEvent()Description
TRUEevaluated 306 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 914 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
306-914
2412 deliverPressOrReleaseEvent(event);
executed 306 times by 10 tests: deliverPressOrReleaseEvent(event);
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
306
2413 if (!event->allUpdatedPointsAccepted())
!event->allUpd...intsAccepted()Description
TRUEevaluated 956 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 264 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
264-956
2414 deliverUpdatedTouchPoints(event);
executed 956 times by 10 tests: deliverUpdatedTouchPoints(event);
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
956
2415 if (event->isReleaseEvent())
event->isReleaseEvent()Description
TRUEevaluated 210 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1010 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
210-1010
2416 deliverPressOrReleaseEvent(event, true);
executed 210 times by 10 tests: deliverPressOrReleaseEvent(event, true);
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
210
2417-
2418 // Remove released points from itemForTouchPointId-
2419 bool allReleased = true;-
2420 int pointCount = event->pointCount();-
2421 for (int i = 0; i < pointCount; ++i) {
i < pointCountDescription
TRUEevaluated 1938 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1220 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1220-1938
2422 QQuickEventPoint *point = event->point(i);-
2423 if (point->state() == QQuickEventPoint::Released) {
point->state()...oint::ReleasedDescription
TRUEevaluated 290 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1648 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
290-1648
2424 int id = point->pointId();-
2425 qCDebug(DBG_TOUCH_TARGET) << "TP" << hex << id << "released";
never executed: QMessageLogger(__FILE__, 2425, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "TP" << hex << id << "released";
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 290 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-290
2426 point->setGrabberItem(nullptr);-
2427 if (id == touchMouseId) {
id == touchMouseIdDescription
TRUEnever evaluated
FALSEevaluated 290 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-290
2428 touchMouseId = -1;-
2429 touchMouseDevice = nullptr;-
2430 }
never executed: end of block
0
2431 } else {
executed 290 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
290
2432 allReleased = false;-
2433 }
executed 1648 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
1648
2434 }-
2435-
2436 if (allReleased) {
allReleasedDescription
TRUEevaluated 184 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1036 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
184-1036
2437 if (Q_UNLIKELY(!event->exclusiveGrabbers().isEmpty()))
__builtin_expe...pty()), false)Description
TRUEnever evaluated
FALSEevaluated 184 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-184
2438 qWarning() << "No release received for some grabbers" << event->exclusiveGrabbers();
never executed: QMessageLogger(__FILE__, 2438, __PRETTY_FUNCTION__).warning() << "No release received for some grabbers" << event->exclusiveGrabbers();
0
2439 event->clearGrabbers();-
2440 }
executed 184 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
184
2441}
executed 1220 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
1220
2442-
2443// Deliver touch points to existing grabbers-
2444void QQuickWindowPrivate::deliverUpdatedTouchPoints(QQuickPointerTouchEvent *event)-
2445{-
2446 bool done = false;-
2447 const auto grabbers = event->exclusiveGrabbers();-
2448 for (auto grabber : grabbers) {-
2449 // The grabber is guaranteed to be either an item or a handler.-
2450 QQuickItem *receiver = qmlobject_cast<QQuickItem *>(grabber);-
2451 if (!receiver) {
!receiverDescription
TRUEevaluated 547 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 363 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
363-547
2452 // The grabber is not an item? It's a handler then. Let it have the event first.-
2453 QQuickPointerHandler *handler = static_cast<QQuickPointerHandler *>(grabber);-
2454 receiver = static_cast<QQuickPointerHandler *>(grabber)->parentItem();-
2455 if (sendFilteredPointerEvent(event, receiver))
sendFilteredPo...ent, receiver)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_flickableinterop
FALSEevaluated 543 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
4-543
2456 done = true;
executed 4 times by 1 test: done = true;
Executed by:
  • tst_flickableinterop
4
2457 event->localize(receiver);-
2458 handler->handlePointerEvent(event);-
2459 }
executed 547 times by 5 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
547
2460 if (done)
doneDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_flickableinterop
FALSEevaluated 906 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
4-906
2461 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_flickableinterop
4
2462 // If the grabber is an item or the grabbing handler didn't handle it,-
2463 // then deliver the event to the item (which may have multiple handlers).-
2464 deliverMatchingPointsToItem(receiver, event);-
2465 }
executed 906 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
906
2466-
2467 // Deliver to each eventpoint's passive grabbers (but don't visit any handler more than once)-
2468 int pointCount = event->pointCount();-
2469 for (int i = 0; i < pointCount; ++i) {
i < pointCountDescription
TRUEevaluated 1554 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 956 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
956-1554
2470 QQuickEventPoint *point = event->point(i);-
2471 deliverToPassiveGrabbers(point->passiveGrabbers(), event);-
2472 }
executed 1554 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
1554
2473-
2474 if (done)
doneDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_flickableinterop
FALSEevaluated 952 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
4-952
2475 return;
executed 4 times by 1 test: return;
Executed by:
  • tst_flickableinterop
4
2476-
2477 // If some points weren't grabbed, deliver only to non-grabber PointerHandlers in reverse paint order-
2478 if (!event->allPointsGrabbed()) {
!event->allPointsGrabbed()Description
TRUEevaluated 324 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 628 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
324-628
2479 QVector<QQuickItem *> targetItems;-
2480 for (int i = 0; i < pointCount; ++i) {
i < pointCountDescription
TRUEevaluated 508 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 324 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
324-508
2481 QQuickEventPoint *point = event->point(i);-
2482 if (point->state() == QQuickEventPoint::Pressed)
point->state()...Point::PressedDescription
TRUEevaluated 38 times by 3 tests
Evaluated by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 470 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
38-470
2483 continue; // presses were delivered earlier; not the responsibility of deliverUpdatedTouchPoints
executed 38 times by 3 tests: continue;
Executed by:
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
38
2484 QVector<QQuickItem *> targetItemsForPoint = pointerTargets(contentItem, point, false, false);-
2485 if (targetItems.count()) {
targetItems.count()Description
TRUEevaluated 144 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 326 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
144-326
2486 targetItems = mergePointerTargets(targetItems, targetItemsForPoint);-
2487 } else {
executed 144 times by 5 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
144
2488 targetItems = targetItemsForPoint;-
2489 }
executed 326 times by 9 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
326
2490 }-
2491 for (QQuickItem *item : targetItems) {-
2492 if (grabbers.contains(item))
grabbers.contains(item)Description
TRUEevaluated 28 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
FALSEevaluated 2544 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
28-2544
2493 continue;
executed 28 times by 3 tests: continue;
Executed by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
28
2494 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
2495 event->localize(item);-
2496 itemPrivate->handlePointerEvent(event, true); // avoid re-delivering to grabbers-
2497 if (event->allPointsGrabbed())
event->allPointsGrabbed()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_multipointtoucharea_interop
FALSEevaluated 2542 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
2-2542
2498 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_multipointtoucharea_interop
2
2499 }
executed 2542 times by 9 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
2542
2500 }
executed 324 times by 9 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
324
2501}
executed 952 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
952
2502-
2503// Deliver an event containing newly pressed or released touch points-
2504bool QQuickWindowPrivate::deliverPressOrReleaseEvent(QQuickPointerEvent *event, bool handlersOnly)-
2505{-
2506 int pointCount = event->pointCount();-
2507 QVector<QQuickItem *> targetItems;-
2508 bool isTouchEvent = (event->asPointerTouchEvent() != nullptr);-
2509 for (int i = 0; i < pointCount; ++i) {
i < pointCountDescription
TRUEevaluated 2598 times by 16 tests
Evaluated 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
FALSEevaluated 2280 times by 16 tests
Evaluated 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
2280-2598
2510 auto point = event->point(i);-
2511 point->setAccepted(false); // because otherwise touchEventForItem will ignore it-
2512 if (point->grabberPointerHandler() && point->state() == QQuickEventPoint::Released)
point->grabberPointerHandler()Description
TRUEevaluated 38 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 2560 times by 16 tests
Evaluated 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
point->state()...oint::ReleasedDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickpointerhandler
FALSEevaluated 32 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquicktaphandler
6-2560
2513 point->setGrabberPointerHandler(nullptr, true);
executed 6 times by 1 test: point->setGrabberPointerHandler(nullptr, true);
Executed by:
  • tst_qquickpointerhandler
6
2514 QVector<QQuickItem *> targetItemsForPoint = pointerTargets(contentItem, point, !isTouchEvent, isTouchEvent);-
2515 if (targetItems.count()) {
targetItems.count()Description
TRUEevaluated 316 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
FALSEevaluated 2282 times by 16 tests
Evaluated 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
316-2282
2516 targetItems = mergePointerTargets(targetItems, targetItemsForPoint);-
2517 } else {
executed 316 times by 6 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
316
2518 targetItems = targetItemsForPoint;-
2519 }
executed 2282 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
2282
2520 }-
2521-
2522 for (QQuickItem *item : targetItems) {-
2523 if (!handlersOnly && sendFilteredPointerEvent(event, item)) {
!handlersOnlyDescription
TRUEevaluated 2476 times by 16 tests
Evaluated 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
FALSEevaluated 1536 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
sendFilteredPo...t(event, item)Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEevaluated 2457 times by 16 tests
Evaluated 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
19-2476
2524 if (event->isAccepted()) {
event->isAccepted()Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEnever evaluated
0-19
2525 for (int i = 0; i < event->pointCount(); ++i)
i < event->pointCount()Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
19
2526 event->point(i)->setAccepted();
executed 19 times by 2 tests: event->point(i)->setAccepted();
Executed by:
  • tst_qquickflickable
  • tst_qquickgridview
19
2527 return true;
executed 19 times by 2 tests: return true;
Executed by:
  • tst_qquickflickable
  • tst_qquickgridview
19
2528 }-
2529 skipDelivery.append(item);-
2530 }
never executed: end of block
0
2531-
2532 // Do not deliverMatchingPointsTo any item for which the filtering parent already intercepted the event,-
2533 // nor to any item which already had a chance to filter.-
2534 if (skipDelivery.contains(item))
skipDelivery.contains(item)Description
TRUEnever evaluated
FALSEevaluated 3993 times by 16 tests
Evaluated 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
0-3993
2535 continue;
never executed: continue;
0
2536 deliverMatchingPointsToItem(item, event, handlersOnly);-
2537 if (event->allPointsAccepted())
event->allPointsAccepted()Description
TRUEevaluated 2621 times by 16 tests
Evaluated 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
FALSEevaluated 1372 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1372-2621
2538 handlersOnly = true;
executed 2621 times by 16 tests: handlersOnly = true;
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
2621
2539 }
executed 3993 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
3993
2540-
2541 return event->allPointsAccepted();
executed 2261 times by 16 tests: return event->allPointsAccepted();
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
2261
2542}-
2543-
2544void QQuickWindowPrivate::deliverMatchingPointsToItem(QQuickItem *item, QQuickPointerEvent *pointerEvent, bool handlersOnly)-
2545{-
2546 Q_Q(QQuickWindow);-
2547 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
2548 pointerEvent->localize(item);-
2549-
2550 // Let the Item's handlers (if any) have the event first.-
2551 // However, double click should never be delivered to handlers.-
2552 if (!pointerEvent->isDoubleClickEvent()) {
!pointerEvent-...leClickEvent()Description
TRUEevaluated 4893 times by 16 tests
Evaluated 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
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickmousearea
6-4893
2553 bool wasAccepted = pointerEvent->allPointsAccepted();-
2554 itemPrivate->handlePointerEvent(pointerEvent);-
2555 allowDoubleClick = wasAccepted || !(pointerEvent->asPointerMouseEvent() && pointerEvent->isPressEvent() && pointerEvent->allPointsAccepted());
wasAcceptedDescription
TRUEevaluated 1029 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 3864 times by 16 tests
Evaluated 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
pointerEvent->...erMouseEvent()Description
TRUEevaluated 1989 times by 14 tests
Evaluated 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
FALSEevaluated 1875 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
pointerEvent->isPressEvent()Description
TRUEevaluated 1989 times by 14 tests
Evaluated 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
FALSEnever evaluated
pointerEvent->...intsAccepted()Description
TRUEevaluated 58 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 1931 times by 13 tests
Evaluated by:
  • 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
0-3864
2556 }
executed 4893 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
4893
2557 if (handlersOnly)
handlersOnlyDescription
TRUEevaluated 1536 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 3363 times by 16 tests
Evaluated 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
1536-3363
2558 return;
executed 1536 times by 12 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1536
2559-
2560 // If all points are released and the item is not the grabber, it doesn't get the event.-
2561 // But if at least one point is still pressed, we might be in a potential gesture-takeover scenario.-
2562 if (pointerEvent->isReleaseEvent() && !pointerEvent->isUpdateEvent()
pointerEvent->isReleaseEvent()Description
TRUEevaluated 204 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 3159 times by 16 tests
Evaluated 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
!pointerEvent->isUpdateEvent()Description
TRUEevaluated 172 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 32 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
32-3159
2563 && !pointerEvent->exclusiveGrabbers().contains(item))
!pointerEvent-...contains(item)Description
TRUEevaluated 82 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 90 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
82-90
2564 return;
executed 82 times by 5 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
82
2565-
2566 // TODO: unite this mouse point delivery with the synthetic mouse event below-
2567 auto event = pointerEvent->asPointerMouseEvent();-
2568 if (event && item->acceptedMouseButtons() & event->button()) {
eventDescription
TRUEevaluated 1995 times by 14 tests
Evaluated 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
FALSEevaluated 1286 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
1286-1995
2569 auto point = event->point(0);-
2570 // The only reason to already have a mouse grabber here is-
2571 // synthetic events - flickable sends one when setPressDelay is used.-
2572 auto oldMouseGrabber = q->mouseGrabberItem();-
2573 QPointF localPos = item->mapFromScene(point->scenePosition());-
2574 QMouseEvent *me = event->asMouseEvent(localPos);-
2575 me->accept();-
2576 QCoreApplication::sendEvent(item, me);-
2577 if (me->isAccepted()) {
me->isAccepted()Description
TRUEevaluated 1557 times by 11 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 402 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
402-1557
2578 auto mouseGrabber = q->mouseGrabberItem();-
2579 if (mouseGrabber && mouseGrabber != item && mouseGrabber != oldMouseGrabber) {
mouseGrabberDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickmousearea
FALSEevaluated 1555 times by 11 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
mouseGrabber != itemDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickmousearea
FALSEnever evaluated
mouseGrabber !...ldMouseGrabberDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickmousearea
FALSEnever evaluated
0-1555
2580 item->mouseUngrabEvent();-
2581 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickmousearea
2
2582 item->grabMouse();-
2583 }
executed 1555 times by 11 tests: end of block
Executed by:
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1555
2584 point->setAccepted(true);-
2585 }
executed 1557 times by 11 tests: end of block
Executed by:
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquicktextedit
  • tst_qquicktextinput
1557
2586 return;
executed 1959 times by 14 tests: return;
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
1959
2587 }-
2588-
2589 QQuickPointerTouchEvent *ptEvent = pointerEvent->asPointerTouchEvent();-
2590 if (!ptEvent)
!ptEventDescription
TRUEevaluated 36 times by 3 tests
Evaluated by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
FALSEevaluated 1286 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
36-1286
2591 return;
executed 36 times by 3 tests: return;
Executed by:
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
36
2592-
2593 QScopedPointer<QTouchEvent> touchEvent(ptEvent->touchEventForItem(item));-
2594 if (!touchEvent)
!touchEventDescription
TRUEevaluated 707 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 579 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
579-707
2595 return;
executed 707 times by 7 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
707
2596-
2597 qCDebug(DBG_TOUCH) << "considering delivering " << touchEvent.data() << " to " << item;
never executed: QMessageLogger(__FILE__, 2597, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << "considering delivering " << touchEvent.data() << " to " << item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 579 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-579
2598 bool eventAccepted = false;-
2599-
2600 // If any parent filters the event, we're done.-
2601 if (sendFilteredPointerEvent(pointerEvent, item))
sendFilteredPo...erEvent, item)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickmultipointtoucharea
FALSEevaluated 573 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
6-573
2602 return;
executed 6 times by 1 test: return;
Executed by:
  • tst_qquickmultipointtoucharea
6
2603-
2604 // Deliver the touch event to the given item-
2605 qCDebug(DBG_TOUCH) << " - actually delivering " << touchEvent.data() << " to " << item;
never executed: QMessageLogger(__FILE__, 2605, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << " - actually delivering " << touchEvent.data() << " to " << item;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 573 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-573
2606 QCoreApplication::sendEvent(item, touchEvent.data());-
2607 eventAccepted = touchEvent->isAccepted();-
2608-
2609 // If the touch event wasn't accepted, synthesize a mouse event and see if the item wants it.-
2610 if (!eventAccepted && (itemPrivate->acceptedMouseButtons() & Qt::LeftButton)) {
!eventAcceptedDescription
TRUEevaluated 261 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 312 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickitem
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
261-312
2611 // send mouse event-
2612 if (deliverTouchAsMouse(item, ptEvent))
deliverTouchAs...item, ptEvent)Description
TRUEevaluated 169 times by 5 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
FALSEevaluated 28 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
28-169
2613 eventAccepted = true;
executed 169 times by 5 tests: eventAccepted = true;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
169
2614 }
executed 197 times by 8 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
197
2615-
2616 if (eventAccepted) {
eventAcceptedDescription
TRUEevaluated 481 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
FALSEevaluated 92 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
92-481
2617 // If the touch was accepted (regardless by whom or in what form),-
2618 // update accepted new points.-
2619 bool isPressOrRelease = pointerEvent->isPressEvent() || pointerEvent->isReleaseEvent();
pointerEvent->isPressEvent()Description
TRUEevaluated 158 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
FALSEevaluated 323 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
pointerEvent->isReleaseEvent()Description
TRUEevaluated 100 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
FALSEevaluated 223 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
100-323
2620 for (auto point: qAsConst(touchEvent->touchPoints())) {-
2621 auto pointerEventPoint = ptEvent->pointById(point.id());-
2622 pointerEventPoint->setAccepted();-
2623 if (isPressOrRelease)
isPressOrReleaseDescription
TRUEevaluated 410 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
FALSEevaluated 345 times by 8 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
345-410
2624 pointerEventPoint->setGrabberItem(item);
executed 410 times by 8 tests: pointerEventPoint->setGrabberItem(item);
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
410
2625 }
executed 755 times by 8 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
755
2626 } else {
executed 481 times by 8 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
481
2627 // But if the event was not accepted then we know this item-
2628 // will not be interested in further updates for those touchpoint IDs either.-
2629 for (auto point: qAsConst(touchEvent->touchPoints())) {-
2630 if (point.state() == Qt::TouchPointPressed) {
point.state() ...chPointPressedDescription
TRUEevaluated 88 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
FALSEevaluated 30 times by 5 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquicktaphandler
30-88
2631 if (ptEvent->pointById(point.id())->exclusiveGrabber() == item) {
ptEvent->point...bber() == itemDescription
TRUEnever evaluated
FALSEevaluated 88 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktaphandler
0-88
2632 qCDebug(DBG_TOUCH_TARGET) << "TP" << hex << point.id() << "disassociated";
never executed: QMessageLogger(__FILE__, 2632, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "TP" << hex << point.id() << "disassociated";
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
2633 ptEvent->pointById(point.id())->setGrabberItem(nullptr);-
2634 }
never executed: end of block
0
2635 }
executed 88 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
88
2636 }
executed 118 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
118
2637 }
executed 92 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
92
2638}-
2639-
2640#if QT_CONFIG(draganddrop)-
2641void QQuickWindowPrivate::deliverDragEvent(QQuickDragGrabber *grabber, QEvent *event)-
2642{-
2643 grabber->resetTarget();-
2644 QQuickDragGrabber::iterator grabItem = grabber->begin();-
2645 if (grabItem != grabber->end()) {
grabItem != grabber->end()Description
TRUEevaluated 414 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 338 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
338-414
2646 Q_ASSERT(event->type() != QEvent::DragEnter);-
2647 if (event->type() == QEvent::Drop) {
event->type() == QEvent::DropDescription
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
FALSEevaluated 364 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
50-364
2648 QDropEvent *e = static_cast<QDropEvent *>(event);-
2649 for (e->setAccepted(false); !e->isAccepted() && grabItem != grabber->end(); grabItem = grabber->release(grabItem)) {
!e->isAccepted()Description
TRUEevaluated 62 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
grabItem != grabber->end()Description
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
12-62
2650 QPointF p = (**grabItem)->mapFromScene(e->pos());-
2651 QDropEvent translatedEvent(-
2652 p.toPoint(),-
2653 e->possibleActions(),-
2654 e->mimeData(),-
2655 e->mouseButtons(),-
2656 e->keyboardModifiers());-
2657 QQuickDropEventEx::copyActions(&translatedEvent, *e);-
2658 QCoreApplication::sendEvent(**grabItem, &translatedEvent);-
2659 e->setAccepted(translatedEvent.isAccepted());-
2660 e->setDropAction(translatedEvent.dropAction());-
2661 grabber->setTarget(**grabItem);-
2662 }
executed 50 times by 2 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
50
2663 }
executed 50 times by 2 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
50
2664 if (event->type() != QEvent::DragMove) { // Either an accepted drop or a leave.
event->type() ...vent::DragMoveDescription
TRUEevaluated 190 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 224 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
190-224
2665 QDragLeaveEvent leaveEvent;-
2666 for (; grabItem != grabber->end(); grabItem = grabber->release(grabItem))
grabItem != grabber->end()Description
TRUEevaluated 140 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 190 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
140-190
2667 QCoreApplication::sendEvent(**grabItem, &leaveEvent);
executed 140 times by 3 tests: QCoreApplication::sendEvent(**grabItem, &leaveEvent);
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
140
2668 return;
executed 190 times by 3 tests: return;
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
190
2669 } else for (; grabItem != grabber->end(); grabItem = grabber->release(grabItem)) {
grabItem != grabber->end()Description
TRUEevaluated 228 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
6-228
2670 QDragMoveEvent *moveEvent = static_cast<QDragMoveEvent *>(event);-
2671 if (deliverDragEvent(grabber, **grabItem, moveEvent)) {
deliverDragEve...em, moveEvent)Description
TRUEevaluated 218 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
10-218
2672 for (++grabItem; grabItem != grabber->end();) {
grabItem != grabber->end()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdrag
FALSEevaluated 218 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
2-218
2673 QPointF p = (**grabItem)->mapFromScene(moveEvent->pos());-
2674 if ((**grabItem)->contains(p)) {
(**grabItem)->contains(p)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdrag
FALSEnever evaluated
0-2
2675 QDragMoveEvent translatedEvent(-
2676 p.toPoint(),-
2677 moveEvent->possibleActions(),-
2678 moveEvent->mimeData(),-
2679 moveEvent->mouseButtons(),-
2680 moveEvent->keyboardModifiers());-
2681 QQuickDropEventEx::copyActions(&translatedEvent, *moveEvent);-
2682 QCoreApplication::sendEvent(**grabItem, &translatedEvent);-
2683 ++grabItem;-
2684 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickdrag
2
2685 QDragLeaveEvent leaveEvent;-
2686 QCoreApplication::sendEvent(**grabItem, &leaveEvent);-
2687 grabItem = grabber->release(grabItem);-
2688 }
never executed: end of block
0
2689 }-
2690 return;
executed 218 times by 3 tests: return;
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
218
2691 } else {-
2692 QDragLeaveEvent leaveEvent;-
2693 QCoreApplication::sendEvent(**grabItem, &leaveEvent);-
2694 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
10
2695 }-
2696 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
6
2697 if (event->type() == QEvent::DragEnter || event->type() == QEvent::DragMove) {
event->type() ...ent::DragEnterDescription
TRUEevaluated 254 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 90 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
event->type() ...vent::DragMoveDescription
TRUEevaluated 44 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
FALSEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
44-254
2698 QDragMoveEvent *e = static_cast<QDragMoveEvent *>(event);-
2699 QDragEnterEvent enterEvent(-
2700 e->pos(),-
2701 e->possibleActions(),-
2702 e->mimeData(),-
2703 e->mouseButtons(),-
2704 e->keyboardModifiers());-
2705 QQuickDropEventEx::copyActions(&enterEvent, *e);-
2706 event->setAccepted(deliverDragEvent(grabber, contentItem, &enterEvent));-
2707 }
executed 298 times by 3 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
298
2708}
executed 344 times by 3 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
344
2709-
2710bool QQuickWindowPrivate::deliverDragEvent(QQuickDragGrabber *grabber, QQuickItem *item, QDragMoveEvent *event)-
2711{-
2712 bool accepted = false;-
2713 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
2714 if (!item->isVisible() || !item->isEnabled() || QQuickItemPrivate::get(item)->culled)
!item->isVisible()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdrag
FALSEevaluated 1134 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
!item->isEnabled()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickdrag
FALSEevaluated 1132 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
QQuickItemPriv...(item)->culledDescription
TRUEnever evaluated
FALSEevaluated 1132 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
0-1134
2715 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qquickdrag
4
2716 QPointF p = item->mapFromScene(event->pos());-
2717 bool itemContained = item->contains(p);-
2718-
2719 if (!itemContained && itemPrivate->flags & QQuickItem::ItemClipsChildrenToShape) {
!itemContainedDescription
TRUEevaluated 350 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
FALSEevaluated 782 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
itemPrivate->f...hildrenToShapeDescription
TRUEnever evaluated
FALSEevaluated 350 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
0-782
2720 return false;
never executed: return false;
0
2721 }-
2722-
2723 QDragEnterEvent enterEvent(-
2724 event->pos(),-
2725 event->possibleActions(),-
2726 event->mimeData(),-
2727 event->mouseButtons(),-
2728 event->keyboardModifiers());-
2729 QQuickDropEventEx::copyActions(&enterEvent, *event);-
2730 QList<QQuickItem *> children = itemPrivate->paintOrderChildItems();-
2731 for (int ii = children.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 610 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 890 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
610-890
2732 if (deliverDragEvent(grabber, children.at(ii), &enterEvent))
deliverDragEve..., &enterEvent)Description
TRUEevaluated 242 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 368 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
242-368
2733 return true;
executed 242 times by 3 tests: return true;
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
242
2734 }
executed 368 times by 2 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
368
2735-
2736 if (itemContained) {
itemContainedDescription
TRUEevaluated 750 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 140 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
140-750
2737 if (event->type() == QEvent::DragMove || itemPrivate->flags & QQuickItem::ItemAcceptsDrops) {
event->type() ...vent::DragMoveDescription
TRUEevaluated 214 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 536 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
itemPrivate->f...emAcceptsDropsDescription
TRUEevaluated 256 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 280 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
214-536
2738 QDragMoveEvent translatedEvent(-
2739 p.toPoint(),-
2740 event->possibleActions(),-
2741 event->mimeData(),-
2742 event->mouseButtons(),-
2743 event->keyboardModifiers(),-
2744 event->type());-
2745 QQuickDropEventEx::copyActions(&translatedEvent, *event);-
2746 translatedEvent.setAccepted(event->isAccepted());-
2747 QCoreApplication::sendEvent(item, &translatedEvent);-
2748 event->setAccepted(translatedEvent.isAccepted());-
2749 event->setDropAction(translatedEvent.dropAction());-
2750 if (event->type() == QEvent::DragEnter) {
event->type() ...ent::DragEnterDescription
TRUEevaluated 256 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 214 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
214-256
2751 if (translatedEvent.isAccepted()) {
translatedEvent.isAccepted()Description
TRUEevaluated 218 times by 3 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickdrag
  • tst_qquickdroparea
38-218
2752 grabber->grab(item);-
2753 accepted = true;-
2754 }
executed 218 times by 3 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
218
2755 } else {
executed 256 times by 3 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
256
2756 accepted = true;-
2757 }
executed 214 times by 3 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
214
2758 }-
2759 }
executed 750 times by 3 tests: end of block
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
750
2760-
2761 return accepted;
executed 890 times by 3 tests: return accepted;
Executed by:
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquicklistview
890
2762}-
2763#endif // draganddrop-
2764-
2765#if QT_CONFIG(cursor)-
2766void QQuickWindowPrivate::updateCursor(const QPointF &scenePos)-
2767{-
2768 Q_Q(QQuickWindow);-
2769-
2770 QQuickItem *oldCursorItem = cursorItem;-
2771 cursorItem = findCursorItem(contentItem, scenePos);-
2772-
2773 if (cursorItem != oldCursorItem) {
cursorItem != oldCursorItemDescription
TRUEevaluated 186 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 6242 times by 15 tests
Evaluated 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
186-6242
2774 QWindow *renderWindow = QQuickRenderControl::renderWindowFor(q);-
2775 QWindow *window = renderWindow ? renderWindow : q;
renderWindowDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickwidget
FALSEevaluated 184 times by 7 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
2-184
2776 if (cursorItem)
cursorItemDescription
TRUEevaluated 160 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 26 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
26-160
2777 window->setCursor(cursorItem->cursor());
executed 160 times by 8 tests: window->setCursor(cursorItem->cursor());
Executed by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
160
2778 else-
2779 window->unsetCursor();
executed 26 times by 3 tests: window->unsetCursor();
Executed by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
26
2780 }-
2781}
executed 6428 times by 16 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_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
6428
2782-
2783QQuickItem *QQuickWindowPrivate::findCursorItem(QQuickItem *item, const QPointF &scenePos)-
2784{-
2785 QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);-
2786 if (itemPrivate->flags & QQuickItem::ItemClipsChildrenToShape) {
itemPrivate->f...hildrenToShapeDescription
TRUEevaluated 56 times by 1 test
Evaluated by:
  • tst_qquickpathview
FALSEevaluated 12390 times by 16 tests
Evaluated 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
56-12390
2787 QPointF p = item->mapFromScene(scenePos);-
2788 if (!item->contains(p))
!item->contains(p)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickpathview
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquickpathview
28
2789 return nullptr;
executed 28 times by 1 test: return nullptr;
Executed by:
  • tst_qquickpathview
28
2790 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_qquickpathview
28
2791-
2792 if (itemPrivate->subtreeCursorEnabled) {
itemPrivate->s...eCursorEnabledDescription
TRUEevaluated 5858 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 6560 times by 15 tests
Evaluated 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
5858-6560
2793 QList<QQuickItem *> children = itemPrivate->paintOrderChildItems();-
2794 for (int ii = children.count() - 1; ii >= 0; --ii) {
ii >= 0Description
TRUEevaluated 6124 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 2120 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
2120-6124
2795 QQuickItem *child = children.at(ii);-
2796 if (!child->isVisible() || !child->isEnabled() || QQuickItemPrivate::get(child)->culled)
!child->isVisible()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickmousearea
FALSEevaluated 6116 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
!child->isEnabled()Description
TRUEnever evaluated
FALSEevaluated 6116 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
QQuickItemPriv...child)->culledDescription
TRUEevaluated 98 times by 1 test
Evaluated by:
  • tst_qquicklistview
FALSEevaluated 6018 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
0-6116
2797 continue;
executed 106 times by 2 tests: continue;
Executed by:
  • tst_qquicklistview
  • tst_qquickmousearea
106
2798 if (QQuickItem *cursorItem = findCursorItem(child, scenePos))
QQuickItem *cu...ild, scenePos)Description
TRUEevaluated 3738 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 2280 times by 5 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
2280-3738
2799 return cursorItem;
executed 3738 times by 8 tests: return cursorItem;
Executed by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
3738
2800 }
executed 2280 times by 5 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
2280
2801 }
executed 2120 times by 8 tests: end of block
Executed by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
2120
2802-
2803 if (itemPrivate->hasCursor) {
itemPrivate->hasCursorDescription
TRUEevaluated 1698 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 6982 times by 15 tests
Evaluated 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
1698-6982
2804 QPointF p = item->mapFromScene(scenePos);-
2805 if (item->contains(p))
item->contains(p)Description
TRUEevaluated 870 times by 8 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 828 times by 3 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
828-870
2806 return item;
executed 870 times by 8 tests: return item;
Executed by:
  • tst_qquickflickable
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquickwidget
870
2807 }
executed 828 times by 3 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
828
2808 return nullptr;
executed 7810 times by 15 tests: return 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
7810
2809}-
2810#endif-
2811-
2812bool QQuickWindowPrivate::sendFilteredPointerEvent(QQuickPointerEvent *event, QQuickItem *receiver, QQuickItem *filteringParent)-
2813{-
2814 hasFiltered.clear();-
2815 return sendFilteredPointerEventImpl(event, receiver, filteringParent ? filteringParent : receiver->parentItem());
executed 10706 times by 16 tests: return sendFilteredPointerEventImpl(event, receiver, filteringParent ? filteringParent : receiver->parentItem());
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
10706
2816}-
2817-
2818bool QQuickWindowPrivate::sendFilteredPointerEventImpl(QQuickPointerEvent *event, QQuickItem *receiver, QQuickItem *filteringParent)-
2819{-
2820 if (!allowChildEventFiltering)
!allowChildEventFilteringDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickflickable
FALSEevaluated 35541 times by 16 tests
Evaluated 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
2-35541
2821 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qquickflickable
2
2822 if (!filteringParent)
!filteringParentDescription
TRUEevaluated 10704 times by 16 tests
Evaluated 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
FALSEevaluated 24837 times by 16 tests
Evaluated 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
10704-24837
2823 return false;
executed 10704 times by 16 tests: return false;
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
10704
2824 bool filtered = false;-
2825 if (filteringParent->filtersChildMouseEvents() && !hasFiltered.contains(filteringParent)) {
filteringParen...dMouseEvents()Description
TRUEevaluated 1963 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 22874 times by 16 tests
Evaluated 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
!hasFiltered.c...lteringParent)Description
TRUEevaluated 1951 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 12 times by 2 tests
Evaluated by:
  • tst_qquickmousearea
  • tst_qquickpathview
12-22874
2826 hasFiltered.append(filteringParent);-
2827 if (QQuickPointerMouseEvent *pme = event->asPointerMouseEvent()) {
QQuickPointerM...erMouseEvent()Description
TRUEevaluated 1413 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 538 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
538-1413
2828 if (receiver->acceptedMouseButtons()) {
receiver->acce...MouseButtons()Description
TRUEevaluated 1413 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEnever evaluated
0-1413
2829 QPointF localPos = receiver->mapFromScene(pme->point(0)->scenePosition());-
2830 QMouseEvent *me = pme->asMouseEvent(localPos);-
2831 const bool wasAccepted = me->isAccepted();-
2832 me->setAccepted(true);-
2833 auto oldMouseGrabber = pme->point(0)->grabberItem();-
2834 if (filteringParent->childMouseEventFilter(receiver, me)) {
filteringParen...(receiver, me)Description
TRUEevaluated 151 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 1262 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
151-1262
2835 qCDebug(DBG_MOUSE) << "mouse event intercepted by childMouseEventFilter of " << filteringParent;
never executed: QMessageLogger(__FILE__, 2835, __PRETTY_FUNCTION__, DBG_MOUSE().categoryName()).debug() << "mouse event intercepted by childMouseEventFilter of " << filteringParent;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 151 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
0-151
2836 skipDelivery.append(filteringParent);-
2837 filtered = true;-
2838 if (me->isAccepted() && pme->isPressEvent()) {
me->isAccepted()Description
TRUEevaluated 149 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpathview
pme->isPressEvent()Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEevaluated 130 times by 6 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
2-149
2839 auto mouseGrabber = pme->point(0)->grabberItem();-
2840 if (mouseGrabber && mouseGrabber != receiver && mouseGrabber != oldMouseGrabber) {
mouseGrabberDescription
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEnever evaluated
mouseGrabber != receiverDescription
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEnever evaluated
mouseGrabber !...ldMouseGrabberDescription
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquickgridview
FALSEnever evaluated
0-19
2841 receiver->mouseUngrabEvent();-
2842 } else {
executed 19 times by 2 tests: end of block
Executed by:
  • tst_qquickflickable
  • tst_qquickgridview
19
2843 pme->point(0)->setGrabberItem(receiver);-
2844 }
never executed: end of block
0
2845 }-
2846 } else {
executed 151 times by 7 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
151
2847 // Restore accepted state if the event was not filtered.-
2848 me->setAccepted(wasAccepted);-
2849 }
executed 1262 times by 7 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
1262
2850 }-
2851 } else if (QQuickPointerTouchEvent *pte = event->asPointerTouchEvent()) {
executed 1413 times by 7 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
QQuickPointerT...erTouchEvent()Description
TRUEevaluated 538 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
FALSEnever evaluated
0-1413
2852#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)-
2853 bool acceptsTouchEvents = receiver->acceptTouchEvents();-
2854#else-
2855 // In versions prior to Qt 6, we can't trust item->acceptTouchEvents() here, because it defaults to true.-
2856 bool acceptsTouchEvents = false;-
2857#endif-
2858 auto device = pte->device();-
2859 if (device->type() == QQuickPointerDevice::TouchPad &&
device->type()...vice::TouchPadDescription
TRUEnever evaluated
FALSEevaluated 538 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
0-538
2860 device->capabilities().testFlag(QQuickPointerDevice::MouseEmulation)) {
device->capabi...ouseEmulation)Description
TRUEnever evaluated
FALSEnever evaluated
0
2861 qCDebug(DBG_TOUCH_TARGET) << "skipping filtering of synth-mouse event from" << device;
never executed: QMessageLogger(__FILE__, 2861, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "skipping filtering of synth-mouse event from" << device;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
2862 } else if (acceptsTouchEvents || receiver->acceptedMouseButtons()) {
never executed: end of block
acceptsTouchEventsDescription
TRUEnever evaluated
FALSEevaluated 538 times by 4 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
0-538
2863 // get a touch event customized for delivery to filteringParent-
2864 QScopedPointer<QTouchEvent> filteringParentTouchEvent(pte->touchEventForItem(receiver, true));-
2865 if (filteringParentTouchEvent) {
filteringParentTouchEventDescription
TRUEevaluated 438 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
FALSEevaluated 70 times by 1 test
Evaluated by:
  • tst_flickableinterop
70-438
2866 if (filteringParent->childMouseEventFilter(receiver, filteringParentTouchEvent.data())) {
filteringParen...hEvent.data())Description
TRUEnever evaluated
FALSEevaluated 438 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
0-438
2867 qCDebug(DBG_TOUCH) << "touch event intercepted by childMouseEventFilter of " << filteringParent;
never executed: QMessageLogger(__FILE__, 2867, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << "touch event intercepted by childMouseEventFilter of " << filteringParent;
qt_category_enabledDescription
TRUEnever evaluated
FALSEnever evaluated
0
2868 skipDelivery.append(filteringParent);-
2869 for (auto point: qAsConst(filteringParentTouchEvent->touchPoints())) {-
2870 QQuickEventPoint *pt = event->pointById(point.id());-
2871 pt->setAccepted();-
2872 pt->setGrabberItem(filteringParent);-
2873 }
never executed: end of block
0
2874 return true;
never executed: return true;
0
2875 } else {-
2876 // filteringParent didn't filter the touch event. Give it a chance to filter a synthetic mouse event.-
2877 for (int i = 0; i < filteringParentTouchEvent->touchPoints().size(); ++i) {
i < filteringP...oints().size()Description
TRUEevaluated 468 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_flickableinterop
2-468
2878 const QTouchEvent::TouchPoint &tp = filteringParentTouchEvent->touchPoints().at(i);-
2879-
2880 QEvent::Type t;-
2881 switch (tp.state()) {-
2882 case Qt::TouchPointPressed:
executed 96 times by 3 tests: case Qt::TouchPointPressed:
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
96
2883 t = QEvent::MouseButtonPress;-
2884 break;
executed 96 times by 3 tests: break;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
96
2885 case Qt::TouchPointReleased:
executed 42 times by 3 tests: case Qt::TouchPointReleased:
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
42
2886 t = QEvent::MouseButtonRelease;-
2887 break;
executed 42 times by 3 tests: break;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
42
2888 case Qt::TouchPointStationary:
executed 30 times by 1 test: case Qt::TouchPointStationary:
Executed by:
  • tst_qquickmultipointtoucharea
30
2889 continue;
executed 30 times by 1 test: continue;
Executed by:
  • tst_qquickmultipointtoucharea
30
2890 default:
executed 300 times by 3 tests: default:
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
300
2891 t = QEvent::MouseMove;-
2892 break;
executed 300 times by 3 tests: break;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
300
2893 }-
2894-
2895 bool touchMouseUnset = (touchMouseId == -1);-
2896 // Only deliver mouse event if it is the touchMouseId or it could become the touchMouseId-
2897 if (touchMouseUnset || touchMouseId == tp.id()) {
touchMouseUnsetDescription
TRUEevaluated 418 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
touchMouseId == tp.id()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquickflickable
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_flickableinterop
2-418
2898 // convert filteringParentTouchEvent (which is already transformed wrt local position, velocity, etc.)-
2899 // into a synthetic mouse event, and let childMouseEventFilter() have another chance with that-
2900 QScopedPointer<QMouseEvent> mouseEvent(touchToMouseEvent(t, tp, filteringParentTouchEvent.data(), receiver, false));-
2901 // If a filtering item calls QQuickWindow::mouseGrabberItem(), it should-
2902 // report the touchpoint's grabber. Whenever we send a synthetic mouse event,-
2903 // touchMouseId and touchMouseDevice must be set, even if it's only temporarily and isn't grabbed.-
2904 touchMouseId = tp.id();-
2905 touchMouseDevice = event->device();-
2906 if (filteringParent->childMouseEventFilter(receiver, mouseEvent.data())) {
filteringParen...eEvent.data())Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
FALSEevaluated 420 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
16-420
2907 qCDebug(DBG_TOUCH) << "touch event intercepted as synth mouse event by childMouseEventFilter of " << filteringParent;
never executed: QMessageLogger(__FILE__, 2907, __PRETTY_FUNCTION__, DBG_TOUCH().categoryName()).debug() << "touch event intercepted as synth mouse event by childMouseEventFilter of " << filteringParent;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
0-16
2908 skipDelivery.append(filteringParent);-
2909 if (t != QEvent::MouseButtonRelease) {
t != QEvent::M...eButtonReleaseDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
FALSEnever evaluated
0-16
2910 qCDebug(DBG_TOUCH_TARGET) << "TP (mouse)" << hex << tp.id() << "->" << filteringParent;
never executed: QMessageLogger(__FILE__, 2910, __PRETTY_FUNCTION__, DBG_TOUCH_TARGET().categoryName()).debug() << "TP (mouse)" << hex << tp.id() << "->" << filteringParent;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
0-16
2911 pointerEventInstance(touchMouseDevice)->pointById(tp.id())->setGrabberItem(filteringParent);-
2912 touchMouseUnset = false; // We want to leave touchMouseId and touchMouseDevice set-
2913 if (mouseEvent->isAccepted())
mouseEvent->isAccepted()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
FALSEnever evaluated
0-16
2914 filteringParent->grabMouse();
executed 16 times by 2 tests: filteringParent->grabMouse();
Executed by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
16
2915 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
16
2916 filtered = true;-
2917 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
16
2918 if (touchMouseUnset) {
touchMouseUnsetDescription
TRUEevaluated 402 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
FALSEevaluated 34 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
34-402
2919 // Now that we're done sending a synth mouse event, and it wasn't grabbed,-
2920 // the touchpoint is no longer acting as a synthetic mouse. Restore previous state.-
2921 touchMouseId = -1;-
2922 touchMouseDevice = nullptr;-
2923 }
executed 402 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
402
2924 // Only one touchpoint can be treated as a synthetic mouse, so after childMouseEventFilter-
2925 // has been called once, we're done with this loop over the touchpoints.-
2926 break;
executed 436 times by 3 tests: break;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
436
2927 }-
2928 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_flickableinterop
2
2929 }
executed 438 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
438
2930 }-
2931 }
executed 508 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmultipointtoucharea
508
2932 }
executed 538 times by 4 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
538
2933 }
executed 1951 times by 7 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
1951
2934 return sendFilteredPointerEventImpl(event, receiver, filteringParent->parentItem()) || filtered;
executed 24837 times by 16 tests: return sendFilteredPointerEventImpl(event, receiver, filteringParent->parentItem()) || filtered;
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
24837
2935}-
2936-
2937bool QQuickWindowPrivate::sendFilteredMouseEvent(QEvent *event, QQuickItem *receiver, QQuickItem *filteringParent)-
2938{-
2939 if (!filteringParent)
!filteringParentDescription
TRUEevaluated 2296 times by 15 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
FALSEevaluated 4072 times by 15 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
2296-4072
2940 return false;
executed 2296 times by 15 tests: return false;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
2296
2941-
2942 QQuickItemPrivate *filteringParentPrivate = QQuickItemPrivate::get(filteringParent);-
2943 if (filteringParentPrivate->replayingPressEvent)
filteringParen...yingPressEventDescription
TRUEnever evaluated
FALSEevaluated 4072 times by 15 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
0-4072
2944 return false;
never executed: return false;
0
2945-
2946 bool filtered = false;-
2947 if (filteringParentPrivate->filtersChildMouseEvents && !hasFiltered.contains(filteringParent)) {
filteringParen...ildMouseEventsDescription
TRUEevaluated 208 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEevaluated 3864 times by 15 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
!hasFiltered.c...lteringParent)Description
TRUEevaluated 208 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
FALSEnever evaluated
0-3864
2948 hasFiltered.append(filteringParent);-
2949 if (filteringParent->childMouseEventFilter(receiver, event)) {
filteringParen...ceiver, event)Description
TRUEnever evaluated
FALSEevaluated 208 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
0-208
2950 filtered = true;-
2951 skipDelivery.append(filteringParent);-
2952 }
never executed: end of block
0
2953 qCDebug(DBG_MOUSE_TARGET) << "for" << receiver << filteringParent << "childMouseEventFilter ->" << filtered;
never executed: QMessageLogger(__FILE__, 2953, __PRETTY_FUNCTION__, DBG_MOUSE_TARGET().categoryName()).debug() << "for" << receiver << filteringParent << "childMouseEventFilter ->" << filtered;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 208 times by 5 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
0-208
2954 }
executed 208 times by 5 tests: end of block
Executed by:
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
208
2955-
2956 return sendFilteredMouseEvent(event, receiver, filteringParent->parentItem()) || filtered;
executed 4072 times by 15 tests: return sendFilteredMouseEvent(event, receiver, filteringParent->parentItem()) || filtered;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
4072
2957}-
2958-
2959bool QQuickWindowPrivate::dragOverThreshold(qreal d, Qt::Axis axis, QMouseEvent *event, int startDragThreshold)-
2960{-
2961 QStyleHints *styleHints = QGuiApplication::styleHints();-
2962 int caps = QGuiApplicationPrivate::mouseEventCaps(event);-
2963 bool dragVelocityLimitAvailable = (caps & QTouchDevice::Velocity)
(caps & QTouch...ice::Velocity)Description
TRUEnever evaluated
FALSEevaluated 6424 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
0-6424
2964 && styleHints->startDragVelocity();
styleHints->st...DragVelocity()Description
TRUEnever evaluated
FALSEnever evaluated
0
2965 bool overThreshold = qAbs(d) > (startDragThreshold >= 0 ? startDragThreshold : styleHints->startDragDistance());-
2966 if (dragVelocityLimitAvailable) {
dragVelocityLimitAvailableDescription
TRUEnever evaluated
FALSEevaluated 6424 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
0-6424
2967 QVector2D velocityVec = QGuiApplicationPrivate::mouseEventVelocity(event);-
2968 qreal velocity = axis == Qt::XAxis ? velocityVec.x() : velocityVec.y();
axis == Qt::XAxisDescription
TRUEnever evaluated
FALSEnever evaluated
0
2969 overThreshold |= qAbs(velocity) > styleHints->startDragVelocity();-
2970 }
never executed: end of block
0
2971 return overThreshold;
executed 6424 times by 7 tests: return overThreshold;
Executed by:
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
6424
2972}-
2973-
2974/*!-
2975 \qmlproperty list<Object> Window::data-
2976 \default-
2977-
2978 The data property allows you to freely mix visual children, resources-
2979 and other Windows in a Window.-
2980-
2981 If you assign another Window to the data list, the nested window will-
2982 become "transient for" the outer Window.-
2983-
2984 If you assign an \l Item to the data list, it becomes a child of the-
2985 Window's \l contentItem, so that it appears inside the window. The item's-
2986 parent will be the window's contentItem, which is the root of the Item-
2987 ownership tree within that Window.-
2988-
2989 If you assign any other object type, it is added as a resource.-
2990-
2991 It should not generally be necessary to refer to the \c data property,-
2992 as it is the default property for Window and thus all child items are-
2993 automatically assigned to this property.-
2994-
2995 \sa QWindow::transientParent()-
2996 */-
2997-
2998void QQuickWindowPrivate::data_append(QQmlListProperty<QObject> *property, QObject *o)-
2999{-
3000 if (!o)
!oDescription
TRUEnever evaluated
FALSEevaluated 156 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
0-156
3001 return;
never executed: return;
0
3002 QQuickWindow *that = static_cast<QQuickWindow *>(property->object);-
3003 if (QQuickWindow *window = qmlobject_cast<QQuickWindow *>(o)) {
QQuickWindow *...ckWindow *>(o)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
FALSEevaluated 154 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
2-154
3004 qCDebug(lcTransient) << window << "is transient for" << that;
never executed: QMessageLogger(__FILE__, 3004, __PRETTY_FUNCTION__, lcTransient().categoryName()).debug() << window << "is transient for" << that;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qqmlcomponent
0-2
3005 window->setTransientParent(that);-
3006 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlcomponent
2
3007 QQmlListProperty<QObject> itemProperty = QQuickItemPrivate::get(that->contentItem())->data();-
3008 itemProperty.append(&itemProperty, o);-
3009}
executed 156 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
156
3010-
3011int QQuickWindowPrivate::data_count(QQmlListProperty<QObject> *property)-
3012{-
3013 QQuickWindow *win = static_cast<QQuickWindow*>(property->object);-
3014 if (!win || !win->contentItem() || !QQuickItemPrivate::get(win->contentItem())->data().count)
!winDescription
TRUEnever evaluated
FALSEnever evaluated
!win->contentItem()Description
TRUEnever evaluated
FALSEnever evaluated
!QQuickItemPri...->data().countDescription
TRUEnever evaluated
FALSEnever evaluated
0
3015 return 0;
never executed: return 0;
0
3016 QQmlListProperty<QObject> itemProperty = QQuickItemPrivate::get(win->contentItem())->data();-
3017 return itemProperty.count(&itemProperty);
never executed: return itemProperty.count(&itemProperty);
0
3018}-
3019-
3020QObject *QQuickWindowPrivate::data_at(QQmlListProperty<QObject> *property, int i)-
3021{-
3022 QQuickWindow *win = static_cast<QQuickWindow*>(property->object);-
3023 QQmlListProperty<QObject> itemProperty = QQuickItemPrivate::get(win->contentItem())->data();-
3024 return itemProperty.at(&itemProperty, i);
never executed: return itemProperty.at(&itemProperty, i);
0
3025}-
3026-
3027void QQuickWindowPrivate::data_clear(QQmlListProperty<QObject> *property)-
3028{-
3029 QQuickWindow *win = static_cast<QQuickWindow*>(property->object);-
3030 QQmlListProperty<QObject> itemProperty = QQuickItemPrivate::get(win->contentItem())->data();-
3031 itemProperty.clear(&itemProperty);-
3032}
never executed: end of block
0
3033-
3034bool QQuickWindowPrivate::isRenderable() const-
3035{-
3036 Q_Q(const QQuickWindow);-
3037 return ((q->isExposed() && q->isVisible())) && q->geometry().isValid();
executed 2110947 times by 89 tests: return ((q->isExposed() && q->isVisible())) && q->geometry().isValid();
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
  • ...
2110947
3038}-
3039-
3040void QQuickWindowPrivate::contextCreationFailureMessage(const QSurfaceFormat &format,-
3041 QString *translatedMessage,-
3042 QString *untranslatedMessage,-
3043 bool isEs)-
3044{-
3045 const QString contextType = QLatin1String(isEs ? "EGL" : "OpenGL");-
3046 QString formatStr;-
3047 QDebug(&formatStr) << format;-
3048#if defined(Q_OS_WIN32)-
3049 const bool isDebug = QLibraryInfo::isDebugBuild();-
3050 const QString eglLibName = QLatin1String(isDebug ? "libEGLd.dll" : "libEGL.dll");-
3051 const QString glesLibName = QLatin1String(isDebug ? "libGLESv2d.dll" : "libGLESv2.dll");-
3052 //: %1 Context type (Open GL, EGL), %2 format, ANGLE %3, %4 library names-
3053 const char msg[] = QT_TRANSLATE_NOOP("QQuickWindow",-
3054 "Failed to create %1 context for format %2.\n"-
3055 "This is most likely caused by not having the necessary graphics drivers installed.\n\n"-
3056 "Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, "-
3057 "make sure the ANGLE Open GL ES 2.0 emulation libraries (%3, %4 and d3dcompiler_*.dll) "-
3058 "are available in the application executable's directory or in a location listed in PATH.");-
3059 *translatedMessage = QQuickWindow::tr(msg).arg(contextType, formatStr, eglLibName, glesLibName);-
3060 *untranslatedMessage = QString::fromLatin1(msg).arg(contextType, formatStr, eglLibName, glesLibName);-
3061#else // Q_OS_WIN32-
3062 //: %1 Context type (Open GL, EGL), %2 format specification-
3063 const char msg[] = QT_TRANSLATE_NOOP("QQuickWindow",-
3064 "Failed to create %1 context for format %2");-
3065 *translatedMessage = QQuickWindow::tr(msg).arg(contextType, formatStr);-
3066 *untranslatedMessage = QString::fromLatin1(msg).arg(contextType, formatStr);-
3067#endif // !Q_OS_WIN32-
3068}
never executed: end of block
0
3069-
3070#if QT_DEPRECATED_SINCE(5, 8)-
3071-
3072// ### Qt6: remove-
3073/*!-
3074 Propagates an event \a e to a QQuickItem \a item on the window.-
3075-
3076 Use \l QCoreApplication::sendEvent() directly instead.-
3077-
3078 The return value is currently not used.-
3079-
3080 \deprecated-
3081*/-
3082bool QQuickWindow::sendEvent(QQuickItem *item, QEvent *e)-
3083{-
3084 Q_D(QQuickWindow);-
3085-
3086 if (!item) {
!itemDescription
TRUEnever evaluated
FALSEnever evaluated
0
3087 qWarning("QQuickWindow::sendEvent: Cannot send event to a null item");-
3088 return false;
never executed: return false;
0
3089 }-
3090-
3091 Q_ASSERT(e);-
3092-
3093 switch (e->type()) {-
3094 case QEvent::KeyPress:
never executed: case QEvent::KeyPress:
0
3095 case QEvent::KeyRelease:
never executed: case QEvent::KeyRelease:
0
3096 e->accept();-
3097 QCoreApplication::sendEvent(item, e);-
3098 while (!e->isAccepted() && (item = item->parentItem())) {
!e->isAccepted()Description
TRUEnever evaluated
FALSEnever evaluated
(item = item->parentItem())Description
TRUEnever evaluated
FALSEnever evaluated
0
3099 e->accept();-
3100 QCoreApplication::sendEvent(item, e);-
3101 }
never executed: end of block
0
3102 break;
never executed: break;
0
3103 case QEvent::MouseButtonPress:
never executed: case QEvent::MouseButtonPress:
0
3104 case QEvent::MouseButtonRelease:
never executed: case QEvent::MouseButtonRelease:
0
3105 case QEvent::MouseButtonDblClick:
never executed: case QEvent::MouseButtonDblClick:
0
3106 case QEvent::MouseMove: {
never executed: case QEvent::MouseMove:
0
3107 // XXX todo - should sendEvent be doing this? how does it relate to forwarded events?-
3108 d->hasFiltered.clear();-
3109 if (!d->sendFilteredMouseEvent(e, item, item->parentItem())) {
!d->sendFilter...>parentItem())Description
TRUEnever evaluated
FALSEnever evaluated
0
3110 // accept because qml items by default accept and have to explicitly opt out of accepting-
3111 e->accept();-
3112 QCoreApplication::sendEvent(item, e);-
3113 }
never executed: end of block
0
3114 }-
3115 break;
never executed: break;
0
3116 default:
never executed: default:
0
3117 QCoreApplication::sendEvent(item, e);-
3118 break;
never executed: break;
0
3119 }-
3120-
3121 return false;
never executed: return false;
0
3122}-
3123-
3124#endif-
3125-
3126void QQuickWindowPrivate::cleanupNodes()-
3127{-
3128 for (int ii = 0; ii < cleanupNodeList.count(); ++ii)
ii < cleanupNodeList.count()Description
TRUEevaluated 316588 times by 74 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
FALSEevaluated 55981 times by 90 tests
Evaluated 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
  • ...
55981-316588
3129 delete cleanupNodeList.at(ii);
executed 316588 times by 74 tests: delete cleanupNodeList.at(ii);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
316588
3130 cleanupNodeList.clear();-
3131}
executed 55981 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
  • ...
55981
3132-
3133void QQuickWindowPrivate::cleanupNodesOnShutdown(QQuickItem *item)-
3134{-
3135 QQuickItemPrivate *p = QQuickItemPrivate::get(item);-
3136 if (p->itemNodeInstance) {
p->itemNodeInstanceDescription
TRUEevaluated 7060 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 3470 times by 43 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickdesignersupport
  • tst_qquickdrag
  • tst_qquickdroparea
  • tst_qquickdynamicpropertyanimation
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickgraphicsinfo
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • ...
3470-7060
3137 delete p->itemNodeInstance;-
3138 p->itemNodeInstance = nullptr;-
3139-
3140 if (p->extra.isAllocated()) {
p->extra.isAllocated()Description
TRUEevaluated 5892 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 1168 times by 12 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquickwidget
  • tst_rendernode
1168-5892
3141 p->extra->opacityNode = nullptr;-
3142 p->extra->clipNode = nullptr;-
3143 p->extra->rootNode = nullptr;-
3144 }
executed 5892 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
5892
3145-
3146 p->paintNode = nullptr;-
3147-
3148 p->dirty(QQuickItemPrivate::Window);-
3149 }
executed 7060 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
7060
3150-
3151 // Qt 6: Make invalidateSceneGraph a virtual member of QQuickItem-
3152 if (p->flags & QQuickItem::ItemHasContents) {
p->flags & QQu...temHasContentsDescription
TRUEevaluated 2738 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
FALSEevaluated 7792 times by 90 tests
Evaluated 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
  • ...
2738-7792
3153 const QMetaObject *mo = item->metaObject();-
3154 int index = mo->indexOfSlot("invalidateSceneGraph()");-
3155 if (index >= 0) {
index >= 0Description
TRUEevaluated 96 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem
FALSEevaluated 2642 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
96-2642
3156 const QMetaMethod &method = mo->method(index);-
3157 // Skip functions named invalidateSceneGraph() in QML items.-
3158 if (strstr(method.enclosingMetaObject()->className(), "_QML_") == nullptr)
strstr(method...._") == nullptrDescription
TRUEevaluated 96 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem
FALSEnever evaluated
0-96
3159 method.invoke(item, Qt::DirectConnection);
executed 96 times by 4 tests: method.invoke(item, Qt::DirectConnection);
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem
96
3160 }
executed 96 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem
96
3161 }
executed 2738 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
2738
3162-
3163 for (int ii = 0; ii < p->childItems.count(); ++ii)
ii < p->childItems.count()Description
TRUEevaluated 5168 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
FALSEevaluated 10530 times by 90 tests
Evaluated 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
  • ...
5168-10530
3164 cleanupNodesOnShutdown(p->childItems.at(ii));
executed 5168 times by 17 tests: cleanupNodesOnShutdown(p->childItems.at(ii));
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickdrag
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickwidget
5168
3165}
executed 10530 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
  • ...
10530
3166-
3167// This must be called from the render thread, with the main thread frozen-
3168void QQuickWindowPrivate::cleanupNodesOnShutdown()-
3169{-
3170 Q_Q(QQuickWindow);-
3171 cleanupNodes();-
3172 cleanupNodesOnShutdown(contentItem);-
3173 for (QSet<QQuickItem *>::const_iterator it = parentlessItems.begin(), cend = parentlessItems.end(); it != cend; ++it)
it != cendDescription
TRUEnever evaluated
FALSEevaluated 5362 times by 90 tests
Evaluated 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
  • ...
0-5362
3174 cleanupNodesOnShutdown(*it);
never executed: cleanupNodesOnShutdown(*it);
0
3175 animationController->windowNodesDestroyed();-
3176 q->cleanupSceneGraph();-
3177}
executed 5362 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
  • ...
5362
3178-
3179void QQuickWindowPrivate::updateDirtyNodes()-
3180{-
3181 qCDebug(DBG_DIRTY) << "QQuickWindowPrivate::updateDirtyNodes():";
never executed: QMessageLogger(__FILE__, 3181, __PRETTY_FUNCTION__, DBG_DIRTY().categoryName()).debug() << "QQuickWindowPrivate::updateDirtyNodes():";
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 50619 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-50619
3182-
3183 cleanupNodes();-
3184-
3185 QQuickItem *updateList = dirtyItemList;-
3186 dirtyItemList = nullptr;-
3187 if (updateList) QQuickItemPrivate::get(updateList)->prevDirtyItem = &updateList;
executed 42616 times by 76 tests: QQuickItemPrivate::get(updateList)->prevDirtyItem = &updateList;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
updateListDescription
TRUEevaluated 42616 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 8003 times by 52 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
8003-42616
3188-
3189 while (updateList) {
updateListDescription
TRUEevaluated 548664 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 50619 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50619-548664
3190 QQuickItem *item = updateList;-
3191 QQuickItemPrivate *itemPriv = QQuickItemPrivate::get(item);-
3192 itemPriv->removeFromDirtyList();-
3193-
3194 qCDebug(DBG_DIRTY) << " QSGNode:" << item << qPrintable(itemPriv->dirtyToString());
never executed: QMessageLogger(__FILE__, 3194, __PRETTY_FUNCTION__, DBG_DIRTY().categoryName()).debug() << " QSGNode:" << item << QtPrivate::asString(itemPriv->dirtyToString()).toLocal8Bit().constData();
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 548664 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-548664
3195 updateDirtyNode(item);-
3196 }
executed 548664 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
548664
3197}
executed 50619 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
50619
3198-
3199static inline QSGNode *qquickitem_before_paintNode(QQuickItemPrivate *d)-
3200{-
3201 const QList<QQuickItem *> childItems = d->paintOrderChildItems();-
3202 QQuickItem *before = nullptr;-
3203 for (int i=0; i<childItems.size(); ++i) {
i<childItems.size()Description
TRUEevaluated 63536 times by 61 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • ...
FALSEevaluated 188328 times by 69 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
63536-188328
3204 QQuickItemPrivate *dd = QQuickItemPrivate::get(childItems.at(i));-
3205 // Perform the same check as the in fetchNextNode below.-
3206 if (dd->z() < 0 && (dd->explicitVisible || (dd->extra.isAllocated() && dd->extra->effectRefCount)))
dd->z() < 0Description
TRUEevaluated 204 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 63332 times by 61 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • ...
dd->explicitVisibleDescription
TRUEevaluated 204 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
dd->extra.isAllocated()Description
TRUEnever evaluated
FALSEnever evaluated
dd->extra->effectRefCountDescription
TRUEnever evaluated
FALSEnever evaluated
0-63332
3207 before = childItems.at(i);
executed 204 times by 1 test: before = childItems.at(i);
Executed by:
  • tst_examples
204
3208 else-
3209 break;
executed 63332 times by 61 tests: break;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • ...
63332
3210 }-
3211 return Q_UNLIKELY(before) ? QQuickItemPrivate::get(before)->itemNode() : nullptr;
executed 251660 times by 71 tests: return __builtin_expect(!!(before), false) ? QQuickItemPrivate::get(before)->itemNode() : nullptr;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
251660
3212}-
3213-
3214static QSGNode *fetchNextNode(QQuickItemPrivate *itemPriv, int &ii, bool &returnedPaintNode)-
3215{-
3216 QList<QQuickItem *> orderedChildren = itemPriv->paintOrderChildItems();-
3217-
3218 for (; ii < orderedChildren.count() && orderedChildren.at(ii)->z() < 0; ++ii) {
ii < orderedChildren.count()Description
TRUEevaluated 437732 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 95378 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
orderedChildre...t(ii)->z() < 0Description
TRUEevaluated 252 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
FALSEevaluated 437480 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
252-437732
3219 QQuickItemPrivate *childPrivate = QQuickItemPrivate::get(orderedChildren.at(ii));-
3220 if (!childPrivate->explicitVisible &&
!childPrivate->explicitVisibleDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 250 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
2-250
3221 (!childPrivate->extra.isAllocated() || !childPrivate->extra->effectRefCount))
!childPrivate-....isAllocated()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
!childPrivate-...effectRefCountDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
0-2
3222 continue;
executed 2 times by 1 test: continue;
Executed by:
  • tst_examples
2
3223-
3224 ii++;-
3225 return childPrivate->itemNode();
executed 250 times by 2 tests: return childPrivate->itemNode();
Executed by:
  • tst_examples
  • tst_qquicklistview
250
3226 }-
3227-
3228 if (itemPriv->paintNode && !returnedPaintNode) {
itemPriv->paintNodeDescription
TRUEevaluated 973 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 531885 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
!returnedPaintNodeDescription
TRUEevaluated 150 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 823 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
150-531885
3229 returnedPaintNode = true;-
3230 return itemPriv->paintNode;
executed 150 times by 10 tests: return itemPriv->paintNode;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
150
3231 }-
3232-
3233 for (; ii < orderedChildren.count(); ++ii) {
ii < orderedChildren.count()Description
TRUEevaluated 440871 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 95850 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
95850-440871
3234 QQuickItemPrivate *childPrivate = QQuickItemPrivate::get(orderedChildren.at(ii));-
3235 if (!childPrivate->explicitVisible &&
!childPrivate->explicitVisibleDescription
TRUEevaluated 4029 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickfocusscope
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_signalspy
FALSEevaluated 436842 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
4029-436842
3236 (!childPrivate->extra.isAllocated() || !childPrivate->extra->effectRefCount))
!childPrivate-....isAllocated()Description
TRUEevaluated 108 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquicklayouts
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
FALSEevaluated 3921 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
  • tst_signalspy
!childPrivate-...effectRefCountDescription
TRUEevaluated 3905 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickfocusscope
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
  • tst_signalspy
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
16-3921
3237 continue;
executed 4013 times by 17 tests: continue;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickfocusscope
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_signalspy
4013
3238-
3239 ii++;-
3240 return childPrivate->itemNode();
executed 436858 times by 76 tests: return childPrivate->itemNode();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
436858
3241 }-
3242-
3243 return nullptr;
executed 95850 times by 76 tests: return nullptr;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
95850
3244}-
3245-
3246void QQuickWindowPrivate::updateDirtyNode(QQuickItem *item)-
3247{-
3248 QQuickItemPrivate *itemPriv = QQuickItemPrivate::get(item);-
3249 quint32 dirty = itemPriv->dirtyAttributes;-
3250 itemPriv->dirtyAttributes = 0;-
3251-
3252 if ((dirty & QQuickItemPrivate::TransformUpdateMask) ||
(dirty & QQuic...ormUpdateMask)Description
TRUEevaluated 433368 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 115296 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
115296-433368
3253 (dirty & QQuickItemPrivate::Size && itemPriv->origin() != QQuickItem::TopLeft &&
dirty & QQuick...mPrivate::SizeDescription
TRUEevaluated 44454 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 70842 times by 55 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickfocusscope
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
itemPriv->orig...kItem::TopLeftDescription
TRUEevaluated 44454 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEnever evaluated
0-70842
3254 (itemPriv->scale() != 1. || itemPriv->rotation() != 0.))) {
itemPriv->scale() != 1.Description
TRUEnever evaluated
FALSEevaluated 44454 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
itemPriv->rotation() != 0.Description
TRUEnever evaluated
FALSEevaluated 44454 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-44454
3255-
3256 QMatrix4x4 matrix;-
3257-
3258 if (itemPriv->x != 0. || itemPriv->y != 0.)
itemPriv->x != 0.Description
TRUEevaluated 214250 times by 37 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointattractor
  • tst_qquickpointerhandler
  • tst_qquickpositioners
  • tst_qquickspringanimation
  • ...
FALSEevaluated 219118 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
itemPriv->y != 0.Description
TRUEevaluated 127844 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickspringanimation
  • tst_qquickstates
  • tst_qquicktextedit
  • ...
FALSEevaluated 91274 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
91274-219118
3259 matrix.translate(itemPriv->x, itemPriv->y);
executed 342094 times by 43 tests: matrix.translate(itemPriv->x, itemPriv->y);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcustomaffector
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
342094
3260-
3261 for (int ii = itemPriv->transforms.count() - 1; ii >= 0; --ii)
ii >= 0Description
TRUEevaluated 272 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickpathview
FALSEevaluated 433368 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
272-433368
3262 itemPriv->transforms.at(ii)->applyTo(&matrix);
executed 272 times by 2 tests: itemPriv->transforms.at(ii)->applyTo(&matrix);
Executed by:
  • tst_examples
  • tst_qquickpathview
272
3263-
3264 if (itemPriv->scale() != 1. || itemPriv->rotation() != 0.) {
itemPriv->scale() != 1.Description
TRUEevaluated 220 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickspritesequence
  • tst_scenegraph
FALSEevaluated 433148 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
itemPriv->rotation() != 0.Description
TRUEevaluated 654 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 432494 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
220-433148
3265 QPointF origin = item->transformOriginPoint();-
3266 matrix.translate(origin.x(), origin.y());-
3267 if (itemPriv->scale() != 1.)
itemPriv->scale() != 1.Description
TRUEevaluated 220 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickspritesequence
  • tst_scenegraph
FALSEevaluated 654 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_rendernode
  • tst_scenegraph
220-654
3268 matrix.scale(itemPriv->scale(), itemPriv->scale());
executed 220 times by 12 tests: matrix.scale(itemPriv->scale(), itemPriv->scale());
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickspritesequence
  • tst_scenegraph
220
3269 if (itemPriv->rotation() != 0.)
itemPriv->rotation() != 0.Description
TRUEevaluated 692 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 182 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickspritesequence
  • tst_scenegraph
182-692
3270 matrix.rotate(itemPriv->rotation(), 0, 0, 1);
executed 692 times by 10 tests: matrix.rotate(itemPriv->rotation(), 0, 0, 1);
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpincharea
  • tst_rendernode
  • tst_scenegraph
692
3271 matrix.translate(-origin.x(), -origin.y());-
3272 }
executed 874 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickspritesequence
  • tst_rendernode
  • tst_scenegraph
874
3273-
3274 itemPriv->itemNode()->setMatrix(matrix);-
3275 }
executed 433368 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
433368
3276-
3277 bool clipEffectivelyChanged = (dirty & (QQuickItemPrivate::Clip | QQuickItemPrivate::Window)) &&
(dirty & (QQui...vate::Window))Description
TRUEevaluated 320826 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 227838 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
227838-320826
3278 ((item->clip() == false) != (itemPriv->clipNode() == nullptr));
((item->clip()...) == nullptr))Description
TRUEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 320564 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
262-320564
3279 int effectRefCount = itemPriv->extra.isAllocated()?itemPriv->extra->effectRefCount:0;
itemPriv->extra.isAllocated()Description
TRUEevaluated 233922 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 314742 times by 72 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • ...
233922-314742
3280 bool effectRefEffectivelyChanged = (dirty & (QQuickItemPrivate::EffectReference | QQuickItemPrivate::Window)) &&
(dirty & (QQui...vate::Window))Description
TRUEevaluated 320830 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 227834 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
227834-320830
3281 ((effectRefCount == 0) != (itemPriv->rootNode() == nullptr));
((effectRefCou...) == nullptr))Description
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEevaluated 320725 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
105-320725
3282-
3283 if (clipEffectivelyChanged) {
clipEffectivelyChangedDescription
TRUEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 548402 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
262-548402
3284 QSGNode *parent = itemPriv->opacityNode() ? (QSGNode *) itemPriv->opacityNode() :
itemPriv->opacityNode()Description
TRUEnever evaluated
FALSEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
0-262
3285 (QSGNode *) itemPriv->itemNode();-
3286 QSGNode *child = itemPriv->rootNode();-
3287-
3288 if (item->clip()) {
item->clip()Description
TRUEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-262
3289 Q_ASSERT(itemPriv->clipNode() == nullptr);-
3290 QQuickDefaultClipNode *clip = new QQuickDefaultClipNode(item->clipRect());-
3291 itemPriv->extra.value().clipNode = clip;-
3292 clip->update();-
3293-
3294 if (!child) {
!childDescription
TRUEevaluated 262 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-262
3295 parent->reparentChildNodesTo(clip);-
3296 parent->appendChildNode(clip);-
3297 } else {
executed 262 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
262
3298 parent->removeChildNode(child);-
3299 clip->appendChildNode(child);-
3300 parent->appendChildNode(clip);-
3301 }
never executed: end of block
0
3302-
3303 } else {-
3304 QQuickDefaultClipNode *clip = itemPriv->clipNode();-
3305 Q_ASSERT(clip);-
3306 parent->removeChildNode(clip);-
3307 if (child) {
childDescription
TRUEnever evaluated
FALSEnever evaluated
0
3308 clip->removeChildNode(child);-
3309 parent->appendChildNode(child);-
3310 } else {
never executed: end of block
0
3311 clip->reparentChildNodesTo(parent);-
3312 }
never executed: end of block
0
3313-
3314 delete itemPriv->clipNode();-
3315 itemPriv->extra->clipNode = nullptr;-
3316 }
never executed: end of block
0
3317 }-
3318-
3319 if (effectRefEffectivelyChanged) {
effectRefEffectivelyChangedDescription
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEevaluated 548559 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
105-548559
3320 if (dirty & QQuickItemPrivate::ChildrenUpdateMask)
dirty & QQuick...drenUpdateMaskDescription
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEnever evaluated
0-105
3321 itemPriv->childContainerNode()->removeAllChildNodes();
executed 105 times by 6 tests: itemPriv->childContainerNode()->removeAllChildNodes();
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
105
3322-
3323 QSGNode *parent = itemPriv->clipNode();-
3324 if (!parent)
!parentDescription
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEnever evaluated
0-105
3325 parent = itemPriv->opacityNode();
executed 105 times by 6 tests: parent = itemPriv->opacityNode();
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
105
3326 if (!parent)
!parentDescription
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEnever evaluated
0-105
3327 parent = itemPriv->itemNode();
executed 105 times by 6 tests: parent = itemPriv->itemNode();
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
105
3328-
3329 if (itemPriv->extra.isAllocated() && itemPriv->extra->effectRefCount) {
itemPriv->extra.isAllocated()Description
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEnever evaluated
itemPriv->extr...effectRefCountDescription
TRUEevaluated 105 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
FALSEnever evaluated
0-105
3330 Q_ASSERT(itemPriv->rootNode() == nullptr);-
3331 QSGRootNode *root = new QSGRootNode();-
3332 itemPriv->extra->rootNode = root;-
3333 parent->reparentChildNodesTo(root);-
3334 parent->appendChildNode(root);-
3335 } else {
executed 105 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickshadereffect
  • tst_qquicktext
105
3336 Q_ASSERT(itemPriv->rootNode() != nullptr);-
3337 QSGRootNode *root = itemPriv->rootNode();-
3338 parent->removeChildNode(root);-
3339 root->reparentChildNodesTo(parent);-
3340 delete itemPriv->rootNode();-
3341 itemPriv->extra->rootNode = nullptr;-
3342 }
never executed: end of block
0
3343 }-
3344-
3345 if (dirty & QQuickItemPrivate::ChildrenUpdateMask) {
dirty & QQuick...drenUpdateMaskDescription
TRUEevaluated 331640 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 217024 times by 57 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
217024-331640
3346 int ii = 0;-
3347 bool fetchedPaintNode = false;-
3348 QList<QQuickItem *> orderedChildren = itemPriv->paintOrderChildItems();-
3349 int desiredNodesSize = orderedChildren.size() + (itemPriv->paintNode ? 1 : 0);
itemPriv->paintNodeDescription
TRUEevaluated 150 times by 10 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 331490 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
150-331490
3350-
3351 // now start making current state match the promised land of-
3352 // desiredNodes. in the case of our current state matching desiredNodes-
3353 // (though why would we get ChildrenUpdateMask with no changes?) then we-
3354 // should make no changes at all.-
3355-
3356 // how many nodes did we process, when examining changes-
3357 int desiredNodesProcessed = 0;-
3358-
3359 // currentNode is how far, in our present tree, we have processed. we-
3360 // make use of this later on to trim the current child list if the-
3361 // desired list is shorter.-
3362 QSGNode *groupNode = itemPriv->childContainerNode();-
3363 QSGNode *currentNode = groupNode->firstChild();-
3364 int added = 0;-
3365 int removed = 0;-
3366 int replaced = 0;-
3367 QSGNode *desiredNode = nullptr;-
3368-
3369 while (currentNode && (desiredNode = fetchNextNode(itemPriv, ii, fetchedPaintNode))) {
currentNodeDescription
TRUEevaluated 117227 times by 20 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 331576 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
(desiredNode =...hedPaintNode))Description
TRUEevaluated 117163 times by 19 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 64 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
64-331576
3370 // uh oh... reality and our utopic paradise are diverging!-
3371 // we need to reconcile this...-
3372 if (currentNode != desiredNode) {
currentNode != desiredNodeDescription
TRUEevaluated 5346 times by 10 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquicktaphandler
FALSEevaluated 111817 times by 17 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
5346-111817
3373 // for now, we're just removing the node from the children --
3374 // and replacing it with the new node.-
3375 if (desiredNode->parent())
desiredNode->parent()Description
TRUEevaluated 570 times by 4 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 4776 times by 10 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquicktaphandler
570-4776
3376 desiredNode->parent()->removeChildNode(desiredNode);
executed 570 times by 4 tests: desiredNode->parent()->removeChildNode(desiredNode);
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickitemparticle
  • tst_qquicklistview
  • tst_qquickstates
570
3377 groupNode->insertChildNodeAfter(desiredNode, currentNode);-
3378 groupNode->removeChildNode(currentNode);-
3379 replaced++;-
3380-
3381 // since we just replaced currentNode, we also need to reset-
3382 // the pointer.-
3383 currentNode = desiredNode;-
3384 }
executed 5346 times by 10 tests: end of block
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickgridview
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquicktaphandler
5346
3385-
3386 currentNode = currentNode->nextSibling();-
3387 desiredNodesProcessed++;-
3388 }
executed 117163 times by 19 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimatedsprite
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickshortcut
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
117163
3389-
3390 // if we didn't process as many nodes as in the new list, then we have-
3391 // more nodes at the end of desiredNodes to append to our list.-
3392 // this will be the case when adding new nodes, for instance.-
3393 if (desiredNodesProcessed < desiredNodesSize) {
desiredNodesPr...siredNodesSizeDescription
TRUEevaluated 95786 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 235854 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
95786-235854
3394 while ((desiredNode = fetchNextNode(itemPriv, ii, fetchedPaintNode))) {
(desiredNode =...hedPaintNode))Description
TRUEevaluated 320095 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 95786 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
95786-320095
3395 if (desiredNode->parent())
desiredNode->parent()Description
TRUEnever evaluated
FALSEevaluated 320095 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-320095
3396 desiredNode->parent()->removeChildNode(desiredNode);
never executed: desiredNode->parent()->removeChildNode(desiredNode);
0
3397 groupNode->appendChildNode(desiredNode);-
3398 added++;-
3399 }
executed 320095 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
320095
3400 } else if (currentNode) {
executed 95786 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
currentNodeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitemparticle
FALSEevaluated 235850 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
4-235850
3401 // on the other hand, if we processed less than our current node-
3402 // tree, then nodes have been _removed_ from the scene, and we need-
3403 // to take care of that here.-
3404 while (currentNode) {
currentNodeDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquickitemparticle
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickitemparticle
4-24
3405 QSGNode *node = currentNode->nextSibling();-
3406 groupNode->removeChildNode(currentNode);-
3407 currentNode = node;-
3408 removed++;-
3409 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qquickitemparticle
24
3410 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickitemparticle
4
3411 }
executed 331640 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
331640
3412-
3413 if ((dirty & QQuickItemPrivate::Size) && itemPriv->clipNode()) {
(dirty & QQuic...Private::Size)Description
TRUEevaluated 368568 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 180096 times by 64 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
itemPriv->clipNode()Description
TRUEevaluated 272 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 368296 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
272-368568
3414 itemPriv->clipNode()->setRect(item->clipRect());-
3415 itemPriv->clipNode()->update();-
3416 }
executed 272 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
272
3417-
3418 if (dirty & (QQuickItemPrivate::OpacityValue | QQuickItemPrivate::Visible
dirty & (QQuic...ivate::Window)Description
TRUEevaluated 340747 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 207917 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
207917-340747
3419 | QQuickItemPrivate::HideReference | QQuickItemPrivate::Window))
dirty & (QQuic...ivate::Window)Description
TRUEevaluated 340747 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 207917 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
207917-340747
3420 {-
3421 qreal opacity = itemPriv->explicitVisible && (!itemPriv->extra.isAllocated() || itemPriv->extra->hideRefCount == 0)
itemPriv->explicitVisibleDescription
TRUEevaluated 336889 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 3858 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickfocusscope
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_signalspy
!itemPriv->extra.isAllocated()Description
TRUEevaluated 222852 times by 72 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • ...
FALSEevaluated 114037 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
itemPriv->extr...eRefCount == 0Description
TRUEevaluated 106694 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
FALSEevaluated 7343 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickgridview
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquickvisualdatamodel
3858-336889
3422 ? itemPriv->opacity() : qreal(0);-
3423-
3424 if (opacity != 1 && !itemPriv->opacityNode()) {
opacity != 1Description
TRUEevaluated 24745 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • ...
FALSEevaluated 316002 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
!itemPriv->opacityNode()Description
TRUEevaluated 12476 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • ...
FALSEevaluated 12269 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
  • tst_scenegraph
12269-316002
3425 QSGOpacityNode *node = new QSGOpacityNode;-
3426 itemPriv->extra.value().opacityNode = node;-
3427-
3428 QSGNode *parent = itemPriv->itemNode();-
3429 QSGNode *child = itemPriv->clipNode();-
3430 if (!child)
!childDescription
TRUEevaluated 12474 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
2-12474
3431 child = itemPriv->rootNode();
executed 12474 times by 27 tests: child = itemPriv->rootNode();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • ...
12474
3432-
3433 if (child) {
childDescription
TRUEevaluated 93 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
FALSEevaluated 12383 times by 26 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_scenegraph
  • ...
93-12383
3434 parent->removeChildNode(child);-
3435 node->appendChildNode(child);-
3436 parent->appendChildNode(node);-
3437 } else {
executed 93 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
93
3438 parent->reparentChildNodesTo(node);-
3439 parent->appendChildNode(node);-
3440 }
executed 12383 times by 26 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_scenegraph
  • ...
12383
3441 }-
3442 if (itemPriv->opacityNode())
itemPriv->opacityNode()Description
TRUEevaluated 30073 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • ...
FALSEevaluated 310674 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
30073-310674
3443 itemPriv->opacityNode()->setOpacity(opacity);
executed 30073 times by 27 tests: itemPriv->opacityNode()->setOpacity(opacity);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • ...
30073
3444 }
executed 340747 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
340747
3445-
3446 if (dirty & QQuickItemPrivate::ContentUpdateMask) {
dirty & QQuick...tentUpdateMaskDescription
TRUEevaluated 420104 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
FALSEevaluated 128560 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpainteditem
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickshortcut
  • tst_qquickspringanimation
  • ...
128560-420104
3447-
3448 if (itemPriv->flags & QQuickItem::ItemHasContents) {
itemPriv->flag...temHasContentsDescription
TRUEevaluated 380225 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
FALSEevaluated 39879 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
39879-380225
3449 updatePaintNodeData.transformNode = itemPriv->itemNode();-
3450 itemPriv->paintNode = item->updatePaintNode(itemPriv->paintNode, &updatePaintNodeData);-
3451-
3452 Q_ASSERT(itemPriv->paintNode == nullptr ||-
3453 itemPriv->paintNode->parent() == nullptr ||-
3454 itemPriv->paintNode->parent() == itemPriv->childContainerNode());-
3455-
3456 if (itemPriv->paintNode && itemPriv->paintNode->parent() == nullptr) {
itemPriv->paintNodeDescription
TRUEevaluated 337840 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
FALSEevaluated 42385 times by 40 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemlayer
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklineextruder
  • tst_qquicklistview
  • tst_qquickmaskextruder
  • tst_qquickpainteditem
  • ...
itemPriv->pain...t() == nullptrDescription
TRUEevaluated 251660 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
FALSEevaluated 86180 times by 50 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • ...
42385-337840
3457 QSGNode *before = qquickitem_before_paintNode(itemPriv);-
3458 if (before && before->parent()) {
beforeDescription
TRUEevaluated 204 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 251456 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
before->parent()Description
TRUEevaluated 204 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
0-251456
3459 Q_ASSERT(before->parent() == itemPriv->childContainerNode());-
3460 itemPriv->childContainerNode()->insertChildNodeAfter(itemPriv->paintNode, before);-
3461 } else {
executed 204 times by 1 test: end of block
Executed by:
  • tst_examples
204
3462 itemPriv->childContainerNode()->prependChildNode(itemPriv->paintNode);-
3463 }
executed 251456 times by 71 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
251456
3464 }-
3465 } else if (itemPriv->paintNode) {
executed 380225 times by 71 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
itemPriv->paintNodeDescription
TRUEnever evaluated
FALSEevaluated 39879 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-380225
3466 delete itemPriv->paintNode;-
3467 itemPriv->paintNode = nullptr;-
3468 }
never executed: end of block
0
3469 }
executed 420104 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
420104
3470-
3471#ifndef QT_NO_DEBUG-
3472 // Check consistency.-
3473-
3474 QList<QSGNode *> nodes;-
3475 nodes << itemPriv->itemNodeInstance-
3476 << itemPriv->opacityNode()-
3477 << itemPriv->clipNode()-
3478 << itemPriv->rootNode()-
3479 << itemPriv->paintNode;-
3480 nodes.removeAll(0);-
3481-
3482 Q_ASSERT(nodes.constFirst() == itemPriv->itemNodeInstance);-
3483 for (int i=1; i<nodes.size(); ++i) {
i<nodes.size()Description
TRUEevaluated 473014 times by 72 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
FALSEevaluated 548664 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
473014-548664
3484 QSGNode *n = nodes.at(i);-
3485 // Failing this means we messed up reparenting-
3486 Q_ASSERT(n->parent() == nodes.at(i-1));-
3487 // Only the paintNode and the one who is childContainer may have more than one child.-
3488 Q_ASSERT(n == itemPriv->paintNode || n == itemPriv->childContainerNode() || n->childCount() == 1);-
3489 }
executed 473014 times by 72 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • ...
473014
3490#endif-
3491-
3492}
executed 548664 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
548664
3493-
3494bool QQuickWindowPrivate::emitError(QQuickWindow::SceneGraphError error, const QString &msg)-
3495{-
3496 Q_Q(QQuickWindow);-
3497 static const QMetaMethod errorSignal = QMetaMethod::fromSignal(&QQuickWindow::sceneGraphError);-
3498 if (q->isSignalConnected(errorSignal)) {
q->isSignalCon...d(errorSignal)Description
TRUEnever evaluated
FALSEnever evaluated
0
3499 emit q->sceneGraphError(error, msg);-
3500 return true;
never executed: return true;
0
3501 }-
3502 return false;
never executed: return false;
0
3503}-
3504-
3505void QQuickWindow::maybeUpdate()-
3506{-
3507 Q_D(QQuickWindow);-
3508 if (d->renderControl)
d->renderControlDescription
TRUEevaluated 1290 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEevaluated 2039648 times by 89 tests
Evaluated 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
  • ...
1290-2039648
3509 QQuickRenderControlPrivate::get(d->renderControl)->maybeUpdate();
executed 1290 times by 2 tests: QQuickRenderControlPrivate::get(d->renderControl)->maybeUpdate();
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
1290
3510 else if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 2039648 times by 89 tests
Evaluated 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
  • ...
FALSEnever evaluated
0-2039648
3511 d->windowManager->maybeUpdate(this);
executed 2039648 times by 89 tests: d->windowManager->maybeUpdate(this);
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
  • ...
2039648
3512}
executed 2040938 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
  • ...
2040938
3513-
3514void QQuickWindow::cleanupSceneGraph()-
3515{-
3516 Q_D(QQuickWindow);-
3517#if QT_CONFIG(opengl)-
3518 delete d->vaoHelper;-
3519 d->vaoHelper = nullptr;-
3520#endif-
3521 if (!d->renderer)
!d->rendererDescription
TRUEevaluated 5030 times by 90 tests
Evaluated 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
  • ...
FALSEevaluated 3498 times by 76 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
3498-5030
3522 return;
executed 5030 times by 90 tests: return;
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
  • ...
5030
3523-
3524 delete d->renderer->rootNode();-
3525 delete d->renderer;-
3526 d->renderer = nullptr;-
3527-
3528 d->runAndClearJobs(&d->beforeSynchronizingJobs);-
3529 d->runAndClearJobs(&d->afterSynchronizingJobs);-
3530 d->runAndClearJobs(&d->beforeRenderingJobs);-
3531 d->runAndClearJobs(&d->afterRenderingJobs);-
3532 d->runAndClearJobs(&d->afterSwapJobs);-
3533}
executed 3498 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
3498
3534-
3535void QQuickWindow::setTransientParent_helper(QQuickWindow *window)-
3536{-
3537 qCDebug(lcTransient) << this << "is transient for" << window;
never executed: QMessageLogger(__FILE__, 3537, __PRETTY_FUNCTION__, lcTransient().categoryName()).debug() << this << "is transient for" << window;
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickloader
  • tst_qquickmousearea
0-6
3538 setTransientParent(window);-
3539 disconnect(sender(), SIGNAL(windowChanged(QQuickWindow*)),-
3540 this, SLOT(setTransientParent_helper(QQuickWindow*)));-
3541}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickloader
  • tst_qquickmousearea
6
3542-
3543/*!-
3544 Returns the OpenGL context used for rendering.-
3545-
3546 If the scene graph is not ready, or the scene graph is not using OpenGL,-
3547 this function will return null.-
3548-
3549 \note If using a scene graph adaptation other than OpenGL this-
3550 function will return nullptr.-
3551-
3552 \sa sceneGraphInitialized(), sceneGraphInvalidated()-
3553 */-
3554-
3555QOpenGLContext *QQuickWindow::openglContext() const-
3556{-
3557#if QT_CONFIG(opengl)-
3558 Q_D(const QQuickWindow);-
3559 if (d->context && d->context->isValid()) {
d->contextDescription
TRUEevaluated 1998 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickgraphicsinfo
  • tst_qquickopenglinfo
  • tst_qquickshortcut
  • tst_qquickwidget
  • tst_scenegraph
FALSEnever evaluated
d->context->isValid()Description
TRUEevaluated 1880 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickshortcut
  • tst_qquickwidget
  • tst_scenegraph
FALSEevaluated 118 times by 4 tests
Evaluated by:
  • tst_qquickgraphicsinfo
  • tst_qquickopenglinfo
  • tst_qquickshortcut
  • tst_qquickwidget
0-1998
3560 QSGRendererInterface *rif = d->context->sceneGraphContext()->rendererInterface(d->context);-
3561 if (rif && rif->graphicsApi() == QSGRendererInterface::OpenGL) {
rifDescription
TRUEevaluated 1880 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickshortcut
  • tst_qquickwidget
  • tst_scenegraph
FALSEnever evaluated
rif->graphicsA...erface::OpenGLDescription
TRUEevaluated 1880 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickshortcut
  • tst_qquickwidget
  • tst_scenegraph
FALSEnever evaluated
0-1880
3562 auto openglRenderContext = static_cast<const QSGDefaultRenderContext *>(d->context);-
3563 return openglRenderContext->openglContext();
executed 1880 times by 6 tests: return openglRenderContext->openglContext();
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickframebufferobject
  • tst_qquickshortcut
  • tst_qquickwidget
  • tst_scenegraph
1880
3564 }-
3565 }
never executed: end of block
0
3566#endif-
3567 return nullptr;
executed 118 times by 4 tests: return nullptr;
Executed by:
  • tst_qquickgraphicsinfo
  • tst_qquickopenglinfo
  • tst_qquickshortcut
  • tst_qquickwidget
118
3568}-
3569-
3570/*!-
3571 Returns true if the scene graph has been initialized; otherwise returns false.-
3572 */-
3573bool QQuickWindow::isSceneGraphInitialized() const-
3574{-
3575 Q_D(const QQuickWindow);-
3576 return d->context != nullptr && d->context->isValid();
executed 4099 times by 13 tests: return d->context != nullptr && d->context->isValid();
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickgraphicsinfo
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickshape
  • tst_qquickspritesequence
  • tst_scenegraph
4099
3577}-
3578-
3579/*!-
3580 \fn void QQuickWindow::frameSwapped()-
3581-
3582 This signal is emitted when a frame has been queued for presenting. With-
3583 vertical synchronization enabled the signal is emitted at most once per-
3584 vsync interval in a continuously animating scene.-
3585-
3586 This signal will be emitted from the scene graph rendering thread.-
3587*/-
3588-
3589-
3590/*!-
3591 \fn void QQuickWindow::sceneGraphInitialized()-
3592-
3593 This signal is emitted when the scene graph has been initialized.-
3594-
3595 This signal will be emitted from the scene graph rendering thread.-
3596-
3597 */-
3598-
3599-
3600/*!-
3601 \fn void QQuickWindow::sceneGraphInvalidated()-
3602-
3603 This signal is emitted when the scene graph has been invalidated.-
3604-
3605 This signal implies that the graphics rendering context used-
3606 has been invalidated and all user resources tied to that context-
3607 should be released.-
3608-
3609 In the case of the default OpenGL adaptation the context of this-
3610 window will be bound when this function is called. The only exception-
3611 is if the native OpenGL has been destroyed outside Qt's control,-
3612 for instance through EGL_CONTEXT_LOST.-
3613-
3614 This signal will be emitted from the scene graph rendering thread.-
3615 */-
3616-
3617/*!-
3618 \fn void QQuickWindow::sceneGraphError(SceneGraphError error, const QString &message)-
3619-
3620 This signal is emitted when an \a error occurred during scene graph initialization.-
3621-
3622 Applications should connect to this signal if they wish to handle errors,-
3623 like graphics context creation failures, in a custom way. When no slot is-
3624 connected to the signal, the behavior will be different: Quick will print-
3625 the \a message, or show a message box, and terminate the application.-
3626-
3627 This signal will be emitted from the gui thread.-
3628-
3629 \since 5.3-
3630 */-
3631-
3632/*!-
3633 \class QQuickCloseEvent-
3634 \internal-
3635 \since 5.1-
3636-
3637 \inmodule QtQuick-
3638-
3639 \brief Notification that a \l QQuickWindow is about to be closed-
3640*/-
3641/*!-
3642 \qmltype CloseEvent-
3643 \instantiates QQuickCloseEvent-
3644 \inqmlmodule QtQuick.Window-
3645 \ingroup qtquick-visual-
3646 \brief Notification that a \l Window is about to be closed.-
3647 \since 5.1-
3648-
3649 Notification that a window is about to be closed by the windowing system-
3650 (e.g. the user clicked the title bar close button). The CloseEvent contains-
3651 an accepted property which can be set to false to abort closing the window.-
3652-
3653 \sa QQuickWindow::closing()-
3654*/-
3655-
3656/*!-
3657 \qmlproperty bool CloseEvent::accepted-
3658-
3659 This property indicates whether the application will allow the user to-
3660 close the window. It is true by default.-
3661*/-
3662-
3663/*!-
3664 \fn void QQuickWindow::closing(QQuickCloseEvent *close)-
3665 \since 5.1-
3666-
3667 This signal is emitted when the window receives the event \a close from-
3668 the windowing system.-
3669*/-
3670-
3671/*!-
3672 \qmlsignal QtQuick.Window::Window::closing(CloseEvent close)-
3673 \since 5.1-
3674-
3675 This signal is emitted when the user tries to close the window.-
3676-
3677 This signal includes a \a close parameter. The \c {close.accepted}-
3678 property is true by default so that the window is allowed to close; but you-
3679 can implement an \c onClosing handler and set \c {close.accepted = false} if-
3680 you need to do something else before the window can be closed.-
3681-
3682 The corresponding handler is \c onClosing.-
3683 */-
3684-
3685#if QT_CONFIG(opengl)-
3686/*!-
3687 Sets the render target for this window to be \a fbo.-
3688-
3689 The specified fbo must be created in the context of the window-
3690 or one that shares with it.-
3691-
3692 \note-
3693 This function only has an effect when using the default OpenGL scene-
3694 graph adaptation.-
3695-
3696 \warning-
3697 This function can only be called from the thread doing-
3698 the rendering.-
3699 */-
3700-
3701void QQuickWindow::setRenderTarget(QOpenGLFramebufferObject *fbo)-
3702{-
3703 Q_D(QQuickWindow);-
3704 if (d->context && QThread::currentThread() != d->context->thread()) {
d->contextDescription
TRUEevaluated 124 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEnever evaluated
QThread::curre...text->thread()Description
TRUEnever evaluated
FALSEevaluated 124 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
0-124
3705 qWarning("QQuickWindow::setRenderTarget: Cannot set render target from outside the rendering thread");-
3706 return;
never executed: return;
0
3707 }-
3708-
3709 d->renderTarget = fbo;-
3710 if (fbo) {
fboDescription
TRUEevaluated 124 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEnever evaluated
0-124
3711 d->renderTargetId = fbo->handle();-
3712 d->renderTargetSize = fbo->size();-
3713 } else {
executed 124 times by 2 tests: end of block
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
124
3714 d->renderTargetId = 0;-
3715 d->renderTargetSize = QSize();-
3716 }
never executed: end of block
0
3717}-
3718#endif-
3719/*!-
3720 \overload-
3721-
3722 Sets the render target for this window to be an FBO with-
3723 \a fboId and \a size.-
3724-
3725 The specified FBO must be created in the context of the window-
3726 or one that shares with it.-
3727-
3728 \note \a fboId can also be set to 0. In this case rendering will target the-
3729 default framebuffer of whichever surface is current when the scenegraph-
3730 renders. \a size must still be valid, specifying the dimensions of the-
3731 surface.-
3732-
3733 \note-
3734 This function only has an effect when using the default OpenGL scene-
3735 graph adaptation.-
3736-
3737 \warning-
3738 This function can only be called from the thread doing-
3739 the rendering.-
3740*/-
3741-
3742void QQuickWindow::setRenderTarget(uint fboId, const QSize &size)-
3743{-
3744 Q_D(QQuickWindow);-
3745 if (d->context && QThread::currentThread() != d->context->thread()) {
d->contextDescription
TRUEnever evaluated
FALSEnever evaluated
QThread::curre...text->thread()Description
TRUEnever evaluated
FALSEnever evaluated
0
3746 qWarning("QQuickWindow::setRenderThread: Cannot set render target from outside the rendering thread");-
3747 return;
never executed: return;
0
3748 }-
3749-
3750 d->renderTargetId = fboId;-
3751 d->renderTargetSize = size;-
3752-
3753 // Unset any previously set instance...-
3754 d->renderTarget = nullptr;-
3755}
never executed: end of block
0
3756-
3757-
3758/*!-
3759 Returns the FBO id of the render target when set; otherwise returns 0.-
3760 */-
3761uint QQuickWindow::renderTargetId() const-
3762{-
3763 Q_D(const QQuickWindow);-
3764 return d->renderTargetId;
never executed: return d->renderTargetId;
0
3765}-
3766-
3767/*!-
3768 Returns the size of the currently set render target; otherwise returns an empty size.-
3769 */-
3770QSize QQuickWindow::renderTargetSize() const-
3771{-
3772 Q_D(const QQuickWindow);-
3773 return d->renderTargetSize;
never executed: return d->renderTargetSize;
0
3774}-
3775-
3776-
3777-
3778#if QT_CONFIG(opengl)-
3779/*!-
3780 Returns the render target for this window.-
3781-
3782 The default is to render to the surface of the window, in which-
3783 case the render target is 0.-
3784-
3785 \note-
3786 This function will return nullptr when not using the OpenGL scene-
3787 graph adaptation.-
3788 */-
3789QOpenGLFramebufferObject *QQuickWindow::renderTarget() const-
3790{-
3791 Q_D(const QQuickWindow);-
3792 return d->renderTarget;
never executed: return d->renderTarget;
0
3793}-
3794#endif-
3795-
3796/*!-
3797 Grabs the contents of the window and returns it as an image.-
3798-
3799 It is possible to call the grabWindow() function when the window is not-
3800 visible. This requires that the window is \l{QWindow::create()} {created}-
3801 and has a valid size and that no other QQuickWindow instances are rendering-
3802 in the same process.-
3803-
3804 \warning Calling this function will cause performance problems.-
3805-
3806 \warning This function can only be called from the GUI thread.-
3807 */-
3808QImage QQuickWindow::grabWindow()-
3809{-
3810 Q_D(QQuickWindow);-
3811-
3812 if (!isVisible() && !d->renderControl) {
!isVisible()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
FALSEevaluated 564 times by 12 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
!d->renderControlDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
FALSEnever evaluated
0-564
3813 if (d->windowManager && (d->windowManager->flags() & QSGRenderLoop::SupportsGrabWithoutExpose))
d->windowManagerDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
FALSEnever evaluated
(d->windowMana...WithoutExpose)Description
TRUEnever evaluated
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
0-6
3814 return d->windowManager->grab(this);
never executed: return d->windowManager->grab(this);
0
3815 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickborderimage
  • tst_qquickimage
6
3816-
3817#if QT_CONFIG(opengl)-
3818 if (!isVisible() && !d->renderControl) {
!isVisible()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
FALSEevaluated 564 times by 12 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
!d->renderControlDescription
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
FALSEnever evaluated
0-564
3819 auto openglRenderContext = static_cast<QSGDefaultRenderContext *>(d->context);-
3820 if (!openglRenderContext->openglContext()) {
!openglRenderC...penglContext()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickborderimage
  • tst_qquickimage
FALSEnever evaluated
0-6
3821 if (!handle() || !size().isValid()) {
!handle()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickborderimage
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimage
!size().isValid()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimage
0-4
3822 qWarning("QQuickWindow::grabWindow: window must be created and have a valid size");-
3823 return QImage();
executed 4 times by 1 test: return QImage();
Executed by:
  • tst_qquickborderimage
4
3824 }-
3825-
3826 QOpenGLContext context;-
3827 context.setFormat(requestedFormat());-
3828 context.setShareContext(qt_gl_global_share_context());-
3829 context.create();-
3830 context.makeCurrent(this);-
3831 d->context->initialize(&context);-
3832-
3833 d->polishItems();-
3834 d->syncSceneGraph();-
3835 d->renderSceneGraph(size());-
3836-
3837 bool alpha = format().alphaBufferSize() > 0 && color().alpha() < 255;
format().alphaBufferSize() > 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickimage
color().alpha() < 255Description
TRUEnever evaluated
FALSEnever evaluated
0-2
3838 QImage image = qt_gl_read_framebuffer(size() * effectiveDevicePixelRatio(), alpha, alpha);-
3839 image.setDevicePixelRatio(effectiveDevicePixelRatio());-
3840 d->cleanupNodesOnShutdown();-
3841 d->context->invalidate();-
3842 context.doneCurrent();-
3843-
3844 return image;
executed 2 times by 1 test: return image;
Executed by:
  • tst_qquickimage
2
3845 }-
3846 }
never executed: end of block
0
3847#endif-
3848 if (d->renderControl)
d->renderControlDescription
TRUEnever evaluated
FALSEevaluated 564 times by 12 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
0-564
3849 return d->renderControl->grab();
never executed: return d->renderControl->grab();
0
3850 else if (d->windowManager)
d->windowManagerDescription
TRUEevaluated 564 times by 12 tests
Evaluated by:
  • tst_drawingmodes
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-564
3851 return d->windowManager->grab(this);
executed 564 times by 12 tests: return d->windowManager->grab(this);
Executed by:
  • tst_drawingmodes
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickframebufferobject
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_scenegraph
564
3852 return QImage();
never executed: return QImage();
0
3853}-
3854-
3855/*!-
3856 Returns an incubation controller that splices incubation between frames-
3857 for this window. QQuickView automatically installs this controller for you,-
3858 otherwise you will need to install it yourself using \l{QQmlEngine::setIncubationController()}.-
3859-
3860 The controller is owned by the window and will be destroyed when the window-
3861 is deleted.-
3862*/-
3863QQmlIncubationController *QQuickWindow::incubationController() const-
3864{-
3865 Q_D(const QQuickWindow);-
3866-
3867 if (!d->windowManager)
!d->windowManagerDescription
TRUEevaluated 108 times by 2 tests
Evaluated by:
  • tst_qquickshortcut
  • tst_qquickwidget
FALSEevaluated 3314 times by 84 tests
Evaluated by:
  • tst_drawingmodes
  • 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_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
108-3314
3868 return nullptr; // TODO: make sure that this is safe
executed 108 times by 2 tests: return nullptr;
Executed by:
  • tst_qquickshortcut
  • tst_qquickwidget
108
3869-
3870 if (!d->incubationController)
!d->incubationControllerDescription
TRUEevaluated 3308 times by 84 tests
Evaluated by:
  • tst_drawingmodes
  • 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_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickview
6-3308
3871 d->incubationController = new QQuickWindowIncubationController(d->windowManager);
executed 3308 times by 84 tests: d->incubationController = new QQuickWindowIncubationController(d->windowManager);
Executed by:
  • tst_drawingmodes
  • 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_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3308
3872 return d->incubationController;
executed 3314 times by 84 tests: return d->incubationController;
Executed by:
  • tst_drawingmodes
  • 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_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
3314
3873}-
3874-
3875-
3876-
3877/*!-
3878 \enum QQuickWindow::CreateTextureOption-
3879-
3880 The CreateTextureOption enums are used to customize a texture is wrapped.-
3881-
3882 \value TextureHasAlphaChannel The texture has an alpha channel and should-
3883 be drawn using blending.-
3884-
3885 \value TextureHasMipmaps The texture has mipmaps and can be drawn with-
3886 mipmapping enabled.-
3887-
3888 \value TextureOwnsGLTexture The texture object owns the texture id and-
3889 will delete the OpenGL texture when the texture object is deleted.-
3890-
3891 \value TextureCanUseAtlas The image can be uploaded into a texture atlas.-
3892-
3893 \value TextureIsOpaque The texture will return false for-
3894 QSGTexture::hasAlphaChannel() and will not be blended. This flag was added-
3895 in Qt 5.6.-
3896-
3897 */-
3898-
3899/*!-
3900 \enum QQuickWindow::SceneGraphError-
3901-
3902 This enum describes the error in a sceneGraphError() signal.-
3903-
3904 \value ContextNotAvailable graphics context creation failed. This typically means that-
3905 no suitable OpenGL implementation was found, for example because no graphics drivers-
3906 are installed and so no OpenGL 2 support is present. On mobile and embedded boards-
3907 that use OpenGL ES such an error is likely to indicate issues in the windowing system-
3908 integration and possibly an incorrect configuration of Qt.-
3909-
3910 \since 5.3-
3911 */-
3912-
3913/*!-
3914 \enum QQuickWindow::TextRenderType-
3915 \since 5.10-
3916-
3917 This enum describes the default render type of text-like elements in Qt-
3918 Quick (\l Text, \l TextInput, etc.).-
3919-
3920 Select NativeTextRendering if you prefer text to look native on the target-
3921 platform and do not require advanced features such as transformation of the-
3922 text. Using such features in combination with the NativeTextRendering-
3923 render type will lend poor and sometimes pixelated results.-
3924-
3925 \value QtTextRendering Use Qt's own rasterization algorithm.-
3926-
3927 \value NativeTextRendering Use the operating system's native rasterizer for text.-
3928*/-
3929-
3930/*!-
3931 \fn void QQuickWindow::beforeSynchronizing()-
3932-
3933 This signal is emitted before the scene graph is synchronized with the QML state.-
3934-
3935 This signal can be used to do any preparation required before calls to-
3936 QQuickItem::updatePaintNode().-
3937-
3938 The OpenGL context used for rendering the scene graph will be bound at this point.-
3939-
3940 \warning This signal is emitted from the scene graph rendering thread. If your-
3941 slot function needs to finish before execution continues, you must make sure that-
3942 the connection is direct (see Qt::ConnectionType).-
3943-
3944 \warning Make very sure that a signal handler for beforeSynchronizing leaves the GL-
3945 context in the same state as it was when the signal handler was entered. Failing to-
3946 do so can result in the scene not rendering properly.-
3947-
3948 \sa resetOpenGLState()-
3949*/-
3950-
3951/*!-
3952 \fn void QQuickWindow::afterSynchronizing()-
3953-
3954 This signal is emitted after the scene graph is synchronized with the QML state.-
3955-
3956 This signal can be used to do preparation required after calls to-
3957 QQuickItem::updatePaintNode(), while the GUI thread is still locked.-
3958-
3959 The graphics context used for rendering the scene graph will be bound at this point.-
3960-
3961 \warning This signal is emitted from the scene graph rendering thread. If your-
3962 slot function needs to finish before execution continues, you must make sure that-
3963 the connection is direct (see Qt::ConnectionType).-
3964-
3965 \warning When using the OpenGL adaptation, make sure that a signal handler for-
3966 afterSynchronizing leaves the OpenGL context in the same state as it was when the-
3967 signal handler was entered. Failing to do so can result in the scene not rendering-
3968 properly.-
3969-
3970 \since 5.3-
3971 \sa resetOpenGLState()-
3972 */-
3973-
3974/*!-
3975 \fn void QQuickWindow::beforeRendering()-
3976-
3977 This signal is emitted before the scene starts rendering.-
3978-
3979 Combined with the modes for clearing the background, this option-
3980 can be used to paint using raw OpenGL under QML content.-
3981-
3982 The OpenGL context used for rendering the scene graph will be bound-
3983 at this point.-
3984-
3985 \warning This signal is emitted from the scene graph rendering thread. If your-
3986 slot function needs to finish before execution continues, you must make sure that-
3987 the connection is direct (see Qt::ConnectionType).-
3988-
3989 \warning Make very sure that a signal handler for beforeRendering leaves the OpenGL-
3990 context in the same state as it was when the signal handler was entered. Failing to-
3991 do so can result in the scene not rendering properly.-
3992-
3993 \sa resetOpenGLState()-
3994*/-
3995-
3996/*!-
3997 \fn void QQuickWindow::afterRendering()-
3998-
3999 This signal is emitted after the scene has completed rendering, before swapbuffers is called.-
4000-
4001 This signal can be used to paint using raw OpenGL on top of QML content,-
4002 or to do screen scraping of the current frame buffer.-
4003-
4004 The OpenGL context used for rendering the scene graph will be bound at this point.-
4005-
4006 \warning This signal is emitted from the scene graph rendering thread. If your-
4007 slot function needs to finish before execution continues, you must make sure that-
4008 the connection is direct (see Qt::ConnectionType).-
4009-
4010 \warning Make very sure that a signal handler for afterRendering() leaves the OpenGL-
4011 context in the same state as it was when the signal handler was entered. Failing to-
4012 do so can result in the scene not rendering properly.-
4013-
4014 \sa resetOpenGLState()-
4015 */-
4016-
4017/*!-
4018 \fn void QQuickWindow::afterAnimating()-
4019-
4020 This signal is emitted on the gui thread before requesting the render thread to-
4021 perform the synchronization of the scene graph.-
4022-
4023 Unlike the other similar signals, this one is emitted on the gui thread instead-
4024 of the render thread. It can be used to synchronize external animation systems-
4025 with the QML content.-
4026-
4027 \since 5.3-
4028 */-
4029-
4030/*!-
4031 \fn void QQuickWindow::openglContextCreated(QOpenGLContext *context)-
4032-
4033 This signal is emitted on the gui thread when the OpenGL \a context-
4034 for this window is created, before it is made current.-
4035-
4036 Some implementations will share the same OpenGL context between-
4037 multiple QQuickWindow instances. The openglContextCreated() signal-
4038 will in this case only be emitted for the first window, when the-
4039 OpenGL context is actually created.-
4040-
4041 QQuickWindow::openglContext() will still return 0 for this window-
4042 until after the QQuickWindow::sceneGraphInitialize() has been-
4043 emitted.-
4044-
4045 \note-
4046 This signal will only be emmited when using the default OpenGL scene-
4047 graph adaptation.-
4048-
4049 \since 5.3-
4050 */-
4051-
4052/*!-
4053 \fn void QQuickWindow::sceneGraphAboutToStop()-
4054-
4055 This signal is emitted on the render thread when the scene graph is-
4056 about to stop rendering. This happens usually because the window-
4057 has been hidden.-
4058-
4059 Applications may use this signal to release resources, but should be-
4060 prepared to reinstantiated them again fast. The scene graph and the-
4061 graphics context are not released at this time.-
4062-
4063 \warning This signal is emitted from the scene graph rendering thread. If your-
4064 slot function needs to finish before execution continues, you must make sure that-
4065 the connection is direct (see Qt::ConnectionType).-
4066-
4067 \warning Make very sure that a signal handler for sceneGraphAboutToStop() leaves the-
4068 graphics context in the same state as it was when the signal handler was entered.-
4069 Failing to do so can result in the scene not rendering properly.-
4070-
4071 \sa sceneGraphInvalidated(), resetOpenGLState()-
4072 \since 5.3-
4073 */-
4074-
4075-
4076/*!-
4077 Sets whether the scene graph rendering of QML should clear the color buffer-
4078 before it starts rendering to \a enabled.-
4079-
4080 By disabling clearing of the color buffer, it is possible to render OpengGL content-
4081 under the scene graph.-
4082-
4083 The color buffer is cleared by default.-
4084-
4085 \sa beforeRendering()-
4086 */-
4087-
4088void QQuickWindow::setClearBeforeRendering(bool enabled)-
4089{-
4090 Q_D(QQuickWindow);-
4091 d->clearBeforeRendering = enabled;-
4092}
never executed: end of block
0
4093-
4094-
4095-
4096/*!-
4097 Returns whether clearing of the color buffer is done before rendering or not.-
4098 */-
4099-
4100bool QQuickWindow::clearBeforeRendering() const-
4101{-
4102 Q_D(const QQuickWindow);-
4103 return d->clearBeforeRendering;
never executed: return d->clearBeforeRendering;
0
4104}-
4105-
4106/*!-
4107 \overload-
4108 */-
4109-
4110QSGTexture *QQuickWindow::createTextureFromImage(const QImage &image) const-
4111{-
4112 return createTextureFromImage(image, nullptr);
executed 30 times by 2 tests: return createTextureFromImage(image, nullptr);
Executed by:
  • tst_qquickanimatedsprite
  • tst_qquickspritesequence
30
4113}-
4114-
4115-
4116/*!-
4117 Creates a new QSGTexture from the supplied \a image. If the image has an-
4118 alpha channel, the corresponding texture will have an alpha channel.-
4119-
4120 The caller of the function is responsible for deleting the returned texture.-
4121 For example whe using the OpenGL adaptation the actual OpenGL texture will-
4122 be deleted when the texture object is deleted.-
4123-
4124 When \a options contains TextureCanUseAtlas, the engine may put the image-
4125 into a texture atlas. Textures in an atlas need to rely on-
4126 QSGTexture::normalizedTextureSubRect() for their geometry and will not-
4127 support QSGTexture::Repeat. Other values from CreateTextureOption are-
4128 ignored.-
4129-
4130 When \a options contains TextureIsOpaque, the engine will create an RGB-
4131 texture which returns false for QSGTexture::hasAlphaChannel(). Opaque-
4132 textures will in most cases be faster to render. When this flag is not set,-
4133 the texture will have an alpha channel based on the image's format.-
4134-
4135 When \a options contains TextureHasMipmaps, the engine will create a-
4136 texture which can use mipmap filtering. Mipmapped textures can not be in-
4137 an atlas.-
4138-
4139 When using the OpenGL adaptation, the returned texture will be using-
4140 \c GL_TEXTURE_2D as texture target and \c GL_RGBA as internal format.-
4141 Reimplement QSGTexture to create textures with different parameters.-
4142-
4143 \warning This function will return 0 if the scene graph has not yet been-
4144 initialized.-
4145-
4146 \warning The returned texture is not memory managed by the scene graph and-
4147 must be explicitly deleted by the caller on the rendering thread.-
4148 This is achieved by deleting the texture from a QSGNode destructor-
4149 or by using deleteLater() in the case where the texture already has affinity-
4150 to the rendering thread.-
4151-
4152 This function can be called from any thread.-
4153-
4154 \sa sceneGraphInitialized(), QSGTexture-
4155 */-
4156-
4157QSGTexture *QQuickWindow::createTextureFromImage(const QImage &image, CreateTextureOptions options) const-
4158{-
4159 Q_D(const QQuickWindow);-
4160 if (!isSceneGraphInitialized()) // check both for d->context and d->context->isValid()
!isSceneGraphInitialized()Description
TRUEnever evaluated
FALSEevaluated 397 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_scenegraph
0-397
4161 return nullptr;
never executed: return nullptr;
0
4162 uint flags = 0;-
4163 if (options & TextureCanUseAtlas) flags |= QSGRenderContext::CreateTexture_Atlas;
executed 367 times by 8 tests: flags |= QSGRenderContext::CreateTexture_Atlas;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
options & TextureCanUseAtlasDescription
TRUEevaluated 367 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_scenegraph
FALSEevaluated 30 times by 2 tests
Evaluated by:
  • tst_qquickanimatedsprite
  • tst_qquickspritesequence
30-367
4164 if (options & TextureHasMipmaps) flags |= QSGRenderContext::CreateTexture_Mipmap;
never executed: flags |= QSGRenderContext::CreateTexture_Mipmap;
options & TextureHasMipmapsDescription
TRUEnever evaluated
FALSEevaluated 397 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_scenegraph
0-397
4165 if (!(options & TextureIsOpaque)) flags |= QSGRenderContext::CreateTexture_Alpha;
executed 397 times by 10 tests: flags |= QSGRenderContext::CreateTexture_Alpha;
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_scenegraph
!(options & TextureIsOpaque)Description
TRUEevaluated 397 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_scenegraph
FALSEnever evaluated
0-397
4166 return d->context->createTexture(image, flags);
executed 397 times by 10 tests: return d->context->createTexture(image, flags);
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcustomparticle
  • tst_qquickimage
  • tst_qquickitemparticle
  • tst_qquickshadereffect
  • tst_qquickspritesequence
  • tst_scenegraph
397
4167}-
4168-
4169-
4170-
4171/*!-
4172 Creates a new QSGTexture object from an existing OpenGL texture \a id and \a size.-
4173-
4174 The caller of the function is responsible for deleting the returned texture.-
4175-
4176 The returned texture will be using \c GL_TEXTURE_2D as texture target and-
4177 assumes that internal format is \c {GL_RGBA}. Reimplement QSGTexture to-
4178 create textures with different parameters.-
4179-
4180 Use \a options to customize the texture attributes. The TextureUsesAtlas-
4181 option is ignored.-
4182-
4183 \warning This function will return null if the scenegraph has not yet been-
4184 initialized or OpenGL is not in use.-
4185-
4186 \note This function only has an effect when using the default OpenGL scene graph-
4187 adaptation.-
4188-
4189 \sa sceneGraphInitialized(), QSGTexture-
4190 */-
4191QSGTexture *QQuickWindow::createTextureFromId(uint id, const QSize &size, CreateTextureOptions options) const-
4192{-
4193#if QT_CONFIG(opengl)-
4194 if (openglContext()) {
openglContext()Description
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquickframebufferobject
FALSEnever evaluated
0-20
4195 QSGPlainTexture *texture = new QSGPlainTexture();-
4196 texture->setTextureId(id);-
4197 texture->setHasAlphaChannel(options & TextureHasAlphaChannel);-
4198 texture->setOwnsTexture(options & TextureOwnsGLTexture);-
4199 texture->setTextureSize(size);-
4200 return texture;
executed 20 times by 1 test: return texture;
Executed by:
  • tst_qquickframebufferobject
20
4201 }-
4202#else-
4203 Q_UNUSED(id)-
4204 Q_UNUSED(size)-
4205 Q_UNUSED(options)-
4206#endif-
4207 return nullptr;
never executed: return nullptr;
0
4208}-
4209-
4210/*!-
4211 \qmlproperty color Window::color-
4212-
4213 The background color for the window.-
4214-
4215 Setting this property is more efficient than using a separate Rectangle.-
4216*/-
4217-
4218/*!-
4219 \property QQuickWindow::color-
4220 \brief The color used to clear the OpenGL context.-
4221-
4222 Setting the clear color has no effect when clearing is disabled.-
4223 By default, the clear color is white.-
4224-
4225 \sa setClearBeforeRendering(), setDefaultAlphaBuffer()-
4226 */-
4227-
4228void QQuickWindow::setColor(const QColor &color)-
4229{-
4230 Q_D(QQuickWindow);-
4231 if (color == d->clearColor)
color == d->clearColorDescription
TRUEnever evaluated
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qquickloader
0-8
4232 return;
never executed: return;
0
4233-
4234 if (color.alpha() != d->clearColor.alpha()) {
color.alpha() ...rColor.alpha()Description
TRUEnever evaluated
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qquickloader
0-8
4235 QSurfaceFormat fmt = requestedFormat();-
4236 if (color.alpha() < 255)
color.alpha() < 255Description
TRUEnever evaluated
FALSEnever evaluated
0
4237 fmt.setAlphaBufferSize(8);
never executed: fmt.setAlphaBufferSize(8);
0
4238 else-
4239 fmt.setAlphaBufferSize(-1);
never executed: fmt.setAlphaBufferSize(-1);
0
4240 setFormat(fmt);-
4241 }
never executed: end of block
0
4242 d->clearColor = color;-
4243 emit colorChanged(color);-
4244 update();-
4245}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmlcomponent
  • tst_qquickloader
8
4246-
4247QColor QQuickWindow::color() const-
4248{-
4249 return d_func()->clearColor;
never executed: return d_func()->clearColor;
0
4250}-
4251-
4252/*!-
4253 \brief Returns whether to use alpha transparency on newly created windows.-
4254-
4255 \since 5.1-
4256 \sa setDefaultAlphaBuffer()-
4257 */-
4258bool QQuickWindow::hasDefaultAlphaBuffer()-
4259{-
4260 return QQuickWindowPrivate::defaultAlphaBuffer;
executed 8480 times by 90 tests: return QQuickWindowPrivate::defaultAlphaBuffer;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • 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
  • ...
8480
4261}-
4262-
4263/*!-
4264 \brief \a useAlpha specifies whether to use alpha transparency on newly created windows.-
4265 \since 5.1-
4266-
4267 In any application which expects to create translucent windows, it's necessary to set-
4268 this to true before creating the first QQuickWindow. The default value is false.-
4269-
4270 \sa hasDefaultAlphaBuffer()-
4271 */-
4272void QQuickWindow::setDefaultAlphaBuffer(bool useAlpha)-
4273{-
4274 QQuickWindowPrivate::defaultAlphaBuffer = useAlpha;-
4275}
never executed: end of block
0
4276#if QT_CONFIG(opengl)-
4277/*!-
4278 \since 5.2-
4279-
4280 Call this function to reset the OpenGL context its default state.-
4281-
4282 The scene graph uses the OpenGL context and will both rely on and-
4283 clobber its state. When mixing raw OpenGL commands with scene-
4284 graph rendering, this function provides a convenient way of-
4285 resetting the OpenGL context state back to its default values.-
4286-
4287 This function does not touch state in the fixed-function pipeline.-
4288-
4289 This function does not clear the color, depth and stencil buffers. Use-
4290 QQuickWindow::setClearBeforeRendering to control clearing of the color-
4291 buffer. The depth and stencil buffer might be clobbered by the scene-
4292 graph renderer. Clear these manually on demand.-
4293-
4294 \note This function only has an effect when using the default OpenGL scene graph-
4295 adaptation.-
4296-
4297 \sa QQuickWindow::beforeRendering()-
4298 */-
4299void QQuickWindow::resetOpenGLState()-
4300{-
4301 if (!openglContext())
!openglContext()Description
TRUEnever evaluated
FALSEnever evaluated
0
4302 return;
never executed: return;
0
4303-
4304 Q_D(QQuickWindow);-
4305-
4306 QOpenGLContext *ctx = openglContext();-
4307 QOpenGLFunctions *gl = ctx->functions();-
4308-
4309 gl->glBindBuffer(GL_ARRAY_BUFFER, 0);-
4310 gl->glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);-
4311-
4312 if (!d->vaoHelper)
!d->vaoHelperDescription
TRUEnever evaluated
FALSEnever evaluated
0
4313 d->vaoHelper = new QOpenGLVertexArrayObjectHelper(ctx);
never executed: d->vaoHelper = new QOpenGLVertexArrayObjectHelper(ctx);
0
4314 if (d->vaoHelper->isValid())
d->vaoHelper->isValid()Description
TRUEnever evaluated
FALSEnever evaluated
0
4315 d->vaoHelper->glBindVertexArray(0);
never executed: d->vaoHelper->glBindVertexArray(0);
0
4316-
4317 if (ctx->isOpenGLES() || (gl->openGLFeatures() & QOpenGLFunctions::FixedFunctionPipeline)) {
ctx->isOpenGLES()Description
TRUEnever evaluated
FALSEnever evaluated
(gl->openGLFea...ctionPipeline)Description
TRUEnever evaluated
FALSEnever evaluated
0
4318 int maxAttribs;-
4319 gl->glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &maxAttribs);-
4320 for (int i=0; i<maxAttribs; ++i) {
i<maxAttribsDescription
TRUEnever evaluated
FALSEnever evaluated
0
4321 gl->glVertexAttribPointer(i, 4, GL_FLOAT, GL_FALSE, 0, nullptr);-
4322 gl->glDisableVertexAttribArray(i);-
4323 }
never executed: end of block
0
4324 }
never executed: end of block
0
4325-
4326 gl->glActiveTexture(GL_TEXTURE0);-
4327 gl->glBindTexture(GL_TEXTURE_2D, 0);-
4328-
4329 gl->glDisable(GL_DEPTH_TEST);-
4330 gl->glDisable(GL_STENCIL_TEST);-
4331 gl->glDisable(GL_SCISSOR_TEST);-
4332-
4333 gl->glColorMask(true, true, true, true);-
4334 gl->glClearColor(0, 0, 0, 0);-
4335-
4336 gl->glDepthMask(true);-
4337 gl->glDepthFunc(GL_LESS);-
4338 gl->glClearDepthf(1);-
4339-
4340 gl->glStencilMask(0xff);-
4341 gl->glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);-
4342 gl->glStencilFunc(GL_ALWAYS, 0, 0xff);-
4343-
4344 gl->glDisable(GL_BLEND);-
4345 gl->glBlendFunc(GL_ONE, GL_ZERO);-
4346-
4347 gl->glUseProgram(0);-
4348-
4349 QOpenGLFramebufferObject::bindDefault();-
4350}
never executed: end of block
0
4351#endif-
4352/*!-
4353 \qmlproperty string Window::title-
4354-
4355 The window's title in the windowing system.-
4356-
4357 The window title might appear in the title area of the window decorations,-
4358 depending on the windowing system and the window flags. It might also-
4359 be used by the windowing system to identify the window in other contexts,-
4360 such as in the task switcher.-
4361 */-
4362-
4363/*!-
4364 \qmlproperty Qt::WindowModality Window::modality-
4365-
4366 The modality of the window.-
4367-
4368 A modal window prevents other windows from receiving input events.-
4369 Possible values are Qt.NonModal (the default), Qt.WindowModal,-
4370 and Qt.ApplicationModal.-
4371 */-
4372-
4373/*!-
4374 \qmlproperty Qt::WindowFlags Window::flags-
4375-
4376 The window flags of the window.-
4377-
4378 The window flags control the window's appearance in the windowing system,-
4379 whether it's a dialog, popup, or a regular window, and whether it should-
4380 have a title bar, etc.-
4381-
4382 The flags which you read from this property might differ from the ones-
4383 that you set if the requested flags could not be fulfilled.-
4384-
4385 \sa Qt::WindowFlags-
4386 */-
4387-
4388/*!-
4389 \qmlattachedproperty Window Window::window-
4390 \since 5.7-
4391-
4392 This attached property holds the item's window.-
4393 The Window attached property can be attached to any Item.-
4394*/-
4395-
4396/*!-
4397 \qmlattachedproperty int Window::width-
4398 \qmlattachedproperty int Window::height-
4399 \since 5.5-
4400-
4401 These attached properties hold the size of the item's window.-
4402 The Window attached property can be attached to any Item.-
4403*/-
4404-
4405/*!-
4406 \qmlproperty int Window::x-
4407 \qmlproperty int Window::y-
4408 \qmlproperty int Window::width-
4409 \qmlproperty int Window::height-
4410-
4411 Defines the window's position and size.-
4412-
4413 The (x,y) position is relative to the \l Screen if there is only one,-
4414 or to the virtual desktop (arrangement of multiple screens).-
4415-
4416 \qml-
4417 Window { x: 100; y: 100; width: 100; height: 100 }-
4418 \endqml-
4419-
4420 \image screen-and-window-dimensions.jpg-
4421 */-
4422-
4423/*!-
4424 \qmlproperty int Window::minimumWidth-
4425 \qmlproperty int Window::minimumHeight-
4426 \since 5.1-
4427-
4428 Defines the window's minimum size.-
4429-
4430 This is a hint to the window manager to prevent resizing below the specified-
4431 width and height.-
4432 */-
4433-
4434/*!-
4435 \qmlproperty int Window::maximumWidth-
4436 \qmlproperty int Window::maximumHeight-
4437 \since 5.1-
4438-
4439 Defines the window's maximum size.-
4440-
4441 This is a hint to the window manager to prevent resizing above the specified-
4442 width and height.-
4443 */-
4444-
4445/*!-
4446 \qmlproperty bool Window::visible-
4447-
4448 Whether the window is visible on the screen.-
4449-
4450 Setting visible to false is the same as setting \l visibility to \l {QWindow::}{Hidden}.-
4451-
4452 \sa visibility-
4453 */-
4454-
4455/*!-
4456 \qmlproperty QWindow::Visibility Window::visibility-
4457-
4458 The screen-occupation state of the window.-
4459-
4460 Visibility is whether the window should appear in the windowing system as-
4461 normal, minimized, maximized, fullscreen or hidden.-
4462-
4463 To set the visibility to \l {QWindow::}{AutomaticVisibility} means to give the-
4464 window a default visible state, which might be \l {QWindow::}{FullScreen} or-
4465 \l {QWindow::}{Windowed} depending on the platform. However when reading the-
4466 visibility property you will always get the actual state, never-
4467 \c AutomaticVisibility.-
4468-
4469 When a window is not visible its visibility is Hidden, and setting-
4470 visibility to \l {QWindow::}{Hidden} is the same as setting \l visible to \c false.-
4471-
4472 \sa visible-
4473 \since 5.1-
4474 */-
4475-
4476/*!-
4477 \qmlattachedproperty QWindow::Visibility Window::visibility-
4478 \since 5.4-
4479-
4480 This attached property holds whether the window is currently shown-
4481 in the windowing system as normal, minimized, maximized, fullscreen or-
4482 hidden. The \c Window attached property can be attached to any Item. If the-
4483 item is not shown in any window, the value will be \l {QWindow::}{Hidden}.-
4484-
4485 \sa visible, visibility-
4486*/-
4487-
4488/*!-
4489 \qmlproperty Item Window::contentItem-
4490 \readonly-
4491 \brief The invisible root item of the scene.-
4492*/-
4493-
4494/*!-
4495 \qmlproperty Qt::ScreenOrientation Window::contentOrientation-
4496-
4497 This is a hint to the window manager in case it needs to display-
4498 additional content like popups, dialogs, status bars, or similar-
4499 in relation to the window.-
4500-
4501 The recommended orientation is \l {Screen::orientation}{Screen.orientation}, but-
4502 an application doesn't have to support all possible orientations,-
4503 and thus can opt to ignore the current screen orientation.-
4504-
4505 The difference between the window and the content orientation-
4506 determines how much to rotate the content by.-
4507-
4508 The default value is Qt::PrimaryOrientation.-
4509-
4510 \sa Screen-
4511-
4512 \since 5.1-
4513 */-
4514-
4515/*!-
4516 \qmlproperty real Window::opacity-
4517-
4518 The opacity of the window.-
4519-
4520 If the windowing system supports window opacity, this can be used to fade the-
4521 window in and out, or to make it semitransparent.-
4522-
4523 A value of 1.0 or above is treated as fully opaque, whereas a value of 0.0 or below-
4524 is treated as fully transparent. Values inbetween represent varying levels of-
4525 translucency between the two extremes.-
4526-
4527 The default value is 1.0.-
4528-
4529 \since 5.1-
4530 */-
4531-
4532/*!-
4533 \qmlproperty variant Window::screen-
4534-
4535 The screen with which the window is associated.-
4536-
4537 If specified before showing a window, will result in the window being shown-
4538 on that screen, unless an explicit window position has been set. The value-
4539 must be an element from the Qt.application.screens array.-
4540-
4541 \note To ensure that the window is associated with the desired screen when-
4542 the underlying native window is created, make sure this property is set as-
4543 early as possible and that the setting of its value is not deferred. This-
4544 can be particularly important on embedded platforms without a windowing system,-
4545 where only one window per screen is allowed at a time. Setting the screen after-
4546 a window has been created does not move the window if the new screen is part of-
4547 the same virtual desktop as the old screen.-
4548-
4549 \since 5.9-
4550-
4551 \sa QWindow::setScreen(), QWindow::screen(), QScreen, {QtQml::Qt::application}{Qt.application}-
4552 */-
4553-
4554/*!-
4555 \qmlproperty Item Window::activeFocusItem-
4556 \since 5.1-
4557-
4558 The item which currently has active focus or \c null if there is-
4559 no item with active focus.-
4560 */-
4561-
4562/*!-
4563 \qmlattachedproperty Item Window::activeFocusItem-
4564 \since 5.4-
4565-
4566 This attached property holds the item which currently has active focus or-
4567 \c null if there is no item with active focus. The Window attached property-
4568 can be attached to any Item.-
4569*/-
4570-
4571/*!-
4572 \qmlproperty bool Window::active-
4573 \since 5.1-
4574-
4575 The active status of the window.-
4576-
4577 \sa requestActivate()-
4578 */-
4579-
4580/*!-
4581 \qmlattachedproperty bool Window::active-
4582 \since 5.4-
4583-
4584 This attached property tells whether the window is active. The Window-
4585 attached property can be attached to any Item.-
4586-
4587 Here is an example which changes a label to show the active state of the-
4588 window in which it is shown:-
4589-
4590 \qml-
4591 import QtQuick 2.4-
4592 import QtQuick.Window 2.2-
4593-
4594 Text {-
4595 text: Window.active ? "active" : "inactive"-
4596 }-
4597 \endqml-
4598*/-
4599-
4600/*!-
4601 \qmlmethod QtQuick::Window::requestActivate()-
4602 \since 5.1-
4603-
4604 Requests the window to be activated, i.e. receive keyboard focus.-
4605 */-
4606-
4607/*!-
4608 \qmlmethod QtQuick::Window::alert(int msec)-
4609 \since 5.1-
4610-
4611 Causes an alert to be shown for \a msec milliseconds. If \a msec is \c 0-
4612 (the default), then the alert is shown indefinitely until the window-
4613 becomes active again.-
4614-
4615 In alert state, the window indicates that it demands attention, for example-
4616 by flashing or bouncing the taskbar entry.-
4617*/-
4618-
4619/*!-
4620 \qmlmethod QtQuick::Window::close()-
4621-
4622 Closes the window.-
4623-
4624 When this method is called, or when the user tries to close the window by-
4625 its title bar button, the \l closing signal will be emitted. If there is no-
4626 handler, or the handler does not revoke permission to close, the window-
4627 will subsequently close. If the QGuiApplication::quitOnLastWindowClosed-
4628 property is \c true, and there are no other windows open, the application-
4629 will quit.-
4630*/-
4631-
4632/*!-
4633 \qmlmethod QtQuick::Window::raise()-
4634-
4635 Raises the window in the windowing system.-
4636-
4637 Requests that the window be raised to appear above other windows.-
4638*/-
4639-
4640/*!-
4641 \qmlmethod QtQuick::Window::lower()-
4642-
4643 Lowers the window in the windowing system.-
4644-
4645 Requests that the window be lowered to appear below other windows.-
4646*/-
4647-
4648/*!-
4649 \qmlmethod QtQuick::Window::show()-
4650-
4651 Shows the window.-
4652-
4653 This is equivalent to calling showFullScreen(), showMaximized(), or showNormal(),-
4654 depending on the platform's default behavior for the window type and flags.-
4655-
4656 \sa showFullScreen(), showMaximized(), showNormal(), hide(), QQuickItem::flags()-
4657*/-
4658-
4659/*!-
4660 \qmlmethod QtQuick::Window::hide()-
4661-
4662 Hides the window.-
4663-
4664 Equivalent to setting \l visible to \c false or \l visibility to \l {QWindow::}{Hidden}.-
4665-
4666 \sa show()-
4667*/-
4668-
4669/*!-
4670 \qmlmethod QtQuick::Window::showMinimized()-
4671-
4672 Shows the window as minimized.-
4673-
4674 Equivalent to setting \l visibility to \l {QWindow::}{Minimized}.-
4675*/-
4676-
4677/*!-
4678 \qmlmethod QtQuick::Window::showMaximized()-
4679-
4680 Shows the window as maximized.-
4681-
4682 Equivalent to setting \l visibility to \l {QWindow::}{Maximized}.-
4683*/-
4684-
4685/*!-
4686 \qmlmethod QtQuick::Window::showFullScreen()-
4687-
4688 Shows the window as fullscreen.-
4689-
4690 Equivalent to setting \l visibility to \l {QWindow::}{FullScreen}.-
4691*/-
4692-
4693/*!-
4694 \qmlmethod QtQuick::Window::showNormal()-
4695-
4696 Shows the window as normal, i.e. neither maximized, minimized, nor fullscreen.-
4697-
4698 Equivalent to setting \l visibility to \l {QWindow::}{Windowed}.-
4699*/-
4700-
4701/*!-
4702 \enum QQuickWindow::RenderStage-
4703 \since 5.4-
4704-
4705 \value BeforeSynchronizingStage Before synchronization.-
4706 \value AfterSynchronizingStage After synchronization.-
4707 \value BeforeRenderingStage Before rendering.-
4708 \value AfterRenderingStage After rendering.-
4709 \value AfterSwapStage After the frame is swapped.-
4710 \value NoStage As soon as possible. This value was added in Qt 5.6.-
4711-
4712 \sa {Scene Graph and Rendering}-
4713 */-
4714-
4715/*!-
4716 \since 5.4-
4717-
4718 Schedules \a job to run when the rendering of this window reaches-
4719 the given \a stage.-
4720-
4721 This is a convenience to the equivalent signals in QQuickWindow for-
4722 "one shot" tasks.-
4723-
4724 The window takes ownership over \a job and will delete it when the-
4725 job is completed.-
4726-
4727 If rendering is shut down before \a job has a chance to run, the-
4728 job will be run and then deleted as part of the scene graph cleanup.-
4729 If the window is never shown and no rendering happens before the QQuickWindow-
4730 is destroyed, all pending jobs will be destroyed without their run()-
4731 method being called.-
4732-
4733 If the rendering is happening on a different thread, then the job-
4734 will happen on the rendering thread.-
4735-
4736 If \a stage is \l NoStage, \a job will be run at the earliest opportunity-
4737 whenever the render thread is not busy rendering a frame. If there is no-
4738 OpenGL context available or the window is not exposed at the time the job is-
4739 either posted or handled, it is deleted without executing the run() method.-
4740 If a non-threaded renderer is in use, the run() method of the job is executed-
4741 synchronously.-
4742 The OpenGL context is changed to the renderer context before executing a-
4743 \l NoStage job.-
4744-
4745 \note This function does not trigger rendering; the jobs targeting any other-
4746 stage than NoStage will be stored run until rendering is triggered elsewhere.-
4747 To force the job to run earlier, call QQuickWindow::update();-
4748-
4749 \sa beforeRendering(), afterRendering(), beforeSynchronizing(),-
4750 afterSynchronizing(), frameSwapped(), sceneGraphInvalidated()-
4751 */-
4752-
4753void QQuickWindow::scheduleRenderJob(QRunnable *job, RenderStage stage)-
4754{-
4755 Q_D(QQuickWindow);-
4756-
4757 d->renderJobMutex.lock();-
4758 if (stage == BeforeSynchronizingStage) {
stage == Befor...hronizingStageDescription
TRUEnever evaluated
FALSEevaluated 95 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
0-95
4759 d->beforeSynchronizingJobs << job;-
4760 } else if (stage == AfterSynchronizingStage) {
never executed: end of block
stage == After...hronizingStageDescription
TRUEevaluated 95 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
FALSEnever evaluated
0-95
4761 d->afterSynchronizingJobs << job;-
4762 } else if (stage == BeforeRenderingStage) {
executed 95 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
stage == BeforeRenderingStageDescription
TRUEnever evaluated
FALSEnever evaluated
0-95
4763 d->beforeRenderingJobs << job;-
4764 } else if (stage == AfterRenderingStage) {
never executed: end of block
stage == AfterRenderingStageDescription
TRUEnever evaluated
FALSEnever evaluated
0
4765 d->afterRenderingJobs << job;-
4766 } else if (stage == AfterSwapStage) {
never executed: end of block
stage == AfterSwapStageDescription
TRUEnever evaluated
FALSEnever evaluated
0
4767 d->afterSwapJobs << job;-
4768 } else if (stage == NoStage) {
never executed: end of block
stage == NoStageDescription
TRUEnever evaluated
FALSEnever evaluated
0
4769 if (isExposed())
isExposed()Description
TRUEnever evaluated
FALSEnever evaluated
0
4770 d->windowManager->postJob(this, job);
never executed: d->windowManager->postJob(this, job);
0
4771 else-
4772 delete job;
never executed: delete job;
0
4773 }-
4774 d->renderJobMutex.unlock();-
4775}
executed 95 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
95
4776-
4777void QQuickWindowPrivate::runAndClearJobs(QList<QRunnable *> *jobs)-
4778{-
4779 renderJobMutex.lock();-
4780 QList<QRunnable *> jobList = *jobs;-
4781 jobs->clear();-
4782 renderJobMutex.unlock();-
4783-
4784 for (QRunnable *r : qAsConst(jobList)) {-
4785 r->run();-
4786 delete r;-
4787 }
executed 95 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitemlayer
  • tst_qquickshadereffect
95
4788}
executed 269061 times by 76 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
269061
4789-
4790void QQuickWindow::runJobsAfterSwap()-
4791{-
4792 Q_D(QQuickWindow);-
4793 d->runAndClearJobs(&d->afterSwapJobs);-
4794}
executed 49087 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
49087
4795-
4796/*!-
4797 * Returns the device pixel ratio for this window.-
4798 *-
4799 * This is different from QWindow::devicePixelRatio() in that it supports-
4800 * redirected rendering via QQuickRenderControl. When using a-
4801 * QQuickRenderControl, the QQuickWindow is often not created, meaning it is-
4802 * never shown and there is no underlying native window created in the-
4803 * windowing system. As a result, querying properties like the device pixel-
4804 * ratio cannot give correct results. Use this function instead.-
4805 *-
4806 * \sa QWindow::devicePixelRatio()-
4807 */-
4808qreal QQuickWindow::effectiveDevicePixelRatio() const-
4809{-
4810 QWindow *w = QQuickRenderControl::renderWindowFor(const_cast<QQuickWindow *>(this));-
4811 return w ? w->devicePixelRatio() : devicePixelRatio();
executed 54939 times by 76 tests: return w ? w->devicePixelRatio() : devicePixelRatio();
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
54939
4812}-
4813-
4814/*!-
4815 \return the current renderer interface. The value is always valid and is never null.-
4816-
4817 \note This function can be called at any time after constructing the-
4818 QQuickWindow, even while isSceneGraphInitialized() is still false. However,-
4819 some renderer interface functions, in particular-
4820 QSGRendererInterface::getResource() will not be functional until the-
4821 scenegraph is up and running. Backend queries, like-
4822 QSGRendererInterface::graphicsApi() or QSGRendererInterface::shaderType(),-
4823 will always be functional on the other hand.-
4824-
4825 \note The ownership of the returned pointer stays with Qt. The returned-
4826 instance may or may not be shared between different QQuickWindow instances,-
4827 depending on the scenegraph backend in use. Therefore applications are-
4828 expected to query the interface object for each QQuickWindow instead of-
4829 reusing the already queried pointer.-
4830-
4831 \sa QSGRenderNode, QSGRendererInterface-
4832-
4833 \since 5.8-
4834 */-
4835QSGRendererInterface *QQuickWindow::rendererInterface() const-
4836{-
4837 Q_D(const QQuickWindow);-
4838-
4839 // no context validity check - it is essential to be able to return a-
4840 // renderer interface instance before scenegraphInitialized() is emitted-
4841 // (depending on the backend, that can happen way too late for some of the-
4842 // rif use cases, like examining the graphics api or shading language in-
4843 // use)-
4844-
4845 return d->context->sceneGraphContext()->rendererInterface(d->context);
executed 1745 times by 9 tests: return d->context->sceneGraphContext()->rendererInterface(d->context);
Executed by:
  • tst_examples
  • tst_qquickborderimage
  • tst_qquickgraphicsinfo
  • tst_qquickimage
  • tst_qquickitemlayer
  • tst_qquickshape
  • tst_qquickshortcut
  • tst_qquickwidget
  • tst_scenegraph
1745
4846}-
4847-
4848/*!-
4849 Requests a Qt Quick scenegraph backend for the specified graphics \a api.-
4850 Backends can either be built-in or be installed in form of dynamically-
4851 loaded plugins.-
4852-
4853 \note The call to the function must happen before constructing the first-
4854 QQuickWindow in the application. It cannot be changed afterwards.-
4855-
4856 If the selected backend is invalid or an error occurs, the default backend-
4857 (OpenGL or software, depending on the Qt configuration) is used.-
4858-
4859 \since 5.8-
4860 */-
4861void QQuickWindow::setSceneGraphBackend(QSGRendererInterface::GraphicsApi api)-
4862{-
4863 switch (api) {-
4864 case QSGRendererInterface::Software:
executed 2 times by 1 test: case QSGRendererInterface::Software:
Executed by:
  • tst_qquickshape
2
4865 setSceneGraphBackend(QStringLiteral("software"));
executed 2 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquickshape
2
4866 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickshape
2
4867 case QSGRendererInterface::Direct3D12:
never executed: case QSGRendererInterface::Direct3D12:
0
4868 setSceneGraphBackend(QStringLiteral("d3d12"));
never executed: return qstring_literal_temp;
0
4869 break;
never executed: break;
0
4870 default:
never executed: default:
0
4871 break;
never executed: break;
0
4872 }-
4873}-
4874-
4875/*!-
4876 Requests the specified Qt Quick scenegraph \a backend. Backends can either-
4877 be built-in or be installed in form of dynamically loaded plugins.-
4878-
4879 \overload-
4880-
4881 \note The call to the function must happen before constructing the first-
4882 QQuickWindow in the application. It cannot be changed afterwards.-
4883-
4884 If \a backend is invalid or an error occurs, the default backend (OpenGL or-
4885 software, depending on the Qt configuration) is used.-
4886-
4887 \note Calling this function is equivalent to setting the-
4888 \c QT_QUICK_BACKEND or \c QMLSCENE_DEVICE environment variables. However, this-
4889 API is safer to use in applications that spawn other processes as there is-
4890 no need to worry about environment inheritance.-
4891-
4892 \since 5.8-
4893 */-
4894void QQuickWindow::setSceneGraphBackend(const QString &backend)-
4895{-
4896 QSGContext::setBackend(backend);-
4897}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickshape
2
4898-
4899/*!-
4900 Returns the requested Qt Quick scenegraph backend.-
4901-
4902 \note The return value of this function may still be outdated by-
4903 subsequent calls to setSceneGraphBackend() until the first QQuickWindow in the-
4904 application has been constructed.-
4905-
4906 \since 5.9-
4907 */-
4908QString QQuickWindow::sceneGraphBackend()-
4909{-
4910 return QSGContext::backend();
executed 68 times by 34 tests: return QSGContext::backend();
Executed by:
  • tst_examples
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickellipseextruder
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitemparticle
  • tst_qquicklineextruder
  • tst_qquickmaskextruder
  • tst_qquickparticlegroup
  • tst_qquickparticlesystem
  • tst_qquickpixmapcache
  • tst_qquickpointattractor
  • tst_qquickpointdirection
  • tst_qquickrectangleextruder
  • tst_qquickshadereffect
  • tst_qquickspritegoal
  • ...
68
4911}-
4912-
4913/*!-
4914 Creates a simple rectangle node. When the scenegraph is not initialized, the return value is null.-
4915-
4916 This is cross-backend alternative to constructing a QSGSimpleRectNode directly.-
4917-
4918 \since 5.8-
4919 \sa QSGRectangleNode-
4920 */-
4921QSGRectangleNode *QQuickWindow::createRectangleNode() const-
4922{-
4923 Q_D(const QQuickWindow);-
4924 return isSceneGraphInitialized() ? d->context->sceneGraphContext()->createRectangleNode() : nullptr;
never executed: return isSceneGraphInitialized() ? d->context->sceneGraphContext()->createRectangleNode() : nullptr;
0
4925}-
4926-
4927/*!-
4928 Creates a simple image node. When the scenegraph is not initialized, the return value is null.-
4929-
4930 This is cross-backend alternative to constructing a QSGSimpleTextureNode directly.-
4931-
4932 \since 5.8-
4933 \sa QSGImageNode-
4934 */-
4935QSGImageNode *QQuickWindow::createImageNode() const-
4936{-
4937 Q_D(const QQuickWindow);-
4938 return isSceneGraphInitialized() ? d->context->sceneGraphContext()->createImageNode() : nullptr;
never executed: return isSceneGraphInitialized() ? d->context->sceneGraphContext()->createImageNode() : nullptr;
0
4939}-
4940-
4941/*!-
4942 Creates a nine patch node. When the scenegraph is not initialized, the return value is null.-
4943-
4944 \since 5.8-
4945 */-
4946QSGNinePatchNode *QQuickWindow::createNinePatchNode() const-
4947{-
4948 Q_D(const QQuickWindow);-
4949 return isSceneGraphInitialized() ? d->context->sceneGraphContext()->createNinePatchNode() : nullptr;
never executed: return isSceneGraphInitialized() ? d->context->sceneGraphContext()->createNinePatchNode() : nullptr;
0
4950}-
4951-
4952/*!-
4953 \since 5.10-
4954-
4955 Returns the render type of text-like elements in Qt Quick.-
4956 The default is QQuickWindow::QtTextRendering.-
4957-
4958 \sa setTextRenderType()-
4959*/-
4960QQuickWindow::TextRenderType QQuickWindow::textRenderType()-
4961{-
4962 return QQuickWindowPrivate::textRenderType;
executed 266810 times by 41 tests: return QQuickWindowPrivate::textRenderType;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • ...
266810
4963}-
4964-
4965/*!-
4966 \since 5.10-
4967-
4968 Sets the default render type of text-like elements in Qt Quick to \a renderType.-
4969-
4970 \note setting the render type will only affect elements created afterwards;-
4971 the render type of existing elements will not be modified.-
4972-
4973 \sa textRenderType()-
4974*/-
4975void QQuickWindow::setTextRenderType(QQuickWindow::TextRenderType renderType)-
4976{-
4977 QQuickWindowPrivate::textRenderType = renderType;-
4978}
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qqmlprofilerservice
14
4979-
4980#ifndef QT_NO_DEBUG_STREAM-
4981QDebug operator<<(QDebug debug, const QQuickWindow *win)-
4982{-
4983 QDebugStateSaver saver(debug);-
4984 debug.nospace();-
4985 if (!win) {
!winDescription
TRUEnever evaluated
FALSEnever evaluated
0
4986 debug << "QQuickWindow(0)";-
4987 return debug;
never executed: return debug;
0
4988 }-
4989-
4990 debug << win->metaObject()->className() << '(' << static_cast<const void *>(win);-
4991 if (win->isActive())
win->isActive()Description
TRUEnever evaluated
FALSEnever evaluated
0
4992 debug << " active";
never executed: debug << " active";
0
4993 if (win->isExposed())
win->isExposed()Description
TRUEnever evaluated
FALSEnever evaluated
0
4994 debug << " exposed";
never executed: debug << " exposed";
0
4995 debug << ", visibility=" << win->visibility() << ", flags=" << win->flags();-
4996 if (!win->title().isEmpty())
!win->title().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
4997 debug << ", title=" << win->title();
never executed: debug << ", title=" << win->title();
0
4998 if (!win->objectName().isEmpty())
!win->objectName().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
4999 debug << ", name=" << win->objectName();
never executed: debug << ", name=" << win->objectName();
0
5000 if (win->parent())
win->parent()Description
TRUEnever evaluated
FALSEnever evaluated
0
5001 debug << ", parent=" << static_cast<const void *>(win->parent());
never executed: debug << ", parent=" << static_cast<const void *>(win->parent());
0
5002 if (win->transientParent())
win->transientParent()Description
TRUEnever evaluated
FALSEnever evaluated
0
5003 debug << ", transientParent=" << static_cast<const void *>(win->transientParent());
never executed: debug << ", transientParent=" << static_cast<const void *>(win->transientParent());
0
5004 debug << ", geometry=";-
5005 QtDebugUtils::formatQRect(debug, win->geometry());-
5006 debug << ')';-
5007 return debug;
never executed: return debug;
0
5008}-
5009#endif-
5010-
5011#include "moc_qquickwindow.cpp"-
5012-
5013QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0