OpenCoverage

qquickrectangle.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickrectangle.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5QQuickPen::QQuickPen(QObject *parent)-
6 : QObject(parent)-
7 , m_width(1)-
8 , m_color(Qt::black)-
9 , m_aligned(true)-
10 , m_valid(false)-
11{-
12}
executed 53997 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
53997
13-
14qreal QQuickPen::width() const-
15{-
16 return
executed 44924 times by 20 tests: return m_width;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
m_width;
executed 44924 times by 20 tests: return m_width;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
44924
17}-
18-
19void QQuickPen::setWidth(qreal w)-
20{-
21 if (m_width == w
m_width == wDescription
TRUEevaluated 44038 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
FALSEevaluated 1152 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktextedit
&& m_valid
m_validDescription
TRUEevaluated 2022 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquicklistview
FALSEevaluated 42016 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
)
1152-44038
22 return;
executed 2022 times by 3 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquicklistview
2022
23-
24 m_width = w;-
25 m_valid = m_color.alpha()
m_color.alpha()Description
TRUEevaluated 43168 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
&& (qRound(m_width) >= 1
qRound(m_width) >= 1Description
TRUEevaluated 43164 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
|| (!m_aligned
!m_alignedDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanimations
&& m_width > 0
m_width > 0Description
TRUEnever evaluated
FALSEnever evaluated
));
0-43168
26 static_cast<QQuickItem*>(parent())->update();-
27 penChanged();-
28}
executed 43168 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
43168
29-
30QColor QQuickPen::color() const-
31{-
32 return
executed 44838 times by 17 tests: return m_color;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
m_color;
executed 44838 times by 17 tests: return m_color;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
44838
33}-
34-
35void QQuickPen::setColor(const QColor &c)-
36{-
37 m_color = c;-
38 m_valid = m_color.alpha()
m_color.alpha()Description
TRUEevaluated 12275 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 272 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
&& (qRound(m_width) >= 1
qRound(m_width) >= 1Description
TRUEevaluated 12275 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
|| (!m_aligned
!m_alignedDescription
TRUEnever evaluated
FALSEnever evaluated
&& m_width > 0
m_width > 0Description
TRUEnever evaluated
FALSEnever evaluated
));
0-12275
39 static_cast<QQuickItem*>(parent())->update();-
40 penChanged();-
41}
executed 12547 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
12547
42-
43bool QQuickPen::pixelAligned() const-
44{-
45 return
executed 44269 times by 16 tests: return m_aligned;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
m_aligned;
executed 44269 times by 16 tests: return m_aligned;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlenginedebugservice
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
44269
46}-
47-
48void QQuickPen::setPixelAligned(bool aligned)-
49{-
50 if (aligned == m_aligned
aligned == m_alignedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
51 return;
never executed: return;
0
52 m_aligned = aligned;-
53 m_valid = m_color.alpha()
m_color.alpha()Description
TRUEnever evaluated
FALSEnever evaluated
&& (qRound(m_width) >= 1
qRound(m_width) >= 1Description
TRUEnever evaluated
FALSEnever evaluated
|| (!m_aligned
!m_alignedDescription
TRUEnever evaluated
FALSEnever evaluated
&& m_width > 0
m_width > 0Description
TRUEnever evaluated
FALSEnever evaluated
));
0
54 static_cast<QQuickItem*>(parent())->update();-
55 penChanged();-
56}
never executed: end of block
0
57-
58bool QQuickPen::isValid() const-
59{-
60 return
executed 44519 times by 15 tests: return m_valid;
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
m_valid;
executed 44519 times by 15 tests: return m_valid;
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
44519
61}-
62QQuickGradientStop::QQuickGradientStop(QObject *parent)-
63 : QObject(parent)-
64{-
65}
executed 1310 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
1310
66-
67qreal QQuickGradientStop::position() const-
68{-
69 return
executed 2258 times by 7 tests: return m_position;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
m_position;
executed 2258 times by 7 tests: return m_position;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
2258
70}-
71-
72void QQuickGradientStop::setPosition(qreal position)-
73{-
74 m_position = position; updateGradient();-
75}
executed 1312 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
1312
76-
77QColor QQuickGradientStop::color() const-
78{-
79 return
executed 1396 times by 7 tests: return m_color;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
m_color;
executed 1396 times by 7 tests: return m_color;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
1396
80}-
81-
82void QQuickGradientStop::setColor(const QColor &color)-
83{-
84 m_color = color; updateGradient();-
85}
executed 1630 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
1630
86-
87void QQuickGradientStop::updateGradient()-
88{-
89 if (QQuickGradient *grad = qobject_cast<QQuickGradient*>(parent())
QQuickGradient...nt*>(parent())Description
TRUEevaluated 2942 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEnever evaluated
)
0-2942
90 grad->doUpdate();
executed 2942 times by 7 tests: grad->doUpdate();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
2942
91}
executed 2942 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
2942
92QQuickGradient::QQuickGradient(QObject *parent)-
93: QObject(parent)-
94{-
95}
executed 604 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
604
96-
97QQuickGradient::~QQuickGradient()-
98{-
99}-
100-
101QQmlListProperty<QQuickGradientStop> QQuickGradient::stops()-
102{-
103 return
executed 588 times by 7 tests: return QQmlListProperty<QQuickGradientStop>(this, m_stops);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
QQmlListProperty<QQuickGradientStop>(this, m_stops);
executed 588 times by 7 tests: return QQmlListProperty<QQuickGradientStop>(this, m_stops);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
588
104}-
105void QQuickGradient::setOrientation(Orientation orientation)-
106{-
107 if (m_orientation == orientation
m_orientation == orientationDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
108 return;
never executed: return;
0
109-
110 m_orientation = orientation;-
111 orientationChanged();-
112 updated();-
113}
never executed: end of block
0
114-
115QGradientStops QQuickGradient::gradientStops() const-
116{-
117 QGradientStops stops;-
118 for (int i = 0; i < m_stops.size()
i < m_stops.size()Description
TRUEevaluated 1252 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 562 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
; ++i){
562-1252
119 int j = 0;-
120 while (j < stops.size()
j < stops.size()Description
TRUEevaluated 1002 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 1250 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
&& stops.at(j).first < m_stops[i]->position()
stops.at(j).fi...i]->position()Description
TRUEevaluated 1000 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
)
2-1250
121 j++;
executed 1000 times by 7 tests: j++;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
1000
122 stops.insert(j, QGradientStop(m_stops.at(i)->position(), m_stops.at(i)->color()));-
123 }
executed 1252 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
1252
124 return
executed 562 times by 7 tests: return stops;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
stops;
executed 562 times by 7 tests: return stops;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
562
125}-
126-
127void QQuickGradient::doUpdate()-
128{-
129 updated();-
130}
executed 2942 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquickshape
  • tst_qquicktaphandler
  • tst_scenegraph
2942
131-
132int QQuickRectanglePrivate::doUpdateSlotIdx = -1;-
133QQuickRectangle::QQuickRectangle(QQuickItem *parent)-
134: QQuickItem(*(new QQuickRectanglePrivate), parent)-
135{-
136 setFlag(ItemHasContents);-
137-
138 setAcceptTouchEvents(false);-
139-
140}
executed 94806 times by 86 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • ...
94806
141-
142void QQuickRectangle::doUpdate()-
143{-
144 update();-
145}
executed 754 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktaphandler
754
146QQuickPen *QQuickRectangle::border()-
147{-
148 QQuickRectanglePrivate * const d = d_func();-
149 if (!d->pen
!d->penDescription
TRUEevaluated 53997 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 100 times by 6 tests
Evaluated by:
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquicklistview
  • tst_qquickstates
) {
100-53997
150 d->pen = new QQuickPen;-
151 QQml_setParent_noEvent(d->pen, this);-
152 }
executed 53997 times by 22 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
53997
153 return
executed 54097 times by 22 tests: return d->pen;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
d->pen;
executed 54097 times by 22 tests: return d->pen;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
54097
154}-
155QQuickGradient *QQuickRectangle::gradient() const-
156{-
157 const QQuickRectanglePrivate * const d = d_func();-
158 return
executed 42 times by 3 tests: return d->gradient;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickrectangle
d->gradient;
executed 42 times by 3 tests: return d->gradient;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickrectangle
42
159}-
160-
161void QQuickRectangle::setGradient(QQuickGradient *gradient)-
162{-
163 QQuickRectanglePrivate * const d = d_func();-
164 if (d->gradient == gradient
d->gradient == gradientDescription
TRUEnever evaluated
FALSEevaluated 578 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
)
0-578
165 return;
never executed: return;
0
166 static int updatedSignalIdx = -1;-
167 if (updatedSignalIdx < 0
updatedSignalIdx < 0Description
TRUEevaluated 14 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 564 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
)
14-564
168 updatedSignalIdx = QMetaMethod::fromSignal(&QQuickGradient::updated).methodIndex();
executed 14 times by 7 tests: updatedSignalIdx = QMetaMethod::fromSignal(&QQuickGradient::updated).methodIndex();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
14
169 if (d->doUpdateSlotIdx < 0
d->doUpdateSlotIdx < 0Description
TRUEevaluated 14 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 564 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
)
14-564
170 d->doUpdateSlotIdx = QQuickRectangle::staticMetaObject.indexOfSlot("doUpdate()");
executed 14 times by 7 tests: d->doUpdateSlotIdx = QQuickRectangle::staticMetaObject.indexOfSlot("doUpdate()");
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
14
171 if (d->gradient
d->gradientDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrectangle
FALSEevaluated 576 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
)
2-576
172 QMetaObject::disconnect(d->gradient, updatedSignalIdx, this, d->doUpdateSlotIdx);
executed 2 times by 1 test: QMetaObject::disconnect(d->gradient, updatedSignalIdx, this, d->doUpdateSlotIdx);
Executed by:
  • tst_qquickrectangle
2
173 d->gradient = gradient;-
174 if (d->gradient
d->gradientDescription
TRUEevaluated 576 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickrectangle
)
2-576
175 QMetaObject::connect(d->gradient, updatedSignalIdx, this, d->doUpdateSlotIdx);
executed 576 times by 7 tests: QMetaObject::connect(d->gradient, updatedSignalIdx, this, d->doUpdateSlotIdx);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
576
176 update();-
177}
executed 578 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdesignersupport
  • tst_qquickitemlayer
  • tst_qquickrectangle
  • tst_qquicktaphandler
  • tst_scenegraph
578
178-
179void QQuickRectangle::resetGradient()-
180{-
181 setGradient(nullptr);-
182}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickrectangle
2
183qreal QQuickRectangle::radius() const-
184{-
185 const QQuickRectanglePrivate * const d = d_func();-
186 return
executed 4384 times by 5 tests: return d->radius;
Executed by:
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquickmultipointtoucharea
  • tst_qquickstates
  • tst_qquicktaphandler
d->radius;
executed 4384 times by 5 tests: return d->radius;
Executed by:
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquickmultipointtoucharea
  • tst_qquickstates
  • tst_qquicktaphandler
4384
187}-
188-
189void QQuickRectangle::setRadius(qreal radius)-
190{-
191 QQuickRectanglePrivate * const d = d_func();-
192 if (d->radius == radius
d->radius == radiusDescription
TRUEevaluated 388 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitem2
  • tst_qquicktaphandler
FALSEevaluated 2830 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
)
388-2830
193 return;
executed 388 times by 4 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitem2
  • tst_qquicktaphandler
388
194-
195 d->radius = radius;-
196 d->setImplicitAntialiasing(radius != 0.0);-
197-
198 update();-
199 radiusChanged();-
200}
executed 2830 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpositioners
  • tst_qquickrectangle
  • tst_qquickstates
  • tst_qquicktaphandler
2830
201QColor QQuickRectangle::color() const-
202{-
203 const QQuickRectanglePrivate * const d = d_func();-
204 return
executed 764 times by 15 tests: return d->color;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfocusscope
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_scenegraph
d->color;
executed 764 times by 15 tests: return d->color;
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlenginedebugservice
  • tst_qqmlqt
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfocusscope
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_scenegraph
764
205}-
206-
207void QQuickRectangle::setColor(const QColor &c)-
208{-
209 QQuickRectanglePrivate * const d = d_func();-
210 if (d->color == c
d->color == cDescription
TRUEevaluated 55888 times by 27 tests
Evaluated by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
FALSEevaluated 36295 times by 77 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
)
36295-55888
211 return;
executed 55888 times by 27 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
55888
212-
213 d->color = c;-
214 update();-
215 colorChanged();-
216}
executed 36295 times by 77 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
36295
217-
218QSGNode *QQuickRectangle::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)-
219{-
220 (void)data;;-
221 QQuickRectanglePrivate * const d = d_func();-
222-
223 if (width() <= 0
width() <= 0Description
TRUEevaluated 840 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 78799 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
  • ...
|| height() <= 0
height() <= 0Description
TRUEevaluated 100 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 78699 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
  • ...
100-78799
224 || (d->color.alpha() == 0
d->color.alpha() == 0Description
TRUEevaluated 2285 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktextedit
FALSEevaluated 76414 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
  • ...
&& (!d->pen
!d->penDescription
TRUEevaluated 1720 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 565 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktaphandler
  • tst_qquicktextedit
|| d->pen->width() == 0
d->pen->width() == 0Description
TRUEnever evaluated
FALSEevaluated 565 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktaphandler
  • tst_qquicktextedit
|| d->pen->color().alpha() == 0
d->pen->color().alpha() == 0Description
TRUEnever evaluated
FALSEevaluated 565 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktaphandler
  • tst_qquicktextedit
))) {
0-76414
225 delete oldNode;-
226 return
executed 2660 times by 10 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
nullptr;
executed 2660 times by 10 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktextedit
  • tst_qquicktextinput
2660
227 }-
228-
229 QSGInternalRectangleNode *rectangle = static_cast<QSGInternalRectangleNode *>(oldNode);-
230 if (!rectangle
!rectangleDescription
TRUEevaluated 71757 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 5222 times by 18 tests
Evaluated by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickanimationcontroller
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickwidget
  • tst_scenegraph
) rectangle = d->sceneGraphContext()->createInternalRectangleNode();
executed 71757 times by 66 tests: rectangle = d->sceneGraphContext()->createInternalRectangleNode();
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
  • ...
5222-71757
231-
232 rectangle->setRect(QRectF(0, 0, width(), height()));-
233 rectangle->setColor(d->color);-
234-
235 if (d->pen
d->penDescription
TRUEevaluated 44519 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
FALSEevaluated 32460 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
  • ...
&& d->pen->isValid()
d->pen->isValid()Description
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
FALSEevaluated 254 times by 2 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickmultipointtoucharea
) {
254-44519
236 rectangle->setPenColor(d->pen->color());-
237 rectangle->setPenWidth(d->pen->width());-
238 rectangle->setAligned(d->pen->pixelAligned());-
239 }
executed 44265 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
else {
44265
240 rectangle->setPenWidth(0);-
241 }
executed 32714 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
  • ...
32714
242-
243 rectangle->setRadius(d->radius);-
244 rectangle->setAntialiasing(antialiasing());-
245-
246 QGradientStops stops;-
247 bool vertical = true;-
248 if (d->gradient
d->gradientDescription
TRUEevaluated 533 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
FALSEevaluated 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
  • ...
) {
533-76446
249 stops = d->gradient->gradientStops();-
250 vertical = d->gradient->orientation() == QQuickGradient::Vertical;-
251 }
executed 533 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickitemlayer
  • tst_qquicktaphandler
  • tst_scenegraph
533
252 rectangle->setGradientStops(stops);-
253 rectangle->setGradientVertical(vertical);-
254-
255 rectangle->update();-
256-
257 return
executed 76979 times by 66 tests: return rectangle;
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
  • ...
rectangle;
executed 76979 times by 66 tests: return rectangle;
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
258}-
259-
260-
261-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0