OpenCoverage

qquicktext.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquicktext.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9extern const QLoggingCategory &DBG_HOVER_TRACE();-
10-
11const QChar QQuickTextPrivate::elideChar = QChar(0x2026);-
12-
13QQuickTextPrivate::QQuickTextPrivate()-
14 : fontInfo(font), elideLayout(nullptr), textLine(nullptr), lineWidth(0)-
15 , color(0xFF000000), linkColor(0xFF0000FF), styleColor(0xFF000000)-
16 , lineCount(1), multilengthEos(-1)-
17 , elideMode(QQuickText::ElideNone), hAlign(QQuickText::AlignLeft), vAlign(QQuickText::AlignTop)-
18 , format(QQuickText::AutoText), wrapMode(QQuickText::NoWrap)-
19 , style(QQuickText::Normal)-
20 , renderType(QQuickTextUtil::textRenderType<QQuickText>())-
21 , updateType(UpdatePaintNode)-
22 , maximumLineCountValid(false), updateOnComponentComplete(true), richText(false)-
23 , styledText(false), widthExceeded(false), heightExceeded(false), internalWidthUpdate(false)-
24 , requireImplicitSize(false), implicitWidthValid(false), implicitHeightValid(false)-
25 , truncated(false), hAlignImplicit(true), rightToLeftText(false)-
26 , layoutTextElided(false), textHasChanged(true), needToUpdateLayout(false), formatModifiesFontSize(false)-
27 , polishSize(false)-
28 , updateSizeRecursionGuard(false)-
29{-
30 implicitAntialiasing = true;-
31}
executed 264678 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264678
32-
33QQuickTextPrivate::ExtraData::ExtraData()-
34 : padding(0)-
35 , topPadding(0)-
36 , leftPadding(0)-
37 , rightPadding(0)-
38 , bottomPadding(0)-
39 , explicitTopPadding(false)-
40 , explicitLeftPadding(false)-
41 , explicitRightPadding(false)-
42 , explicitBottomPadding(false)-
43 , lineHeight(1.0)-
44 , doc(nullptr)-
45 , minimumPixelSize(12)-
46 , minimumPointSize(12)-
47 , nbActiveDownloads(0)-
48 , maximumLineCount(0x7fffffff)-
49 , lineHeightValid(false)-
50 , lineHeightMode(QQuickText::ProportionalHeight)-
51 , fontSizeMode(QQuickText::FixedSize)-
52{-
53}
executed 330 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
330
54-
55void QQuickTextPrivate::init()-
56{-
57 QQuickText * const q = q_func();-
58 q->setAcceptedMouseButtons(Qt::LeftButton);-
59 q->setFlag(QQuickItem::ItemHasContents);-
60}
executed 264678 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264678
61-
62QQuickTextPrivate::~QQuickTextPrivate()-
63{-
64 delete elideLayout;-
65 delete textLine; textLine = nullptr;-
66-
67 if (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 328 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 264286 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
328-264286
68 qDeleteAll(extra->imgTags);-
69 extra->imgTags.clear();-
70 }
executed 328 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
328
71}
executed 264614 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
264614
72-
73qreal QQuickTextPrivate::getImplicitWidth() const-
74{-
75 if (!requireImplicitSize
!requireImplicitSizeDescription
TRUEevaluated 148 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 1012 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
) {
148-1012
76-
77-
78 QQuickTextPrivate *me = const_cast<QQuickTextPrivate*>(this);-
79 me->requireImplicitSize = true;-
80 me->updateSize();-
81 }
executed 148 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
148
82 return
executed 1160 times by 6 tests: return implicitWidth;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
implicitWidth;
executed 1160 times by 6 tests: return implicitWidth;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
1160
83}-
84-
85qreal QQuickTextPrivate::getImplicitHeight() const-
86{-
87 if (!requireImplicitSize
!requireImplicitSizeDescription
TRUEevaluated 190 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktext
FALSEevaluated 750 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
) {
190-750
88 QQuickTextPrivate *me = const_cast<QQuickTextPrivate*>(this);-
89 me->requireImplicitSize = true;-
90 me->updateSize();-
91 }
executed 190 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicktext
190
92 return
executed 940 times by 5 tests: return implicitHeight;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
implicitHeight;
executed 940 times by 5 tests: return implicitHeight;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
940
93}-
94-
95qreal QQuickTextPrivate::availableWidth() const-
96{-
97 const QQuickText * const q = q_func();-
98 return
executed 1097384 times by 33 tests: return q->width() - q->leftPadding() - q->rightPadding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
q->width() - q->leftPadding() - q->rightPadding();
executed 1097384 times by 33 tests: return q->width() - q->leftPadding() - q->rightPadding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
1097384
99}-
100-
101qreal QQuickTextPrivate::availableHeight() const-
102{-
103 const QQuickText * const q = q_func();-
104 return
executed 1100576 times by 33 tests: return q->height() - q->topPadding() - q->bottomPadding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
q->height() - q->topPadding() - q->bottomPadding();
executed 1100576 times by 33 tests: return q->height() - q->topPadding() - q->bottomPadding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
1100576
105}-
106-
107void QQuickTextPrivate::setTopPadding(qreal value, bool reset)-
108{-
109 QQuickText * const q = q_func();-
110 qreal oldPadding = q->topPadding();-
111 if (!reset
!resetDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
|| extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-32
112 extra.value().topPadding = value;-
113 extra.value().explicitTopPadding = !reset;-
114 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquicktext
34
115 if ((!reset
!resetDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !qFuzzyCompare(oldPadding, value)
!qFuzzyCompare...adding, value)Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) || (reset
resetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& !qFuzzyCompare(oldPadding, padding())
!qFuzzyCompare...ng, padding())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)) {
0-32
116 updateSize();-
117 q->topPaddingChanged();-
118 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquicktext
34
119}
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquicktext
34
120-
121void QQuickTextPrivate::setLeftPadding(qreal value, bool reset)-
122{-
123 QQuickText * const q = q_func();-
124 qreal oldPadding = q->leftPadding();-
125 if (!reset
!resetDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
|| extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-4
126 extra.value().leftPadding = value;-
127 extra.value().explicitLeftPadding = !reset;-
128 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
129 if ((!reset
!resetDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !qFuzzyCompare(oldPadding, value)
!qFuzzyCompare...adding, value)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) || (reset
resetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& !qFuzzyCompare(oldPadding, padding())
!qFuzzyCompare...ng, padding())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)) {
0-4
130 updateSize();-
131 q->leftPaddingChanged();-
132 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
133}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
134-
135void QQuickTextPrivate::setRightPadding(qreal value, bool reset)-
136{-
137 QQuickText * const q = q_func();-
138 qreal oldPadding = q->rightPadding();-
139 if (!reset
!resetDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
|| extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-4
140 extra.value().rightPadding = value;-
141 extra.value().explicitRightPadding = !reset;-
142 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
143 if ((!reset
!resetDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !qFuzzyCompare(oldPadding, value)
!qFuzzyCompare...adding, value)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) || (reset
resetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& !qFuzzyCompare(oldPadding, padding())
!qFuzzyCompare...ng, padding())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)) {
0-4
144 updateSize();-
145 q->rightPaddingChanged();-
146 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
147}
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
148-
149void QQuickTextPrivate::setBottomPadding(qreal value, bool reset)-
150{-
151 QQuickText * const q = q_func();-
152 qreal oldPadding = q->bottomPadding();-
153 if (!reset
!resetDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
|| extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-32
154 extra.value().bottomPadding = value;-
155 extra.value().explicitBottomPadding = !reset;-
156 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquicktext
34
157 if ((!reset
!resetDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !qFuzzyCompare(oldPadding, value)
!qFuzzyCompare...adding, value)Description
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) || (reset
resetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& !qFuzzyCompare(oldPadding, padding())
!qFuzzyCompare...ng, padding())Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)) {
0-32
158 updateSize();-
159 q->bottomPaddingChanged();-
160 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquicktext
34
161}
executed 34 times by 1 test: end of block
Executed by:
  • tst_qquicktext
34
162void QQuickText::q_updateLayout()-
163{-
164 QQuickTextPrivate * const d = d_func();-
165 d->updateLayout();-
166}
never executed: end of block
0
167-
168void QQuickTextPrivate::updateLayout()-
169{-
170 QQuickText * const q = q_func();-
171 if (!q->isComponentComplete()
!q->isComponentComplete()Description
TRUEevaluated 254122 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 472713 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
) {
254122-472713
172 updateOnComponentComplete = true;-
173 return;
executed 254122 times by 33 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
254122
174 }-
175 updateOnComponentComplete = false;-
176 layoutTextElided = false;-
177-
178 if (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 840 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 471873 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
)
840-471873
179 extra->visibleImgTags.clear();
executed 840 times by 2 tests: extra->visibleImgTags.clear();
Executed by:
  • tst_examples
  • tst_qquicktext
840
180 needToUpdateLayout = false;-
181-
182-
183 if (!richText
!richTextDescription
TRUEevaluated 472429 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 284 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
284-472429
184 if (textHasChanged
textHasChangedDescription
TRUEevaluated 470811 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 1618 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquicktext
  • tst_qquicktextedit
) {
1618-470811
185 if (styledText
styledTextDescription
TRUEevaluated 1992 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 468819 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
&& !text.isEmpty()
!text.isEmpty()Description
TRUEevaluated 1988 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
4-468819
186 layout.setFont(font);-
187-
188 bool fontSizeModified = false;-
189 QList<QQuickStyledTextImgTag*> someImgTags = extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 1930 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
? extra->imgTags : QList<QQuickStyledTextImgTag*>();
58-1930
190 QQuickStyledText::parse(text, layout, someImgTags, q->baseUrl(), qmlContext(q), !maximumLineCountValid, &fontSizeModified);-
191 if (someImgTags.size()
someImgTags.size()Description
TRUEevaluated 80 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 1908 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
|| extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 1886 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
)
22-1908
192 extra.value().imgTags = someImgTags;
executed 102 times by 2 tests: extra.value().imgTags = someImgTags;
Executed by:
  • tst_examples
  • tst_qquicktext
102
193 formatModifiesFontSize = fontSizeModified;-
194 multilengthEos = -1;-
195 }
executed 1988 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
else {
1988
196 QString tmp = text;-
197 multilengthEos = tmp.indexOf(QLatin1Char('\x9c'));-
198 if (multilengthEos != -1
multilengthEos != -1Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 468811 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
)
12-468811
199 tmp = tmp.mid(0, multilengthEos);
executed 12 times by 1 test: tmp = tmp.mid(0, multilengthEos);
Executed by:
  • tst_qquicktext
12
200 tmp.replace(QLatin1Char('\n'), QChar::LineSeparator);-
201 layout.setText(tmp);-
202 }
executed 468823 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
468823
203 textHasChanged = false;-
204 }
executed 470811 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
470811
205 }
executed 472429 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
else if (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 284 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
&& extra->lineHeightValid
extra->lineHeightValidDescription
TRUEnever evaluated
FALSEevaluated 284 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
0-472429
206 ensureDoc();-
207 QTextBlockFormat::LineHeightTypes type;-
208 type = lineHeightMode() == QQuickText::FixedHeight
lineHeightMode...t::FixedHeightDescription
TRUEnever evaluated
FALSEnever evaluated
? QTextBlockFormat::FixedHeight : QTextBlockFormat::ProportionalHeight;
0
209 QTextBlockFormat blockFormat;-
210 blockFormat.setLineHeight((lineHeightMode() == QQuickText::FixedHeight ? lineHeight() : lineHeight() * 100), type);-
211 for (QTextBlock it = extra->doc->begin(); it != extra->doc->end()
it != extra->doc->end()Description
TRUEnever evaluated
FALSEnever evaluated
; it = it.next()) {
0
212 QTextCursor cursor(it);-
213 cursor.mergeBlockFormat(blockFormat);-
214 }
never executed: end of block
0
215 }
never executed: end of block
0
216-
217 updateSize();-
218-
219 if (needToUpdateLayout
needToUpdateLayoutDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 472711 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
) {
2-472711
220 needToUpdateLayout = false;-
221 textHasChanged = true;-
222 updateLayout();-
223 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
224-
225 q->polish();-
226}
executed 472713 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
472713
227-
228void QQuickText::imageDownloadFinished()-
229{-
230 QQuickTextPrivate * const d = d_func();-
231-
232 (d->extra->nbActiveDownloads)--;-
233-
234-
235-
236-
237-
238 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
&& d->extra->nbActiveDownloads == 0
d->extra->nbAc...Downloads == 0Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
) {
0-10
239 bool needToUpdateLayout = false;-
240 for (QQuickStyledTextImgTag *img : qAsConst(d->extra->visibleImgTags)) {-
241 if (!img->size.isValid()
!img->size.isValid()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
) {
2-8
242 img->size = img->pix->implicitSize();-
243 needToUpdateLayout = true;-
244 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
8
245 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
10
246-
247 if (needToUpdateLayout
needToUpdateLayoutDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
) {
2-8
248 d->textHasChanged = true;-
249 d->updateLayout();-
250 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else {
8
251 d->updateType = QQuickTextPrivate::UpdatePaintNode;-
252 update();-
253 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_examples
2
254 }-
255}
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
10
256-
257void QQuickTextPrivate::updateBaseline(qreal baseline, qreal dy)-
258{-
259 QQuickText * const q = q_func();-
260-
261 qreal yoff = 0;-
262-
263 if (q->heightValid()
q->heightValid()Description
TRUEevaluated 3660 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 469367 times by 34 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
) {
3660-469367
264 if (vAlign == QQuickText::AlignBottom
vAlign == QQui...t::AlignBottomDescription
TRUEevaluated 90 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 3570 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
)
90-3570
265 yoff = dy;
executed 90 times by 1 test: yoff = dy;
Executed by:
  • tst_qquicktext
90
266 else if (vAlign == QQuickText::AlignVCenter
vAlign == QQui...::AlignVCenterDescription
TRUEevaluated 409 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
FALSEevaluated 3161 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
)
409-3161
267 yoff = dy/2;
executed 409 times by 4 tests: yoff = dy/2;
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
409
268 }
executed 3660 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
3660
269-
270 q->setBaselineOffset(baseline + yoff + q->topPadding());-
271}
executed 473027 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
473027
272-
273void QQuickTextPrivate::updateSize()-
274{-
275 QQuickText * const q = q_func();-
276-
277 if (!q->isComponentComplete()
!q->isComponentComplete()Description
TRUEevaluated 366 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
FALSEevaluated 473027 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
) {
366-473027
278 updateOnComponentComplete = true;-
279 return;
executed 366 times by 4 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
366
280 }-
281-
282 if (!requireImplicitSize
!requireImplicitSizeDescription
TRUEevaluated 472501 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 526 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
) {
526-472501
283 implicitWidthChanged();-
284 implicitHeightChanged();-
285-
286 if (requireImplicitSize
requireImplicitSizeDescription
TRUEnever evaluated
FALSEevaluated 472501 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
)
0-472501
287 return;
never executed: return;
0
288 }
executed 472501 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
472501
289-
290 qreal hPadding = q->leftPadding() + q->rightPadding();-
291 qreal vPadding = q->topPadding() + q->bottomPadding();-
292-
293 if (text.isEmpty()
text.isEmpty()Description
TRUEevaluated 48685 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 424342 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& !isLineLaidOutConnected()
!isLineLaidOutConnected()Description
TRUEevaluated 48677 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
&& fontSizeMode() == QQuickText::FixedSize
fontSizeMode()...ext::FixedSizeDescription
TRUEevaluated 48669 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
8-424342
294-
295-
296-
297-
298 QFontMetricsF fm(font);-
299 qreal fontHeight = qCeil(fm.height());-
300 if (!richText
!richTextDescription
TRUEevaluated 48625 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
44-48625
301 fontHeight = lineHeightMode() == QQuickText::FixedHeight
lineHeightMode...t::FixedHeightDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 48609 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
16-48609
302 ? lineHeight()-
303 : fontHeight * lineHeight();-
304 }
executed 48625 times by 18 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
48625
305 updateBaseline(fm.ascent(), q->height() - fontHeight - vPadding);-
306 q->setImplicitSize(hPadding, fontHeight + vPadding);-
307 layedOutTextRect = QRectF(0, 0, 0, fontHeight);-
308 advance = QSizeF();-
309 q->contentSizeChanged();-
310 updateType = UpdatePaintNode;-
311 q->update();-
312 return;
executed 48669 times by 18 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
48669
313 }-
314-
315 QSizeF size(0, 0);-
316 QSizeF previousSize = layedOutTextRect.size();-
317-
318-
319 if (!richText
!richTextDescription
TRUEevaluated 424062 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 296 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
296-424062
320 qreal baseline = 0;-
321 QRectF textRect = setupTextLayout(&baseline);-
322-
323 if (internalWidthUpdate
internalWidthUpdateDescription
TRUEnever evaluated
FALSEevaluated 424062 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
)
0-424062
324 return;
never executed: return;
0
325-
326 layedOutTextRect = textRect;-
327 size = textRect.size();-
328 updateBaseline(baseline, q->height() - size.height() - vPadding);-
329 }
executed 424062 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
else {
424062
330 widthExceeded = true;-
331 heightExceeded = false;-
332 ensureDoc();-
333 extra->doc->setDefaultFont(font);-
334 QQuickText::HAlignment horizontalAlignment = q->effectiveHAlign();-
335 if (rightToLeftText
rightToLeftTextDescription
TRUEevaluated 56 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 240 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
56-240
336 if (horizontalAlignment == QQuickText::AlignLeft
horizontalAlig...ext::AlignLeftDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 54 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
2-54
337 horizontalAlignment = QQuickText::AlignRight;
executed 2 times by 1 test: horizontalAlignment = QQuickText::AlignRight;
Executed by:
  • tst_qquicktext
2
338 else if (horizontalAlignment == QQuickText::AlignRight
horizontalAlig...xt::AlignRightDescription
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
)
0-54
339 horizontalAlignment = QQuickText::AlignLeft;
executed 54 times by 2 tests: horizontalAlignment = QQuickText::AlignLeft;
Executed by:
  • tst_examples
  • tst_qquicktext
54
340 }
executed 56 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
56
341 QTextOption option;-
342 option.setAlignment((Qt::Alignment)int(horizontalAlignment | vAlign));-
343 option.setWrapMode(QTextOption::WrapMode(wrapMode));-
344 option.setUseDesignMetrics(renderType != QQuickText::NativeRendering);-
345 extra->doc->setDefaultTextOption(option);-
346 qreal naturalWidth = 0;-
347 if (requireImplicitSize
requireImplicitSizeDescription
TRUEevaluated 32 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 264 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
6-264
348 extra->doc->setTextWidth(-1);-
349 naturalWidth = extra->doc->idealWidth();-
350 const bool wasInLayout = internalWidthUpdate;-
351 internalWidthUpdate = true;-
352 q->setImplicitWidth(naturalWidth + hPadding);-
353 internalWidthUpdate = wasInLayout;-
354 }
executed 26 times by 1 test: end of block
Executed by:
  • tst_qquicktext
26
355 if (internalWidthUpdate
internalWidthUpdateDescription
TRUEnever evaluated
FALSEevaluated 296 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
0-296
356 return;
never executed: return;
0
357-
358 extra->doc->setPageSize(QSizeF());-
359 if (q->widthValid()
q->widthValid()Description
TRUEevaluated 186 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 110 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
&& (wrapMode != QQuickText::NoWrap
wrapMode != QQuickText::NoWrapDescription
TRUEevaluated 138 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_qquicktext
|| extra->doc->idealWidth() < availableWidth()
extra->doc->id...ailableWidth()Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
))
14-186
360 extra->doc->setTextWidth(availableWidth());
executed 172 times by 2 tests: extra->doc->setTextWidth(availableWidth());
Executed by:
  • tst_examples
  • tst_qquicktext
172
361 else-
362 extra->doc->setTextWidth(extra->doc->idealWidth());
executed 124 times by 2 tests: extra->doc->setTextWidth(extra->doc->idealWidth());
Executed by:
  • tst_examples
  • tst_qquicktext
124
363-
364 QSizeF dsize = extra->doc->size();-
365 layedOutTextRect = QRectF(QPointF(0,0), dsize);-
366 size = QSizeF(extra->doc->idealWidth(),dsize.height());-
367-
368 QFontMetricsF fm(font);-
369 updateBaseline(fm.ascent(), q->height() - size.height() - vPadding);-
370-
371-
372 internalWidthUpdate = true;-
373 qreal oldWidth = q->width();-
374 qreal iWidth = -1;-
375 if (!q->widthValid()
!q->widthValid()Description
TRUEevaluated 110 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 186 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
110-186
376 iWidth = size.width();
executed 110 times by 2 tests: iWidth = size.width();
Executed by:
  • tst_examples
  • tst_qquicktext
110
377 if (iWidth > -1
iWidth > -1Description
TRUEevaluated 110 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 186 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
110-186
378 q->setImplicitSize(iWidth + hPadding, size.height() + vPadding);
executed 110 times by 2 tests: q->setImplicitSize(iWidth + hPadding, size.height() + vPadding);
Executed by:
  • tst_examples
  • tst_qquicktext
110
379 internalWidthUpdate = false;-
380-
381-
382-
383-
384-
385-
386 if (!qFuzzyCompare(q->width(), oldWidth)
!qFuzzyCompare...h(), oldWidth)Description
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 242 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
&& !updateSizeRecursionGuard
!updateSizeRecursionGuardDescription
TRUEevaluated 54 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
) {
0-242
387 updateSizeRecursionGuard = true;-
388 updateSize();-
389 updateSizeRecursionGuard = false;-
390 }
executed 54 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else {
54
391 if (iWidth == -1
iWidth == -1Description
TRUEevaluated 186 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 56 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
56-186
392 q->setImplicitHeight(size.height() + vPadding);
executed 186 times by 2 tests: q->setImplicitHeight(size.height() + vPadding);
Executed by:
  • tst_examples
  • tst_qquicktext
186
393-
394 QTextBlock firstBlock = extra->doc->firstBlock();-
395 while (firstBlock.layout()->lineCount() == 0
firstBlock.lay...neCount() == 0Description
TRUEnever evaluated
FALSEevaluated 242 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
0-242
396 firstBlock = firstBlock.next();
never executed: firstBlock = firstBlock.next();
0
397-
398 QTextBlock lastBlock = extra->doc->lastBlock();-
399 while (lastBlock.layout()->lineCount() == 0
lastBlock.layo...neCount() == 0Description
TRUEnever evaluated
FALSEevaluated 242 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
0-242
400 lastBlock = lastBlock.previous();
never executed: lastBlock = lastBlock.previous();
0
401-
402 if (firstBlock.lineCount() > 0
firstBlock.lineCount() > 0Description
TRUEevaluated 242 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
&& lastBlock.lineCount() > 0
lastBlock.lineCount() > 0Description
TRUEevaluated 242 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
) {
0-242
403 QTextLine firstLine = firstBlock.layout()->lineAt(0);-
404 QTextLine lastLine = lastBlock.layout()->lineAt(lastBlock.layout()->lineCount() - 1);-
405 advance = QSizeF(lastLine.horizontalAdvance(),-
406 (lastLine.y() + lastBlock.layout()->position().y()) - (firstLine.y() + firstBlock.layout()->position().y()));-
407 }
executed 242 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else {
242
408 advance = QSizeF();-
409 }
never executed: end of block
0
410 }-
411 }-
412-
413-
414 if (layedOutTextRect.size() != previousSize
layedOutTextRe...= previousSizeDescription
TRUEevaluated 352163 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 72195 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
)
72195-352163
415 q->contentSizeChanged();
executed 352163 times by 33 tests: q->contentSizeChanged();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
352163
416 updateType = UpdatePaintNode;-
417 q->update();-
418}
executed 424358 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
424358
419-
420QQuickTextLine::QQuickTextLine()-
421 : QObject(), m_line(nullptr), m_height(0), m_lineOffset(0)-
422{-
423}
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquicktext
10
424-
425void QQuickTextLine::setLine(QTextLine *line)-
426{-
427 m_line = line;-
428}
executed 336 times by 1 test: end of block
Executed by:
  • tst_qquicktext
336
429-
430void QQuickTextLine::setLineOffset(int offset)-
431{-
432 m_lineOffset = offset;-
433}
executed 336 times by 1 test: end of block
Executed by:
  • tst_qquicktext
336
434-
435int QQuickTextLine::number() const-
436{-
437 if (m_line
m_lineDescription
TRUEevaluated 448 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-448
438 return
executed 448 times by 1 test: return m_line->lineNumber() + m_lineOffset;
Executed by:
  • tst_qquicktext
m_line->lineNumber() + m_lineOffset;
executed 448 times by 1 test: return m_line->lineNumber() + m_lineOffset;
Executed by:
  • tst_qquicktext
448
439 return
never executed: return 0;
0;
never executed: return 0;
0
440}-
441-
442qreal QQuickTextLine::width() const-
443{-
444 if (m_line
m_lineDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-30
445 return
executed 30 times by 1 test: return m_line->width();
Executed by:
  • tst_qquicktext
m_line->width();
executed 30 times by 1 test: return m_line->width();
Executed by:
  • tst_qquicktext
30
446 return
never executed: return 0;
0;
never executed: return 0;
0
447}-
448-
449void QQuickTextLine::setWidth(qreal width)-
450{-
451 if (m_line
m_lineDescription
TRUEevaluated 646 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-646
452 m_line->setLineWidth(width);
executed 646 times by 1 test: m_line->setLineWidth(width);
Executed by:
  • tst_qquicktext
646
453}
executed 646 times by 1 test: end of block
Executed by:
  • tst_qquicktext
646
454-
455qreal QQuickTextLine::height() const-
456{-
457 if (m_height
m_heightDescription
TRUEnever evaluated
FALSEevaluated 556 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-556
458 return
never executed: return m_height;
m_height;
never executed: return m_height;
0
459 if (m_line
m_lineDescription
TRUEevaluated 556 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-556
460 return
executed 556 times by 1 test: return m_line->height();
Executed by:
  • tst_qquicktext
m_line->height();
executed 556 times by 1 test: return m_line->height();
Executed by:
  • tst_qquicktext
556
461 return
never executed: return 0;
0;
never executed: return 0;
0
462}-
463-
464void QQuickTextLine::setHeight(qreal height)-
465{-
466 if (m_line
m_lineDescription
TRUEevaluated 336 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-336
467 m_line->setPosition(QPointF(m_line->x(), m_line->y() - m_line->height() + height));
executed 336 times by 1 test: m_line->setPosition(QPointF(m_line->x(), m_line->y() - m_line->height() + height));
Executed by:
  • tst_qquicktext
336
468 m_height = height;-
469}
executed 336 times by 1 test: end of block
Executed by:
  • tst_qquicktext
336
470-
471qreal QQuickTextLine::x() const-
472{-
473 if (m_line
m_lineDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
474 return
never executed: return m_line->x();
m_line->x();
never executed: return m_line->x();
0
475 return
never executed: return 0;
0;
never executed: return 0;
0
476}-
477-
478void QQuickTextLine::setX(qreal x)-
479{-
480 if (m_line
m_lineDescription
TRUEevaluated 214 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-214
481 m_line->setPosition(QPointF(x, m_line->y()));
executed 214 times by 1 test: m_line->setPosition(QPointF(x, m_line->y()));
Executed by:
  • tst_qquicktext
214
482}
executed 214 times by 1 test: end of block
Executed by:
  • tst_qquicktext
214
483-
484qreal QQuickTextLine::y() const-
485{-
486 if (m_line
m_lineDescription
TRUEevaluated 466 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-466
487 return
executed 466 times by 1 test: return m_line->y();
Executed by:
  • tst_qquicktext
m_line->y();
executed 466 times by 1 test: return m_line->y();
Executed by:
  • tst_qquicktext
466
488 return
never executed: return 0;
0;
never executed: return 0;
0
489}-
490-
491void QQuickTextLine::setY(qreal y)-
492{-
493 if (m_line
m_lineDescription
TRUEevaluated 574 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-574
494 m_line->setPosition(QPointF(m_line->x(), y));
executed 574 times by 1 test: m_line->setPosition(QPointF(m_line->x(), y));
Executed by:
  • tst_qquicktext
574
495}
executed 574 times by 1 test: end of block
Executed by:
  • tst_qquicktext
574
496-
497bool QQuickTextPrivate::isLineLaidOutConnected()-
498{-
499 QQuickText * const q = q_func();-
500 do { QObject *sender = (q); void (QQuickText::*signal)(QQuickTextLine *) = &QQuickText::lineLaidOut; static QMetaMethod method = QMetaMethod::fromSignal(signal); static int signalIdx = QMetaObjectPrivate::signalIndex(method); return
executed 473487 times by 35 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
executed 473487 times by 35 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
} while (0);
473487
501}-
502-
503void QQuickTextPrivate::setupCustomLineGeometry(QTextLine &line, qreal &height, int lineOffset)-
504{-
505 QQuickText * const q = q_func();-
506-
507 if (!textLine
!textLineDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 326 times by 1 test
Evaluated by:
  • tst_qquicktext
)
10-326
508 textLine = new QQuickTextLine;
executed 10 times by 1 test: textLine = new QQuickTextLine;
Executed by:
  • tst_qquicktext
10
509 textLine->setLine(&line);-
510 textLine->setY(height);-
511 textLine->setHeight(0);-
512 textLine->setLineOffset(lineOffset);-
513-
514-
515 if (q->widthValid()
q->widthValid()Description
TRUEevaluated 222 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 114 times by 1 test
Evaluated by:
  • tst_qquicktext
&& (q->wrapMode() != QQuickText::NoWrap
q->wrapMode() ...ckText::NoWrapDescription
TRUEevaluated 220 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
||
2-222
516 q->effectiveHAlign() != QQuickText::AlignLeft
q->effectiveHA...ext::AlignLeftDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
))
0-2
517 textLine->setWidth(availableWidth());
executed 222 times by 1 test: textLine->setWidth(availableWidth());
Executed by:
  • tst_qquicktext
222
518 else-
519 textLine->setWidth(0x7fffffff);
executed 114 times by 1 test: textLine->setWidth(0x7fffffff);
Executed by:
  • tst_qquicktext
114
520 if (lineHeight() != 1.0
lineHeight() != 1.0Description
TRUEnever evaluated
FALSEevaluated 336 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-336
521 textLine->setHeight((lineHeightMode() == QQuickText::FixedHeight) ? lineHeight() : line.height() * lineHeight());
never executed: textLine->setHeight((lineHeightMode() == QQuickText::FixedHeight) ? lineHeight() : line.height() * lineHeight());
0
522-
523 q->lineLaidOut(textLine);-
524-
525 height += textLine->height();-
526}
executed 336 times by 1 test: end of block
Executed by:
  • tst_qquicktext
336
527-
528void QQuickTextPrivate::elideFormats(-
529 const int start, const int length, int offset, QVector<QTextLayout::FormatRange> *elidedFormats)-
530{-
531 const int end = start + length;-
532 const QVector<QTextLayout::FormatRange> formats = layout.formats();-
533 for (int i = 0; i < formats.count()
i < formats.count()Description
TRUEevaluated 76 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquicktext
; ++i) {
28-76
534 QTextLayout::FormatRange format = formats.at(i);-
535 const int formatLength = qMin(format.start + format.length, end) - qMax(format.start, start);-
536 if (formatLength > 0
formatLength > 0Description
TRUEevaluated 40 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
36-40
537 format.start = qMax(offset, format.start - start + offset);-
538 format.length = formatLength;-
539 elidedFormats->append(format);-
540 }
executed 40 times by 1 test: end of block
Executed by:
  • tst_qquicktext
40
541 }
executed 76 times by 1 test: end of block
Executed by:
  • tst_qquicktext
76
542}
executed 28 times by 1 test: end of block
Executed by:
  • tst_qquicktext
28
543-
544QString QQuickTextPrivate::elidedText(qreal lineWidth, const QTextLine &line, QTextLine *nextLine) const-
545{-
546 if (nextLine
nextLineDescription
TRUEevaluated 226 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
124-226
547 return
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
layout.engine()->elidedText(
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
226
548 Qt::TextElideMode(elideMode),
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
226
549 QFixed::fromReal(lineWidth),
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
226
550 0,
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
226
551 line.textStart(),
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
226
552 line.textLength() + nextLine->textLength());
executed 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength());
Executed by:
  • tst_qquicktext
226
553 } else {-
554 QString elideText = layout.text().mid(line.textStart(), line.textLength());-
555 if (!styledText
!styledTextDescription
TRUEevaluated 70 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 54 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
54-70
556-
557 elideText[elideText.length() - 1] = elideChar;-
558-
559-
560 QFontMetricsF metrics(layout.font());-
561 if (metrics.width(elideChar) + line.naturalTextWidth() >= lineWidth
metrics.width(...) >= lineWidthDescription
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
)
18-52
562 elideText = metrics.elidedText(elideText, Qt::TextElideMode(elideMode), lineWidth);
executed 52 times by 1 test: elideText = metrics.elidedText(elideText, Qt::TextElideMode(elideMode), lineWidth);
Executed by:
  • tst_qquicktext
52
563 }
executed 70 times by 1 test: end of block
Executed by:
  • tst_qquicktext
70
564 return
executed 124 times by 1 test: return elideText;
Executed by:
  • tst_qquicktext
elideText;
executed 124 times by 1 test: return elideText;
Executed by:
  • tst_qquicktext
124
565 }-
566}-
567-
568void QQuickTextPrivate::clearFormats()-
569{-
570 layout.clearFormats();-
571 if (elideLayout
elideLayoutDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 205041 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
)
22-205041
572 elideLayout->clearFormats();
executed 22 times by 1 test: elideLayout->clearFormats();
Executed by:
  • tst_qquicktext
22
573}
executed 205063 times by 18 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
205063
574QRectF QQuickTextPrivate::setupTextLayout(qreal *const baseline)-
575{-
576 QQuickText * const q = q_func();-
577-
578 bool singlelineElide = elideMode != QQuickText::ElideNone
elideMode != Q...ext::ElideNoneDescription
TRUEevaluated 358 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423704 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 328 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
;
30-423704
579 bool multilineElide = elideMode == QQuickText::ElideRight
elideMode == Q...xt::ElideRightDescription
TRUEevaluated 292 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423770 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
292-423770
580 && q->widthValid()
q->widthValid()Description
TRUEevaluated 262 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
30-262
581 && (q->heightValid()
q->heightValid()Description
TRUEevaluated 198 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_qquicktext
|| maximumLineCountValid
maximumLineCountValidDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_qquicktext
);
22-198
582-
583 if ((!requireImplicitSize
!requireImplicitSizeDescription
TRUEevaluated 423582 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 480 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
|| (implicitWidthValid
implicitWidthValidDescription
TRUEevaluated 150 times by 3 tests
Evaluated by:
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 330 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
&& implicitHeightValid
implicitHeightValidDescription
TRUEevaluated 148 times by 3 tests
Evaluated by:
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
))
2-423582
584 && ((singlelineElide
singlelineElideDescription
TRUEevaluated 290 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423440 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& availableWidth() <= 0.
availableWidth() <= 0.Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 284 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
6-423440
585 || (multilineElide
multilineElideDescription
TRUEevaluated 192 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423532 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->heightValid()
q->heightValid()Description
TRUEevaluated 178 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
&& availableHeight() <= 0.
availableHeight() <= 0.Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 170 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
))) {
8-423532
586-
587 widthExceeded = q->widthValid()
q->widthValid()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& availableWidth() <= 0.
availableWidth() <= 0.Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
;
0-14
588 heightExceeded = q->heightValid()
q->heightValid()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& availableHeight() <= 0.
availableHeight() <= 0.Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
;
2-12
589-
590 if (!truncated
!truncatedDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
4-10
591 truncated = true;-
592 q->truncatedChanged();-
593 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquicktext
10
594 if (lineCount
lineCountDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
4-10
595 lineCount = 0;-
596 q->lineCountChanged();-
597 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_qquicktext
10
598-
599 if (qFuzzyIsNull(q->width())
qFuzzyIsNull(q->width())Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
4-10
600 layout.setText(QString());-
601 textHasChanged = true;-
602 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktext
4
603-
604 QFontMetricsF fm(font);-
605 qreal height = (
(lineHeightMod...::FixedHeight)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
lineHeightMode() == QQuickText::FixedHeight)
(lineHeightMod...::FixedHeight)Description
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
? lineHeight() : qCeil(fm.height()) * lineHeight();
0-14
606 *baseline = fm.ascent();-
607 return
executed 14 times by 1 test: return QRectF(0, 0, 0, height);
Executed by:
  • tst_qquicktext
QRectF(0, 0, 0, height);
executed 14 times by 1 test: return QRectF(0, 0, 0, height);
Executed by:
  • tst_qquicktext
14
608 }-
609-
610 bool shouldUseDesignMetrics = renderType != QQuickText::NativeRendering;-
611 if (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 670 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423378 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
)
670-423378
612 extra->visibleImgTags.clear();
executed 670 times by 2 tests: extra->visibleImgTags.clear();
Executed by:
  • tst_examples
  • tst_qquicktext
670
613 layout.setCacheEnabled(true);-
614 QTextOption textOption = layout.textOption();-
615 if (textOption.alignment() != q->effectiveHAlign()
textOption.ali...ectiveHAlign()Description
TRUEevaluated 479 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 423569 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
479-423569
616 || textOption.wrapMode() != QTextOption::WrapMode(wrapMode)
textOption.wra...Mode(wrapMode)Description
TRUEevaluated 216178 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 207391 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
207391-216178
617 || textOption.useDesignMetrics() != shouldUseDesignMetrics
textOption.use...eDesignMetricsDescription
TRUEevaluated 84 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 207307 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
84-207307
618 textOption.setAlignment(Qt::Alignment(q->effectiveHAlign()));-
619 textOption.setWrapMode(QTextOption::WrapMode(wrapMode));-
620 textOption.setUseDesignMetrics(shouldUseDesignMetrics);-
621 layout.setTextOption(textOption);-
622 }
executed 216741 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
216741
623 if (layout.font() != font
layout.font() != fontDescription
TRUEevaluated 38097 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 385951 times by 30 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • ...
)
38097-385951
624 layout.setFont(font);
executed 38097 times by 13 tests: layout.setFont(font);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
38097
625-
626 lineWidth = (q->widthValid()
q->widthValid()Description
TRUEevaluated 3346 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 420702 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
|| implicitWidthValid
implicitWidthValidDescription
TRUEevaluated 78 times by 3 tests
Evaluated by:
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 420624 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
) && q->width() > 0
q->width() > 0Description
TRUEevaluated 3314 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 110 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
78-420702
627 ? q->width()-
628 : 3.40282346638528859812e+38F;-
629 qreal maxHeight = q->heightValid()
q->heightValid()Description
TRUEevaluated 3452 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 420596 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
? availableHeight() : 3.40282346638528859812e+38F;
3452-420596
630-
631 const bool customLayout = isLineLaidOutConnected();-
632 const bool wasTruncated = truncated;-
633-
634 bool canWrap = wrapMode != QQuickText::NoWrap
wrapMode != QQuickText::NoWrapDescription
TRUEevaluated 646 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 423402 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 622 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
;
24-423402
635-
636 bool horizontalFit = fontSizeMode() & QQuickText::HorizontalFit
fontSizeMode()...:HorizontalFitDescription
TRUEevaluated 198 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423850 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 198 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
;
0-423850
637 bool verticalFit = fontSizeMode() & QQuickText::VerticalFit
fontSizeMode()...t::VerticalFitDescription
TRUEevaluated 178 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423870 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
178-423870
638 && (q->heightValid()
q->heightValid()Description
TRUEevaluated 178 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
|| (maximumLineCountValid
maximumLineCountValidDescription
TRUEnever evaluated
FALSEnever evaluated
&& canWrap
canWrapDescription
TRUEnever evaluated
FALSEnever evaluated
));
0-178
639-
640 const bool pixelSize = font.pixelSize() != -1;-
641 QString layoutText = layout.text();-
642-
643 int largeFont = pixelSize
pixelSizeDescription
TRUEevaluated 92078 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
FALSEevaluated 331970 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
? font.pixelSize() : font.pointSize();
92078-331970
644 int smallFont = fontSizeMode() != QQuickText::FixedSize
fontSizeMode()...ext::FixedSizeDescription
TRUEevaluated 286 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423762 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
286-423762
645 ? qMin(pixelSize ? minimumPixelSize() : minimumPointSize(), largeFont)-
646 : largeFont;-
647 int scaledFontSize = largeFont;-
648-
649 bool widthChanged = false;-
650 widthExceeded = availableWidth() <= 0
availableWidth() <= 0Description
TRUEevaluated 215258 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 208790 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
&& (singlelineElide
singlelineElideDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 215242 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| canWrap
canWrapDescription
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 215194 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| horizontalFit
horizontalFitDescription
TRUEnever evaluated
FALSEevaluated 215194 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
);
0-215258
651 heightExceeded = availableHeight() <= 0
availableHeight() <= 0Description
TRUEevaluated 214642 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 209406 times by 22 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
&& (multilineElide
multilineElideDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 214622 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
|| verticalFit
verticalFitDescription
TRUEnever evaluated
FALSEevaluated 214622 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
);
0-214642
652-
653 QRectF br;-
654-
655 QFont scaledFont = font;-
656-
657 int visibleCount = 0;-
658 bool elide;-
659 qreal height = 0;-
660 QString elideText;-
661 bool once = true;-
662 int elideStart = 0;-
663 int elideEnd = 0;-
664-
665 int eos = multilengthEos;-
666-
667-
668-
669-
670 for (;;) {-
671 if (!once
!onceDescription
TRUEevaluated 1992 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
FALSEevaluated 424048 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
1992-424048
672 if (pixelSize
pixelSizeDescription
TRUEevaluated 1784 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 208 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
)
208-1784
673 scaledFont.setPixelSize(scaledFontSize);
executed 1784 times by 2 tests: scaledFont.setPixelSize(scaledFontSize);
Executed by:
  • tst_examples
  • tst_qquicktext
1784
674 else-
675 scaledFont.setPointSize(scaledFontSize);
executed 208 times by 3 tests: scaledFont.setPointSize(scaledFontSize);
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
208
676 if (layout.font() != scaledFont
layout.font() != scaledFontDescription
TRUEevaluated 1824 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 168 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
)
168-1824
677 layout.setFont(scaledFont);
executed 1824 times by 1 test: layout.setFont(scaledFont);
Executed by:
  • tst_qquicktext
1824
678 }
executed 1992 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
1992
679-
680 layout.beginLayout();-
681-
682 bool wrapped = false;-
683 bool truncateHeight = false;-
684 truncated = false;-
685 elide = false;-
686 int unwrappedLineCount = 1;-
687 int maxLineCount = maximumLineCount();-
688 height = 0;-
689 qreal naturalHeight = 0;-
690 qreal previousHeight = 0;-
691 br = QRectF();-
692-
693 QRectF unelidedRect;-
694 QTextLine line = layout.createLine();-
695 for (visibleCount = 1; ; ++visibleCount) {-
696 if (customLayout
customLayoutDescription
TRUEevaluated 336 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 432692 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
336-432692
697 setupCustomLineGeometry(line, naturalHeight);-
698 }
executed 336 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
336
699 setLineGeometry(line, lineWidth, naturalHeight);-
700 }
executed 432692 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
432692
701-
702 unelidedRect = br.united(line.naturalTextRect());-
703-
704-
705-
706 if (multilineElide
multilineElideDescription
TRUEevaluated 1380 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 431648 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& naturalHeight > maxHeight
naturalHeight > maxHeightDescription
TRUEevaluated 510 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 870 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
&& visibleCount > 1
visibleCount > 1Description
TRUEevaluated 342 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 168 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
168-431648
707 elide = true;-
708 heightExceeded = true;-
709 if (eos != -1
eos != -1Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 332 times by 1 test
Evaluated by:
  • tst_qquicktext
)
10-332
710 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qquicktext
10
711-
712 truncated = true;-
713 truncateHeight = true;-
714-
715 visibleCount -= 1;-
716-
717 QTextLine previousLine = layout.lineAt(visibleCount - 1);-
718 elideText = layoutText.at(line.textStart() - 1) != QChar::LineSeparator
layoutText.at(...:LineSeparatorDescription
TRUEevaluated 208 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 124 times by 1 test
Evaluated by:
  • tst_qquicktext
124-208
719 ? elidedText(line.width(), previousLine, &line)-
720 : elidedText(line.width(), previousLine);-
721 elideStart = previousLine.textStart();-
722-
723-
724 height = previousHeight;-
725 break;
executed 332 times by 1 test: break;
Executed by:
  • tst_qquicktext
332
726 }-
727-
728 const QTextLine previousLine = line;-
729 line = layout.createLine();-
730 if (!line.isValid()
!line.isValid()Description
TRUEevaluated 425516 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 7170 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
) {
7170-425516
731 if (singlelineElide
singlelineElideDescription
TRUEevaluated 794 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 424722 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& visibleCount == 1
visibleCount == 1Description
TRUEevaluated 470 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 324 times by 1 test
Evaluated by:
  • tst_qquicktext
&& previousLine.naturalTextWidth() > previousLine.width()
previousLine.n...usLine.width()Description
TRUEevaluated 300 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 170 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
170-424722
732-
733 elide = true;-
734 widthExceeded = true;-
735 if (eos != -1
eos != -1Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 290 times by 1 test
Evaluated by:
  • tst_qquicktext
)
10-290
736 break;
executed 10 times by 1 test: break;
Executed by:
  • tst_qquicktext
10
737-
738 truncated = true;-
739 elideText = layout.engine()->elidedText(-
740 Qt::TextElideMode(elideMode),-
741 QFixed::fromReal(previousLine.width()),-
742 0,-
743 previousLine.textStart(),-
744 previousLine.textLength());-
745 elideStart = previousLine.textStart();-
746 elideEnd = elideStart + previousLine.textLength();-
747 }
executed 290 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
290
748 br = unelidedRect;-
749 height = naturalHeight;-
750 }
executed 425216 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
425216
751 break;
executed 425506 times by 33 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
425506
752 } else {-
753 const bool wrappedLine = layoutText.at(line.textStart() - 1) != QChar::LineSeparator;-
754 wrapped |= wrappedLine;-
755-
756 if (!wrappedLine
!wrappedLineDescription
TRUEevaluated 4064 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 3106 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
)
3106-4064
757 ++
executed 4064 times by 5 tests: ++unwrappedLineCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
unwrappedLineCount;
executed 4064 times by 5 tests: ++unwrappedLineCount;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
4064
758-
759-
760-
761 if (visibleCount == maxLineCount
visibleCount == maxLineCountDescription
TRUEevaluated 182 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 6988 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
) {
182-6988
762 truncated = true;-
763 heightExceeded |= wrapped;-
764-
765 if (multilineElide
multilineElideDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 164 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
18-164
766 elide = true;-
767 if (eos != -1
eos != -1Description
TRUEnever evaluated
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-18
768 break;
never executed: break;
0
769 elideText = wrappedLine
wrappedLineDescription
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
0-18
770 ? elidedText(previousLine.width(), previousLine, &line)-
771 : elidedText(previousLine.width(), previousLine);-
772 elideStart = previousLine.textStart();-
773-
774 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
18
775 br = unelidedRect;-
776 height = naturalHeight;-
777 }
executed 164 times by 1 test: end of block
Executed by:
  • tst_qquicktext
164
778 break;
executed 182 times by 1 test: break;
Executed by:
  • tst_qquicktext
182
779 }-
780 }
executed 6988 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
6988
781 br = unelidedRect;-
782 previousHeight = height;-
783 height = naturalHeight;-
784 }
executed 6988 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
6988
785 widthExceeded |= wrapped;-
786-
787-
788 if (once
onceDescription
TRUEevaluated 424048 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 1992 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
) {
1992-424048
789 once = false;-
790-
791-
792-
793 if ((
(requireImplicitSize)Description
TRUEevaluated 476 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 423572 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
requireImplicitSize)
(requireImplicitSize)Description
TRUEevaluated 476 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 423572 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& line.isValid()
line.isValid()Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 446 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
&& unwrappedLineCount < maxLineCount
unwrappedLineC...< maxLineCountDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-423572
794-
795-
796 for (int lineCount = layout.lineCount(); lineCount < maxLineCount
lineCount < maxLineCountDescription
TRUEevaluated 248 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
; ++lineCount) {
18-248
797 line = layout.createLine();-
798 if (!line.isValid()
!line.isValid()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 236 times by 1 test
Evaluated by:
  • tst_qquicktext
)
12-236
799 break;
executed 12 times by 1 test: break;
Executed by:
  • tst_qquicktext
12
800 if (layoutText.at(line.textStart() - 1) == QChar::LineSeparator
layoutText.at(...:LineSeparatorDescription
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 178 times by 1 test
Evaluated by:
  • tst_qquicktext
)
58-178
801 ++
executed 58 times by 1 test: ++unwrappedLineCount;
Executed by:
  • tst_qquicktext
unwrappedLineCount;
executed 58 times by 1 test: ++unwrappedLineCount;
Executed by:
  • tst_qquicktext
58
802 setLineGeometry(line, lineWidth, naturalHeight);-
803 }
executed 236 times by 1 test: end of block
Executed by:
  • tst_qquicktext
236
804-
805-
806-
807 const int eol = line.isValid()
line.isValid()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
12-18
808 ? line.textStart() + line.textLength()-
809 : layoutText.length();-
810 if (eol < layoutText.length()
eol < layoutText.length()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
&& layoutText.at(eol) != QChar::LineSeparator
layoutText.at(...:LineSeparatorDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-16
811 line = layout.createLine();
executed 16 times by 1 test: line = layout.createLine();
Executed by:
  • tst_qquicktext
16
812 for (; line.isValid()
line.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
&& unwrappedLineCount <= maxLineCount
unwrappedLineC...= maxLineCountDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
; ++unwrappedLineCount)
0-30
813 line = layout.createLine();
executed 2 times by 1 test: line = layout.createLine();
Executed by:
  • tst_qquicktext
2
814 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_qquicktext
30
815 layout.endLayout();-
816-
817 const qreal naturalWidth = layout.maximumWidth();-
818-
819 bool wasInLayout = internalWidthUpdate;-
820 internalWidthUpdate = true;-
821 q->setImplicitSize(naturalWidth + q->leftPadding() + q->rightPadding(), naturalHeight + q->topPadding() + q->bottomPadding());-
822 internalWidthUpdate = wasInLayout;-
823-
824-
825 singlelineElide = elideMode != QQuickText::ElideNone
elideMode != Q...ext::ElideNoneDescription
TRUEevaluated 344 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423704 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 320 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
;
24-423704
826 multilineElide = elideMode == QQuickText::ElideRight
elideMode == Q...xt::ElideRightDescription
TRUEevaluated 278 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 423770 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
278-423770
827 && q->widthValid()
q->widthValid()Description
TRUEevaluated 254 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
24-254
828 && (q->heightValid()
q->heightValid()Description
TRUEevaluated 186 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 68 times by 1 test
Evaluated by:
  • tst_qquicktext
|| maximumLineCountValid
maximumLineCountValidDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_qquicktext
);
22-186
829 canWrap = wrapMode != QQuickText::NoWrap
wrapMode != QQuickText::NoWrapDescription
TRUEevaluated 646 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 423402 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 622 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
;
24-423402
830-
831 horizontalFit = fontSizeMode() & QQuickText::HorizontalFit
fontSizeMode()...:HorizontalFitDescription
TRUEevaluated 198 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423850 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& q->widthValid()
q->widthValid()Description
TRUEevaluated 198 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
;
0-423850
832 verticalFit = fontSizeMode() & QQuickText::VerticalFit
fontSizeMode()...t::VerticalFitDescription
TRUEevaluated 178 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423870 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
178-423870
833 && (q->heightValid()
q->heightValid()Description
TRUEevaluated 178 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
|| (maximumLineCountValid
maximumLineCountValidDescription
TRUEnever evaluated
FALSEnever evaluated
&& canWrap
canWrapDescription
TRUEnever evaluated
FALSEnever evaluated
));
0-178
834-
835 const qreal oldWidth = lineWidth;-
836 const qreal oldHeight = maxHeight;-
837-
838 const qreal availWidth = availableWidth();-
839 const qreal availHeight = availableHeight();-
840-
841 lineWidth = q->widthValid()
q->widthValid()Description
TRUEevaluated 3352 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 420696 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
&& availWidth > 0
availWidth > 0Description
TRUEevaluated 3294 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 58 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
? availWidth : naturalWidth;
58-420696
842 maxHeight = q->heightValid()
q->heightValid()Description
TRUEevaluated 3452 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 420596 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
? availHeight : 3.40282346638528859812e+38F;
3452-420596
843-
844-
845-
846 if ((!qFuzzyCompare(lineWidth, oldWidth)
!qFuzzyCompare...dth, oldWidth)Description
TRUEevaluated 420794 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 3254 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
|| (widthExceeded
widthExceededDescription
TRUEevaluated 612 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 2642 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
&& lineWidth > oldWidth
lineWidth > oldWidthDescription
TRUEnever evaluated
FALSEevaluated 612 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
))
0-420794
847 && (singlelineElide
singlelineElideDescription
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 420760 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| multilineElide
multilineElideDescription
TRUEnever evaluated
FALSEevaluated 420760 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| canWrap
canWrapDescription
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 420712 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| horizontalFit
horizontalFitDescription
TRUEnever evaluated
FALSEevaluated 420712 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
0-420760
848 || q->effectiveHAlign() != QQuickText::AlignLeft
q->effectiveHA...ext::AlignLeftDescription
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
FALSEevaluated 420648 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
)) {
64-420648
849 widthChanged = true;-
850 widthExceeded = lineWidth >= qMin(oldWidth, naturalWidth);-
851 heightExceeded = false;-
852 continue;
executed 146 times by 3 tests: continue;
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
146
853 }-
854-
855-
856-
857 if ((maxHeight < qMin(oldHeight, naturalHeight)
maxHeight < qM...naturalHeight)Description
TRUEnever evaluated
FALSEevaluated 423902 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| (heightExceeded
heightExceededDescription
TRUEevaluated 200 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423702 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& maxHeight > oldHeight
maxHeight > oldHeightDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 198 times by 1 test
Evaluated by:
  • tst_qquicktext
))
0-423902
858 && (multilineElide
multilineElideDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
|| (canWrap
canWrapDescription
TRUEnever evaluated
FALSEnever evaluated
&& maximumLineCountValid
maximumLineCountValidDescription
TRUEnever evaluated
FALSEnever evaluated
))) {
0-2
859 widthExceeded = false;-
860 heightExceeded = false;-
861 continue;
executed 2 times by 1 test: continue;
Executed by:
  • tst_qquicktext
2
862 }-
863-
864-
865-
866 if (!q->widthValid()
!q->widthValid()Description
TRUEevaluated 420658 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 3242 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
&& !implicitWidthValid
!implicitWidthValidDescription
TRUEevaluated 420580 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 78 times by 3 tests
Evaluated by:
  • tst_qquicklayouts
  • tst_qquicktext
  • tst_qquicktextedit
&& unwrappedLineCount > 1
unwrappedLineCount > 1Description
TRUEevaluated 1428 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 419152 times by 31 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
&& q->effectiveHAlign() != QQuickText::AlignLeft
q->effectiveHA...ext::AlignLeftDescription
TRUEnever evaluated
FALSEevaluated 1428 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
) {
0-420658
867 widthExceeded = false;-
868 heightExceeded = false;-
869 continue;
never executed: continue;
0
870 }-
871 }
executed 423900 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
else if (widthChanged
widthChangedDescription
TRUEevaluated 146 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
FALSEevaluated 1846 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
146-423900
872 widthChanged = false;-
873 if (line.isValid()
line.isValid()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
) {
6-140
874 for (int lineCount = layout.lineCount(); lineCount < maxLineCount
lineCount < maxLineCountDescription
TRUEevaluated 190 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
; ++lineCount) {
2-190
875 line = layout.createLine();-
876 if (!line.isValid()
!line.isValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 186 times by 1 test
Evaluated by:
  • tst_qquicktext
)
4-186
877 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qquicktext
4
878 setLineGeometry(line, lineWidth, naturalHeight);-
879 }
executed 186 times by 1 test: end of block
Executed by:
  • tst_qquicktext
186
880 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquicktext
6
881 layout.endLayout();-
882-
883 bool wasInLayout = internalWidthUpdate;-
884 internalWidthUpdate = true;-
885 q->setImplicitHeight(naturalHeight + q->topPadding() + q->bottomPadding());-
886 internalWidthUpdate = wasInLayout;-
887-
888 multilineElide = elideMode == QQuickText::ElideRight
elideMode == Q...xt::ElideRightDescription
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 112 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
34-112
889 && q->widthValid()
q->widthValid()Description
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
0-34
890 && (q->heightValid()
q->heightValid()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
|| maximumLineCountValid
maximumLineCountValidDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
);
4-18
891 verticalFit = fontSizeMode() & QQuickText::VerticalFit
fontSizeMode()...t::VerticalFitDescription
TRUEnever evaluated
FALSEevaluated 146 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
0-146
892 && (q->heightValid()
q->heightValid()Description
TRUEnever evaluated
FALSEnever evaluated
|| (maximumLineCountValid
maximumLineCountValidDescription
TRUEnever evaluated
FALSEnever evaluated
&& canWrap
canWrapDescription
TRUEnever evaluated
FALSEnever evaluated
));
0
893-
894 const qreal oldHeight = maxHeight;-
895 maxHeight = q->heightValid()
q->heightValid()Description
TRUEevaluated 56 times by 2 tests
Evaluated by:
  • tst_qquickflickable
  • tst_qquicktext
FALSEevaluated 90 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
? availableHeight() : 3.40282346638528859812e+38F;
56-90
896-
897-
898 if ((maxHeight < qMin(oldHeight, naturalHeight)
maxHeight < qM...naturalHeight)Description
TRUEnever evaluated
FALSEevaluated 146 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
|| (heightExceeded
heightExceededDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 140 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
&& maxHeight > oldHeight
maxHeight > oldHeightDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
))
0-146
899 && (multilineElide
multilineElideDescription
TRUEnever evaluated
FALSEnever evaluated
|| (canWrap
canWrapDescription
TRUEnever evaluated
FALSEnever evaluated
&& maximumLineCountValid
maximumLineCountValidDescription
TRUEnever evaluated
FALSEnever evaluated
))) {
0
900 widthExceeded = false;-
901 heightExceeded = false;-
902 continue;
never executed: continue;
0
903 }-
904 }
executed 146 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
else {
146
905 layout.endLayout();-
906 }
executed 1846 times by 1 test: end of block
Executed by:
  • tst_qquicktext
1846
907-
908-
909-
910 if (eos != -1
eos != -1Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 425864 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& elide
elideDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
8-425864
911 int start = eos + 1;-
912 eos = text.indexOf(QLatin1Char('\x9c'), start);-
913 layoutText = text.mid(start, eos != -1 ? eos - start : -1);-
914 layoutText.replace(QLatin1Char('\n'), QChar::LineSeparator);-
915 layout.setText(layoutText);-
916 textHasChanged = true;-
917 continue;
executed 20 times by 1 test: continue;
Executed by:
  • tst_qquicktext
20
918 }-
919-
920 br.moveTop(0);-
921-
922-
923 if (layout.lineCount() > 0
layout.lineCount() > 0Description
TRUEevaluated 425872 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEnever evaluated
) {
0-425872
924 QTextLine firstLine = layout.lineAt(0);-
925 QTextLine lastLine = layout.lineAt(layout.lineCount() - 1);-
926 advance = QSizeF(lastLine.horizontalAdvance(),-
927 lastLine.y() - firstLine.y());-
928 }
executed 425872 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
else {
425872
929 advance = QSizeF();-
930 }
never executed: end of block
0
931-
932 if (!horizontalFit
!horizontalFitDescription
TRUEevaluated 424388 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 1484 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !verticalFit
!verticalFitDescription
TRUEevaluated 423762 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 626 times by 1 test
Evaluated by:
  • tst_qquicktext
)
626-424388
933 break;
executed 423762 times by 33 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
423762
934-
935-
936 if (horizontalFit
horizontalFitDescription
TRUEevaluated 1484 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 626 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
626-1484
937 if (unelidedRect.width() > lineWidth
unelidedRect.w...() > lineWidthDescription
TRUEevaluated 402 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 1082 times by 1 test
Evaluated by:
  • tst_qquicktext
|| (!verticalFit
!verticalFitDescription
TRUEevaluated 586 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 496 times by 1 test
Evaluated by:
  • tst_qquicktext
&& wrapped
wrappedDescription
TRUEevaluated 228 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 358 times by 1 test
Evaluated by:
  • tst_qquicktext
)) {
228-1082
938 widthExceeded = true;-
939 largeFont = scaledFontSize - 1;-
940 if (smallFont > largeFont
smallFont > largeFontDescription
TRUEnever evaluated
FALSEevaluated 630 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-630
941 break;
never executed: break;
0
942 scaledFontSize = (smallFont + largeFont) / 2;-
943 if (pixelSize
pixelSizeDescription
TRUEevaluated 594 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_qquicktext
)
36-594
944 scaledFont.setPixelSize(scaledFontSize);
executed 594 times by 1 test: scaledFont.setPixelSize(scaledFontSize);
Executed by:
  • tst_qquicktext
594
945 else-
946 scaledFont.setPointSize(scaledFontSize);
executed 36 times by 1 test: scaledFont.setPointSize(scaledFontSize);
Executed by:
  • tst_qquicktext
36
947 continue;
executed 630 times by 1 test: continue;
Executed by:
  • tst_qquicktext
630
948 } else if (!verticalFit
!verticalFitDescription
TRUEevaluated 358 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 496 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
358-496
949 smallFont = scaledFontSize;-
950 if (smallFont == largeFont
smallFont == largeFontDescription
TRUEevaluated 108 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 250 times by 1 test
Evaluated by:
  • tst_qquicktext
)
108-250
951 break;
executed 108 times by 1 test: break;
Executed by:
  • tst_qquicktext
108
952 scaledFontSize = (smallFont + largeFont + 1) / 2;-
953 }
executed 250 times by 1 test: end of block
Executed by:
  • tst_qquicktext
250
954 }
executed 746 times by 1 test: end of block
Executed by:
  • tst_qquicktext
746
955-
956 if (verticalFit
verticalFitDescription
TRUEevaluated 1122 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 250 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
250-1122
957 if (truncateHeight
truncateHeightDescription
TRUEevaluated 150 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 972 times by 1 test
Evaluated by:
  • tst_qquicktext
|| unelidedRect.height() > maxHeight
unelidedRect.h...() > maxHeightDescription
TRUEevaluated 424 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 548 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
150-972
958 heightExceeded = true;-
959 largeFont = scaledFontSize - 1;-
960 if (smallFont > largeFont
smallFont > largeFontDescription
TRUEnever evaluated
FALSEevaluated 574 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-574
961 break;
never executed: break;
0
962 scaledFontSize = (smallFont + largeFont) / 2;-
963-
964 }
executed 574 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
574
965 smallFont = scaledFontSize;-
966 if (smallFont == largeFont
smallFont == largeFontDescription
TRUEevaluated 178 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 370 times by 1 test
Evaluated by:
  • tst_qquicktext
)
178-370
967 break;
executed 178 times by 1 test: break;
Executed by:
  • tst_qquicktext
178
968 scaledFontSize = (smallFont + largeFont + 1) / 2;-
969 }
executed 370 times by 1 test: end of block
Executed by:
  • tst_qquicktext
370
970 }-
971 }
executed 1194 times by 1 test: end of block
Executed by:
  • tst_qquicktext
1194
972-
973 implicitWidthValid = true;-
974 implicitHeightValid = true;-
975-
976 QFontInfo scaledFontInfo(scaledFont);-
977 if (fontInfo.weight() != scaledFontInfo.weight()
fontInfo.weigh...tInfo.weight()Description
TRUEevaluated 216 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
FALSEevaluated 423832 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
216-423832
978 || fontInfo.pixelSize() != scaledFontInfo.pixelSize()
fontInfo.pixel...fo.pixelSize()Description
TRUEevaluated 4530 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 419302 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
4530-419302
979 || fontInfo.italic() != scaledFontInfo.italic()
fontInfo.itali...tInfo.italic()Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 419294 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
8-419294
980 || !qFuzzyCompare(fontInfo.pointSizeF(), scaledFontInfo.pointSizeF())
!qFuzzyCompare....pointSizeF())Description
TRUEnever evaluated
FALSEevaluated 419294 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
0-419294
981 || fontInfo.family() != scaledFontInfo.family()
fontInfo.famil...tInfo.family()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_qquickfontloader_static
  • tst_qquicktext
FALSEevaluated 419284 times by 31 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
10-419284
982 || fontInfo.styleName() != scaledFontInfo.styleName()
fontInfo.style...fo.styleName()Description
TRUEnever evaluated
FALSEevaluated 419284 times by 31 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
) {
0-419284
983 fontInfo = scaledFontInfo;-
984 q->fontInfoChanged();-
985 }
executed 4764 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
4764
986-
987 if (eos != multilengthEos
eos != multilengthEosDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 424036 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
)
12-424036
988 truncated = true;
executed 12 times by 1 test: truncated = true;
Executed by:
  • tst_qquicktext
12
989-
990 assignedFont = QFontInfo(font).family();-
991-
992 if (elide
elideDescription
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423908 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
140-423908
993 if (!elideLayout
!elideLayoutDescription
TRUEevaluated 94 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
46-94
994 elideLayout = new QTextLayout;-
995 elideLayout->setCacheEnabled(true);-
996 }
executed 94 times by 1 test: end of block
Executed by:
  • tst_qquicktext
94
997 QTextEngine *engine = layout.engine();-
998 if (engine
engineDescription
TRUEevaluated 140 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& engine->hasFormats()
engine->hasFormats()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 116 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
0-140
999 QVector<QTextLayout::FormatRange> formats;-
1000 switch (elideMode) {-
1001 case
executed 14 times by 1 test: case QQuickText::ElideRight:
Executed by:
  • tst_qquicktext
QQuickText::ElideRight:
executed 14 times by 1 test: case QQuickText::ElideRight:
Executed by:
  • tst_qquicktext
14
1002 elideFormats(elideStart, elideText.length() - 1, 0, &formats);-
1003 break;
executed 14 times by 1 test: break;
Executed by:
  • tst_qquicktext
14
1004 case
executed 6 times by 1 test: case QQuickText::ElideLeft:
Executed by:
  • tst_qquicktext
QQuickText::ElideLeft:
executed 6 times by 1 test: case QQuickText::ElideLeft:
Executed by:
  • tst_qquicktext
6
1005 elideFormats(elideEnd - elideText.length() + 1, elideText.length() - 1, 1, &formats);-
1006 break;
executed 6 times by 1 test: break;
Executed by:
  • tst_qquicktext
6
1007 case
executed 4 times by 1 test: case QQuickText::ElideMiddle:
Executed by:
  • tst_qquicktext
QQuickText::ElideMiddle:
executed 4 times by 1 test: case QQuickText::ElideMiddle:
Executed by:
  • tst_qquicktext
{
4
1008 const int index = elideText.indexOf(elideChar);-
1009 if (index != -1
index != -1Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-4
1010 elideFormats(elideStart, index, 0, &formats);-
1011 elideFormats(-
1012 elideEnd - elideText.length() + index + 1,-
1013 elideText.length() - index - 1,-
1014 index + 1,-
1015 &formats);-
1016 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktext
4
1017 break;
executed 4 times by 1 test: break;
Executed by:
  • tst_qquicktext
4
1018 }-
1019 default
never executed: default:
:
never executed: default:
0
1020 break;
never executed: break;
0
1021 }-
1022 elideLayout->setFormats(formats);-
1023 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_qquicktext
24
1024-
1025 elideLayout->setFont(layout.font());-
1026 elideLayout->setTextOption(layout.textOption());-
1027 elideLayout->setText(elideText);-
1028 elideLayout->beginLayout();-
1029-
1030 QTextLine elidedLine = elideLayout->createLine();-
1031 elidedLine.setPosition(QPointF(0, height));-
1032 if (customLayout
customLayoutDescription
TRUEnever evaluated
FALSEevaluated 140 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
0-140
1033 setupCustomLineGeometry(elidedLine, height, visibleCount - 1);-
1034 }
never executed: end of block
else {
0
1035 setLineGeometry(elidedLine, lineWidth, height);-
1036 }
executed 140 times by 1 test: end of block
Executed by:
  • tst_qquicktext
140
1037 elideLayout->endLayout();-
1038-
1039 br = br.united(elidedLine.naturalTextRect());-
1040-
1041 if (visibleCount == 1
visibleCount == 1Description
TRUEevaluated 102 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_qquicktext
)
38-102
1042 layout.clearLayout();
executed 102 times by 1 test: layout.clearLayout();
Executed by:
  • tst_qquicktext
102
1043 }
executed 140 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
140
1044 delete elideLayout;-
1045 elideLayout = nullptr;-
1046 }
executed 423908 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
423908
1047-
1048 QTextLine firstLine = visibleCount == 1
visibleCount == 1Description
TRUEevaluated 422000 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 2048 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
&& elideLayout
elideLayoutDescription
TRUEevaluated 102 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 421898 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
102-422000
1049 ? elideLayout->lineAt(0)-
1050 : layout.lineAt(0);-
1051 ((firstLine.isValid()) ? static_cast<void>(0) : qt_assert("firstLine.isValid()", __FILE__, 1132));-
1052 *baseline = firstLine.y() + firstLine.ascent();-
1053-
1054 if (!customLayout
!customLayoutDescription
TRUEevaluated 424020 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_qquicktext
)
28-424020
1055 br.setHeight(height);
executed 424020 times by 33 tests: br.setHeight(height);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
424020
1056-
1057-
1058 if (lineCount != visibleCount
lineCount != visibleCountDescription
TRUEevaluated 844 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
FALSEevaluated 423204 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
844-423204
1059 lineCount = visibleCount;-
1060 q->lineCountChanged();-
1061 }
executed 844 times by 6 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickfocusscope
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
844
1062-
1063 if (truncated != wasTruncated
truncated != wasTruncatedDescription
TRUEevaluated 170 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 423878 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
)
170-423878
1064 q->truncatedChanged();
executed 170 times by 1 test: q->truncatedChanged();
Executed by:
  • tst_qquicktext
170
1065-
1066 return
executed 424048 times by 33 tests: return br;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
br;
executed 424048 times by 33 tests: return br;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
424048
1067}-
1068-
1069void QQuickTextPrivate::setLineGeometry(QTextLine &line, qreal lineWidth, qreal &height)-
1070{-
1071 QQuickText * const q = q_func();-
1072 line.setLineWidth(lineWidth);-
1073-
1074 if (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 4816 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 428438 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& extra->imgTags.isEmpty()
extra->imgTags.isEmpty()Description
TRUEevaluated 4678 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 138 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
138-428438
1075 line.setPosition(QPointF(line.position().x(), height));-
1076 height += (
(lineHeightMod...::FixedHeight)Description
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4586 times by 1 test
Evaluated by:
  • tst_qquicktext
lineHeightMode() == QQuickText::FixedHeight)
(lineHeightMod...::FixedHeight)Description
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4586 times by 1 test
Evaluated by:
  • tst_qquicktext
? lineHeight() : line.height() * lineHeight();
92-4586
1077 return;
executed 4678 times by 1 test: return;
Executed by:
  • tst_qquicktext
4678
1078 }-
1079-
1080 qreal textTop = 0;-
1081 qreal textHeight = line.height();-
1082 qreal totalLineHeight = textHeight;-
1083-
1084 QList<QQuickStyledTextImgTag *> imagesInLine;-
1085-
1086 if (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 138 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 428438 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
138-428438
1087 for (QQuickStyledTextImgTag *image : qAsConst(extra->imgTags)) {-
1088 if (image->position >= line.textStart()
image->positio...ne.textStart()Description
TRUEevaluated 112 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
&&
58-112
1089 image->position < line.textStart() + line.textLength()
image->positio...e.textLength()Description
TRUEevaluated 96 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
16-96
1090-
1091 if (!image->pix
!image->pixDescription
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 56 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
40-56
1092 QUrl url = q->baseUrl().resolved(image->url);-
1093 image->pix = new QQuickPixmap(qmlEngine(q), url, image->size);-
1094 if (image->pix->isLoading()
image->pix->isLoading()Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 30 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
10-30
1095 image->pix->connectFinished(q, qFlagLocation("1""imageDownloadFinished()" "\0" __FILE__ ":" "1176"));-
1096 if (!extra.isAllocated()
!extra.isAllocated()Description
TRUEnever evaluated
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
|| !extra->nbActiveDownloads
!extra->nbActiveDownloadsDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
)
0-10
1097 extra.value().nbActiveDownloads = 0;
executed 10 times by 2 tests: extra.value().nbActiveDownloads = 0;
Executed by:
  • tst_examples
  • tst_qquicktext
10
1098 extra->nbActiveDownloads++;-
1099 }
executed 10 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else if (image->pix->isReady()
image->pix->isReady()Description
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
2-28
1100 if (!image->size.isValid()
!image->size.isValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
2-26
1101 image->size = image->pix->implicitSize();-
1102-
1103-
1104 needToUpdateLayout = true;-
1105 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
1106 }
executed 28 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else if (image->pix->isError()
image->pix->isError()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-28
1107 qmlWarning(q) << image->pix->error();-
1108 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
1109 }
executed 40 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
40
1110-
1111 qreal ih = qreal(image->size.height());-
1112 if (image->align == QQuickStyledTextImgTag::Top
image->align =...extImgTag::TopDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 88 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
8-88
1113 image->pos.setY(0);
executed 8 times by 2 tests: image->pos.setY(0);
Executed by:
  • tst_examples
  • tst_qquicktext
8
1114 else if (image->align == QQuickStyledTextImgTag::Middle
image->align =...ImgTag::MiddleDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 70 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
18-70
1115 image->pos.setY((textHeight / 2.0) - (ih / 2.0));
executed 18 times by 2 tests: image->pos.setY((textHeight / 2.0) - (ih / 2.0));
Executed by:
  • tst_examples
  • tst_qquicktext
18
1116 else-
1117 image->pos.setY(textHeight - ih);
executed 70 times by 2 tests: image->pos.setY(textHeight - ih);
Executed by:
  • tst_examples
  • tst_qquicktext
70
1118 imagesInLine << image;-
1119 textTop = qMax(textTop, qAbs(image->pos.y()));-
1120 }
executed 96 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
96
1121 }
executed 170 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
170
1122 }
executed 138 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
138
1123-
1124 for (QQuickStyledTextImgTag *image : qAsConst(imagesInLine)) {-
1125 totalLineHeight = qMax(totalLineHeight, textTop + image->pos.y() + image->size.height());-
1126 const int leadX = line.cursorToX(image->position);-
1127 const int trailX = line.cursorToX(image->position, QTextLine::Trailing);-
1128 const bool rtl = trailX < leadX;-
1129 image->pos.setX(leadX + (rtl ? (-image->offset - image->size.width()) : image->offset));-
1130 image->pos.setY(image->pos.y() + height + textTop);-
1131 extra->visibleImgTags << image;-
1132 }
executed 96 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
96
1133-
1134 line.setPosition(QPointF(line.position().x(), height + textTop));-
1135 height += (
(lineHeightMod...::FixedHeight)Description
TRUEnever evaluated
FALSEevaluated 428576 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
lineHeightMode() == QQuickText::FixedHeight)
(lineHeightMod...::FixedHeight)Description
TRUEnever evaluated
FALSEevaluated 428576 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
? lineHeight() : totalLineHeight * lineHeight();
0-428576
1136}
executed 428576 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
428576
1137-
1138-
1139-
1140-
1141int QQuickTextPrivate::lineHeightOffset() const-
1142{-
1143 QFontMetricsF fm(font);-
1144 qreal fontHeight = qCeil(fm.height());-
1145 return
executed 249006 times by 21 tests: return lineHeightMode() == QQuickText::FixedHeight ? fontHeight - lineHeight() : (1.0 - lineHeight()) * fontHeight;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
lineHeightMode() == QQuickText::FixedHeight ? fontHeight - lineHeight()
executed 249006 times by 21 tests: return lineHeightMode() == QQuickText::FixedHeight ? fontHeight - lineHeight() : (1.0 - lineHeight()) * fontHeight;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
249006
1146 : (1.0 - lineHeight()) * fontHeight;
executed 249006 times by 21 tests: return lineHeightMode() == QQuickText::FixedHeight ? fontHeight - lineHeight() : (1.0 - lineHeight()) * fontHeight;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
249006
1147}-
1148-
1149-
1150-
1151-
1152void QQuickTextPrivate::ensureDoc()-
1153{-
1154 if (!extra.isAllocated()
!extra.isAllocated()Description
TRUEevaluated 138 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 438 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
|| !extra->doc
!extra->docDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 426 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
12-438
1155 QQuickText * const q = q_func();-
1156 extra.value().doc = new QQuickTextDocumentWithImageResources(q);-
1157 extra->doc->setPageSize(QSizeF(0, 0));-
1158 extra->doc->setDocumentMargin(0);-
1159 extra->doc->setBaseUrl(q->baseUrl());-
1160 { QQuickTextDocumentWithImageResources *sender = (extra->doc); QQuickText *receiver = (q); const char *signal = (qFlagLocation("2""imagesLoaded()" "\0" __FILE__ ":" "1242")); const char *method = (qFlagLocation("1""q_updateLayout()" "\0" __FILE__ ":" "1242")); static int signalIdx = -1; static int methodIdx = -1; if (signalIdx < 0
signalIdx < 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 146 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) { ((((int)(*signal) - '0') == 2) ? static_cast<void>(0) : qt_assert("((int)(*signal) - '0') == QSIGNAL_CODE",
4-146
1161 __FILE__-
1162 ,-
1163 1242-
1164 )); signalIdx = QQuickTextDocumentWithImageResources::staticMetaObject.indexOfSignal(signal+1); }
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
if (methodIdx < 0
methodIdx < 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 146 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) { int code = ((int)(*method) - '0'); ((code == 1 || code == 2) ? static_cast<void>(0) : qt_assert("code == QSLOT_CODE || code == QSIGNAL_CODE",
4-146
1165 __FILE__-
1166 ,-
1167 1242-
1168 )); if (code == 1
code == 1Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
) methodIdx = QQuickText::staticMetaObject.indexOfSlot(method+1);
executed 4 times by 2 tests: methodIdx = QQuickText::staticMetaObject.indexOfSlot(method+1);
Executed by:
  • tst_examples
  • tst_qquicktext
else methodIdx = QQuickText::staticMetaObject.indexOfSignal(method+1);
never executed: methodIdx = QQuickText::staticMetaObject.indexOfSignal(method+1);
} ((signalIdx != -1 && methodIdx != -1) ? static_cast<void>(0) : qt_assert("signalIdx != -1 && methodIdx != -1",
0-4
1169 __FILE__-
1170 ,-
1171 1242-
1172 )); QMetaObject::connect(sender, signalIdx, receiver, methodIdx, Qt::DirectConnection); }-
1173 ;-
1174 }
executed 150 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
150
1175}
executed 576 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
576
1176QQuickText::QQuickText(QQuickItem *parent)-
1177: QQuickImplicitSizeItem(*(new QQuickTextPrivate), parent)-
1178{-
1179 QQuickTextPrivate * const d = d_func();-
1180 d->init();-
1181}
executed 264678 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264678
1182-
1183QQuickText::QQuickText(QQuickTextPrivate &dd, QQuickItem *parent)-
1184: QQuickImplicitSizeItem(dd, parent)-
1185{-
1186 QQuickTextPrivate * const d = d_func();-
1187 d->init();-
1188}
never executed: end of block
0
1189-
1190QQuickText::~QQuickText()-
1191{-
1192}-
1193QFont QQuickText::font() const-
1194{-
1195 const QQuickTextPrivate * const d = d_func();-
1196 return
executed 40231 times by 18 tests: return d->sourceFont;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
d->sourceFont;
executed 40231 times by 18 tests: return d->sourceFont;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
40231
1197}-
1198-
1199void QQuickText::setFont(const QFont &font)-
1200{-
1201 QQuickTextPrivate * const d = d_func();-
1202 if (d->sourceFont == font
d->sourceFont == fontDescription
TRUEevaluated 360 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickfontloader_static
  • tst_qquicktext
FALSEevaluated 39386 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
)
360-39386
1203 return;
executed 360 times by 7 tests: return;
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickfontloader_static
  • tst_qquicktext
360
1204-
1205 d->sourceFont = font;-
1206 QFont oldFont = d->font;-
1207 d->font = font;-
1208-
1209 if (!antialiasing()
!antialiasing()Description
TRUEnever evaluated
FALSEevaluated 39386 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
)
0-39386
1210 d->font.setStyleStrategy(QFont::NoAntialias);
never executed: d->font.setStyleStrategy(QFont::NoAntialias);
0
1211-
1212 if (d->font.pointSizeF() != -1
d->font.pointSizeF() != -1Description
TRUEevaluated 2515 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 36871 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
) {
2515-36871
1213-
1214 qreal size = qRound(d->font.pointSizeF()*2.0);-
1215 d->font.setPointSizeF(size/2.0);-
1216 }
executed 2515 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
2515
1217-
1218 if (oldFont != d->font
oldFont != d->fontDescription
TRUEevaluated 39385 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_qquickbehaviors
) {
1-39385
1219-
1220-
1221 if (d->formatModifiesFontSize
d->formatModifiesFontSizeDescription
TRUEevaluated 1196 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 38189 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
)
1196-38189
1222 d->textHasChanged = true;
executed 1196 times by 1 test: d->textHasChanged = true;
Executed by:
  • tst_qquicktext
1196
1223 d->implicitWidthValid = false;-
1224 d->implicitHeightValid = false;-
1225 d->updateLayout();-
1226 }
executed 39385 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
39385
1227-
1228 fontChanged(d->sourceFont);-
1229}
executed 39386 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
39386
1230-
1231void QQuickText::itemChange(ItemChange change, const ItemChangeData &value)-
1232{-
1233 QQuickTextPrivate * const d = d_func();-
1234 (void)value;;-
1235 switch (change) {-
1236 case
executed 2 times by 1 test: case ItemAntialiasingHasChanged:
Executed by:
  • tst_qquicktext
ItemAntialiasingHasChanged:
executed 2 times by 1 test: case ItemAntialiasingHasChanged:
Executed by:
  • tst_qquicktext
2
1237 if (!antialiasing()
!antialiasing()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-2
1238 d->font.setStyleStrategy(QFont::NoAntialias);
executed 2 times by 1 test: d->font.setStyleStrategy(QFont::NoAntialias);
Executed by:
  • tst_qquicktext
2
1239 else-
1240 d->font.setStyleStrategy(QFont::PreferAntialias);
never executed: d->font.setStyleStrategy(QFont::PreferAntialias);
0
1241 d->implicitWidthValid = false;-
1242 d->implicitHeightValid = false;-
1243 d->updateLayout();-
1244 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquicktext
2
1245-
1246 case
never executed: case ItemDevicePixelRatioHasChanged:
ItemDevicePixelRatioHasChanged:
never executed: case ItemDevicePixelRatioHasChanged:
0
1247 if (d->renderType == NativeRendering
d->renderType ...ativeRenderingDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
1248-
1249-
1250-
1251-
1252 d->implicitWidthValid = false;-
1253 d->implicitHeightValid = false;-
1254 d->updateLayout();-
1255 }
never executed: end of block
0
1256 break;
never executed: break;
0
1257-
1258 default
executed 1054500 times by 32 tests: default:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
:
executed 1054500 times by 32 tests: default:
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
1054500
1259 break;
executed 1054500 times by 32 tests: break;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
1054500
1260 }-
1261 QQuickItem::itemChange(change, value);-
1262}
executed 1054502 times by 32 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
1054502
1263QString QQuickText::text() const-
1264{-
1265 const QQuickTextPrivate * const d = d_func();-
1266 return
executed 170280 times by 18 tests: return d->text;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_scenegraph
d->text;
executed 170280 times by 18 tests: return d->text;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquickvisualdatamodel
  • tst_scenegraph
170280
1267}-
1268-
1269void QQuickText::setText(const QString &n)-
1270{-
1271 QQuickTextPrivate * const d = d_func();-
1272 if (d->text == n
d->text == nDescription
TRUEevaluated 88385 times by 12 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
FALSEevaluated 421506 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
)
88385-421506
1273 return;
executed 88385 times by 12 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
88385
1274-
1275 d->richText = d->format == RichText;-
1276 d->styledText = d->format == StyledText
d->format == StyledTextDescription
TRUEevaluated 50 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 421456 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
|| (d->format == AutoText
d->format == AutoTextDescription
TRUEevaluated 421270 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 186 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquicktext
&& Qt::mightBeRichText(n)
Qt::mightBeRichText(n)Description
TRUEevaluated 738 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 420532 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
);
50-421456
1277 d->text = n;-
1278 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 205093 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 216413 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
) {
205093-216413
1279 if (d->richText
d->richTextDescription
TRUEevaluated 46 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 205047 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
) {
46-205047
1280 d->ensureDoc();-
1281 d->extra->doc->setText(n);-
1282 d->rightToLeftText = d->extra->doc->toPlainText().isRightToLeft();-
1283 }
executed 46 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
46
1284 d->clearFormats();-
1285 d->rightToLeftText = d->text.isRightToLeft();-
1286 }
executed 205047 times by 18 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
205047
1287 d->determineHorizontalAlignment();-
1288 }
executed 205093 times by 18 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
205093
1289 d->textHasChanged = true;-
1290 d->implicitWidthValid = false;-
1291 d->implicitHeightValid = false;-
1292-
1293 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 264 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 421242 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
264-421242
1294 qDeleteAll(d->extra->imgTags);-
1295 d->extra->imgTags.clear();-
1296 }
executed 264 times by 1 test: end of block
Executed by:
  • tst_qquicktext
264
1297 d->updateLayout();-
1298 setAcceptHoverEvents(d->richText || d->styledText);-
1299 textChanged(d->text);-
1300}
executed 421506 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
421506
1301QColor QQuickText::color() const-
1302{-
1303 const QQuickTextPrivate * const d = d_func();-
1304 return
executed 432 times by 2 tests: return QColor::fromRgba(d->color);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
QColor::fromRgba(d->color);
executed 432 times by 2 tests: return QColor::fromRgba(d->color);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
432
1305}-
1306-
1307void QQuickText::setColor(const QColor &color)-
1308{-
1309 QQuickTextPrivate * const d = d_func();-
1310 QRgb rgb = color.rgba();-
1311 if (d->color == rgb
d->color == rgbDescription
TRUEevaluated 174 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickfontloader
  • tst_qquickpathview
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 1870 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
)
174-1870
1312 return;
executed 174 times by 5 tests: return;
Executed by:
  • tst_examples
  • tst_qquickfontloader
  • tst_qquickpathview
  • tst_qquicktext
  • tst_scenegraph
174
1313-
1314 d->color = rgb;-
1315 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 60 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickpathview
  • tst_qquicktext
FALSEevaluated 1810 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquicktext
) {
60-1810
1316 d->updateType = QQuickTextPrivate::UpdatePaintNode;-
1317 update();-
1318 }
executed 60 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickpathview
  • tst_qquicktext
60
1319 colorChanged();-
1320}
executed 1870 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickdraghandler
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
1870
1321QColor QQuickText::linkColor() const-
1322{-
1323 const QQuickTextPrivate * const d = d_func();-
1324 return
executed 430 times by 2 tests: return QColor::fromRgba(d->linkColor);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
QColor::fromRgba(d->linkColor);
executed 430 times by 2 tests: return QColor::fromRgba(d->linkColor);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
430
1325}-
1326-
1327void QQuickText::setLinkColor(const QColor &color)-
1328{-
1329 QQuickTextPrivate * const d = d_func();-
1330 QRgb rgb = color.rgba();-
1331 if (d->linkColor == rgb
d->linkColor == rgbDescription
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 364 times by 1 test
Evaluated by:
  • tst_qquicktext
)
26-364
1332 return;
executed 26 times by 1 test: return;
Executed by:
  • tst_qquicktext
26
1333-
1334 d->linkColor = rgb;-
1335 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 50 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 314 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
50-314
1336 d->updateType = QQuickTextPrivate::UpdatePaintNode;-
1337 update();-
1338 }
executed 50 times by 1 test: end of block
Executed by:
  • tst_qquicktext
50
1339 linkColorChanged();-
1340}
executed 364 times by 1 test: end of block
Executed by:
  • tst_qquicktext
364
1341QQuickText::TextStyle QQuickText::style() const-
1342{-
1343 const QQuickTextPrivate * const d = d_func();-
1344 return
executed 24 times by 2 tests: return d->style;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->style;
executed 24 times by 2 tests: return d->style;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
24
1345}-
1346-
1347void QQuickText::setStyle(QQuickText::TextStyle style)-
1348{-
1349 QQuickTextPrivate * const d = d_func();-
1350 if (d->style == style
d->style == styleDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 80 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquicktext
)
2-80
1351 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquicktext
2
1352-
1353 d->style = style;-
1354 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 76 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquicktext
) {
4-76
1355 d->updateType = QQuickTextPrivate::UpdatePaintNode;-
1356 update();-
1357 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktext
4
1358 styleChanged(d->style);-
1359}
executed 80 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquicktext
80
1360QColor QQuickText::styleColor() const-
1361{-
1362 const QQuickTextPrivate * const d = d_func();-
1363 return
executed 390 times by 2 tests: return QColor::fromRgba(d->styleColor);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
QColor::fromRgba(d->styleColor);
executed 390 times by 2 tests: return QColor::fromRgba(d->styleColor);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
390
1364}-
1365-
1366void QQuickText::setStyleColor(const QColor &color)-
1367{-
1368 QQuickTextPrivate * const d = d_func();-
1369 QRgb rgb = color.rgba();-
1370 if (d->styleColor == rgb
d->styleColor == rgbDescription
TRUEevaluated 64 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquicktext
FALSEevaluated 332 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
64-332
1371 return;
executed 64 times by 3 tests: return;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquicktext
64
1372-
1373 d->styleColor = rgb;-
1374 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 330 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
2-330
1375 d->updateType = QQuickTextPrivate::UpdatePaintNode;-
1376 update();-
1377 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
1378 styleColorChanged();-
1379}
executed 332 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
332
1380QQuickText::HAlignment QQuickText::hAlign() const-
1381{-
1382 const QQuickTextPrivate * const d = d_func();-
1383 return
executed 164 times by 3 tests: return d->hAlign;
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->hAlign;
executed 164 times by 3 tests: return d->hAlign;
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquicktext
164
1384}-
1385-
1386void QQuickText::setHAlign(HAlignment align)-
1387{-
1388 QQuickTextPrivate * const d = d_func();-
1389 bool forceAlign = d->hAlignImplicit
d->hAlignImplicitDescription
TRUEevaluated 481 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 42 times by 2 tests
Evaluated by:
  • tst_qquicktext
  • tst_qquicktextedit
&& d->effectiveLayoutMirror
d->effectiveLayoutMirrorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 479 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
;
2-481
1390 d->hAlignImplicit = false;-
1391 if (d->setHAlign(align, forceAlign)
d->setHAlign(a...n, forceAlign)Description
TRUEevaluated 477 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 46 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_qquicktextedit
&& isComponentComplete()
isComponentComplete()Description
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 429 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
)
46-477
1392 d->updateLayout();
executed 48 times by 2 tests: d->updateLayout();
Executed by:
  • tst_qquicktext
  • tst_qquicktextedit
48
1393}
executed 523 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
523
1394-
1395void QQuickText::resetHAlign()-
1396{-
1397 QQuickTextPrivate * const d = d_func();-
1398 d->hAlignImplicit = true;-
1399 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 56 times by 1 test
Evaluated by:
  • tst_examples
&& d->determineHorizontalAlignment()
d->determineHo...talAlignment()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
)
2-56
1400 d->updateLayout();
executed 4 times by 1 test: d->updateLayout();
Executed by:
  • tst_qquicktext
4
1401}
executed 62 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
62
1402-
1403QQuickText::HAlignment QQuickText::effectiveHAlign() const-
1404{-
1405 const QQuickTextPrivate * const d = d_func();-
1406 QQuickText::HAlignment effectiveAlignment = d->hAlign;-
1407 if (!d->hAlignImplicit
!d->hAlignImplicitDescription
TRUEevaluated 3029 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 1311756 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
&& d->effectiveLayoutMirror
d->effectiveLayoutMirrorDescription
TRUEevaluated 174 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2855 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
) {
174-1311756
1408 switch (d->hAlign) {-
1409 case
executed 122 times by 2 tests: case QQuickText::AlignLeft:
Executed by:
  • tst_examples
  • tst_qquicktext
QQuickText::AlignLeft:
executed 122 times by 2 tests: case QQuickText::AlignLeft:
Executed by:
  • tst_examples
  • tst_qquicktext
122
1410 effectiveAlignment = QQuickText::AlignRight;-
1411 break;
executed 122 times by 2 tests: break;
Executed by:
  • tst_examples
  • tst_qquicktext
122
1412 case
executed 52 times by 1 test: case QQuickText::AlignRight:
Executed by:
  • tst_qquicktext
QQuickText::AlignRight:
executed 52 times by 1 test: case QQuickText::AlignRight:
Executed by:
  • tst_qquicktext
52
1413 effectiveAlignment = QQuickText::AlignLeft;-
1414 break;
executed 52 times by 1 test: break;
Executed by:
  • tst_qquicktext
52
1415 default
never executed: default:
:
never executed: default:
0
1416 break;
never executed: break;
0
1417 }-
1418 }-
1419 return
executed 1314785 times by 33 tests: return effectiveAlignment;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
effectiveAlignment;
executed 1314785 times by 33 tests: return effectiveAlignment;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
1314785
1420}-
1421-
1422bool QQuickTextPrivate::setHAlign(QQuickText::HAlignment alignment, bool forceAlign)-
1423{-
1424 QQuickText * const q = q_func();-
1425 if (hAlign != alignment
hAlign != alignmentDescription
TRUEevaluated 511 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 469304 times by 34 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
|| forceAlign
forceAlignDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 469302 times by 34 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
) {
2-469304
1426 QQuickText::HAlignment oldEffectiveHAlign = q->effectiveHAlign();-
1427 hAlign = alignment;-
1428-
1429 q->horizontalAlignmentChanged(hAlign);-
1430 if (oldEffectiveHAlign != q->effectiveHAlign()
oldEffectiveHA...ectiveHAlign()Description
TRUEevaluated 511 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
)
2-511
1431 q->effectiveHorizontalAlignmentChanged();
executed 511 times by 5 tests: q->effectiveHorizontalAlignmentChanged();
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
511
1432 return
executed 513 times by 5 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
true;
executed 513 times by 5 tests: return true;
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
513
1433 }-
1434 return
executed 469302 times by 34 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
false;
executed 469302 times by 34 tests: return false;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
469302
1435}-
1436-
1437bool QQuickTextPrivate::determineHorizontalAlignment()-
1438{-
1439 if (hAlignImplicit
hAlignImplicitDescription
TRUEevaluated 469292 times by 34 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
FALSEevaluated 503 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
) {
503-469292
1440-
1441 bool alignToRight = text.isEmpty()
text.isEmpty()Description
TRUEevaluated 48613 times by 18 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 420679 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
? QGuiApplication::inputMethod()->inputDirection() == Qt::RightToLeft : rightToLeftText;
48613-420679
1442-
1443-
1444-
1445 return
executed 469292 times by 34 tests: return setHAlign(alignToRight ? QQuickText::AlignRight : QQuickText::AlignLeft);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
setHAlign(alignToRight ? QQuickText::AlignRight : QQuickText::AlignLeft);
executed 469292 times by 34 tests: return setHAlign(alignToRight ? QQuickText::AlignRight : QQuickText::AlignLeft);
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • ...
469292
1446 }-
1447 return
executed 503 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
false;
executed 503 times by 5 tests: return false;
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
503
1448}-
1449-
1450void QQuickTextPrivate::mirrorChange()-
1451{-
1452 QQuickText * const q = q_func();-
1453 if (q->isComponentComplete()
q->isComponentComplete()Description
TRUEevaluated 14 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquicktext
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
14-20
1454 if (!hAlignImplicit
!hAlignImplicitDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquicktext
&& (hAlign == QQuickText::AlignRight
hAlign == QQui...xt::AlignRightDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
|| hAlign == QQuickText::AlignLeft
hAlign == QQui...ext::AlignLeftDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)) {
0-8
1455 updateLayout();-
1456 q->effectiveHorizontalAlignmentChanged();-
1457 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquicktext
8
1458 }
executed 14 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquicktext
14
1459}
executed 34 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquicktext
34
1460-
1461QQuickText::VAlignment QQuickText::vAlign() const-
1462{-
1463 const QQuickTextPrivate * const d = d_func();-
1464 return
executed 40 times by 2 tests: return d->vAlign;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->vAlign;
executed 40 times by 2 tests: return d->vAlign;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
40
1465}-
1466-
1467void QQuickText::setVAlign(VAlignment align)-
1468{-
1469 QQuickTextPrivate * const d = d_func();-
1470 if (d->vAlign == align
d->vAlign == alignDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 435 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
)
20-435
1471 return;
executed 20 times by 1 test: return;
Executed by:
  • tst_qquicktext
20
1472-
1473 d->vAlign = align;-
1474-
1475 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 429 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
)
6-429
1476 d->updateLayout();
executed 6 times by 1 test: d->updateLayout();
Executed by:
  • tst_qquicktext
6
1477-
1478 verticalAlignmentChanged(align);-
1479}
executed 435 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
435
1480QQuickText::WrapMode QQuickText::wrapMode() const-
1481{-
1482 const QQuickTextPrivate * const d = d_func();-
1483 return
executed 246 times by 2 tests: return d->wrapMode;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->wrapMode;
executed 246 times by 2 tests: return d->wrapMode;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
246
1484}-
1485-
1486void QQuickText::setWrapMode(WrapMode mode)-
1487{-
1488 QQuickTextPrivate * const d = d_func();-
1489 if (mode == d->wrapMode
mode == d->wrapModeDescription
TRUEevaluated 34 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 380 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
)
34-380
1490 return;
executed 34 times by 1 test: return;
Executed by:
  • tst_qquicktext
34
1491-
1492 d->wrapMode = mode;-
1493 d->updateLayout();-
1494-
1495 wrapModeChanged();-
1496}
executed 380 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
380
1497int QQuickText::lineCount() const-
1498{-
1499 const QQuickTextPrivate * const d = d_func();-
1500 return
executed 76 times by 2 tests: return d->lineCount;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->lineCount;
executed 76 times by 2 tests: return d->lineCount;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
76
1501}-
1502bool QQuickText::truncated() const-
1503{-
1504 const QQuickTextPrivate * const d = d_func();-
1505 return
executed 172 times by 2 tests: return d->truncated;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->truncated;
executed 172 times by 2 tests: return d->truncated;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
172
1506}-
1507int QQuickText::maximumLineCount() const-
1508{-
1509 const QQuickTextPrivate * const d = d_func();-
1510 return
executed 24 times by 2 tests: return d->maximumLineCount();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->maximumLineCount();
executed 24 times by 2 tests: return d->maximumLineCount();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
24
1511}-
1512-
1513void QQuickText::setMaximumLineCount(int lines)-
1514{-
1515 QQuickTextPrivate * const d = d_func();-
1516-
1517 d->maximumLineCountValid = lines==0x7fffffff
lines==0x7fffffffDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_qquicktext
? false : true;
8-58
1518 if (d->maximumLineCount() != lines
d->maximumLineCount() != linesDescription
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
2-64
1519 d->extra.value().maximumLineCount = lines;-
1520 d->implicitHeightValid = false;-
1521 d->updateLayout();-
1522 maximumLineCountChanged();-
1523 }
executed 64 times by 1 test: end of block
Executed by:
  • tst_qquicktext
64
1524}
executed 66 times by 1 test: end of block
Executed by:
  • tst_qquicktext
66
1525-
1526void QQuickText::resetMaximumLineCount()-
1527{-
1528 QQuickTextPrivate * const d = d_func();-
1529 setMaximumLineCount(0x7fffffff);-
1530 if (d->truncated != false
d->truncated != falseDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
0-8
1531 d->truncated = false;-
1532 truncatedChanged();-
1533 }
never executed: end of block
0
1534}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquicktext
8
1535QQuickText::TextFormat QQuickText::textFormat() const-
1536{-
1537 const QQuickTextPrivate * const d = d_func();-
1538 return
executed 38 times by 2 tests: return d->format;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->format;
executed 38 times by 2 tests: return d->format;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
38
1539}-
1540-
1541void QQuickText::setTextFormat(TextFormat format)-
1542{-
1543 QQuickTextPrivate * const d = d_func();-
1544 if (format == d->format
format == d->formatDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 256 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquicktext
)
4-256
1545 return;
executed 4 times by 2 tests: return;
Executed by:
  • tst_examples
  • tst_qquicktext
4
1546 d->format = format;-
1547 bool wasRich = d->richText;-
1548 d->richText = format == RichText;-
1549 d->styledText = format == StyledText
format == StyledTextDescription
TRUEevaluated 58 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 198 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquicktext
|| (format == AutoText
format == AutoTextDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 194 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquicktext
&& Qt::mightBeRichText(d->text)
Qt::mightBeRichText(d->text)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
);
2-198
1550-
1551 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 18 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 238 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquicktext
) {
18-238
1552 if (!wasRich
!wasRichDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& d->richText
d->richTextDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
2-16
1553 d->ensureDoc();-
1554 d->extra->doc->setText(d->text);-
1555 d->rightToLeftText = d->extra->doc->toPlainText().isRightToLeft();-
1556 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
2
1557 d->clearFormats();-
1558 d->rightToLeftText = d->text.isRightToLeft();-
1559 d->textHasChanged = true;-
1560 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquicktext
16
1561 d->determineHorizontalAlignment();-
1562 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquicktext
18
1563 d->updateLayout();-
1564 setAcceptHoverEvents(d->richText || d->styledText);-
1565 setAcceptedMouseButtons(d->richText || d->styledText ? Qt::LeftButton : Qt::NoButton);-
1566-
1567 textFormatChanged(d->format);-
1568}
executed 256 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquicktext
256
1569QQuickText::TextElideMode QQuickText::elideMode() const-
1570{-
1571 const QQuickTextPrivate * const d = d_func();-
1572 return
executed 56 times by 2 tests: return d->elideMode;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->elideMode;
executed 56 times by 2 tests: return d->elideMode;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
56
1573}-
1574-
1575void QQuickText::setElideMode(QQuickText::TextElideMode mode)-
1576{-
1577 QQuickTextPrivate * const d = d_func();-
1578 if (mode == d->elideMode
mode == d->elideModeDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 320 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
42-320
1579 return;
executed 42 times by 1 test: return;
Executed by:
  • tst_qquicktext
42
1580-
1581 d->elideMode = mode;-
1582 d->updateLayout();-
1583-
1584 elideModeChanged(mode);-
1585}
executed 320 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
320
1586QUrl QQuickText::baseUrl() const-
1587{-
1588 const QQuickTextPrivate * const d = d_func();-
1589 if (!d->extra.isAllocated()
!d->extra.isAllocated()Description
TRUEevaluated 1970 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 254 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
|| d->extra->baseUrl.isEmpty()
d->extra->baseUrl.isEmpty()Description
TRUEevaluated 216 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
38-1970
1590 if (QQmlContext *context = qmlContext(this)
QQmlContext *c...lContext(this)Description
TRUEevaluated 2186 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEnever evaluated
)
0-2186
1591 return
executed 2186 times by 7 tests: return context->baseUrl();
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
context->baseUrl();
executed 2186 times by 7 tests: return context->baseUrl();
Executed by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextedit
2186
1592 else-
1593 return
never executed: return QUrl();
QUrl();
never executed: return QUrl();
0
1594 } else {-
1595 return
executed 38 times by 1 test: return d->extra->baseUrl;
Executed by:
  • tst_qquicktext
d->extra->baseUrl;
executed 38 times by 1 test: return d->extra->baseUrl;
Executed by:
  • tst_qquicktext
38
1596 }-
1597}-
1598-
1599void QQuickText::setBaseUrl(const QUrl &url)-
1600{-
1601 QQuickTextPrivate * const d = d_func();-
1602 if (baseUrl() != url
baseUrl() != urlDescription
TRUEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
2-20
1603 d->extra.value().baseUrl = url;-
1604-
1605 if (d->richText
d->richTextDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
0-20
1606 d->ensureDoc();-
1607 d->extra->doc->setBaseUrl(url);-
1608 }
never executed: end of block
0
1609 if (d->styledText
d->styledTextDescription
TRUEnever evaluated
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
0-20
1610 d->textHasChanged = true;-
1611 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1612 qDeleteAll(d->extra->imgTags);-
1613 d->extra->imgTags.clear();-
1614 }
never executed: end of block
0
1615 d->updateLayout();-
1616 }
never executed: end of block
0
1617 baseUrlChanged();-
1618 }
executed 20 times by 1 test: end of block
Executed by:
  • tst_qquicktext
20
1619}
executed 22 times by 1 test: end of block
Executed by:
  • tst_qquicktext
22
1620-
1621void QQuickText::resetBaseUrl()-
1622{-
1623 if (QQmlContext *context = qmlContext(this)
QQmlContext *c...lContext(this)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-2
1624 setBaseUrl(context->baseUrl());
executed 2 times by 1 test: setBaseUrl(context->baseUrl());
Executed by:
  • tst_qquicktext
2
1625 else-
1626 setBaseUrl(QUrl());
never executed: setBaseUrl(QUrl());
0
1627}-
1628-
1629-
1630QRectF QQuickText::boundingRect() const-
1631{-
1632 const QQuickTextPrivate * const d = d_func();-
1633-
1634 QRectF rect = d->layedOutTextRect;-
1635 rect.moveLeft(QQuickTextUtil::alignedX(rect.width(), width(), effectiveHAlign()));-
1636 rect.moveTop(QQuickTextUtil::alignedY(rect.height() + d->lineHeightOffset(), height(), d->vAlign));-
1637-
1638 if (d->style != Normal
d->style != NormalDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 222 times by 1 test
Evaluated by:
  • tst_qquicktext
)
2-222
1639 rect.adjust(-1, 0, 1, 2);
executed 2 times by 1 test: rect.adjust(-1, 0, 1, 2);
Executed by:
  • tst_qquicktext
2
1640-
1641-
1642 return
executed 224 times by 1 test: return rect;
Executed by:
  • tst_qquicktext
rect;
executed 224 times by 1 test: return rect;
Executed by:
  • tst_qquicktext
224
1643}-
1644-
1645QRectF QQuickText::clipRect() const-
1646{-
1647 const QQuickTextPrivate * const d = d_func();-
1648-
1649 QRectF rect = QQuickImplicitSizeItem::clipRect();-
1650 if (d->style != Normal
d->style != NormalDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
8-38
1651 rect.adjust(-1, 0, 1, 2);
executed 8 times by 1 test: rect.adjust(-1, 0, 1, 2);
Executed by:
  • tst_qquicktext
8
1652 return
executed 46 times by 2 tests: return rect;
Executed by:
  • tst_examples
  • tst_qquicktext
rect;
executed 46 times by 2 tests: return rect;
Executed by:
  • tst_examples
  • tst_qquicktext
46
1653}-
1654-
1655-
1656void QQuickText::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)-
1657{-
1658 QQuickTextPrivate * const d = d_func();-
1659 if (d->text.isEmpty()
d->text.isEmpty()Description
TRUEevaluated 215255 times by 20 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 386322 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
) {
215255-386322
1660 QQuickItem::geometryChanged(newGeometry, oldGeometry);-
1661 return;
executed 215255 times by 20 tests: return;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
215255
1662 }-
1663-
1664 bool widthChanged = newGeometry.width() != oldGeometry.width();-
1665 bool heightChanged = newGeometry.height() != oldGeometry.height();-
1666 bool wrapped = d->wrapMode != QQuickText::NoWrap;-
1667 bool elide = d->elideMode != QQuickText::ElideNone;-
1668 bool scaleFont = d->fontSizeMode() != QQuickText::FixedSize
d->fontSizeMod...ext::FixedSizeDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 386310 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& (widthValid()
widthValid()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
|| heightValid()
heightValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
);
0-386310
1669 bool verticalScale = (
(d->fontSizeMo...::VerticalFit)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 386318 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
d->fontSizeMode() & QQuickText::VerticalFit)
(d->fontSizeMo...::VerticalFit)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 386318 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& heightValid()
heightValid()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
;
0-386318
1670-
1671 bool widthMaximum = newGeometry.width() >= oldGeometry.width()
newGeometry.wi...ometry.width()Description
TRUEevaluated 354949 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 31373 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qqmlvaluetypes
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
&& !d->widthExceeded
!d->widthExceededDescription
TRUEevaluated 354337 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 612 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
;
612-354949
1672 bool heightMaximum = newGeometry.height() >= oldGeometry.height()
newGeometry.he...metry.height()Description
TRUEevaluated 386136 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 186 times by 4 tests
Evaluated by:
  • tst_qqmlvaluetypes
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktext
&& !d->heightExceeded
!d->heightExceededDescription
TRUEevaluated 386060 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_qquicktext
;
76-386136
1673-
1674 bool verticalPositionChanged = heightChanged
heightChangedDescription
TRUEevaluated 218262 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 168060 times by 28 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • ...
&& d->vAlign != AlignTop
d->vAlign != AlignTopDescription
TRUEevaluated 268 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
FALSEevaluated 217994 times by 31 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • ...
;
268-218262
1675-
1676 if ((!widthChanged
!widthChangedDescription
TRUEevaluated 35169 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 351153 times by 33 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
&& !heightChanged
!heightChangedDescription
TRUEevaluated 34371 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_scenegraph
FALSEevaluated 798 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktext
  • tst_scenegraph
) || d->internalWidthUpdate
d->internalWidthUpdateDescription
TRUEevaluated 350221 times by 32 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 1730 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
)
798-351153
1677 goto
executed 384592 times by 32 tests: goto geomChangeDone;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
geomChangeDone;
executed 384592 times by 32 tests: goto geomChangeDone;
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
384592
1678-
1679 if ((effectiveHAlign() != QQuickText::AlignLeft
effectiveHAlig...ext::AlignLeftDescription
TRUEevaluated 320 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 1410 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_scenegraph
&& widthChanged
widthChangedDescription
TRUEevaluated 286 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) || verticalPositionChanged
verticalPositionChangedDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 1426 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_scenegraph
) {
18-1426
1680-
1681-
1682 d->updateType = QQuickTextPrivate::UpdatePaintNode;-
1683 update();-
1684 }
executed 304 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
304
1685-
1686 if (!wrapped
!wrappedDescription
TRUEevaluated 1142 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 588 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
&& !elide
!elideDescription
TRUEevaluated 1084 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 58 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
&& !scaleFont
!scaleFontDescription
TRUEevaluated 1080 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !verticalPositionChanged
!verticalPositionChangedDescription
TRUEevaluated 838 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 242 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
)
4-1142
1687 goto
executed 838 times by 8 tests: goto geomChangeDone;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
geomChangeDone;
executed 838 times by 8 tests: goto geomChangeDone;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquicktext
  • tst_qquicktextedit
838
1688-
1689 if (elide
elideDescription
TRUEevaluated 108 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 784 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
  • tst_scenegraph
108-784
1690 && ((widthValid()
widthValid()Description
TRUEevaluated 92 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
&& oldGeometry.width() <= 0
oldGeometry.width() <= 0Description
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 66 times by 1 test
Evaluated by:
  • tst_qquicktext
&& newGeometry.width() <= 0
newGeometry.width() <= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 24 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
2-92
1691 || (heightValid()
heightValid()Description
TRUEevaluated 82 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
&& oldGeometry.height() <= 0
oldGeometry.height() <= 0Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 60 times by 1 test
Evaluated by:
  • tst_qquicktext
&& newGeometry.height() <= 0
newGeometry.height() <= 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
))) {
2-82
1692 goto
executed 4 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
geomChangeDone;
executed 4 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
4
1693 }-
1694-
1695 if (widthMaximum
widthMaximumDescription
TRUEevaluated 628 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 260 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
&& heightMaximum
heightMaximumDescription
TRUEevaluated 626 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !d->isLineLaidOutConnected()
!d->isLineLaidOutConnected()Description
TRUEevaluated 624 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !verticalPositionChanged
!verticalPositionChangedDescription
TRUEevaluated 376 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 248 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicktext
)
2-628
1696 goto
executed 376 times by 3 tests: goto geomChangeDone;
Executed by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
geomChangeDone;
executed 376 times by 3 tests: goto geomChangeDone;
Executed by:
  • tst_examples
  • tst_qquicktext
  • tst_scenegraph
376
1697-
1698 if (!(widthChanged
widthChangedDescription
TRUEevaluated 372 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
FALSEevaluated 140 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
|| widthMaximum
widthMaximumDescription
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 128 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) && !d->isLineLaidOutConnected()
!d->isLineLaidOutConnected()Description
TRUEevaluated 126 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
2-372
1699 if (newGeometry.height() > oldGeometry.height()
newGeometry.he...metry.height()Description
TRUEevaluated 96 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
30-96
1700 if (!d->heightExceeded
!d->heightExceededDescription
TRUEevaluated 74 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !qFuzzyIsNull(oldGeometry.height())
!qFuzzyIsNull(...etry.height())Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 64 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
10-74
1701-
1702 goto
executed 10 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
geomChangeDone;
executed 10 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
10
1703 }-
1704 if (d->lineCount == d->maximumLineCount()
d->lineCount =...mumLineCount()Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 70 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
16-70
1705 goto
executed 16 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
geomChangeDone;
executed 16 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
16
1706 }
executed 70 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else if (newGeometry.height() < oldGeometry.height()
newGeometry.he...metry.height()Description
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-70
1707 if (d->lineCount < 2
d->lineCount < 2Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !verticalScale
!verticalScaleDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& newGeometry.height() > 0
newGeometry.height() > 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-22
1708 goto
executed 8 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
geomChangeDone;
executed 8 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
8
1709-
1710 if (!verticalScale
!verticalScaleDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
0-22
1711 && d->elideMode != QQuickText::ElideRight
d->elideMode !...xt::ElideRightDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
8-14
1712 && !(d->maximumLineCountValid
d->maximumLineCountValidDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
&& d->widthExceeded
d->widthExceededDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)) {
0-4
1713 goto
executed 4 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
geomChangeDone;
executed 4 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
4
1714 }-
1715 }
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquicktext
18
1716 }
executed 88 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else if (!heightChanged
!heightChangedDescription
TRUEevaluated 128 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 258 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
&& widthMaximum
widthMaximumDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 126 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
) {
2-258
1717 goto
executed 2 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
geomChangeDone;
executed 2 times by 1 test: goto geomChangeDone;
Executed by:
  • tst_qquicktext
2
1718 }-
1719-
1720 if (d->updateOnComponentComplete
d->updateOnComponentCompleteDescription
TRUEevaluated 272 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicktext
FALSEevaluated 200 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
|| d->textHasChanged
d->textHasChangedDescription
TRUEevaluated 86 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 114 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
) {
86-272
1721-
1722 d->updateLayout();-
1723 }
executed 358 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquicktext
else {
358
1724-
1725 d->updateSize();-
1726 }
executed 114 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicktext
114
1727-
1728geomChangeDone:
code before this statement executed 472 times by 4 tests: geomChangeDone:
Executed by:
  • tst_examples
  • tst_qquickflickable
  • tst_qquicklistview
  • tst_qquicktext
472
1729 QQuickItem::geometryChanged(newGeometry, oldGeometry);-
1730}
executed 386322 times by 33 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • ...
386322
1731-
1732void QQuickText::triggerPreprocess()-
1733{-
1734 QQuickTextPrivate * const d = d_func();-
1735 if (d->updateType == QQuickTextPrivate::UpdateNone
d->updateType ...te::UpdateNoneDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1736 d->updateType = QQuickTextPrivate::UpdatePreprocess;
never executed: d->updateType = QQuickTextPrivate::UpdatePreprocess;
0
1737 update();-
1738}
never executed: end of block
0
1739-
1740QSGNode *QQuickText::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)-
1741{-
1742 (void)data;;-
1743 QQuickTextPrivate * const d = d_func();-
1744-
1745 if (d->text.isEmpty()
d->text.isEmpty()Description
TRUEevaluated 38737 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktextedit
FALSEevaluated 248380 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
) {
38737-248380
1746 delete oldNode;-
1747 return
executed 38737 times by 5 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktextedit
nullptr;
executed 38737 times by 5 tests: return nullptr;
Executed by:
  • tst_examples
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktextedit
38737
1748 }-
1749-
1750 if (d->updateType != QQuickTextPrivate::UpdatePaintNode
d->updateType ...pdatePaintNodeDescription
TRUEnever evaluated
FALSEevaluated 248380 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
&& oldNode != nullptr
oldNode != nullptrDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0-248380
1751-
1752 d->updateType = QQuickTextPrivate::UpdateNone;-
1753 return
never executed: return oldNode;
oldNode;
never executed: return oldNode;
0
1754 }-
1755-
1756 d->updateType = QQuickTextPrivate::UpdateNone;-
1757-
1758 const qreal dy = QQuickTextUtil::alignedY(d->layedOutTextRect.height() + d->lineHeightOffset(), d->availableHeight(), d->vAlign) + topPadding();-
1759-
1760 QQuickTextNode *node = nullptr;-
1761 if (!oldNode
!oldNodeDescription
TRUEevaluated 173985 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
FALSEevaluated 74395 times by 9 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
)
74395-173985
1762 node = new QQuickTextNode(this);
executed 173985 times by 21 tests: node = new QQuickTextNode(this);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
173985
1763 else-
1764 node = static_cast<QQuickTextNode *>(oldNode);
executed 74395 times by 9 tests: node = static_cast<QQuickTextNode *>(oldNode);
Executed by:
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicktext
  • tst_qquicktextedit
74395
1765-
1766 node->setUseNativeRenderer(d->renderType == NativeRendering);-
1767 node->deleteContent();-
1768 node->setMatrix(QMatrix4x4());-
1769-
1770 const QColor color = QColor::fromRgba(d->color);-
1771 const QColor styleColor = QColor::fromRgba(d->styleColor);-
1772 const QColor linkColor = QColor::fromRgba(d->linkColor);-
1773-
1774 if (d->richText
d->richTextDescription
TRUEevaluated 84 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 248296 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
) {
84-248296
1775 const qreal dx = QQuickTextUtil::alignedX(d->layedOutTextRect.width(), d->availableWidth(), effectiveHAlign()) + leftPadding();-
1776 d->ensureDoc();-
1777 node->addTextDocument(QPointF(dx, dy), d->extra->doc, color, d->style, styleColor, linkColor);-
1778 }
executed 84 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else if (d->layedOutTextRect.width() > 0
d->layedOutTex...ct.width() > 0Description
TRUEevaluated 248296 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
FALSEnever evaluated
) {
0-248296
1779 const qreal dx = QQuickTextUtil::alignedX(d->lineWidth, d->availableWidth(), effectiveHAlign()) + leftPadding();-
1780 int unelidedLineCount = d->lineCount;-
1781 if (d->elideLayout
d->elideLayoutDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 248272 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
)
24-248272
1782 unelidedLineCount -= 1;
executed 24 times by 1 test: unelidedLineCount -= 1;
Executed by:
  • tst_qquicktext
24
1783 if (unelidedLineCount > 0
unelidedLineCount > 0Description
TRUEevaluated 248272 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
24-248272
1784 node->addTextLayout(-
1785 QPointF(dx, dy),-
1786 &d->layout,-
1787 color, d->style, styleColor, linkColor,-
1788 QColor(), QColor(), -1, -1,-
1789 0, unelidedLineCount);-
1790 }
executed 248272 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
248272
1791 if (d->elideLayout
d->elideLayoutDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 248272 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
)
24-248272
1792 node->addTextLayout(QPointF(dx, dy), d->elideLayout, color, d->style, styleColor, linkColor);
executed 24 times by 1 test: node->addTextLayout(QPointF(dx, dy), d->elideLayout, color, d->style, styleColor, linkColor);
Executed by:
  • tst_qquicktext
24
1793-
1794 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 308 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 247988 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
) {
308-247988
1795 for (QQuickStyledTextImgTag *img : qAsConst(d->extra->visibleImgTags)) {-
1796 QQuickPixmap *pix = img->pix;-
1797 if (pix
pixDescription
TRUEevaluated 30 times by 1 test
Evaluated by:
  • tst_examples
FALSEnever evaluated
&& pix->isReady()
pix->isReady()Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_examples
)
0-30
1798 node->addImage(QRectF(img->pos.x() + dx, img->pos.y() + dy, pix->width(), pix->height()), pix->image());
executed 26 times by 1 test: node->addImage(QRectF(img->pos.x() + dx, img->pos.y() + dy, pix->width(), pix->height()), pix->image());
Executed by:
  • tst_examples
26
1799 }
executed 30 times by 1 test: end of block
Executed by:
  • tst_examples
30
1800 }
executed 308 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
308
1801 }
executed 248296 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
248296
1802-
1803-
1804-
1805 invalidateFontCaches();-
1806-
1807 return
executed 248380 times by 21 tests: return node;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
node;
executed 248380 times by 21 tests: return node;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
248380
1808}-
1809-
1810void QQuickText::updatePolish()-
1811{-
1812 QQuickTextPrivate * const d = d_func();-
1813-
1814-
1815-
1816 if (!d->assignedFont.isEmpty()
!d->assignedFont.isEmpty()Description
TRUEevaluated 253536 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
FALSEevaluated 39087 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
&& QFontInfo(d->font).family() != d->assignedFont
QFontInfo(d->f...->assignedFontDescription
TRUEnever evaluated
FALSEevaluated 253536 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
)
0-253536
1817 d->polishSize = true;
never executed: d->polishSize = true;
0
1818-
1819 if (d->polishSize
d->polishSizeDescription
TRUEevaluated 88 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 292535 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
) {
88-292535
1820 d->updateSize();-
1821 d->polishSize = false;-
1822 }
executed 88 times by 1 test: end of block
Executed by:
  • tst_qquicktext
88
1823 invalidateFontCaches();-
1824}
executed 292623 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
292623
1825-
1826-
1827-
1828-
1829-
1830-
1831-
1832qreal QQuickText::contentWidth() const-
1833{-
1834 const QQuickTextPrivate * const d = d_func();-
1835 return
executed 434 times by 2 tests: return d->layedOutTextRect.width();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->layedOutTextRect.width();
executed 434 times by 2 tests: return d->layedOutTextRect.width();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
434
1836}-
1837-
1838-
1839-
1840-
1841-
1842-
1843-
1844qreal QQuickText::contentHeight() const-
1845{-
1846 const QQuickTextPrivate * const d = d_func();-
1847 return
executed 410 times by 2 tests: return d->layedOutTextRect.height();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->layedOutTextRect.height();
executed 410 times by 2 tests: return d->layedOutTextRect.height();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
410
1848}-
1849qreal QQuickText::lineHeight() const-
1850{-
1851 const QQuickTextPrivate * const d = d_func();-
1852 return
executed 18 times by 2 tests: return d->lineHeight();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->lineHeight();
executed 18 times by 2 tests: return d->lineHeight();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
18
1853}-
1854-
1855void QQuickText::setLineHeight(qreal lineHeight)-
1856{-
1857 QQuickTextPrivate * const d = d_func();-
1858-
1859 if ((
(d->lineHeight...== lineHeight)Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
d->lineHeight() == lineHeight)
(d->lineHeight...== lineHeight)Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
|| (
(lineHeight < 0.0)Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
lineHeight < 0.0)
(lineHeight < 0.0)Description
TRUEnever evaluated
FALSEevaluated 30 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-30
1860 return;
never executed: return;
0
1861-
1862 d->extra.value().lineHeightValid = true;-
1863 d->extra.value().lineHeight = lineHeight;-
1864 d->implicitHeightValid = false;-
1865 d->updateLayout();-
1866 lineHeightChanged(lineHeight);-
1867}
executed 30 times by 1 test: end of block
Executed by:
  • tst_qquicktext
30
1868QQuickText::LineHeightMode QQuickText::lineHeightMode() const-
1869{-
1870 const QQuickTextPrivate * const d = d_func();-
1871 return
executed 18 times by 2 tests: return d->lineHeightMode();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->lineHeightMode();
executed 18 times by 2 tests: return d->lineHeightMode();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
18
1872}-
1873-
1874void QQuickText::setLineHeightMode(LineHeightMode mode)-
1875{-
1876 QQuickTextPrivate * const d = d_func();-
1877 if (mode == d->lineHeightMode()
mode == d->lineHeightMode()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicktext
)
8-14
1878 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquicktext
8
1879-
1880 d->implicitHeightValid = false;-
1881 d->extra.value().lineHeightValid = true;-
1882 d->extra.value().lineHeightMode = mode;-
1883 d->updateLayout();-
1884-
1885 lineHeightModeChanged(mode);-
1886}
executed 14 times by 1 test: end of block
Executed by:
  • tst_qquicktext
14
1887QQuickText::FontSizeMode QQuickText::fontSizeMode() const-
1888{-
1889 const QQuickTextPrivate * const d = d_func();-
1890 return
executed 16 times by 1 test: return d->fontSizeMode();
Executed by:
  • tst_qqmlenginedebugservice
d->fontSizeMode();
executed 16 times by 1 test: return d->fontSizeMode();
Executed by:
  • tst_qqmlenginedebugservice
16
1891}-
1892-
1893void QQuickText::setFontSizeMode(FontSizeMode mode)-
1894{-
1895 QQuickTextPrivate * const d = d_func();-
1896 if (d->fontSizeMode() == mode
d->fontSizeMode() == modeDescription
TRUEnever evaluated
FALSEevaluated 94 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-94
1897 return;
never executed: return;
0
1898-
1899 d->polishSize = true;-
1900 polish();-
1901-
1902 d->extra.value().fontSizeMode = mode;-
1903 fontSizeModeChanged();-
1904}
executed 94 times by 1 test: end of block
Executed by:
  • tst_qquicktext
94
1905int QQuickText::minimumPixelSize() const-
1906{-
1907 const QQuickTextPrivate * const d = d_func();-
1908 return
executed 16 times by 1 test: return d->minimumPixelSize();
Executed by:
  • tst_qqmlenginedebugservice
d->minimumPixelSize();
executed 16 times by 1 test: return d->minimumPixelSize();
Executed by:
  • tst_qqmlenginedebugservice
16
1909}-
1910-
1911void QQuickText::setMinimumPixelSize(int size)-
1912{-
1913 QQuickTextPrivate * const d = d_func();-
1914 if (d->minimumPixelSize() == size
d->minimumPixelSize() == sizeDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-8
1915 return;
never executed: return;
0
1916-
1917 if (d->fontSizeMode() != FixedSize
d->fontSizeMode() != FixedSizeDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
&& (widthValid()
widthValid()Description
TRUEnever evaluated
FALSEnever evaluated
|| heightValid()
heightValid()Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0-8
1918 d->polishSize = true;-
1919 polish();-
1920 }
never executed: end of block
0
1921 d->extra.value().minimumPixelSize = size;-
1922 minimumPixelSizeChanged();-
1923}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquicktext
8
1924int QQuickText::minimumPointSize() const-
1925{-
1926 const QQuickTextPrivate * const d = d_func();-
1927 return
executed 16 times by 1 test: return d->minimumPointSize();
Executed by:
  • tst_qqmlenginedebugservice
d->minimumPointSize();
executed 16 times by 1 test: return d->minimumPointSize();
Executed by:
  • tst_qqmlenginedebugservice
16
1928}-
1929-
1930void QQuickText::setMinimumPointSize(int size)-
1931{-
1932 QQuickTextPrivate * const d = d_func();-
1933 if (d->minimumPointSize() == size
d->minimumPointSize() == sizeDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-12
1934 return;
never executed: return;
0
1935-
1936 if (d->fontSizeMode() != FixedSize
d->fontSizeMode() != FixedSizeDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
&& (widthValid()
widthValid()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
|| heightValid()
heightValid()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
)) {
0-8
1937 d->polishSize = true;-
1938 polish();-
1939 }
never executed: end of block
0
1940 d->extra.value().minimumPointSize = size;-
1941 minimumPointSizeChanged();-
1942}
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquicktext
12
1943-
1944-
1945-
1946-
1947int QQuickText::resourcesLoading() const-
1948{-
1949 const QQuickTextPrivate * const d = d_func();-
1950 if (d->richText
d->richTextDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& d->extra->doc
d->extra->docDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
)
0-24
1951 return
executed 24 times by 1 test: return d->extra->doc->resourcesLoading();
Executed by:
  • tst_qquicktext
d->extra->doc->resourcesLoading();
executed 24 times by 1 test: return d->extra->doc->resourcesLoading();
Executed by:
  • tst_qquicktext
24
1952 return
never executed: return 0;
0;
never executed: return 0;
0
1953}-
1954-
1955-
1956void QQuickText::componentComplete()-
1957{-
1958 QQuickTextPrivate * const d = d_func();-
1959 if (d->updateOnComponentComplete
d->updateOnComponentCompleteDescription
TRUEevaluated 264678 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEnever evaluated
) {
0-264678
1960 if (d->richText
d->richTextDescription
TRUEevaluated 148 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 264530 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
) {
148-264530
1961 d->ensureDoc();-
1962 d->extra->doc->setText(d->text);-
1963 d->rightToLeftText = d->extra->doc->toPlainText().isRightToLeft();-
1964 }
executed 148 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else {
148
1965 d->rightToLeftText = d->text.isRightToLeft();-
1966 }
executed 264530 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264530
1967 d->determineHorizontalAlignment();-
1968 }
executed 264678 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264678
1969 QQuickItem::componentComplete();-
1970 if (d->updateOnComponentComplete
d->updateOnComponentCompleteDescription
TRUEevaluated 264440 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
FALSEevaluated 238 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
)
238-264440
1971 d->updateLayout();
executed 264440 times by 35 tests: d->updateLayout();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264440
1972}
executed 264678 times by 35 tests: end of block
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
264678
1973-
1974QString QQuickTextPrivate::anchorAt(const QTextLayout *layout, const QPointF &mousePos)-
1975{-
1976 for (int i = 0; i < layout->lineCount()
i < layout->lineCount()Description
TRUEevaluated 300 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_qquicktext
; ++i) {
62-300
1977 QTextLine line = layout->lineAt(i);-
1978 if (line.naturalTextRect().contains(mousePos)
line.naturalTe...ains(mousePos)Description
TRUEevaluated 202 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 98 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
98-202
1979 int charPos = line.xToCursor(mousePos.x(), QTextLine::CursorOnCharacter);-
1980 const auto formats = layout->formats();-
1981 for (const QTextLayout::FormatRange &formatRange : formats) {-
1982 if (formatRange.format.isAnchor()
formatRange.format.isAnchor()Description
TRUEevaluated 278 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
0-278
1983 && charPos >= formatRange.start
charPos >= formatRange.startDescription
TRUEevaluated 256 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_qquicktext
22-256
1984 && charPos < formatRange.start + formatRange.length
charPos < form...atRange.lengthDescription
TRUEevaluated 180 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 76 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
76-180
1985 return
executed 180 times by 1 test: return formatRange.format.anchorHref();
Executed by:
  • tst_qquicktext
formatRange.format.anchorHref();
executed 180 times by 1 test: return formatRange.format.anchorHref();
Executed by:
  • tst_qquicktext
180
1986 }-
1987 }
executed 98 times by 1 test: end of block
Executed by:
  • tst_qquicktext
98
1988 break;
executed 22 times by 1 test: break;
Executed by:
  • tst_qquicktext
22
1989 }-
1990 }
executed 98 times by 1 test: end of block
Executed by:
  • tst_qquicktext
98
1991 return
executed 84 times by 1 test: return QString();
Executed by:
  • tst_qquicktext
QString();
executed 84 times by 1 test: return QString();
Executed by:
  • tst_qquicktext
84
1992}-
1993-
1994QString QQuickTextPrivate::anchorAt(const QPointF &mousePos) const-
1995{-
1996 const QQuickText * const q = q_func();-
1997 QPointF translatedMousePos = mousePos;-
1998 translatedMousePos.rx() -= q->leftPadding();-
1999 translatedMousePos.ry() -= q->topPadding() + QQuickTextUtil::alignedY(layedOutTextRect.height() + lineHeightOffset(), availableHeight(), vAlign);-
2000 if (styledText
styledTextDescription
TRUEevaluated 240 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 162 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
162-240
2001 QString link = anchorAt(&layout, translatedMousePos);-
2002 if (link.isEmpty()
link.isEmpty()Description
TRUEevaluated 80 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 160 times by 1 test
Evaluated by:
  • tst_qquicktext
&& elideLayout
elideLayoutDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 56 times by 1 test
Evaluated by:
  • tst_qquicktext
)
24-160
2003 link = anchorAt(elideLayout, translatedMousePos);
executed 24 times by 1 test: link = anchorAt(elideLayout, translatedMousePos);
Executed by:
  • tst_qquicktext
24
2004 return
executed 240 times by 1 test: return link;
Executed by:
  • tst_qquicktext
link;
executed 240 times by 1 test: return link;
Executed by:
  • tst_qquicktext
240
2005 } else if (richText
richTextDescription
TRUEevaluated 162 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 162 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& extra->doc
extra->docDescription
TRUEevaluated 162 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-162
2006 translatedMousePos.rx() -= QQuickTextUtil::alignedX(layedOutTextRect.width(), availableWidth(), q->effectiveHAlign());-
2007 return
executed 162 times by 1 test: return extra->doc->documentLayout()->anchorAt(translatedMousePos);
Executed by:
  • tst_qquicktext
extra->doc->documentLayout()->anchorAt(translatedMousePos);
executed 162 times by 1 test: return extra->doc->documentLayout()->anchorAt(translatedMousePos);
Executed by:
  • tst_qquicktext
162
2008 }-
2009 return
never executed: return QString();
QString();
never executed: return QString();
0
2010}-
2011-
2012bool QQuickTextPrivate::isLinkActivatedConnected()-
2013{-
2014 QQuickText * const q = q_func();-
2015 do { QObject *sender = (q); void (QQuickText::*signal)(const QString &) = &QQuickText::linkActivated; static QMetaMethod method = QMetaMethod::fromSignal(signal); static int signalIdx = QMetaObjectPrivate::signalIndex(method); return
executed 360 times by 6 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
Executed by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktext
QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
executed 360 times by 6 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
Executed by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquicktaphandler
  • tst_qquicktext
} while (0);
360
2016}-
2017-
2018-
2019void QQuickText::mousePressEvent(QMouseEvent *event)-
2020{-
2021 QQuickTextPrivate * const d = d_func();-
2022-
2023 QString link;-
2024 if (d->isLinkActivatedConnected()
d->isLinkActivatedConnected()Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 230 times by 4 tests
Evaluated by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
)
64-230
2025 link = d->anchorAt(event->localPos());
executed 64 times by 1 test: link = d->anchorAt(event->localPos());
Executed by:
  • tst_qquicktext
64
2026-
2027 if (link.isEmpty()
link.isEmpty()Description
TRUEevaluated 236 times by 5 tests
Evaluated by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktext
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
58-236
2028 event->setAccepted(false);-
2029 }
executed 236 times by 5 tests: end of block
Executed by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktext
else {
236
2030 d->extra.value().activeLink = link;-
2031 }
executed 58 times by 1 test: end of block
Executed by:
  • tst_qquicktext
58
2032-
2033-
2034-
2035 if (!event->isAccepted()
!event->isAccepted()Description
TRUEevaluated 236 times by 5 tests
Evaluated by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktext
FALSEevaluated 58 times by 1 test
Evaluated by:
  • tst_qquicktext
)
58-236
2036 QQuickItem::mousePressEvent(event);
executed 236 times by 5 tests: QQuickItem::mousePressEvent(event);
Executed by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktext
236
2037}
executed 294 times by 5 tests: end of block
Executed by:
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktaphandler
  • tst_qquicktext
294
2038-
2039-
2040-
2041void QQuickText::mouseReleaseEvent(QMouseEvent *event)-
2042{-
2043 QQuickTextPrivate * const d = d_func();-
2044-
2045-
2046-
2047 QString link;-
2048 if (d->isLinkActivatedConnected()
d->isLinkActivatedConnected()Description
TRUEevaluated 64 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpathview
)
2-64
2049 link = d->anchorAt(event->localPos());
executed 64 times by 1 test: link = d->anchorAt(event->localPos());
Executed by:
  • tst_qquicktext
64
2050-
2051 if (!link.isEmpty()
!link.isEmpty()Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickpathview
  • tst_qquicktext
&& d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 58 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
&& d->extra->activeLink == link
d->extra->activeLink == linkDescription
TRUEevaluated 48 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-58
2052 linkActivated(d->extra->activeLink);
executed 48 times by 1 test: linkActivated(d->extra->activeLink);
Executed by:
  • tst_qquicktext
48
2053 else-
2054 event->setAccepted(false);
executed 18 times by 2 tests: event->setAccepted(false);
Executed by:
  • tst_qquickpathview
  • tst_qquicktext
18
2055-
2056 if (!event->isAccepted()
!event->isAccepted()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickpathview
  • tst_qquicktext
FALSEevaluated 48 times by 1 test
Evaluated by:
  • tst_qquicktext
)
18-48
2057 QQuickItem::mouseReleaseEvent(event);
executed 18 times by 2 tests: QQuickItem::mouseReleaseEvent(event);
Executed by:
  • tst_qquickpathview
  • tst_qquicktext
18
2058}
executed 66 times by 2 tests: end of block
Executed by:
  • tst_qquickpathview
  • tst_qquicktext
66
2059-
2060bool QQuickTextPrivate::isLinkHoveredConnected()-
2061{-
2062 QQuickText * const q = q_func();-
2063 do { QObject *sender = (q); void (QQuickText::*signal)(const QString &) = &QQuickText::linkHovered; static QMetaMethod method = QMetaMethod::fromSignal(signal); static int signalIdx = QMetaObjectPrivate::signalIndex(method); return
executed 354 times by 2 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
executed 354 times by 2 tests: return QObjectPrivate::get(sender)->isSignalConnected(signalIdx);
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
} while (0);
354
2064}-
2065QString QQuickText::hoveredLink() const-
2066{-
2067 const QQuickTextPrivate * const d = d_func();-
2068 if (const_cast<
const_cast<QQu...redConnected()Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
QQuickTextPrivate *>(d)->isLinkHoveredConnected()
const_cast<QQu...redConnected()Description
TRUEevaluated 192 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
) {
16-192
2069 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 184 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
)
8-184
2070 return
executed 184 times by 1 test: return d->extra->hoveredLink;
Executed by:
  • tst_qquicktext
d->extra->hoveredLink;
executed 184 times by 1 test: return d->extra->hoveredLink;
Executed by:
  • tst_qquicktext
184
2071 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquicktext
else {
8
2072-
2073 if (QQuickWindow *wnd = window()
QQuickWindow *wnd = window()Description
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qqmlenginedebugservice
) {
0-16
2074 QPointF pos = QCursor::pos(wnd->screen()) - wnd->position() - mapToScene(QPointF(0, 0));-
2075 return
never executed: return d->anchorAt(pos);
d->anchorAt(pos);
never executed: return d->anchorAt(pos);
0
2076 }-
2077-
2078 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_qqmlenginedebugservice
16
2079 return
executed 24 times by 2 tests: return QString();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
QString();
executed 24 times by 2 tests: return QString();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
24
2080}-
2081-
2082void QQuickTextPrivate::processHoverEvent(QHoverEvent *event)-
2083{-
2084 QQuickText * const q = q_func();-
2085 for (bool qt_category_enabled = DBG_HOVER_TRACE().isDebugEnabled(); qt_category_enabled
qt_category_enabledDescription
TRUEnever evaluated
FALSEevaluated 146 times by 1 test
Evaluated by:
  • tst_qquicktext
; qt_category_enabled = false) QMessageLogger(__FILE__, 2819, __PRETTY_FUNCTION__, DBG_HOVER_TRACE().categoryName()).debug() << q;
never executed: QMessageLogger(__FILE__, 2819, __PRETTY_FUNCTION__, DBG_HOVER_TRACE().categoryName()).debug() << q;
0-146
2086 QString link;-
2087 if (isLinkHoveredConnected()
isLinkHoveredConnected()Description
TRUEevaluated 146 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEnever evaluated
) {
0-146
2088 if (event->type() != QEvent::HoverLeave
event->type() ...nt::HoverLeaveDescription
TRUEevaluated 82 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 64 times by 1 test
Evaluated by:
  • tst_qquicktext
)
64-82
2089 link = anchorAt(event->posF());
executed 82 times by 1 test: link = anchorAt(event->posF());
Executed by:
  • tst_qquicktext
82
2090-
2091 if ((!extra.isAllocated()
!extra.isAllocated()Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 104 times by 1 test
Evaluated by:
  • tst_qquicktext
&& !link.isEmpty()
!link.isEmpty()Description
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
) || (extra.isAllocated()
extra.isAllocated()Description
TRUEevaluated 104 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicktext
&& extra->hoveredLink != link
extra->hoveredLink != linkDescription
TRUEevaluated 92 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicktext
)) {
6-104
2092 extra.value().hoveredLink = link;-
2093 q->linkHovered(extra->hoveredLink);-
2094 }
executed 128 times by 1 test: end of block
Executed by:
  • tst_qquicktext
128
2095 }
executed 146 times by 1 test: end of block
Executed by:
  • tst_qquicktext
146
2096 event->setAccepted(!link.isEmpty());-
2097}
executed 146 times by 1 test: end of block
Executed by:
  • tst_qquicktext
146
2098-
2099void QQuickText::hoverEnterEvent(QHoverEvent *event)-
2100{-
2101 QQuickTextPrivate * const d = d_func();-
2102 d->processHoverEvent(event);-
2103}
executed 64 times by 1 test: end of block
Executed by:
  • tst_qquicktext
64
2104-
2105void QQuickText::hoverMoveEvent(QHoverEvent *event)-
2106{-
2107 QQuickTextPrivate * const d = d_func();-
2108 d->processHoverEvent(event);-
2109}
executed 18 times by 1 test: end of block
Executed by:
  • tst_qquicktext
18
2110-
2111void QQuickText::hoverLeaveEvent(QHoverEvent *event)-
2112{-
2113 QQuickTextPrivate * const d = d_func();-
2114 d->processHoverEvent(event);-
2115}
executed 64 times by 1 test: end of block
Executed by:
  • tst_qquicktext
64
2116QQuickText::RenderType QQuickText::renderType() const-
2117{-
2118 const QQuickTextPrivate * const d = d_func();-
2119 return
executed 22 times by 2 tests: return d->renderType;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->renderType;
executed 22 times by 2 tests: return d->renderType;
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
22
2120}-
2121-
2122void QQuickText::setRenderType(QQuickText::RenderType renderType)-
2123{-
2124 QQuickTextPrivate * const d = d_func();-
2125 if (d->renderType == renderType
d->renderType == renderTypeDescription
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_qquicklayouts
  • tst_qquicktext
FALSEevaluated 76 times by 2 tests
Evaluated by:
  • tst_qquicktext
  • tst_scenegraph
)
4-76
2126 return;
executed 4 times by 2 tests: return;
Executed by:
  • tst_qquicklayouts
  • tst_qquicktext
4
2127-
2128 d->renderType = renderType;-
2129 renderTypeChanged();-
2130-
2131 if (isComponentComplete()
isComponentComplete()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 72 times by 1 test
Evaluated by:
  • tst_scenegraph
)
4-72
2132 d->updateLayout();
executed 4 times by 1 test: d->updateLayout();
Executed by:
  • tst_qquicktext
4
2133}
executed 76 times by 2 tests: end of block
Executed by:
  • tst_qquicktext
  • tst_scenegraph
76
2134-
2135-
2136-
2137-
2138-
2139-
2140-
2141void QQuickText::doLayout()-
2142{-
2143 forceLayout();-
2144}
never executed: end of block
0
2145-
2146-
2147-
2148-
2149-
2150-
2151-
2152void QQuickText::forceLayout()-
2153{-
2154 QQuickTextPrivate * const d = d_func();-
2155 d->updateSize();-
2156}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
2157QString QQuickText::linkAt(qreal x, qreal y) const-
2158{-
2159 const QQuickTextPrivate * const d = d_func();-
2160 return
executed 192 times by 1 test: return d->anchorAt(QPointF(x, y));
Executed by:
  • tst_qquicktext
d->anchorAt(QPointF(x, y));
executed 192 times by 1 test: return d->anchorAt(QPointF(x, y));
Executed by:
  • tst_qquicktext
192
2161}-
2162-
2163-
2164-
2165-
2166-
2167-
2168-
2169void QQuickText::invalidateFontCaches()-
2170{-
2171 QQuickTextPrivate * const d = d_func();-
2172-
2173 if (d->richText
d->richTextDescription
TRUEevaluated 174 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 540829 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
&& d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 174 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
&& d->extra->doc != nullptr
d->extra->doc != nullptrDescription
TRUEevaluated 174 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
) {
0-540829
2174 QTextBlock block;-
2175 for (block = d->extra->doc->firstBlock(); block.isValid()
block.isValid()Description
TRUEevaluated 222 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 174 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
; block = block.next()) {
174-222
2176 if (block.layout() != nullptr
block.layout() != nullptrDescription
TRUEevaluated 222 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
&& block.layout()->engine() != nullptr
block.layout()...e() != nullptrDescription
TRUEevaluated 222 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEnever evaluated
)
0-222
2177 block.layout()->engine()->resetFontEngineCache();
executed 222 times by 2 tests: block.layout()->engine()->resetFontEngineCache();
Executed by:
  • tst_examples
  • tst_qquicktext
222
2178 }
executed 222 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
222
2179 }
executed 174 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicktext
else {
174
2180 if (d->layout.engine() != nullptr
d->layout.engine() != nullptrDescription
TRUEevaluated 540829 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
FALSEnever evaluated
)
0-540829
2181 d->layout.engine()->resetFontEngineCache();
executed 540829 times by 21 tests: d->layout.engine()->resetFontEngineCache();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
540829
2182 }
executed 540829 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspringanimation
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_scenegraph
  • tst_touchmouse
540829
2183}-
2184qreal QQuickText::padding() const-
2185{-
2186 const QQuickTextPrivate * const d = d_func();-
2187 return
executed 18 times by 2 tests: return d->padding();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
d->padding();
executed 18 times by 2 tests: return d->padding();
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquicktext
18
2188}-
2189-
2190void QQuickText::setPadding(qreal padding)-
2191{-
2192 QQuickTextPrivate * const d = d_func();-
2193 if (qFuzzyCompare(d->padding(), padding)
qFuzzyCompare(...ng(), padding)Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-4
2194 return;
never executed: return;
0
2195-
2196 d->extra.value().padding = padding;-
2197 d->updateSize();-
2198 paddingChanged();-
2199 if (!d->extra.isAllocated()
!d->extra.isAllocated()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
|| !d->extra->explicitTopPadding
!d->extra->explicitTopPaddingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-4
2200 topPaddingChanged();
executed 2 times by 1 test: topPaddingChanged();
Executed by:
  • tst_qquicktext
2
2201 if (!d->extra.isAllocated()
!d->extra.isAllocated()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
|| !d->extra->explicitLeftPadding
!d->extra->explicitLeftPaddingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-4
2202 leftPaddingChanged();
executed 2 times by 1 test: leftPaddingChanged();
Executed by:
  • tst_qquicktext
2
2203 if (!d->extra.isAllocated()
!d->extra.isAllocated()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
|| !d->extra->explicitRightPadding
!d->extra->exp...itRightPaddingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-4
2204 rightPaddingChanged();
executed 2 times by 1 test: rightPaddingChanged();
Executed by:
  • tst_qquicktext
2
2205 if (!d->extra.isAllocated()
!d->extra.isAllocated()Description
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquicktext
|| !d->extra->explicitBottomPadding
!d->extra->exp...tBottomPaddingDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicktext
)
0-4
2206 bottomPaddingChanged();
executed 2 times by 1 test: bottomPaddingChanged();
Executed by:
  • tst_qquicktext
2
2207}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktext
4
2208-
2209void QQuickText::resetPadding()-
2210{-
2211 setPadding(0);-
2212}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
2213-
2214qreal QQuickText::topPadding() const-
2215{-
2216 const QQuickTextPrivate * const d = d_func();-
2217 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 6520 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2713358 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
&& d->extra->explicitTopPadding
d->extra->explicitTopPaddingDescription
TRUEevaluated 896 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 5624 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
896-2713358
2218 return
executed 896 times by 1 test: return d->extra->topPadding;
Executed by:
  • tst_qquicktext
d->extra->topPadding;
executed 896 times by 1 test: return d->extra->topPadding;
Executed by:
  • tst_qquicktext
896
2219 return
executed 2718982 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
d->padding();
executed 2718982 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
2718982
2220}-
2221-
2222void QQuickText::setTopPadding(qreal padding)-
2223{-
2224 QQuickTextPrivate * const d = d_func();-
2225 d->setTopPadding(padding);-
2226}
executed 32 times by 1 test: end of block
Executed by:
  • tst_qquicktext
32
2227-
2228void QQuickText::resetTopPadding()-
2229{-
2230 QQuickTextPrivate * const d = d_func();-
2231 d->setTopPadding(0, true);-
2232}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
2233-
2234qreal QQuickText::leftPadding() const-
2235{-
2236 const QQuickTextPrivate * const d = d_func();-
2237 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 4824 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 2238461 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
&& d->extra->explicitLeftPadding
d->extra->explicitLeftPaddingDescription
TRUEevaluated 132 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 4692 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
132-2238461
2238 return
executed 132 times by 1 test: return d->extra->leftPadding;
Executed by:
  • tst_qquicktext
d->extra->leftPadding;
executed 132 times by 1 test: return d->extra->leftPadding;
Executed by:
  • tst_qquicktext
132
2239 return
executed 2243153 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
d->padding();
executed 2243153 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
2243153
2240}-
2241-
2242void QQuickText::setLeftPadding(qreal padding)-
2243{-
2244 QQuickTextPrivate * const d = d_func();-
2245 d->setLeftPadding(padding);-
2246}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktext
4
2247-
2248void QQuickText::resetLeftPadding()-
2249{-
2250 QQuickTextPrivate * const d = d_func();-
2251 d->setLeftPadding(0, true);-
2252}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
2253-
2254qreal QQuickText::rightPadding() const-
2255{-
2256 const QQuickTextPrivate * const d = d_func();-
2257 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 4084 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 1990419 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
&& d->extra->explicitRightPadding
d->extra->explicitRightPaddingDescription
TRUEevaluated 138 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 3946 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
138-1990419
2258 return
executed 138 times by 1 test: return d->extra->rightPadding;
Executed by:
  • tst_qquicktext
d->extra->rightPadding;
executed 138 times by 1 test: return d->extra->rightPadding;
Executed by:
  • tst_qquicktext
138
2259 return
executed 1994365 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
d->padding();
executed 1994365 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
1994365
2260}-
2261-
2262void QQuickText::setRightPadding(qreal padding)-
2263{-
2264 QQuickTextPrivate * const d = d_func();-
2265 d->setRightPadding(padding);-
2266}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquicktext
4
2267-
2268void QQuickText::resetRightPadding()-
2269{-
2270 QQuickTextPrivate * const d = d_func();-
2271 d->setRightPadding(0, true);-
2272}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
2273-
2274qreal QQuickText::bottomPadding() const-
2275{-
2276 const QQuickTextPrivate * const d = d_func();-
2277 if (d->extra.isAllocated()
d->extra.isAllocated()Description
TRUEevaluated 4578 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
FALSEevaluated 1993371 times by 35 tests
Evaluated by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
&& d->extra->explicitBottomPadding
d->extra->expl...tBottomPaddingDescription
TRUEevaluated 694 times by 1 test
Evaluated by:
  • tst_qquicktext
FALSEevaluated 3884 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquicktext
)
694-1993371
2278 return
executed 694 times by 1 test: return d->extra->bottomPadding;
Executed by:
  • tst_qquicktext
d->extra->bottomPadding;
executed 694 times by 1 test: return d->extra->bottomPadding;
Executed by:
  • tst_qquicktext
694
2279 return
executed 1997255 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
d->padding();
executed 1997255 times by 35 tests: return d->padding();
Executed by:
  • tst_bindingdependencyapi
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlmetaobject
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlsqldatabase
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • ...
1997255
2280}-
2281-
2282void QQuickText::setBottomPadding(qreal padding)-
2283{-
2284 QQuickTextPrivate * const d = d_func();-
2285 d->setBottomPadding(padding);-
2286}
executed 32 times by 1 test: end of block
Executed by:
  • tst_qquicktext
32
2287-
2288void QQuickText::resetBottomPadding()-
2289{-
2290 QQuickTextPrivate * const d = d_func();-
2291 d->setBottomPadding(0, true);-
2292}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquicktext
2
2293QJSValue QQuickText::fontInfo() const-
2294{-
2295 const QQuickTextPrivate * const d = d_func();-
2296-
2297 QJSEngine *engine = qjsEngine(this);-
2298 if (!engine
!engineDescription
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquicktext
) {
0-8
2299 qmlWarning(this) << "fontInfo: item has no JS engine";-
2300 return
never executed: return QJSValue();
QJSValue();
never executed: return QJSValue();
0
2301 }-
2302-
2303 QJSValue value = engine->newObject();-
2304 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "family")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "family" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.family());
8
2305 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "styleName")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "styleName" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.styleName());
8
2306 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "bold")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "bold" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.bold());
8
2307 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "weight")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "weight" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.weight());
8
2308 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "italic")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "italic" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.italic());
8
2309 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "pointSize")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pointSize" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.pointSizeF());
8
2310 value.setProperty(([]() noexcept -> QString { enum { Size = sizeof(u"" "pixelSize")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pixelSize" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
qstring_literal_temp;
executed 8 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_qquicktext
}()), d->fontInfo.pixelSize());
8
2311 return
executed 8 times by 1 test: return value;
Executed by:
  • tst_qquicktext
value;
executed 8 times by 1 test: return value;
Executed by:
  • tst_qquicktext
8
2312}-
2313QSizeF QQuickText::advance() const-
2314{-
2315 const QQuickTextPrivate * const d = d_func();-
2316 return
executed 16 times by 1 test: return d->advance;
Executed by:
  • tst_qqmlenginedebugservice
d->advance;
executed 16 times by 1 test: return d->advance;
Executed by:
  • tst_qqmlenginedebugservice
16
2317}-
2318-
2319-
2320-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0