OpenCoverage

qsgbasicinternalrectanglenode.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgbasicinternalrectanglenode.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 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 "qsgbasicinternalrectanglenode_p.h"-
41-
42#include <QtCore/qmath.h>-
43-
44QT_BEGIN_NAMESPACE-
45-
46namespace-
47{-
48 struct Color4ub-
49 {-
50 unsigned char r, g, b, a;-
51 };-
52-
53 Color4ub operator *(Color4ub c, float t) { c.a *= t; c.r *= t; c.g *= t; c.b *= t; return c; }
executed 11056 times by 5 tests: return c;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
11056
54 Color4ub operator +(Color4ub a, Color4ub b) { a.a += b.a; a.r += b.r; a.g += b.g; a.b += b.b; return a; }
executed 5528 times by 5 tests: return a;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
5528
55-
56 inline Color4ub colorToColor4ub(const QColor &c)-
57 {-
58 Color4ub color = { uchar(qRound(c.redF() * c.alphaF() * 255)),-
59 uchar(qRound(c.greenF() * c.alphaF() * 255)),-
60 uchar(qRound(c.blueF() * c.alphaF() * 255)),-
61 uchar(qRound(c.alphaF() * 255))-
62 };-
63 return color;
executed 165502 times by 66 tests: return color;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
165502
64 }-
65-
66 // Same layout as QSGGeometry::ColoredPoint2D, but uses Color4ub for convenience.-
67 struct Vertex-
68 {-
69 float x, y;-
70 Color4ub color;-
71-
72 void set(float primary, float secondary, Color4ub ncolor, bool vertical)-
73 {-
74 if (vertical) {
verticalDescription
TRUEevaluated 880492 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-880492
75 x = secondary; y = primary;-
76 } else {
executed 880492 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
880492
77 x = primary; y = secondary;-
78 }
never executed: end of block
0
79 color = ncolor;-
80 }
executed 880492 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
880492
81 };-
82-
83 struct SmoothVertex : public Vertex-
84 {-
85 float dx, dy;-
86-
87 void set(float primary, float secondary, Color4ub ncolor, float dPrimary, float dSecondary, bool vertical)-
88 {-
89 Vertex::set(primary, secondary, ncolor, vertical);-
90 if (vertical) {
verticalDescription
TRUEevaluated 249752 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
0-249752
91 dx = dSecondary; dy = dPrimary;-
92 } else {
executed 249752 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
249752
93 dx = dPrimary; dy = dSecondary;-
94 }
never executed: end of block
0
95 }-
96 };-
97-
98 const QSGGeometry::AttributeSet &smoothAttributeSet()-
99 {-
100 static QSGGeometry::Attribute data[] = {-
101 QSGGeometry::Attribute::createWithAttributeType(0, 2, QSGGeometry::FloatType, QSGGeometry::PositionAttribute),-
102 QSGGeometry::Attribute::createWithAttributeType(1, 4, QSGGeometry::UnsignedByteType, QSGGeometry::ColorAttribute),-
103 QSGGeometry::Attribute::createWithAttributeType(2, 2, QSGGeometry::FloatType, QSGGeometry::TexCoordAttribute)-
104 };-
105 static QSGGeometry::AttributeSet attrs = { 3, sizeof(SmoothVertex), data };-
106 return attrs;
executed 3322 times by 12 tests: return attrs;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
3322
107 }-
108}-
109-
110QSGBasicInternalRectangleNode::QSGBasicInternalRectangleNode()-
111 : m_radius(0)-
112 , m_pen_width(0)-
113 , m_aligned(true)-
114 , m_antialiasing(false)-
115 , m_gradient_is_opaque(true)-
116 , m_dirty_geometry(false)-
117 , m_gradient_is_vertical(true)-
118 , m_geometry(QSGGeometry::defaultAttributes_ColoredPoint2D(), 0)-
119{-
120 setGeometry(&m_geometry);-
121-
122#ifdef QSG_RUNTIME_DESCRIPTION-
123 qsgnode_set_description(this, QLatin1String("internalrectangle"));-
124#endif-
125}
executed 72061 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
72061
126-
127void QSGBasicInternalRectangleNode::setRect(const QRectF &rect)-
128{-
129 if (rect == m_rect)
rect == m_rectDescription
TRUEevaluated 1640 times by 12 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_scenegraph
FALSEevaluated 75643 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1640-75643
130 return;
executed 1640 times by 12 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktextinput
  • tst_scenegraph
1640
131 m_rect = rect;-
132 m_dirty_geometry = true;-
133}
executed 75643 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
75643
134-
135void QSGBasicInternalRectangleNode::setColor(const QColor &color)-
136{-
137 if (color == m_color)
color == m_colorDescription
TRUEevaluated 3836 times by 15 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquickwidget
FALSEevaluated 73447 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
3836-73447
138 return;
executed 3836 times by 15 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquickwidget
3836
139 m_color = color;-
140 if (m_gradient_stops.isEmpty())
m_gradient_stops.isEmpty()Description
TRUEevaluated 73447 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-73447
141 m_dirty_geometry = true;
executed 73447 times by 66 tests: m_dirty_geometry = true;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
73447
142}
executed 73447 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
73447
143-
144void QSGBasicInternalRectangleNode::setPenColor(const QColor &color)-
145{-
146 if (color == m_border_color)
color == m_border_colorDescription
TRUEevaluated 3646 times by 7 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickgridview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
FALSEevaluated 40619 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
3646-40619
147 return;
executed 3646 times by 7 tests: return;
Executed by:
  • tst_flickableinterop
  • tst_qquickgridview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
3646
148 m_border_color = color;-
149 if (m_pen_width > 0)
m_pen_width > 0Description
TRUEevaluated 34 times by 3 tests
Evaluated by:
  • tst_multipointtoucharea_interop
  • tst_qquickfocusscope
  • tst_qquickmultipointtoucharea
FALSEevaluated 40585 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
34-40585
150 m_dirty_geometry = true;
executed 34 times by 3 tests: m_dirty_geometry = true;
Executed by:
  • tst_multipointtoucharea_interop
  • tst_qquickfocusscope
  • tst_qquickmultipointtoucharea
34
151}
executed 40619 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
40619
152-
153void QSGBasicInternalRectangleNode::setPenWidth(qreal width)-
154{-
155 if (width == m_pen_width)
width == m_pen_widthDescription
TRUEevaluated 36360 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 40619 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
36360-40619
156 return;
executed 36360 times by 66 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
36360
157 m_pen_width = width;-
158 m_dirty_geometry = true;-
159}
executed 40619 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
40619
160-
161-
162void QSGBasicInternalRectangleNode::setGradientStops(const QGradientStops &stops)-
163{-
164 if (stops.constData() == m_gradient_stops.constData())
stops.constDat...ps.constData()Description
TRUEevaluated 76446 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 533 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
533-76446
165 return;
executed 76446 times by 66 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
76446
166-
167 m_gradient_stops = stops;-
168-
169 m_gradient_is_opaque = true;-
170 for (int i = 0; i < stops.size(); ++i)
i < stops.size()Description
TRUEevaluated 1115 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 533 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
533-1115
171 m_gradient_is_opaque &= stops.at(i).second.alpha() == 0xff;
executed 1115 times by 5 tests: m_gradient_is_opaque &= stops.at(i).second.alpha() == 0xff;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
1115
172 m_dirty_geometry = true;-
173}
executed 533 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
533
174-
175void QSGBasicInternalRectangleNode::setGradientVertical(bool vertical)-
176{-
177 if (vertical == m_gradient_is_vertical)
vertical == m_...nt_is_verticalDescription
TRUEevaluated 76979 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-76979
178 return;
executed 76979 times by 66 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
76979
179 m_gradient_is_vertical = vertical;-
180 m_dirty_geometry = true;-
181}
never executed: end of block
0
182-
183-
184void QSGBasicInternalRectangleNode::setRadius(qreal radius)-
185{-
186 if (radius == m_radius)
radius == m_radiusDescription
TRUEevaluated 74691 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 2288 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2288-74691
187 return;
executed 74691 times by 66 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
74691
188 m_radius = radius;-
189 m_dirty_geometry = true;-
190}
executed 2288 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2288
191-
192void QSGBasicInternalRectangleNode::setAntialiasing(bool antialiasing)-
193{-
194 if (!supportsAntialiasing())
!supportsAntialiasing()Description
TRUEnever evaluated
FALSEevaluated 76979 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
0-76979
195 return;
never executed: return;
0
196-
197 if (antialiasing == m_antialiasing)
antialiasing == m_antialiasingDescription
TRUEevaluated 73657 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 3322 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
3322-73657
198 return;
executed 73657 times by 66 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
73657
199 m_antialiasing = antialiasing;-
200 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 3322 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
0-3322
201 setGeometry(new QSGGeometry(smoothAttributeSet(), 0));-
202 setFlag(OwnsGeometry, true);-
203 } else {
executed 3322 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
3322
204 setGeometry(&m_geometry);-
205 setFlag(OwnsGeometry, false);-
206 }
never executed: end of block
0
207 updateMaterialAntialiasing();-
208 m_dirty_geometry = true;-
209}
executed 3322 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_scenegraph
3322
210-
211void QSGBasicInternalRectangleNode::setAligned(bool aligned)-
212{-
213 if (aligned == m_aligned)
aligned == m_alignedDescription
TRUEevaluated 44265 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
0-44265
214 return;
executed 44265 times by 15 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
44265
215 m_aligned = aligned;-
216 m_dirty_geometry = true;-
217}
never executed: end of block
0
218-
219void QSGBasicInternalRectangleNode::update()-
220{-
221 if (m_dirty_geometry) {
m_dirty_geometryDescription
TRUEevaluated 77168 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 115 times by 5 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
115-77168
222 updateGeometry();-
223 m_dirty_geometry = false;-
224-
225 QSGNode::DirtyState state = QSGNode::DirtyGeometry;-
226 updateMaterialBlending(&state);-
227 markDirty(state);-
228 }
executed 77168 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
77168
229}
executed 77283 times by 66 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
77283
230-
231void QSGBasicInternalRectangleNode::updateGeometry()-
232{-
233 float width = float(m_rect.width());-
234 float height = float(m_rect.height());-
235 float penWidth = qMin(qMin(width, height) * 0.5f, float(m_pen_width));-
236-
237 if (m_aligned)
m_alignedDescription
TRUEevaluated 77168 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-77168
238 penWidth = qRound(penWidth);
executed 77168 times by 66 tests: penWidth = qRound(penWidth);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
77168
239-
240 QSGGeometry *g = geometry();-
241 g->setDrawingMode(QSGGeometry::DrawTriangleStrip);-
242 int vertexStride = g->sizeOfVertex();-
243-
244 union {-
245 Vertex *vertices;-
246 SmoothVertex *smoothVertices;-
247 };-
248-
249 Color4ub fillColor = colorToColor4ub(m_color);-
250 Color4ub borderColor = colorToColor4ub(m_border_color);-
251 Color4ub transparent = { 0, 0, 0, 0 };-
252 const QGradientStops &stops = m_gradient_stops;-
253-
254 float length = (m_gradient_is_vertical ? height : width);
m_gradient_is_verticalDescription
TRUEevaluated 77168 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-77168
255 float secondaryLength = (m_gradient_is_vertical ? width : height);
m_gradient_is_verticalDescription
TRUEevaluated 77168 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-77168
256-
257 int nextGradientStop = 0;-
258 float gradientPos = penWidth / length;-
259 while (nextGradientStop < stops.size() && stops.at(nextGradientStop).first <= gradientPos)
nextGradientSt...< stops.size()Description
TRUEevaluated 1064 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 76635 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
stops.at(nextG...<= gradientPosDescription
TRUEevaluated 531 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 533 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
531-76635
260 ++nextGradientStop;
executed 531 times by 5 tests: ++nextGradientStop;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
531
261 int lastGradientStop = stops.size() - 1;-
262 float lastGradientPos = 1.0f - penWidth / length;-
263 while (lastGradientStop >= nextGradientStop && stops.at(lastGradientStop).first >= lastGradientPos)
lastGradientSt...xtGradientStopDescription
TRUEevaluated 553 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 77133 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
stops.at(lastG...astGradientPosDescription
TRUEevaluated 518 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 35 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
35-77133
264 --lastGradientStop;
executed 518 times by 5 tests: --lastGradientStop;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
518
265 int gradientIntersections = (lastGradientStop - nextGradientStop + 1);-
266-
267 if (m_radius > 0) {
m_radius > 0Description
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
2391-74777
268 // Rounded corners.-
269-
270 // Radius should never exceeds half of the width or half of the height-
271 float radius = qMin(qMin(width, height) * 0.5f, float(m_radius));-
272 QRectF innerRect = m_rect;-
273 innerRect.adjust(radius, radius, -radius, -radius);-
274-
275 float innerRadius = radius - penWidth * 1.0f;-
276 float outerRadius = radius;-
277 float delta = qMin(width, height) * 0.5f;-
278-
279 // Number of segments per corner, approximately one per 3 pixels.-
280 int segments = qBound(3, qCeil(outerRadius * (M_PI / 6)), 18);-
281-
282 /*-
283-
284 --+--__-
285 --+--__--__-
286 | --__--__-
287 | seg --__--+-
288 --+-__ ment _+ \-
289 --+-__--__ - \ \-
290 --__--+ se \ \-
291 + \ g \ \-
292 \ \ m \ \-
293 -----------+--+ e \ \ <- gradient line-
294 \ \ nt\ \-
295 fill +--+----+--+-
296 | | | |-
297 border-
298 inner AA outer AA (AA = antialiasing)-
299-
300 */-
301-
302 int innerVertexCount = (segments + 1) * 4 + gradientIntersections * 2;-
303 int outerVertexCount = (segments + 1) * 4;-
304 int vertexCount = innerVertexCount;-
305 if (m_antialiasing || penWidth)
m_antialiasingDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
penWidthDescription
TRUEnever evaluated
FALSEnever evaluated
0-2391
306 vertexCount += innerVertexCount;
executed 2391 times by 10 tests: vertexCount += innerVertexCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2391
307 if (penWidth)
penWidthDescription
TRUEevaluated 1687 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 704 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
704-1687
308 vertexCount += outerVertexCount;
executed 1687 times by 8 tests: vertexCount += outerVertexCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1687
309 if (m_antialiasing && penWidth)
m_antialiasingDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
310 vertexCount += outerVertexCount;
executed 1687 times by 8 tests: vertexCount += outerVertexCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1687
311-
312 int fillIndexCount = innerVertexCount;-
313 int innerAAIndexCount = innerVertexCount * 2 + 2;-
314 int borderIndexCount = innerVertexCount * 2 + 2;-
315 int outerAAIndexCount = outerVertexCount * 2 + 2;-
316 int indexCount = 0;-
317 int fillHead = 0;-
318 int innerAAHead = 0;-
319 int innerAATail = 0;-
320 int borderHead = 0;-
321 int borderTail = 0;-
322 int outerAAHead = 0;-
323 int outerAATail = 0;-
324 bool hasFill = m_color.alpha() > 0 || !stops.isEmpty();
m_color.alpha() > 0Description
TRUEevaluated 1848 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 543 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
!stops.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 543 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
0-1848
325 if (hasFill)
hasFillDescription
TRUEevaluated 1848 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 543 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
543-1848
326 indexCount += fillIndexCount;
executed 1848 times by 10 tests: indexCount += fillIndexCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1848
327 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
328 innerAATail = innerAAHead = indexCount + (innerAAIndexCount >> 1) + 1;-
329 indexCount += innerAAIndexCount;-
330 }
executed 2391 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2391
331 if (penWidth) {
penWidthDescription
TRUEevaluated 1687 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 704 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
704-1687
332 borderTail = borderHead = indexCount + (borderIndexCount >> 1) + 1;-
333 indexCount += borderIndexCount;-
334 }
executed 1687 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1687
335 if (m_antialiasing && penWidth) {
m_antialiasingDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
336 outerAATail = outerAAHead = indexCount + (outerAAIndexCount >> 1) + 1;-
337 indexCount += outerAAIndexCount;-
338 }
executed 1687 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1687
339-
340 g->allocate(vertexCount, indexCount);-
341 vertices = reinterpret_cast<Vertex *>(g->vertexData());-
342 memset(vertices, 0, vertexCount * vertexStride);-
343 quint16 *indices = g->indexDataAsUShort();-
344 quint16 index = 0;-
345-
346 float pp = 0; // previous inner primary coordinate.-
347 float pss = 0; // previous inner secondary start coordinate.-
348 float pse = 0; // previous inner secondary end coordinate.-
349-
350 float angle = 0.5f * float(M_PI) / segments;-
351 float cosStep = qFastCos(angle);-
352 float sinStep = qFastSin(angle);-
353-
354 float innerStart = (m_gradient_is_vertical ? innerRect.top() : innerRect.left());
m_gradient_is_verticalDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
355 float innerEnd = (m_gradient_is_vertical ? innerRect.bottom() : innerRect.right());
m_gradient_is_verticalDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
356 float innerLength = (m_gradient_is_vertical ? innerRect.height() : innerRect.width());
m_gradient_is_verticalDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
357 float innerSecondaryStart = (m_gradient_is_vertical ? innerRect.left() : innerRect.top());
m_gradient_is_verticalDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
358 float innerSecondaryEnd = (m_gradient_is_vertical ? innerRect.right() : innerRect.bottom());
m_gradient_is_verticalDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
359-
360 for (int part = 0; part < 2; ++part) {
part < 2Description
TRUEevaluated 4782 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2391-4782
361 float c = 1 - part;-
362 float s = part;-
363 for (int i = 0; i <= segments; ++i) {
i <= segmentsDescription
TRUEevaluated 33352 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 4782 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
4782-33352
364 float p, ss, se;-
365 if (innerRadius > 0) {
innerRadius > 0Description
TRUEevaluated 33072 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 280 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquicklistview
  • tst_qquicktaphandler
280-33072
366 p = (part ? innerEnd : innerStart) - innerRadius * c; // current inner primary coordinate.
partDescription
TRUEevaluated 16536 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 16536 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
16536
367 ss = innerSecondaryStart - innerRadius * s; // current inner secondary start coordinate.-
368 se = innerSecondaryEnd + innerRadius * s; // current inner secondary end coordinate.-
369 gradientPos = ((part ? innerLength : 0) + radius - innerRadius * c) / length;
partDescription
TRUEevaluated 16536 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 16536 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
16536
370 } else {
executed 33072 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
33072
371 p = (part ? innerEnd + innerRadius : innerStart - innerRadius); // current inner primary coordinate.
partDescription
TRUEevaluated 140 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquicklistview
  • tst_qquicktaphandler
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquicklistview
  • tst_qquicktaphandler
140
372 ss = innerSecondaryStart - innerRadius; // current inner secondary start coordinate.-
373 se = innerSecondaryEnd + innerRadius; // current inner secondary end coordinate.-
374 gradientPos = ((part ? innerLength + innerRadius : -innerRadius) + radius) / length;
partDescription
TRUEevaluated 140 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquicklistview
  • tst_qquicktaphandler
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquicklistview
  • tst_qquicktaphandler
140
375 }
executed 280 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_qquicklistview
  • tst_qquicktaphandler
280
376 float outerEdge = (part ? innerEnd : innerStart) - outerRadius * c; // current outer primary coordinate.
partDescription
TRUEevaluated 16676 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 16676 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
16676
377 float outerSecondaryStart = innerSecondaryStart - outerRadius * s; // current outer secondary start coordinate.-
378 float outerSecondaryEnd = innerSecondaryEnd + outerRadius * s; // current outer secondary end coordinate.-
379-
380 while (nextGradientStop <= lastGradientStop && stops.at(nextGradientStop).first <= gradientPos) {
nextGradientSt...stGradientStopDescription
TRUEevaluated 146 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 33234 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
stops.at(nextG...<= gradientPosDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_examples
28-33234
381 // Insert vertices at gradient stops.-
382 float gp = (innerStart - radius) + stops.at(nextGradientStop).first * length;-
383 float t = (gp - pp) / (p - pp);-
384 float gis = pss * (1 - t) + t * ss; // gradient inner start-
385 float gie = pse * (1 - t) + t * se; // gradient inner end-
386-
387 fillColor = colorToColor4ub(stops.at(nextGradientStop).second);-
388-
389 if (hasFill) {
hasFillDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
0-28
390 indices[fillHead++] = index;-
391 indices[fillHead++] = index + 1;-
392 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_examples
28
393-
394 if (penWidth) {
penWidthDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
0-28
395 --borderHead;-
396 indices[borderHead] = indices[borderHead + 2];-
397 indices[--borderHead] = index + 2;-
398 indices[borderTail++] = index + 3;-
399 indices[borderTail] = indices[borderTail - 2];-
400 ++borderTail;-
401 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_examples
28
402-
403 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
0-28
404 indices[--innerAAHead] = index + 2;-
405 indices[--innerAAHead] = index;-
406 indices[innerAATail++] = index + 1;-
407 indices[innerAATail++] = index + 3;-
408-
409 bool lower = stops.at(nextGradientStop).first > 0.5f;-
410 float dp = lower ? qMin(0.0f, length - gp - delta) : qMax(0.0f, delta - gp);
lowerDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_examples
6-22
411 smoothVertices[index++].set(gp, gie, fillColor, dp, secondaryLength - gie - delta, m_gradient_is_vertical);-
412 smoothVertices[index++].set(gp, gis, fillColor, dp, delta - gis, m_gradient_is_vertical);-
413 if (penWidth) {
penWidthDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
0-28
414 smoothVertices[index++].set(gp, gie, borderColor, -0.49f * penWidth * c, 0.49f * penWidth * s, m_gradient_is_vertical);-
415 smoothVertices[index++].set(gp, gis, borderColor, -0.49f * penWidth * c, -0.49f * penWidth * s, m_gradient_is_vertical);-
416 } else {
executed 28 times by 1 test: end of block
Executed by:
  • tst_examples
28
417 dp = lower ? delta : -delta;
lowerDescription
TRUEnever evaluated
FALSEnever evaluated
0
418 smoothVertices[index++].set(gp, gie, transparent, dp, delta, m_gradient_is_vertical);-
419 smoothVertices[index++].set(gp, gis, transparent, dp, -delta, m_gradient_is_vertical);-
420 }
never executed: end of block
0
421 } else {-
422 vertices[index++].set(gp, gie, fillColor, m_gradient_is_vertical);-
423 vertices[index++].set(gp, gis, fillColor, m_gradient_is_vertical);-
424 if (penWidth) {
penWidthDescription
TRUEnever evaluated
FALSEnever evaluated
0
425 vertices[index++].set(gp, gie, borderColor, m_gradient_is_vertical);-
426 vertices[index++].set(gp, gis, borderColor, m_gradient_is_vertical);-
427 }
never executed: end of block
0
428 }
never executed: end of block
0
429 ++nextGradientStop;-
430 }
executed 28 times by 1 test: end of block
Executed by:
  • tst_examples
28
431-
432 if (!stops.isEmpty()) {
!stops.isEmpty()Description
TRUEevaluated 5300 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
FALSEevaluated 28052 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
5300-28052
433 if (nextGradientStop == 0) {
nextGradientStop == 0Description
TRUEnever evaluated
FALSEevaluated 5300 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
0-5300
434 fillColor = colorToColor4ub(stops.at(0).second);-
435 } else if (nextGradientStop == stops.size()) {
never executed: end of block
nextGradientSt...= stops.size()Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 5264 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
0-5264
436 fillColor = colorToColor4ub(stops.last().second);-
437 } else {
executed 36 times by 1 test: end of block
Executed by:
  • tst_examples
36
438 const QGradientStop &prev = stops.at(nextGradientStop - 1);-
439 const QGradientStop &next = stops.at(nextGradientStop);-
440 float t = (gradientPos - prev.first) / (next.first - prev.first);-
441 fillColor = colorToColor4ub(prev.second) * (1 - t) + colorToColor4ub(next.second) * t;-
442 }
executed 5264 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
5264
443 }-
444-
445 if (hasFill) {
hasFillDescription
TRUEevaluated 21722 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 11630 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
11630-21722
446 indices[fillHead++] = index;-
447 indices[fillHead++] = index + 1;-
448 }
executed 21722 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
21722
449-
450 if (penWidth) {
penWidthDescription
TRUEevaluated 25582 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 7770 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
7770-25582
451 indices[--borderHead] = index + 4;-
452 indices[--borderHead] = index + 2;-
453 indices[borderTail++] = index + 3;-
454 indices[borderTail++] = index + 5;-
455 }
executed 25582 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
25582
456-
457 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 33352 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-33352
458 indices[--innerAAHead] = index + 2;-
459 indices[--innerAAHead] = index;-
460 indices[innerAATail++] = index + 1;-
461 indices[innerAATail++] = index + 3;-
462-
463 float dp = part ? qMin(0.0f, length - p - delta) : qMax(0.0f, delta - p);
partDescription
TRUEevaluated 16676 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 16676 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
16676
464 smoothVertices[index++].set(p, se, fillColor, dp, secondaryLength - se - delta, m_gradient_is_vertical);-
465 smoothVertices[index++].set(p, ss, fillColor, dp, delta - ss, m_gradient_is_vertical);-
466-
467 dp = part ? delta : -delta;
partDescription
TRUEevaluated 16676 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 16676 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
16676
468 if (penWidth) {
penWidthDescription
TRUEevaluated 25582 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 7770 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
7770-25582
469 smoothVertices[index++].set(p, se, borderColor, -0.49f * penWidth * c, 0.49f * penWidth * s, m_gradient_is_vertical);-
470 smoothVertices[index++].set(p, ss, borderColor, -0.49f * penWidth * c, -0.49f * penWidth * s, m_gradient_is_vertical);-
471 smoothVertices[index++].set(outerEdge, outerSecondaryEnd, borderColor, 0.49f * penWidth * c, -0.49f * penWidth * s, m_gradient_is_vertical);-
472 smoothVertices[index++].set(outerEdge, outerSecondaryStart, borderColor, 0.49f * penWidth * c, 0.49f * penWidth * s, m_gradient_is_vertical);-
473 smoothVertices[index++].set(outerEdge, outerSecondaryEnd, transparent, dp, delta, m_gradient_is_vertical);-
474 smoothVertices[index++].set(outerEdge, outerSecondaryStart, transparent, dp, -delta, m_gradient_is_vertical);-
475-
476 indices[--outerAAHead] = index - 2;-
477 indices[--outerAAHead] = index - 4;-
478 indices[outerAATail++] = index - 3;-
479 indices[outerAATail++] = index - 1;-
480 } else {
executed 25582 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
25582
481 smoothVertices[index++].set(p, se, transparent, dp, delta, m_gradient_is_vertical);-
482 smoothVertices[index++].set(p, ss, transparent, dp, -delta, m_gradient_is_vertical);-
483 }
executed 7770 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
7770
484 } else {-
485 vertices[index++].set(p, se, fillColor, m_gradient_is_vertical);-
486 vertices[index++].set(p, ss, fillColor, m_gradient_is_vertical);-
487 if (penWidth) {
penWidthDescription
TRUEnever evaluated
FALSEnever evaluated
0
488 vertices[index++].set(p, se, borderColor, m_gradient_is_vertical);-
489 vertices[index++].set(p, ss, borderColor, m_gradient_is_vertical);-
490 vertices[index++].set(outerEdge, outerSecondaryEnd, borderColor, m_gradient_is_vertical);-
491 vertices[index++].set(outerEdge, outerSecondaryStart, borderColor, m_gradient_is_vertical);-
492 }
never executed: end of block
0
493 }
never executed: end of block
0
494-
495 pp = p;-
496 pss = ss;-
497 pse = se;-
498-
499 // Rotate-
500 qreal tmp = c;-
501 c = c * cosStep - s * sinStep;-
502 s = s * cosStep + tmp * sinStep;-
503 }
executed 33352 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
33352
504 }
executed 4782 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
4782
505 Q_ASSERT(index == vertexCount);-
506-
507 // Close the triangle strips.-
508 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
509 indices[--innerAAHead] = indices[innerAATail - 1];-
510 indices[--innerAAHead] = indices[innerAATail - 2];-
511 Q_ASSERT(innerAATail <= indexCount);-
512 }
executed 2391 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2391
513 if (penWidth) {
penWidthDescription
TRUEevaluated 1687 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEevaluated 704 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquicktaphandler
704-1687
514 indices[--borderHead] = indices[borderTail - 1];-
515 indices[--borderHead] = indices[borderTail - 2];-
516 Q_ASSERT(borderTail <= indexCount);-
517 }
executed 1687 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1687
518 if (m_antialiasing && penWidth) {
m_antialiasingDescription
TRUEevaluated 2391 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
FALSEnever evaluated
0-2391
519 indices[--outerAAHead] = indices[outerAATail - 1];-
520 indices[--outerAAHead] = indices[outerAATail - 2];-
521 Q_ASSERT(outerAATail == indexCount);-
522 }
executed 1687 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
1687
523 } else {
executed 2391 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquicktaphandler
2391
524 // Straight corners.-
525 QRectF innerRect = m_rect;-
526 QRectF outerRect = m_rect;-
527-
528 if (penWidth)
penWidthDescription
TRUEevaluated 42521 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 32256 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
32256-42521
529 innerRect.adjust(1.0f * penWidth, 1.0f * penWidth, -1.0f * penWidth, -1.0f * penWidth);
executed 42521 times by 13 tests: innerRect.adjust(1.0f * penWidth, 1.0f * penWidth, -1.0f * penWidth, -1.0f * penWidth);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
42521
530-
531 float delta = qMin(width, height) * 0.5f;-
532 int innerVertexCount = 4 + gradientIntersections * 2;-
533 int outerVertexCount = 4;-
534 int vertexCount = innerVertexCount;-
535 if (m_antialiasing || penWidth)
m_antialiasingDescription
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 73455 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1322-73455
536 vertexCount += innerVertexCount;
executed 43427 times by 14 tests: vertexCount += innerVertexCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
43427
537 if (penWidth)
penWidthDescription
TRUEevaluated 42521 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 32256 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
32256-42521
538 vertexCount += outerVertexCount;
executed 42521 times by 13 tests: vertexCount += outerVertexCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
42521
539 if (m_antialiasing && penWidth)
m_antialiasingDescription
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 73455 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1322-73455
540 vertexCount += outerVertexCount;
executed 416 times by 2 tests: vertexCount += outerVertexCount;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
416
541-
542 int fillIndexCount = innerVertexCount;-
543 int innerAAIndexCount = innerVertexCount * 2 + 2;-
544 int borderIndexCount = innerVertexCount * 2 + 2;-
545 int outerAAIndexCount = outerVertexCount * 2 + 2;-
546 int indexCount = 0;-
547 int fillHead = 0;-
548 int innerAAHead = 0;-
549 int innerAATail = 0;-
550 int borderHead = 0;-
551 int borderTail = 0;-
552 int outerAAHead = 0;-
553 int outerAATail = 0;-
554 bool hasFill = m_color.alpha() > 0 || !stops.isEmpty();
m_color.alpha() > 0Description
TRUEevaluated 74755 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquicktextedit
!stops.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquicktextedit
0-74755
555 if (hasFill)
hasFillDescription
TRUEevaluated 74755 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquicktextedit
22-74755
556 indexCount += fillIndexCount;
executed 74755 times by 65 tests: indexCount += fillIndexCount;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
74755
557 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 73455 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1322-73455
558 innerAATail = innerAAHead = indexCount + (innerAAIndexCount >> 1) + 1;-
559 indexCount += innerAAIndexCount;-
560 }
executed 1322 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
1322
561 if (penWidth) {
penWidthDescription
TRUEevaluated 42521 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 32256 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
32256-42521
562 borderTail = borderHead = indexCount + (borderIndexCount >> 1) + 1;-
563 indexCount += borderIndexCount;-
564 }
executed 42521 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
42521
565 if (m_antialiasing && penWidth) {
m_antialiasingDescription
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 73455 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1322-73455
566 outerAATail = outerAAHead = indexCount + (outerAAIndexCount >> 1) + 1;-
567 indexCount += outerAAIndexCount;-
568 }
executed 416 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
416
569-
570 g->allocate(vertexCount, indexCount);-
571 vertices = reinterpret_cast<Vertex *>(g->vertexData());-
572 memset(vertices, 0, vertexCount * vertexStride);-
573 quint16 *indices = g->indexDataAsUShort();-
574 quint16 index = 0;-
575-
576 float innerStart = (m_gradient_is_vertical ? innerRect.top() : innerRect.left());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
577 float innerEnd = (m_gradient_is_vertical ? innerRect.bottom() : innerRect.right());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
578 float outerStart = (m_gradient_is_vertical ? outerRect.top() : outerRect.left());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
579 float outerEnd = (m_gradient_is_vertical ? outerRect.bottom() : outerRect.right());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
580-
581 float innerSecondaryStart = (m_gradient_is_vertical ? innerRect.left() : innerRect.top());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
582 float innerSecondaryEnd = (m_gradient_is_vertical ? innerRect.right() : innerRect.bottom());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
583 float outerSecondaryStart = (m_gradient_is_vertical ? outerRect.left() : outerRect.top());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
584 float outerSecondaryEnd = (m_gradient_is_vertical ? outerRect.right() : outerRect.bottom());
m_gradient_is_verticalDescription
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEnever evaluated
0-74777
585-
586 for (int part = -1; part <= 1; part += 2) {
part <= 1Description
TRUEevaluated 149554 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
74777-149554
587 float innerEdge = (part == 1 ? innerEnd : innerStart);
part == 1Description
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
74777
588 float outerEdge = (part == 1 ? outerEnd : outerStart);
part == 1Description
TRUEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 74777 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
74777
589 gradientPos = (innerEdge - innerStart + penWidth) / length;-
590-
591 while (nextGradientStop <= lastGradientStop && stops.at(nextGradientStop).first <= gradientPos) {
nextGradientSt...stGradientStopDescription
TRUEevaluated 60 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
FALSEevaluated 149532 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
stops.at(nextG...<= gradientPosDescription
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
22-149532
592 // Insert vertices at gradient stops.-
593 float gp = (innerStart - penWidth) + stops.at(nextGradientStop).first * length;-
594-
595 fillColor = colorToColor4ub(stops.at(nextGradientStop).second);-
596-
597 if (hasFill) {
hasFillDescription
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
FALSEnever evaluated
0-38
598 indices[fillHead++] = index;-
599 indices[fillHead++] = index + 1;-
600 }
executed 38 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickitemlayer
38
601-
602 if (penWidth) {
penWidthDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
2-36
603 --borderHead;-
604 indices[borderHead] = indices[borderHead + 2];-
605 indices[--borderHead] = index + 2;-
606 indices[borderTail++] = index + 3;-
607 indices[borderTail] = indices[borderTail - 2];-
608 ++borderTail;-
609 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
610-
611 if (m_antialiasing) {
m_antialiasingDescription
TRUEnever evaluated
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
0-38
612 indices[--innerAAHead] = index + 2;-
613 indices[--innerAAHead] = index;-
614 indices[innerAATail++] = index + 1;-
615 indices[innerAATail++] = index + 3;-
616-
617 bool lower = stops.at(nextGradientStop).first > 0.5f;-
618 float dp = lower ? qMin(0.0f, length - gp - delta) : qMax(0.0f, delta - gp);
lowerDescription
TRUEnever evaluated
FALSEnever evaluated
0
619 smoothVertices[index++].set(gp, innerSecondaryEnd, fillColor, dp, secondaryLength - innerSecondaryEnd - delta, m_gradient_is_vertical);-
620 smoothVertices[index++].set(gp, innerSecondaryStart, fillColor, dp, delta - innerSecondaryStart, m_gradient_is_vertical);-
621 if (penWidth) {
penWidthDescription
TRUEnever evaluated
FALSEnever evaluated
0
622 smoothVertices[index++].set(gp, innerSecondaryEnd, borderColor, (lower ? 0.49f : -0.49f) * penWidth, 0.49f * penWidth, m_gradient_is_vertical);-
623 smoothVertices[index++].set(gp, innerSecondaryStart, borderColor, (lower ? 0.49f : -0.49f) * penWidth, -0.49f * penWidth, m_gradient_is_vertical);-
624 } else {
never executed: end of block
0
625 smoothVertices[index++].set(gp, innerSecondaryEnd, transparent, lower ? delta : -delta, delta, m_gradient_is_vertical);-
626 smoothVertices[index++].set(gp, innerSecondaryStart, transparent, lower ? delta : -delta, -delta, m_gradient_is_vertical);-
627 }
never executed: end of block
0
628 } else {-
629 vertices[index++].set(gp, innerSecondaryEnd, fillColor, m_gradient_is_vertical);-
630 vertices[index++].set(gp, innerSecondaryStart, fillColor, m_gradient_is_vertical);-
631 if (penWidth) {
penWidthDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
2-36
632 vertices[index++].set(gp, innerSecondaryEnd, borderColor, m_gradient_is_vertical);-
633 vertices[index++].set(gp, innerSecondaryStart, borderColor, m_gradient_is_vertical);-
634 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
635 }
executed 38 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickitemlayer
38
636 ++nextGradientStop;-
637 }
executed 38 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickitemlayer
38
638-
639 if (!stops.isEmpty()) {
!stops.isEmpty()Description
TRUEevaluated 272 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
  • tst_scenegraph
FALSEevaluated 149282 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
272-149282
640 if (nextGradientStop == 0) {
nextGradientStop == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickitemlayer
FALSEevaluated 270 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
  • tst_scenegraph
2-270
641 fillColor = colorToColor4ub(stops.at(0).second);-
642 } else if (nextGradientStop == stops.size()) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickitemlayer
nextGradientSt...= stops.size()Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
FALSEevaluated 264 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickitemlayer
  • tst_scenegraph
2-264
643 fillColor = colorToColor4ub(stops.last().second);-
644 } else {
executed 6 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickitemlayer
6
645 const QGradientStop &prev = stops.at(nextGradientStop - 1);-
646 const QGradientStop &next = stops.at(nextGradientStop);-
647 float t = (gradientPos - prev.first) / (next.first - prev.first);-
648 fillColor = colorToColor4ub(prev.second) * (1 - t) + colorToColor4ub(next.second) * t;-
649 }
executed 264 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickitemlayer
  • tst_scenegraph
264
650 }-
651-
652 if (hasFill) {
hasFillDescription
TRUEevaluated 149510 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_qquickfocusscope
  • tst_qquicktextedit
44-149510
653 indices[fillHead++] = index;-
654 indices[fillHead++] = index + 1;-
655 }
executed 149510 times by 65 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
149510
656-
657 if (penWidth) {
penWidthDescription
TRUEevaluated 85042 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 64512 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
64512-85042
658 indices[--borderHead] = index + 4;-
659 indices[--borderHead] = index + 2;-
660 indices[borderTail++] = index + 3;-
661 indices[borderTail++] = index + 5;-
662 }
executed 85042 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
85042
663-
664 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 2644 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 146910 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
2644-146910
665 indices[--innerAAHead] = index + 2;-
666 indices[--innerAAHead] = index;-
667 indices[innerAATail++] = index + 1;-
668 indices[innerAATail++] = index + 3;-
669-
670 float dp = part == 1 ? qMin(0.0f, length - innerEdge - delta) : qMax(0.0f, delta - innerEdge);
part == 1Description
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
1322
671 smoothVertices[index++].set(innerEdge, innerSecondaryEnd, fillColor, dp, secondaryLength - innerSecondaryEnd - delta, m_gradient_is_vertical);-
672 smoothVertices[index++].set(innerEdge, innerSecondaryStart, fillColor, dp, delta - innerSecondaryStart, m_gradient_is_vertical);-
673-
674 if (penWidth) {
penWidthDescription
TRUEevaluated 832 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
FALSEevaluated 1812 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
832-1812
675 smoothVertices[index++].set(innerEdge, innerSecondaryEnd, borderColor, 0.49f * penWidth * part, 0.49f * penWidth, m_gradient_is_vertical);-
676 smoothVertices[index++].set(innerEdge, innerSecondaryStart, borderColor, 0.49f * penWidth * part, -0.49f * penWidth, m_gradient_is_vertical);-
677 smoothVertices[index++].set(outerEdge, outerSecondaryEnd, borderColor, -0.49f * penWidth * part, -0.49f * penWidth, m_gradient_is_vertical);-
678 smoothVertices[index++].set(outerEdge, outerSecondaryStart, borderColor, -0.49f * penWidth * part, 0.49f * penWidth, m_gradient_is_vertical);-
679 smoothVertices[index++].set(outerEdge, outerSecondaryEnd, transparent, delta * part, delta, m_gradient_is_vertical);-
680 smoothVertices[index++].set(outerEdge, outerSecondaryStart, transparent, delta * part, -delta, m_gradient_is_vertical);-
681-
682 indices[--outerAAHead] = index - 2;-
683 indices[--outerAAHead] = index - 4;-
684 indices[outerAATail++] = index - 3;-
685 indices[outerAATail++] = index - 1;-
686 } else {
executed 832 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
832
687 smoothVertices[index++].set(innerEdge, innerSecondaryEnd, transparent, delta * part, delta, m_gradient_is_vertical);-
688 smoothVertices[index++].set(innerEdge, innerSecondaryStart, transparent, delta * part, -delta, m_gradient_is_vertical);-
689 }
executed 1812 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
1812
690 } else {-
691 vertices[index++].set(innerEdge, innerSecondaryEnd, fillColor, m_gradient_is_vertical);-
692 vertices[index++].set(innerEdge, innerSecondaryStart, fillColor, m_gradient_is_vertical);-
693 if (penWidth) {
penWidthDescription
TRUEevaluated 84210 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 62700 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
62700-84210
694 vertices[index++].set(innerEdge, innerSecondaryEnd, borderColor, m_gradient_is_vertical);-
695 vertices[index++].set(innerEdge, innerSecondaryStart, borderColor, m_gradient_is_vertical);-
696 vertices[index++].set(outerEdge, outerSecondaryEnd, borderColor, m_gradient_is_vertical);-
697 vertices[index++].set(outerEdge, outerSecondaryStart, borderColor, m_gradient_is_vertical);-
698 }
executed 84210 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
84210
699 }
executed 146910 times by 65 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
146910
700 }-
701 Q_ASSERT(index == vertexCount);-
702-
703 // Close the triangle strips.-
704 if (m_antialiasing) {
m_antialiasingDescription
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 73455 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1322-73455
705 indices[--innerAAHead] = indices[innerAATail - 1];-
706 indices[--innerAAHead] = indices[innerAATail - 2];-
707 Q_ASSERT(innerAATail <= indexCount);-
708 }
executed 1322 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
1322
709 if (penWidth) {
penWidthDescription
TRUEevaluated 42521 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 32256 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
32256-42521
710 indices[--borderHead] = indices[borderTail - 1];-
711 indices[--borderHead] = indices[borderTail - 2];-
712 Q_ASSERT(borderTail <= indexCount);-
713 }
executed 42521 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
42521
714 if (m_antialiasing && penWidth) {
m_antialiasingDescription
TRUEevaluated 1322 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_scenegraph
FALSEevaluated 73455 times by 65 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
1322-73455
715 indices[--outerAAHead] = indices[outerAATail - 1];-
716 indices[--outerAAHead] = indices[outerAATail - 2];-
717 Q_ASSERT(outerAATail == indexCount);-
718 }
executed 416 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
416
719 }
executed 74777 times by 65 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • tst_qquickimageparticle
  • tst_qquickitem
  • ...
74777
720}-
721-
722QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0