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