| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | extern const QLoggingCategory &DBG_HOVER_TRACE(); | - |
| 10 | | - |
| 11 | const QChar QQuickTextPrivate::elideChar = QChar(0x2026); | - |
| 12 | | - |
| 13 | QQuickTextPrivate::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 blockExecuted 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 | | - |
| 33 | QQuickTextPrivate::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 blockExecuted by:- tst_examples
- tst_qquicktext
| 330 |
| 54 | | - |
| 55 | void 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 blockExecuted 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 | | - |
| 62 | QQuickTextPrivate::~QQuickTextPrivate() | - |
| 63 | { | - |
| 64 | delete elideLayout; | - |
| 65 | delete textLine; textLine = nullptr; | - |
| 66 | | - |
| 67 | if (extra.isAllocated()| TRUE | evaluated 328 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 264286 times by 33 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquicktext
| 328 |
| 71 | }executed 264614 times by 33 tests: end of blockExecuted 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 | | - |
| 73 | qreal QQuickTextPrivate::getImplicitWidth() const | - |
| 74 | { | - |
| 75 | if (!requireImplicitSize| TRUE | evaluated 148 times by 5 testsEvaluated by:- tst_examples
- tst_qqmlenginedebugservice
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 1012 times by 6 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qqmlenginedebugservice
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| 148 |
| 82 | returnexecuted 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 | | - |
| 85 | qreal QQuickTextPrivate::getImplicitHeight() const | - |
| 86 | { | - |
| 87 | if (!requireImplicitSize| TRUE | evaluated 190 times by 3 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicktext
| | FALSE | evaluated 750 times by 5 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquicktext
| 190 |
| 92 | returnexecuted 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 | | - |
| 95 | qreal QQuickTextPrivate::availableWidth() const | - |
| 96 | { | - |
| 97 | const QQuickText * const q = q_func(); | - |
| 98 | returnexecuted 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 | | - |
| 101 | qreal QQuickTextPrivate::availableHeight() const | - |
| 102 | { | - |
| 103 | const QQuickText * const q = q_func(); | - |
| 104 | returnexecuted 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 | | - |
| 107 | void QQuickTextPrivate::setTopPadding(qreal value, bool reset) | - |
| 108 | { | - |
| 109 | QQuickText * const q = q_func(); | - |
| 110 | qreal oldPadding = q->topPadding(); | - |
| 111 | if (!reset| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-32 |
| 112 | extra.value().topPadding = value; | - |
| 113 | extra.value().explicitTopPadding = !reset; | - |
| 114 | }executed 34 times by 1 test: end of block | 34 |
| 115 | if ((!reset| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 32 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) { | 0-32 |
| 116 | updateSize(); | - |
| 117 | q->topPaddingChanged(); | - |
| 118 | }executed 34 times by 1 test: end of block | 34 |
| 119 | }executed 34 times by 1 test: end of block | 34 |
| 120 | | - |
| 121 | void QQuickTextPrivate::setLeftPadding(qreal value, bool reset) | - |
| 122 | { | - |
| 123 | QQuickText * const q = q_func(); | - |
| 124 | qreal oldPadding = q->leftPadding(); | - |
| 125 | if (!reset| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-4 |
| 126 | extra.value().leftPadding = value; | - |
| 127 | extra.value().explicitLeftPadding = !reset; | - |
| 128 | }executed 6 times by 1 test: end of block | 6 |
| 129 | if ((!reset| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) { | 0-4 |
| 130 | updateSize(); | - |
| 131 | q->leftPaddingChanged(); | - |
| 132 | }executed 6 times by 1 test: end of block | 6 |
| 133 | }executed 6 times by 1 test: end of block | 6 |
| 134 | | - |
| 135 | void QQuickTextPrivate::setRightPadding(qreal value, bool reset) | - |
| 136 | { | - |
| 137 | QQuickText * const q = q_func(); | - |
| 138 | qreal oldPadding = q->rightPadding(); | - |
| 139 | if (!reset| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-4 |
| 140 | extra.value().rightPadding = value; | - |
| 141 | extra.value().explicitRightPadding = !reset; | - |
| 142 | }executed 6 times by 1 test: end of block | 6 |
| 143 | if ((!reset| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) { | 0-4 |
| 144 | updateSize(); | - |
| 145 | q->rightPaddingChanged(); | - |
| 146 | }executed 6 times by 1 test: end of block | 6 |
| 147 | }executed 6 times by 1 test: end of block | 6 |
| 148 | | - |
| 149 | void QQuickTextPrivate::setBottomPadding(qreal value, bool reset) | - |
| 150 | { | - |
| 151 | QQuickText * const q = q_func(); | - |
| 152 | qreal oldPadding = q->bottomPadding(); | - |
| 153 | if (!reset| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-32 |
| 154 | extra.value().bottomPadding = value; | - |
| 155 | extra.value().explicitBottomPadding = !reset; | - |
| 156 | }executed 34 times by 1 test: end of block | 34 |
| 157 | if ((!reset| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 32 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) { | 0-32 |
| 158 | updateSize(); | - |
| 159 | q->bottomPaddingChanged(); | - |
| 160 | }executed 34 times by 1 test: end of block | 34 |
| 161 | }executed 34 times by 1 test: end of block | 34 |
| 162 | void QQuickText::q_updateLayout() | - |
| 163 | { | - |
| 164 | QQuickTextPrivate * const d = d_func(); | - |
| 165 | d->updateLayout(); | - |
| 166 | } never executed: end of block | 0 |
| 167 | | - |
| 168 | void QQuickTextPrivate::updateLayout() | - |
| 169 | { | - |
| 170 | QQuickText * const q = q_func(); | - |
| 171 | if (!q->isComponentComplete()| TRUE | evaluated 254122 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 472713 times by 35 testsEvaluated 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()| TRUE | evaluated 840 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 471873 times by 35 testsEvaluated 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| TRUE | evaluated 472429 times by 35 testsEvaluated 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
- ...
| | FALSE | evaluated 284 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 284-472429 |
| 184 | if (textHasChanged| TRUE | evaluated 470811 times by 35 testsEvaluated 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
- ...
| | FALSE | evaluated 1618 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlbinding
- tst_qqmlecmascript
- tst_qqmlmetaobject
- tst_qqmlvaluetypes
- tst_qquickbehaviors
- tst_qquicktext
- tst_qquicktextedit
|
) { | 1618-470811 |
| 185 | if (styledText| TRUE | evaluated 1992 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 468819 times by 35 testsEvaluated 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()| TRUE | evaluated 1988 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 4 times by 1 test |
) { | 4-468819 |
| 186 | layout.setFont(font); | - |
| 187 | | - |
| 188 | bool fontSizeModified = false; | - |
| 189 | QList<QQuickStyledTextImgTag*> someImgTags = extra.isAllocated()| TRUE | evaluated 58 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 1930 times by 6 testsEvaluated 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()| TRUE | evaluated 80 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 1908 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
|| extra.isAllocated()| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 1886 times by 6 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 468811 times by 35 testsEvaluated 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); | 12 |
| 200 | tmp.replace(QLatin1Char('\n'), QChar::LineSeparator); | - |
| 201 | layout.setText(tmp); | - |
| 202 | }executed 468823 times by 35 tests: end of blockExecuted 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 blockExecuted 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 blockExecuted 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()| TRUE | evaluated 284 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
&& extra->lineHeightValid| TRUE | never evaluated | | FALSE | evaluated 284 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 0-472429 |
| 206 | ensureDoc(); | - |
| 207 | QTextBlockFormat::LineHeightTypes type; | - |
| 208 | type = lineHeightMode() == QQuickText::FixedHeight| TRUE | never evaluated | | FALSE | never 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()| TRUE | never evaluated | | FALSE | never 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 472711 times by 35 testsEvaluated 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 | 2 |
| 224 | | - |
| 225 | q->polish(); | - |
| 226 | }executed 472713 times by 35 tests: end of blockExecuted 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 | | - |
| 228 | void QQuickText::imageDownloadFinished() | - |
| 229 | { | - |
| 230 | QQuickTextPrivate * const d = d_func(); | - |
| 231 | | - |
| 232 | (d->extra->nbActiveDownloads)--; | - |
| 233 | | - |
| 234 | | - |
| 235 | | - |
| 236 | | - |
| 237 | | - |
| 238 | if (d->extra.isAllocated()| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
&& d->extra->nbActiveDownloads == 0| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
) { | 0-10 |
| 239 | bool needToUpdateLayout = false; | - |
| 240 | for (QQuickStyledTextImgTag *img : qAsConst(d->extra->visibleImgTags)) { | - |
| 241 | if (!img->size.isValid()| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2 times by 1 test |
) { | 2-8 |
| 242 | img->size = img->pix->implicitSize(); | - |
| 243 | needToUpdateLayout = true; | - |
| 244 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 8 |
| 245 | }executed 10 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 10 |
| 246 | | - |
| 247 | if (needToUpdateLayout| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2 times by 1 test |
) { | 2-8 |
| 248 | d->textHasChanged = true; | - |
| 249 | d->updateLayout(); | - |
| 250 | }executed 8 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
else { | 8 |
| 251 | d->updateType = QQuickTextPrivate::UpdatePaintNode; | - |
| 252 | update(); | - |
| 253 | }executed 2 times by 1 test: end of block | 2 |
| 254 | } | - |
| 255 | }executed 10 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 10 |
| 256 | | - |
| 257 | void QQuickTextPrivate::updateBaseline(qreal baseline, qreal dy) | - |
| 258 | { | - |
| 259 | QQuickText * const q = q_func(); | - |
| 260 | | - |
| 261 | qreal yoff = 0; | - |
| 262 | | - |
| 263 | if (q->heightValid()| TRUE | evaluated 3660 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 469367 times by 34 testsEvaluated 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| TRUE | evaluated 90 times by 1 test | | FALSE | evaluated 3570 times by 11 testsEvaluated 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; | 90 |
| 266 | else if (vAlign == QQuickText::AlignVCenter| TRUE | evaluated 409 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
| | FALSE | evaluated 3161 times by 10 testsEvaluated 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 blockExecuted 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 blockExecuted 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 | | - |
| 273 | void QQuickTextPrivate::updateSize() | - |
| 274 | { | - |
| 275 | QQuickText * const q = q_func(); | - |
| 276 | | - |
| 277 | if (!q->isComponentComplete()| TRUE | evaluated 366 times by 4 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicklayouts
- tst_qquicktext
| | FALSE | evaluated 473027 times by 35 testsEvaluated 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| TRUE | evaluated 472501 times by 35 testsEvaluated 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
- ...
| | FALSE | evaluated 526 times by 6 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlenginedebugservice
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
|
) { | 526-472501 |
| 283 | implicitWidthChanged(); | - |
| 284 | implicitHeightChanged(); | - |
| 285 | | - |
| 286 | if (requireImplicitSize| TRUE | never evaluated | | FALSE | evaluated 472501 times by 35 testsEvaluated 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 blockExecuted 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()| TRUE | evaluated 48685 times by 18 testsEvaluated 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
| | FALSE | evaluated 424342 times by 33 testsEvaluated 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()| TRUE | evaluated 48677 times by 18 testsEvaluated 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
| | FALSE | evaluated 8 times by 1 test |
&& fontSizeMode() == QQuickText::FixedSize| TRUE | evaluated 48669 times by 18 testsEvaluated 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
| | FALSE | evaluated 8 times by 1 test |
) { | 8-424342 |
| 294 | | - |
| 295 | | - |
| 296 | | - |
| 297 | | - |
| 298 | QFontMetricsF fm(font); | - |
| 299 | qreal fontHeight = qCeil(fm.height()); | - |
| 300 | if (!richText| TRUE | evaluated 48625 times by 18 testsEvaluated 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
| | FALSE | evaluated 44 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 44-48625 |
| 301 | fontHeight = lineHeightMode() == QQuickText::FixedHeight| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 48609 times by 18 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 424062 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 296 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 296-424062 |
| 320 | qreal baseline = 0; | - |
| 321 | QRectF textRect = setupTextLayout(&baseline); | - |
| 322 | | - |
| 323 | if (internalWidthUpdate| TRUE | never evaluated | | FALSE | evaluated 424062 times by 33 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 56 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 240 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 56-240 |
| 336 | if (horizontalAlignment == QQuickText::AlignLeft| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 54 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 2-54 |
| 337 | horizontalAlignment = QQuickText::AlignRight;executed 2 times by 1 test: horizontalAlignment = QQuickText::AlignRight; | 2 |
| 338 | else if (horizontalAlignment == QQuickText::AlignRight| TRUE | evaluated 54 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never 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 blockExecuted 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| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 264 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
&& q->widthValid()| TRUE | evaluated 26 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) { | 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 | 26 |
| 355 | if (internalWidthUpdate| TRUE | never evaluated | | FALSE | evaluated 296 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 0-296 |
| 356 | return; never executed: return; | 0 |
| 357 | | - |
| 358 | extra->doc->setPageSize(QSizeF()); | - |
| 359 | if (q->widthValid()| TRUE | evaluated 186 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 110 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
&& (wrapMode != QQuickText::NoWrap| TRUE | evaluated 138 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 48 times by 1 test |
|| extra->doc->idealWidth() < availableWidth()| TRUE | evaluated 34 times by 1 test | | FALSE | evaluated 14 times by 1 test |
)) | 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()| TRUE | evaluated 110 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 186 times by 2 testsEvaluated 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| TRUE | evaluated 110 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 186 times by 2 testsEvaluated 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)| TRUE | evaluated 54 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 242 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
&& !updateSizeRecursionGuard| TRUE | evaluated 54 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
) { | 0-242 |
| 387 | updateSizeRecursionGuard = true; | - |
| 388 | updateSize(); | - |
| 389 | updateSizeRecursionGuard = false; | - |
| 390 | }executed 54 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
else { | 54 |
| 391 | if (iWidth == -1| TRUE | evaluated 186 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 56 times by 2 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 242 times by 2 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 242 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 0-242 |
| 400 | lastBlock = lastBlock.previous(); never executed: lastBlock = lastBlock.previous(); | 0 |
| 401 | | - |
| 402 | if (firstBlock.lineCount() > 0| TRUE | evaluated 242 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
&& lastBlock.lineCount() > 0| TRUE | evaluated 242 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never 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 blockExecuted 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| TRUE | evaluated 352163 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 72195 times by 15 testsEvaluated 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 blockExecuted 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 | | - |
| 420 | QQuickTextLine::QQuickTextLine() | - |
| 421 | : QObject(), m_line(nullptr), m_height(0), m_lineOffset(0) | - |
| 422 | { | - |
| 423 | }executed 10 times by 1 test: end of block | 10 |
| 424 | | - |
| 425 | void QQuickTextLine::setLine(QTextLine *line) | - |
| 426 | { | - |
| 427 | m_line = line; | - |
| 428 | }executed 336 times by 1 test: end of block | 336 |
| 429 | | - |
| 430 | void QQuickTextLine::setLineOffset(int offset) | - |
| 431 | { | - |
| 432 | m_lineOffset = offset; | - |
| 433 | }executed 336 times by 1 test: end of block | 336 |
| 434 | | - |
| 435 | int QQuickTextLine::number() const | - |
| 436 | { | - |
| 437 | if (m_line| TRUE | evaluated 448 times by 1 test | | FALSE | never evaluated |
) | 0-448 |
| 438 | returnexecuted 448 times by 1 test: return m_line->lineNumber() + m_lineOffset; m_line->lineNumber() + m_lineOffset;executed 448 times by 1 test: return m_line->lineNumber() + m_lineOffset; | 448 |
| 439 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 440 | } | - |
| 441 | | - |
| 442 | qreal QQuickTextLine::width() const | - |
| 443 | { | - |
| 444 | if (m_line| TRUE | evaluated 30 times by 1 test | | FALSE | never evaluated |
) | 0-30 |
| 445 | returnexecuted 30 times by 1 test: return m_line->width(); m_line->width();executed 30 times by 1 test: return m_line->width(); | 30 |
| 446 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 447 | } | - |
| 448 | | - |
| 449 | void QQuickTextLine::setWidth(qreal width) | - |
| 450 | { | - |
| 451 | if (m_line| TRUE | evaluated 646 times by 1 test | | FALSE | never evaluated |
) | 0-646 |
| 452 | m_line->setLineWidth(width);executed 646 times by 1 test: m_line->setLineWidth(width); | 646 |
| 453 | }executed 646 times by 1 test: end of block | 646 |
| 454 | | - |
| 455 | qreal QQuickTextLine::height() const | - |
| 456 | { | - |
| 457 | if (m_height| TRUE | never evaluated | | FALSE | evaluated 556 times by 1 test |
) | 0-556 |
| 458 | return never executed: return m_height; m_height;never executed: return m_height; | 0 |
| 459 | if (m_line| TRUE | evaluated 556 times by 1 test | | FALSE | never evaluated |
) | 0-556 |
| 460 | returnexecuted 556 times by 1 test: return m_line->height(); m_line->height();executed 556 times by 1 test: return m_line->height(); | 556 |
| 461 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 462 | } | - |
| 463 | | - |
| 464 | void QQuickTextLine::setHeight(qreal height) | - |
| 465 | { | - |
| 466 | if (m_line| TRUE | evaluated 336 times by 1 test | | FALSE | never 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)); | 336 |
| 468 | m_height = height; | - |
| 469 | }executed 336 times by 1 test: end of block | 336 |
| 470 | | - |
| 471 | qreal QQuickTextLine::x() const | - |
| 472 | { | - |
| 473 | if (m_line| TRUE | never evaluated | | FALSE | never 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 | | - |
| 478 | void QQuickTextLine::setX(qreal x) | - |
| 479 | { | - |
| 480 | if (m_line| TRUE | evaluated 214 times by 1 test | | FALSE | never 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())); | 214 |
| 482 | }executed 214 times by 1 test: end of block | 214 |
| 483 | | - |
| 484 | qreal QQuickTextLine::y() const | - |
| 485 | { | - |
| 486 | if (m_line| TRUE | evaluated 466 times by 1 test | | FALSE | never evaluated |
) | 0-466 |
| 487 | returnexecuted 466 times by 1 test: return m_line->y(); m_line->y();executed 466 times by 1 test: return m_line->y(); | 466 |
| 488 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 489 | } | - |
| 490 | | - |
| 491 | void QQuickTextLine::setY(qreal y) | - |
| 492 | { | - |
| 493 | if (m_line| TRUE | evaluated 574 times by 1 test | | FALSE | never 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)); | 574 |
| 495 | }executed 574 times by 1 test: end of block | 574 |
| 496 | | - |
| 497 | bool 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); returnexecuted 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 | | - |
| 503 | void QQuickTextPrivate::setupCustomLineGeometry(QTextLine &line, qreal &height, int lineOffset) | - |
| 504 | { | - |
| 505 | QQuickText * const q = q_func(); | - |
| 506 | | - |
| 507 | if (!textLine| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 326 times by 1 test |
) | 10-326 |
| 508 | textLine = new QQuickTextLine;executed 10 times by 1 test: textLine = new QQuickTextLine; | 10 |
| 509 | textLine->setLine(&line); | - |
| 510 | textLine->setY(height); | - |
| 511 | textLine->setHeight(0); | - |
| 512 | textLine->setLineOffset(lineOffset); | - |
| 513 | | - |
| 514 | | - |
| 515 | if (q->widthValid()| TRUE | evaluated 222 times by 1 test | | FALSE | evaluated 114 times by 1 test |
&& (q->wrapMode() != QQuickText::NoWrap| TRUE | evaluated 220 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| | 2-222 |
| 516 | q->effectiveHAlign() != QQuickText::AlignLeft| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) | 0-2 |
| 517 | textLine->setWidth(availableWidth());executed 222 times by 1 test: textLine->setWidth(availableWidth()); | 222 |
| 518 | else | - |
| 519 | textLine->setWidth(0x7fffffff);executed 114 times by 1 test: textLine->setWidth(0x7fffffff); | 114 |
| 520 | if (lineHeight() != 1.0| TRUE | never evaluated | | FALSE | evaluated 336 times by 1 test |
) | 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 | 336 |
| 527 | | - |
| 528 | void 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()| TRUE | evaluated 76 times by 1 test | | FALSE | evaluated 28 times by 1 test |
; ++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| TRUE | evaluated 40 times by 1 test | | FALSE | evaluated 36 times by 1 test |
) { | 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 | 40 |
| 541 | }executed 76 times by 1 test: end of block | 76 |
| 542 | }executed 28 times by 1 test: end of block | 28 |
| 543 | | - |
| 544 | QString QQuickTextPrivate::elidedText(qreal lineWidth, const QTextLine &line, QTextLine *nextLine) const | - |
| 545 | { | - |
| 546 | if (nextLine| TRUE | evaluated 226 times by 1 test | | FALSE | evaluated 124 times by 1 test |
) { | 124-226 |
| 547 | returnexecuted 226 times by 1 test: return layout.engine()->elidedText( Qt::TextElideMode(elideMode), QFixed::fromReal(lineWidth), 0, line.textStart(), line.textLength() + nextLine->textLength()); 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()); | 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()); | 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()); | 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()); | 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()); | 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()); | 226 |
| 553 | } else { | - |
| 554 | QString elideText = layout.text().mid(line.textStart(), line.textLength()); | - |
| 555 | if (!styledText| TRUE | evaluated 70 times by 1 test | | FALSE | evaluated 54 times by 1 test |
) { | 54-70 |
| 556 | | - |
| 557 | elideText[elideText.length() - 1] = elideChar; | - |
| 558 | | - |
| 559 | | - |
| 560 | QFontMetricsF metrics(layout.font()); | - |
| 561 | if (metrics.width(elideChar) + line.naturalTextWidth() >= lineWidth| TRUE | evaluated 52 times by 1 test | | FALSE | evaluated 18 times by 1 test |
) | 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); | 52 |
| 563 | }executed 70 times by 1 test: end of block | 70 |
| 564 | returnexecuted 124 times by 1 test: return elideText; elideText;executed 124 times by 1 test: return elideText; | 124 |
| 565 | } | - |
| 566 | } | - |
| 567 | | - |
| 568 | void QQuickTextPrivate::clearFormats() | - |
| 569 | { | - |
| 570 | layout.clearFormats(); | - |
| 571 | if (elideLayout| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 205041 times by 18 testsEvaluated 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(); | 22 |
| 573 | }executed 205063 times by 18 tests: end of blockExecuted 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 |
| 574 | QRectF QQuickTextPrivate::setupTextLayout(qreal *const baseline) | - |
| 575 | { | - |
| 576 | QQuickText * const q = q_func(); | - |
| 577 | | - |
| 578 | bool singlelineElide = elideMode != QQuickText::ElideNone| TRUE | evaluated 358 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423704 times by 33 testsEvaluated 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()| TRUE | evaluated 328 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 30 times by 1 test |
; | 30-423704 |
| 579 | bool multilineElide = elideMode == QQuickText::ElideRight| TRUE | evaluated 292 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423770 times by 33 testsEvaluated 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()| TRUE | evaluated 262 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 30 times by 1 test |
| 30-262 |
| 581 | && (q->heightValid()| TRUE | evaluated 198 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 64 times by 1 test |
|| maximumLineCountValid| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 42 times by 1 test |
); | 22-198 |
| 582 | | - |
| 583 | if ((!requireImplicitSize| TRUE | evaluated 423582 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 480 times by 5 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
|
|| (implicitWidthValid| TRUE | evaluated 150 times by 3 testsEvaluated by:- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 330 times by 4 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicklayouts
- tst_qquicktext
|
&& implicitHeightValid| TRUE | evaluated 148 times by 3 testsEvaluated by:- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 2 times by 1 test |
)) | 2-423582 |
| 584 | && ((singlelineElide| TRUE | evaluated 290 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423440 times by 33 testsEvaluated 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.| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 284 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 6-423440 |
| 585 | || (multilineElide| TRUE | evaluated 192 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423532 times by 33 testsEvaluated 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()| TRUE | evaluated 178 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 14 times by 1 test |
&& availableHeight() <= 0.| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 170 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
))) { | 8-423532 |
| 586 | | - |
| 587 | widthExceeded = q->widthValid()| TRUE | evaluated 14 times by 1 test | | FALSE | never evaluated |
&& availableWidth() <= 0.| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 8 times by 1 test |
; | 0-14 |
| 588 | heightExceeded = q->heightValid()| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& availableHeight() <= 0.| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 4 times by 1 test |
; | 2-12 |
| 589 | | - |
| 590 | if (!truncated| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) { | 4-10 |
| 591 | truncated = true; | - |
| 592 | q->truncatedChanged(); | - |
| 593 | }executed 10 times by 1 test: end of block | 10 |
| 594 | if (lineCount| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) { | 4-10 |
| 595 | lineCount = 0; | - |
| 596 | q->lineCountChanged(); | - |
| 597 | }executed 10 times by 1 test: end of block | 10 |
| 598 | | - |
| 599 | if (qFuzzyIsNull(q->width())| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 10 times by 1 test |
) { | 4-10 |
| 600 | layout.setText(QString()); | - |
| 601 | textHasChanged = true; | - |
| 602 | }executed 4 times by 1 test: end of block | 4 |
| 603 | | - |
| 604 | QFontMetricsF fm(font); | - |
| 605 | qreal height = (| TRUE | never evaluated | | FALSE | evaluated 14 times by 1 test |
lineHeightMode() == QQuickText::FixedHeight)| TRUE | never evaluated | | FALSE | evaluated 14 times by 1 test |
? lineHeight() : qCeil(fm.height()) * lineHeight(); | 0-14 |
| 606 | *baseline = fm.ascent(); | - |
| 607 | returnexecuted 14 times by 1 test: return QRectF(0, 0, 0, height); QRectF(0, 0, 0, height);executed 14 times by 1 test: return QRectF(0, 0, 0, height); | 14 |
| 608 | } | - |
| 609 | | - |
| 610 | bool shouldUseDesignMetrics = renderType != QQuickText::NativeRendering; | - |
| 611 | if (extra.isAllocated()| TRUE | evaluated 670 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423378 times by 33 testsEvaluated 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()| TRUE | evaluated 479 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 423569 times by 33 testsEvaluated 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)| TRUE | evaluated 216178 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 207391 times by 20 testsEvaluated 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| TRUE | evaluated 84 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 207307 times by 20 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 38097 times by 13 testsEvaluated 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
| | FALSE | evaluated 385951 times by 30 testsEvaluated 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()| TRUE | evaluated 3346 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 420702 times by 32 testsEvaluated 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| TRUE | evaluated 78 times by 3 testsEvaluated by:- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 420624 times by 32 testsEvaluated 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| TRUE | evaluated 3314 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 110 times by 6 testsEvaluated 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()| TRUE | evaluated 3452 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 420596 times by 32 testsEvaluated 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| TRUE | evaluated 646 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 423402 times by 33 testsEvaluated 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()| TRUE | evaluated 622 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 24 times by 1 test |
; | 24-423402 |
| 635 | | - |
| 636 | bool horizontalFit = fontSizeMode() & QQuickText::HorizontalFit| TRUE | evaluated 198 times by 1 test | | FALSE | evaluated 423850 times by 33 testsEvaluated 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()| TRUE | evaluated 198 times by 1 test | | FALSE | never evaluated |
; | 0-423850 |
| 637 | bool verticalFit = fontSizeMode() & QQuickText::VerticalFit| TRUE | evaluated 178 times by 1 test | | FALSE | evaluated 423870 times by 33 testsEvaluated 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()| TRUE | evaluated 178 times by 1 test | | FALSE | never evaluated |
|| (maximumLineCountValid| TRUE | never evaluated | | FALSE | never evaluated |
&& canWrap| TRUE | never evaluated | | FALSE | never evaluated |
)); | 0-178 |
| 639 | | - |
| 640 | const bool pixelSize = font.pixelSize() != -1; | - |
| 641 | QString layoutText = layout.text(); | - |
| 642 | | - |
| 643 | int largeFont = pixelSize| TRUE | evaluated 92078 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
| | FALSE | evaluated 331970 times by 33 testsEvaluated 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| TRUE | evaluated 286 times by 1 test | | FALSE | evaluated 423762 times by 33 testsEvaluated 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| TRUE | evaluated 215258 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 208790 times by 21 testsEvaluated 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| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 215242 times by 33 testsEvaluated 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| TRUE | evaluated 48 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 215194 times by 33 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 215194 times by 33 testsEvaluated 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| TRUE | evaluated 214642 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 209406 times by 22 testsEvaluated 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| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 214622 times by 32 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 214622 times by 32 testsEvaluated 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| TRUE | evaluated 1992 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
| | FALSE | evaluated 424048 times by 33 testsEvaluated 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| TRUE | evaluated 1784 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 208 times by 3 testsEvaluated 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| TRUE | evaluated 1824 times by 1 test | | FALSE | evaluated 168 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
) | 168-1824 |
| 677 | layout.setFont(scaledFont);executed 1824 times by 1 test: layout.setFont(scaledFont); | 1824 |
| 678 | }executed 1992 times by 3 tests: end of blockExecuted 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| TRUE | evaluated 336 times by 1 test | | FALSE | evaluated 432692 times by 33 testsEvaluated 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 else { | 336 |
| 699 | setLineGeometry(line, lineWidth, naturalHeight); | - |
| 700 | }executed 432692 times by 33 tests: end of blockExecuted 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| TRUE | evaluated 1380 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 431648 times by 33 testsEvaluated 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| TRUE | evaluated 510 times by 1 test | | FALSE | evaluated 870 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
&& visibleCount > 1| TRUE | evaluated 342 times by 1 test | | FALSE | evaluated 168 times by 1 test |
) { | 168-431648 |
| 707 | elide = true; | - |
| 708 | heightExceeded = true; | - |
| 709 | if (eos != -1| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 332 times by 1 test |
) | 10-332 |
| 710 | break;executed 10 times by 1 test: break; | 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| TRUE | evaluated 208 times by 1 test | | FALSE | evaluated 124 times by 1 test |
| 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; | 332 |
| 726 | } | - |
| 727 | | - |
| 728 | const QTextLine previousLine = line; | - |
| 729 | line = layout.createLine(); | - |
| 730 | if (!line.isValid()| TRUE | evaluated 425516 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 7170 times by 6 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
|
) { | 7170-425516 |
| 731 | if (singlelineElide| TRUE | evaluated 794 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 424722 times by 33 testsEvaluated 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| TRUE | evaluated 470 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 324 times by 1 test |
&& previousLine.naturalTextWidth() > previousLine.width()| TRUE | evaluated 300 times by 1 test | | FALSE | evaluated 170 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 170-424722 |
| 732 | | - |
| 733 | elide = true; | - |
| 734 | widthExceeded = true; | - |
| 735 | if (eos != -1| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 290 times by 1 test |
) | 10-290 |
| 736 | break;executed 10 times by 1 test: break; | 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 else { | 290 |
| 748 | br = unelidedRect; | - |
| 749 | height = naturalHeight; | - |
| 750 | }executed 425216 times by 33 tests: end of blockExecuted 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| TRUE | evaluated 4064 times by 5 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 3106 times by 3 testsEvaluated 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| TRUE | evaluated 182 times by 1 test | | FALSE | evaluated 6988 times by 6 testsEvaluated 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| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 164 times by 1 test |
) { | 18-164 |
| 766 | elide = true; | - |
| 767 | if (eos != -1| TRUE | never evaluated | | FALSE | evaluated 18 times by 1 test |
) | 0-18 |
| 768 | break; never executed: break; | 0 |
| 769 | elideText = wrappedLine| TRUE | evaluated 18 times by 1 test | | FALSE | never 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 else { | 18 |
| 775 | br = unelidedRect; | - |
| 776 | height = naturalHeight; | - |
| 777 | }executed 164 times by 1 test: end of block | 164 |
| 778 | break;executed 182 times by 1 test: break; | 182 |
| 779 | } | - |
| 780 | }executed 6988 times by 6 tests: end of blockExecuted 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 blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| 6988 |
| 785 | widthExceeded |= wrapped; | - |
| 786 | | - |
| 787 | | - |
| 788 | if (once| TRUE | evaluated 424048 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 1992 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
) { | 1992-424048 |
| 789 | once = false; | - |
| 790 | | - |
| 791 | | - |
| 792 | | - |
| 793 | if ((| TRUE | evaluated 476 times by 5 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 423572 times by 33 testsEvaluated 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)| TRUE | evaluated 476 times by 5 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 423572 times by 33 testsEvaluated 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()| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 446 times by 5 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
|
&& unwrappedLineCount < maxLineCount| TRUE | evaluated 30 times by 1 test | | FALSE | never evaluated |
) { | 0-423572 |
| 794 | | - |
| 795 | | - |
| 796 | for (int lineCount = layout.lineCount(); lineCount < maxLineCount| TRUE | evaluated 248 times by 1 test | | FALSE | evaluated 18 times by 1 test |
; ++lineCount) { | 18-248 |
| 797 | line = layout.createLine(); | - |
| 798 | if (!line.isValid()| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 236 times by 1 test |
) | 12-236 |
| 799 | break;executed 12 times by 1 test: break; | 12 |
| 800 | if (layoutText.at(line.textStart() - 1) == QChar::LineSeparator| TRUE | evaluated 58 times by 1 test | | FALSE | evaluated 178 times by 1 test |
) | 58-178 |
| 801 | ++executed 58 times by 1 test: ++unwrappedLineCount; unwrappedLineCount;executed 58 times by 1 test: ++unwrappedLineCount; | 58 |
| 802 | setLineGeometry(line, lineWidth, naturalHeight); | - |
| 803 | }executed 236 times by 1 test: end of block | 236 |
| 804 | | - |
| 805 | | - |
| 806 | | - |
| 807 | const int eol = line.isValid()| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 12 times by 1 test |
| 12-18 |
| 808 | ? line.textStart() + line.textLength() | - |
| 809 | : layoutText.length(); | - |
| 810 | if (eol < layoutText.length()| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 14 times by 1 test |
&& layoutText.at(eol) != QChar::LineSeparator| TRUE | evaluated 16 times by 1 test | | FALSE | never evaluated |
) | 0-16 |
| 811 | line = layout.createLine();executed 16 times by 1 test: line = layout.createLine(); | 16 |
| 812 | for (; line.isValid()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 30 times by 1 test |
&& unwrappedLineCount <= maxLineCount| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
; ++unwrappedLineCount) | 0-30 |
| 813 | line = layout.createLine();executed 2 times by 1 test: line = layout.createLine(); | 2 |
| 814 | }executed 30 times by 1 test: end of block | 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| TRUE | evaluated 344 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423704 times by 33 testsEvaluated 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()| TRUE | evaluated 320 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 24 times by 1 test |
; | 24-423704 |
| 826 | multilineElide = elideMode == QQuickText::ElideRight| TRUE | evaluated 278 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 423770 times by 33 testsEvaluated 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()| TRUE | evaluated 254 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 24 times by 1 test |
| 24-254 |
| 828 | && (q->heightValid()| TRUE | evaluated 186 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 68 times by 1 test |
|| maximumLineCountValid| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 46 times by 1 test |
); | 22-186 |
| 829 | canWrap = wrapMode != QQuickText::NoWrap| TRUE | evaluated 646 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 423402 times by 33 testsEvaluated 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()| TRUE | evaluated 622 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 24 times by 1 test |
; | 24-423402 |
| 830 | | - |
| 831 | horizontalFit = fontSizeMode() & QQuickText::HorizontalFit| TRUE | evaluated 198 times by 1 test | | FALSE | evaluated 423850 times by 33 testsEvaluated 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()| TRUE | evaluated 198 times by 1 test | | FALSE | never evaluated |
; | 0-423850 |
| 832 | verticalFit = fontSizeMode() & QQuickText::VerticalFit| TRUE | evaluated 178 times by 1 test | | FALSE | evaluated 423870 times by 33 testsEvaluated 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()| TRUE | evaluated 178 times by 1 test | | FALSE | never evaluated |
|| (maximumLineCountValid| TRUE | never evaluated | | FALSE | never evaluated |
&& canWrap| TRUE | never evaluated | | FALSE | never 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()| TRUE | evaluated 3352 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 420696 times by 32 testsEvaluated 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| TRUE | evaluated 3294 times by 10 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 58 times by 6 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
|
? availWidth : naturalWidth; | 58-420696 |
| 842 | maxHeight = q->heightValid()| TRUE | evaluated 3452 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 420596 times by 32 testsEvaluated 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)| TRUE | evaluated 420794 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 3254 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
|
|| (widthExceeded| TRUE | evaluated 612 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 2642 times by 10 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
|
&& lineWidth > oldWidth| TRUE | never evaluated | | FALSE | evaluated 612 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
|
)) | 0-420794 |
| 847 | && (singlelineElide| TRUE | evaluated 34 times by 1 test | | FALSE | evaluated 420760 times by 33 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 420760 times by 33 testsEvaluated 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| TRUE | evaluated 48 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 420712 times by 33 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 420712 times by 33 testsEvaluated 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| TRUE | evaluated 64 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
| | FALSE | evaluated 420648 times by 32 testsEvaluated 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)| TRUE | never evaluated | | FALSE | evaluated 423902 times by 33 testsEvaluated 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| TRUE | evaluated 200 times by 1 test | | FALSE | evaluated 423702 times by 33 testsEvaluated 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 198 times by 1 test |
)) | 0-423902 |
| 858 | && (multilineElide| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
|| (canWrap| TRUE | never evaluated | | FALSE | never evaluated |
&& maximumLineCountValid| TRUE | never evaluated | | FALSE | never evaluated |
))) { | 0-2 |
| 859 | widthExceeded = false; | - |
| 860 | heightExceeded = false; | - |
| 861 | continue;executed 2 times by 1 test: continue; | 2 |
| 862 | } | - |
| 863 | | - |
| 864 | | - |
| 865 | | - |
| 866 | if (!q->widthValid()| TRUE | evaluated 420658 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 3242 times by 11 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
|
&& !implicitWidthValid| TRUE | evaluated 420580 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 78 times by 3 testsEvaluated by:- tst_qquicklayouts
- tst_qquicktext
- tst_qquicktextedit
|
&& unwrappedLineCount > 1| TRUE | evaluated 1428 times by 5 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 419152 times by 31 testsEvaluated 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| TRUE | never evaluated | | FALSE | evaluated 1428 times by 5 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 146 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
| | FALSE | evaluated 1846 times by 1 test |
) { | 146-423900 |
| 872 | widthChanged = false; | - |
| 873 | if (line.isValid()| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 140 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
) { | 6-140 |
| 874 | for (int lineCount = layout.lineCount(); lineCount < maxLineCount| TRUE | evaluated 190 times by 1 test | | FALSE | evaluated 2 times by 1 test |
; ++lineCount) { | 2-190 |
| 875 | line = layout.createLine(); | - |
| 876 | if (!line.isValid()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 186 times by 1 test |
) | 4-186 |
| 877 | break;executed 4 times by 1 test: break; | 4 |
| 878 | setLineGeometry(line, lineWidth, naturalHeight); | - |
| 879 | }executed 186 times by 1 test: end of block | 186 |
| 880 | }executed 6 times by 1 test: end of block | 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| TRUE | evaluated 34 times by 1 test | | FALSE | evaluated 112 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
| 34-112 |
| 889 | && q->widthValid()| TRUE | evaluated 34 times by 1 test | | FALSE | never evaluated |
| 0-34 |
| 890 | && (q->heightValid()| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 18 times by 1 test |
|| maximumLineCountValid| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 14 times by 1 test |
); | 4-18 |
| 891 | verticalFit = fontSizeMode() & QQuickText::VerticalFit| TRUE | never evaluated | | FALSE | evaluated 146 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
| 0-146 |
| 892 | && (q->heightValid()| TRUE | never evaluated | | FALSE | never evaluated |
|| (maximumLineCountValid| TRUE | never evaluated | | FALSE | never evaluated |
&& canWrap| TRUE | never evaluated | | FALSE | never evaluated |
)); | 0 |
| 893 | | - |
| 894 | const qreal oldHeight = maxHeight; | - |
| 895 | maxHeight = q->heightValid()| TRUE | evaluated 56 times by 2 testsEvaluated by:- tst_qquickflickable
- tst_qquicktext
| | FALSE | evaluated 90 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
? availableHeight() : 3.40282346638528859812e+38F; | 56-90 |
| 896 | | - |
| 897 | | - |
| 898 | if ((maxHeight < qMin(oldHeight, naturalHeight)| TRUE | never evaluated | | FALSE | evaluated 146 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
|| (heightExceeded| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 140 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
&& maxHeight > oldHeight| TRUE | never evaluated | | FALSE | evaluated 6 times by 1 test |
)) | 0-146 |
| 899 | && (multilineElide| TRUE | never evaluated | | FALSE | never evaluated |
|| (canWrap| TRUE | never evaluated | | FALSE | never evaluated |
&& maximumLineCountValid| TRUE | never evaluated | | FALSE | never evaluated |
))) { | 0 |
| 900 | widthExceeded = false; | - |
| 901 | heightExceeded = false; | - |
| 902 | continue; never executed: continue; | 0 |
| 903 | } | - |
| 904 | }executed 146 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
else { | 146 |
| 905 | layout.endLayout(); | - |
| 906 | }executed 1846 times by 1 test: end of block | 1846 |
| 907 | | - |
| 908 | | - |
| 909 | | - |
| 910 | if (eos != -1| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 425864 times by 33 testsEvaluated 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| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 8 times by 1 test |
) { | 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; | 20 |
| 918 | } | - |
| 919 | | - |
| 920 | br.moveTop(0); | - |
| 921 | | - |
| 922 | | - |
| 923 | if (layout.lineCount() > 0| TRUE | evaluated 425872 times by 33 testsEvaluated 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
- ...
| | FALSE | never 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 blockExecuted 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| TRUE | evaluated 424388 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 1484 times by 1 test |
&& !verticalFit| TRUE | evaluated 423762 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 626 times by 1 test |
) | 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| TRUE | evaluated 1484 times by 1 test | | FALSE | evaluated 626 times by 1 test |
) { | 626-1484 |
| 937 | if (unelidedRect.width() > lineWidth| TRUE | evaluated 402 times by 1 test | | FALSE | evaluated 1082 times by 1 test |
|| (!verticalFit| TRUE | evaluated 586 times by 1 test | | FALSE | evaluated 496 times by 1 test |
&& wrapped| TRUE | evaluated 228 times by 1 test | | FALSE | evaluated 358 times by 1 test |
)) { | 228-1082 |
| 938 | widthExceeded = true; | - |
| 939 | largeFont = scaledFontSize - 1; | - |
| 940 | if (smallFont > largeFont| TRUE | never evaluated | | FALSE | evaluated 630 times by 1 test |
) | 0-630 |
| 941 | break; never executed: break; | 0 |
| 942 | scaledFontSize = (smallFont + largeFont) / 2; | - |
| 943 | if (pixelSize| TRUE | evaluated 594 times by 1 test | | FALSE | evaluated 36 times by 1 test |
) | 36-594 |
| 944 | scaledFont.setPixelSize(scaledFontSize);executed 594 times by 1 test: scaledFont.setPixelSize(scaledFontSize); | 594 |
| 945 | else | - |
| 946 | scaledFont.setPointSize(scaledFontSize);executed 36 times by 1 test: scaledFont.setPointSize(scaledFontSize); | 36 |
| 947 | continue;executed 630 times by 1 test: continue; | 630 |
| 948 | } else if (!verticalFit| TRUE | evaluated 358 times by 1 test | | FALSE | evaluated 496 times by 1 test |
) { | 358-496 |
| 949 | smallFont = scaledFontSize; | - |
| 950 | if (smallFont == largeFont| TRUE | evaluated 108 times by 1 test | | FALSE | evaluated 250 times by 1 test |
) | 108-250 |
| 951 | break;executed 108 times by 1 test: break; | 108 |
| 952 | scaledFontSize = (smallFont + largeFont + 1) / 2; | - |
| 953 | }executed 250 times by 1 test: end of block | 250 |
| 954 | }executed 746 times by 1 test: end of block | 746 |
| 955 | | - |
| 956 | if (verticalFit| TRUE | evaluated 1122 times by 1 test | | FALSE | evaluated 250 times by 1 test |
) { | 250-1122 |
| 957 | if (truncateHeight| TRUE | evaluated 150 times by 1 test | | FALSE | evaluated 972 times by 1 test |
|| unelidedRect.height() > maxHeight| TRUE | evaluated 424 times by 1 test | | FALSE | evaluated 548 times by 1 test |
) { | 150-972 |
| 958 | heightExceeded = true; | - |
| 959 | largeFont = scaledFontSize - 1; | - |
| 960 | if (smallFont > largeFont| TRUE | never evaluated | | FALSE | evaluated 574 times by 1 test |
) | 0-574 |
| 961 | break; never executed: break; | 0 |
| 962 | scaledFontSize = (smallFont + largeFont) / 2; | - |
| 963 | | - |
| 964 | }executed 574 times by 1 test: end of block else { | 574 |
| 965 | smallFont = scaledFontSize; | - |
| 966 | if (smallFont == largeFont| TRUE | evaluated 178 times by 1 test | | FALSE | evaluated 370 times by 1 test |
) | 178-370 |
| 967 | break;executed 178 times by 1 test: break; | 178 |
| 968 | scaledFontSize = (smallFont + largeFont + 1) / 2; | - |
| 969 | }executed 370 times by 1 test: end of block | 370 |
| 970 | } | - |
| 971 | }executed 1194 times by 1 test: end of block | 1194 |
| 972 | | - |
| 973 | implicitWidthValid = true; | - |
| 974 | implicitHeightValid = true; | - |
| 975 | | - |
| 976 | QFontInfo scaledFontInfo(scaledFont); | - |
| 977 | if (fontInfo.weight() != scaledFontInfo.weight()| TRUE | evaluated 216 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickrepeater
- tst_qquicktext
| | FALSE | evaluated 423832 times by 33 testsEvaluated 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()| TRUE | evaluated 4530 times by 11 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 419302 times by 32 testsEvaluated 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()| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 419294 times by 32 testsEvaluated 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())| TRUE | never evaluated | | FALSE | evaluated 419294 times by 32 testsEvaluated 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()| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_qquickfontloader_static
- tst_qquicktext
| | FALSE | evaluated 419284 times by 31 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 419284 times by 31 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 424036 times by 33 testsEvaluated 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; | 12 |
| 989 | | - |
| 990 | assignedFont = QFontInfo(font).family(); | - |
| 991 | | - |
| 992 | if (elide| TRUE | evaluated 140 times by 1 test | | FALSE | evaluated 423908 times by 33 testsEvaluated 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| TRUE | evaluated 94 times by 1 test | | FALSE | evaluated 46 times by 1 test |
) { | 46-94 |
| 994 | elideLayout = new QTextLayout; | - |
| 995 | elideLayout->setCacheEnabled(true); | - |
| 996 | }executed 94 times by 1 test: end of block | 94 |
| 997 | QTextEngine *engine = layout.engine(); | - |
| 998 | if (engine| TRUE | evaluated 140 times by 1 test | | FALSE | never evaluated |
&& engine->hasFormats()| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 116 times by 1 test |
) { | 0-140 |
| 999 | QVector<QTextLayout::FormatRange> formats; | - |
| 1000 | switch (elideMode) { | - |
| 1001 | caseexecuted 14 times by 1 test: case QQuickText::ElideRight: QQuickText::ElideRight:executed 14 times by 1 test: case QQuickText::ElideRight: | 14 |
| 1002 | elideFormats(elideStart, elideText.length() - 1, 0, &formats); | - |
| 1003 | break;executed 14 times by 1 test: break; | 14 |
| 1004 | caseexecuted 6 times by 1 test: case QQuickText::ElideLeft: QQuickText::ElideLeft:executed 6 times by 1 test: case QQuickText::ElideLeft: | 6 |
| 1005 | elideFormats(elideEnd - elideText.length() + 1, elideText.length() - 1, 1, &formats); | - |
| 1006 | break;executed 6 times by 1 test: break; | 6 |
| 1007 | caseexecuted 4 times by 1 test: case QQuickText::ElideMiddle: QQuickText::ElideMiddle:executed 4 times by 1 test: case QQuickText::ElideMiddle: { | 4 |
| 1008 | const int index = elideText.indexOf(elideChar); | - |
| 1009 | if (index != -1| TRUE | evaluated 4 times by 1 test | | FALSE | never 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 | 4 |
| 1017 | break;executed 4 times by 1 test: break; | 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 | 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| TRUE | never evaluated | | FALSE | evaluated 140 times by 1 test |
) { | 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 | 140 |
| 1037 | elideLayout->endLayout(); | - |
| 1038 | | - |
| 1039 | br = br.united(elidedLine.naturalTextRect()); | - |
| 1040 | | - |
| 1041 | if (visibleCount == 1| TRUE | evaluated 102 times by 1 test | | FALSE | evaluated 38 times by 1 test |
) | 38-102 |
| 1042 | layout.clearLayout();executed 102 times by 1 test: layout.clearLayout(); | 102 |
| 1043 | }executed 140 times by 1 test: end of block else { | 140 |
| 1044 | delete elideLayout; | - |
| 1045 | elideLayout = nullptr; | - |
| 1046 | }executed 423908 times by 33 tests: end of blockExecuted 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| TRUE | evaluated 422000 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 2048 times by 6 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
|
&& elideLayout| TRUE | evaluated 102 times by 1 test | | FALSE | evaluated 421898 times by 33 testsEvaluated 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| TRUE | evaluated 424020 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 28 times by 1 test |
) | 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| TRUE | evaluated 844 times by 6 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| | FALSE | evaluated 423204 times by 33 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickfocusscope
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
| 844 |
| 1062 | | - |
| 1063 | if (truncated != wasTruncated| TRUE | evaluated 170 times by 1 test | | FALSE | evaluated 423878 times by 33 testsEvaluated 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(); | 170 |
| 1065 | | - |
| 1066 | returnexecuted 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 | | - |
| 1069 | void QQuickTextPrivate::setLineGeometry(QTextLine &line, qreal lineWidth, qreal &height) | - |
| 1070 | { | - |
| 1071 | QQuickText * const q = q_func(); | - |
| 1072 | line.setLineWidth(lineWidth); | - |
| 1073 | | - |
| 1074 | if (extra.isAllocated()| TRUE | evaluated 4816 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 428438 times by 33 testsEvaluated 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()| TRUE | evaluated 4678 times by 1 test | | FALSE | evaluated 138 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 138-428438 |
| 1075 | line.setPosition(QPointF(line.position().x(), height)); | - |
| 1076 | height += (| TRUE | evaluated 92 times by 1 test | | FALSE | evaluated 4586 times by 1 test |
lineHeightMode() == QQuickText::FixedHeight)| TRUE | evaluated 92 times by 1 test | | FALSE | evaluated 4586 times by 1 test |
? lineHeight() : line.height() * lineHeight(); | 92-4586 |
| 1077 | return;executed 4678 times by 1 test: return; | 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()| TRUE | evaluated 138 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 428438 times by 33 testsEvaluated 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()| TRUE | evaluated 112 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 58 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
&& | 58-112 |
| 1089 | image->position < line.textStart() + line.textLength()| TRUE | evaluated 96 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 16 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 16-96 |
| 1090 | | - |
| 1091 | if (!image->pix| TRUE | evaluated 40 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 56 times by 2 testsEvaluated 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()| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 30 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 10-30 |
| 1095 | image->pix->connectFinished(q, qFlagLocation("1""imageDownloadFinished()" "\0" __FILE__ ":" "1176")); | - |
| 1096 | if (!extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
|| !extra->nbActiveDownloads| TRUE | evaluated 10 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never 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 blockExecuted by:- tst_examples
- tst_qquicktext
else if (image->pix->isReady()| TRUE | evaluated 28 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2 times by 1 test |
) { | 2-28 |
| 1100 | if (!image->size.isValid()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 26 times by 2 testsEvaluated 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 | 2 |
| 1106 | }executed 28 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
else if (image->pix->isError()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-28 |
| 1107 | qmlWarning(q) << image->pix->error(); | - |
| 1108 | }executed 2 times by 1 test: end of block | 2 |
| 1109 | }executed 40 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 40 |
| 1110 | | - |
| 1111 | qreal ih = qreal(image->size.height()); | - |
| 1112 | if (image->align == QQuickStyledTextImgTag::Top| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 88 times by 2 testsEvaluated 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| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 70 times by 2 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquicktext
| 96 |
| 1121 | }executed 170 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 170 |
| 1122 | }executed 138 times by 2 tests: end of blockExecuted 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 blockExecuted by:- tst_examples
- tst_qquicktext
| 96 |
| 1133 | | - |
| 1134 | line.setPosition(QPointF(line.position().x(), height + textTop)); | - |
| 1135 | height += (| TRUE | never evaluated | | FALSE | evaluated 428576 times by 33 testsEvaluated 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)| TRUE | never evaluated | | FALSE | evaluated 428576 times by 33 testsEvaluated 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 blockExecuted 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 | | - |
| 1141 | int QQuickTextPrivate::lineHeightOffset() const | - |
| 1142 | { | - |
| 1143 | QFontMetricsF fm(font); | - |
| 1144 | qreal fontHeight = qCeil(fm.height()); | - |
| 1145 | returnexecuted 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 | | - |
| 1152 | void QQuickTextPrivate::ensureDoc() | - |
| 1153 | { | - |
| 1154 | if (!extra.isAllocated()| TRUE | evaluated 138 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 438 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
|| !extra->doc| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 426 times by 2 testsEvaluated 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| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 146 times by 2 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquicktext
if (methodIdx < 0| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 146 times by 2 testsEvaluated 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| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never 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 blockExecuted by:- tst_examples
- tst_qquicktext
| 150 |
| 1175 | }executed 576 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 576 |
| 1176 | QQuickText::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 blockExecuted 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 | | - |
| 1183 | QQuickText::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 | | - |
| 1190 | QQuickText::~QQuickText() | - |
| 1191 | { | - |
| 1192 | } | - |
| 1193 | QFont QQuickText::font() const | - |
| 1194 | { | - |
| 1195 | const QQuickTextPrivate * const d = d_func(); | - |
| 1196 | returnexecuted 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 | | - |
| 1199 | void QQuickText::setFont(const QFont &font) | - |
| 1200 | { | - |
| 1201 | QQuickTextPrivate * const d = d_func(); | - |
| 1202 | if (d->sourceFont == font| TRUE | evaluated 360 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlecmascript
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickbehaviors
- tst_qquickfontloader_static
- tst_qquicktext
| | FALSE | evaluated 39386 times by 18 testsEvaluated 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()| TRUE | never evaluated | | FALSE | evaluated 39386 times by 18 testsEvaluated 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| TRUE | evaluated 2515 times by 15 testsEvaluated 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
| | FALSE | evaluated 36871 times by 9 testsEvaluated 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 blockExecuted 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| TRUE | evaluated 39385 times by 18 testsEvaluated 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
| | FALSE | evaluated 1 time by 1 test |
) { | 1-39385 |
| 1219 | | - |
| 1220 | | - |
| 1221 | if (d->formatModifiesFontSize| TRUE | evaluated 1196 times by 1 test | | FALSE | evaluated 38189 times by 18 testsEvaluated 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; | 1196 |
| 1223 | d->implicitWidthValid = false; | - |
| 1224 | d->implicitHeightValid = false; | - |
| 1225 | d->updateLayout(); | - |
| 1226 | }executed 39385 times by 18 tests: end of blockExecuted 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 blockExecuted 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 | | - |
| 1231 | void QQuickText::itemChange(ItemChange change, const ItemChangeData &value) | - |
| 1232 | { | - |
| 1233 | QQuickTextPrivate * const d = d_func(); | - |
| 1234 | (void)value;; | - |
| 1235 | switch (change) { | - |
| 1236 | caseexecuted 2 times by 1 test: case ItemAntialiasingHasChanged: ItemAntialiasingHasChanged:executed 2 times by 1 test: case ItemAntialiasingHasChanged: | 2 |
| 1237 | if (!antialiasing()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 1238 | d->font.setStyleStrategy(QFont::NoAntialias);executed 2 times by 1 test: d->font.setStyleStrategy(QFont::NoAntialias); | 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; | 2 |
| 1245 | | - |
| 1246 | case never executed: case ItemDevicePixelRatioHasChanged: ItemDevicePixelRatioHasChanged:never executed: case ItemDevicePixelRatioHasChanged: | 0 |
| 1247 | if (d->renderType == NativeRendering| TRUE | never evaluated | | FALSE | never 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 | defaultexecuted 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 blockExecuted 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 |
| 1263 | QString QQuickText::text() const | - |
| 1264 | { | - |
| 1265 | const QQuickTextPrivate * const d = d_func(); | - |
| 1266 | returnexecuted 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 | | - |
| 1269 | void QQuickText::setText(const QString &n) | - |
| 1270 | { | - |
| 1271 | QQuickTextPrivate * const d = d_func(); | - |
| 1272 | if (d->text == n| TRUE | evaluated 88385 times by 12 testsEvaluated 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
| | FALSE | evaluated 421506 times by 33 testsEvaluated 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| TRUE | evaluated 50 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 421456 times by 33 testsEvaluated 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| TRUE | evaluated 421270 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 186 times by 3 testsEvaluated by:- tst_examples
- tst_qquickmousearea
- tst_qquicktext
|
&& Qt::mightBeRichText(n)| TRUE | evaluated 738 times by 6 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 420532 times by 33 testsEvaluated 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()| TRUE | evaluated 205093 times by 18 testsEvaluated 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
| | FALSE | evaluated 216413 times by 32 testsEvaluated 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| TRUE | evaluated 46 times by 1 test | | FALSE | evaluated 205047 times by 18 testsEvaluated 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 else { | 46 |
| 1284 | d->clearFormats(); | - |
| 1285 | d->rightToLeftText = d->text.isRightToLeft(); | - |
| 1286 | }executed 205047 times by 18 tests: end of blockExecuted 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 blockExecuted 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()| TRUE | evaluated 264 times by 1 test | | FALSE | evaluated 421242 times by 33 testsEvaluated 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 | 264 |
| 1297 | d->updateLayout(); | - |
| 1298 | setAcceptHoverEvents(d->richText || d->styledText); | - |
| 1299 | textChanged(d->text); | - |
| 1300 | }executed 421506 times by 33 tests: end of blockExecuted 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 |
| 1301 | QColor QQuickText::color() const | - |
| 1302 | { | - |
| 1303 | const QQuickTextPrivate * const d = d_func(); | - |
| 1304 | returnexecuted 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 | | - |
| 1307 | void QQuickText::setColor(const QColor &color) | - |
| 1308 | { | - |
| 1309 | QQuickTextPrivate * const d = d_func(); | - |
| 1310 | QRgb rgb = color.rgba(); | - |
| 1311 | if (d->color == rgb| TRUE | evaluated 174 times by 5 testsEvaluated by:- tst_examples
- tst_qquickfontloader
- tst_qquickpathview
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 1870 times by 9 testsEvaluated 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()| TRUE | evaluated 60 times by 3 testsEvaluated by:- tst_examples
- tst_qquickpathview
- tst_qquicktext
| | FALSE | evaluated 1810 times by 8 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquickpathview
- tst_qquicktext
| 60 |
| 1319 | colorChanged(); | - |
| 1320 | }executed 1870 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlenginedebugservice
- tst_qqmlvaluetypes
- tst_qquickaccessible
- tst_qquickdraghandler
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
| 1870 |
| 1321 | QColor QQuickText::linkColor() const | - |
| 1322 | { | - |
| 1323 | const QQuickTextPrivate * const d = d_func(); | - |
| 1324 | returnexecuted 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 | | - |
| 1327 | void QQuickText::setLinkColor(const QColor &color) | - |
| 1328 | { | - |
| 1329 | QQuickTextPrivate * const d = d_func(); | - |
| 1330 | QRgb rgb = color.rgba(); | - |
| 1331 | if (d->linkColor == rgb| TRUE | evaluated 26 times by 1 test | | FALSE | evaluated 364 times by 1 test |
) | 26-364 |
| 1332 | return;executed 26 times by 1 test: return; | 26 |
| 1333 | | - |
| 1334 | d->linkColor = rgb; | - |
| 1335 | if (isComponentComplete()| TRUE | evaluated 50 times by 1 test | | FALSE | evaluated 314 times by 1 test |
) { | 50-314 |
| 1336 | d->updateType = QQuickTextPrivate::UpdatePaintNode; | - |
| 1337 | update(); | - |
| 1338 | }executed 50 times by 1 test: end of block | 50 |
| 1339 | linkColorChanged(); | - |
| 1340 | }executed 364 times by 1 test: end of block | 364 |
| 1341 | QQuickText::TextStyle QQuickText::style() const | - |
| 1342 | { | - |
| 1343 | const QQuickTextPrivate * const d = d_func(); | - |
| 1344 | returnexecuted 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 | | - |
| 1347 | void QQuickText::setStyle(QQuickText::TextStyle style) | - |
| 1348 | { | - |
| 1349 | QQuickTextPrivate * const d = d_func(); | - |
| 1350 | if (d->style == style| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 80 times by 3 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquicktext
|
) | 2-80 |
| 1351 | return;executed 2 times by 1 test: return; | 2 |
| 1352 | | - |
| 1353 | d->style = style; | - |
| 1354 | if (isComponentComplete()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 76 times by 3 testsEvaluated 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 | 4 |
| 1358 | styleChanged(d->style); | - |
| 1359 | }executed 80 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickaccessible
- tst_qquicktext
| 80 |
| 1360 | QColor QQuickText::styleColor() const | - |
| 1361 | { | - |
| 1362 | const QQuickTextPrivate * const d = d_func(); | - |
| 1363 | returnexecuted 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 | | - |
| 1366 | void QQuickText::setStyleColor(const QColor &color) | - |
| 1367 | { | - |
| 1368 | QQuickTextPrivate * const d = d_func(); | - |
| 1369 | QRgb rgb = color.rgba(); | - |
| 1370 | if (d->styleColor == rgb| TRUE | evaluated 64 times by 3 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquicktext
| | FALSE | evaluated 332 times by 2 testsEvaluated 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()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 330 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 2-330 |
| 1375 | d->updateType = QQuickTextPrivate::UpdatePaintNode; | - |
| 1376 | update(); | - |
| 1377 | }executed 2 times by 1 test: end of block | 2 |
| 1378 | styleColorChanged(); | - |
| 1379 | }executed 332 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 332 |
| 1380 | QQuickText::HAlignment QQuickText::hAlign() const | - |
| 1381 | { | - |
| 1382 | const QQuickTextPrivate * const d = d_func(); | - |
| 1383 | returnexecuted 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 | | - |
| 1386 | void QQuickText::setHAlign(HAlignment align) | - |
| 1387 | { | - |
| 1388 | QQuickTextPrivate * const d = d_func(); | - |
| 1389 | bool forceAlign = d->hAlignImplicit| TRUE | evaluated 481 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 42 times by 2 testsEvaluated by:- tst_qquicktext
- tst_qquicktextedit
|
&& d->effectiveLayoutMirror| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 479 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
; | 2-481 |
| 1390 | d->hAlignImplicit = false; | - |
| 1391 | if (d->setHAlign(align, forceAlign)| TRUE | evaluated 477 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 46 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_qquicktextedit
|
&& isComponentComplete()| TRUE | evaluated 48 times by 2 testsEvaluated by:- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 429 times by 4 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| 523 |
| 1394 | | - |
| 1395 | void QQuickText::resetHAlign() | - |
| 1396 | { | - |
| 1397 | QQuickTextPrivate * const d = d_func(); | - |
| 1398 | d->hAlignImplicit = true; | - |
| 1399 | if (isComponentComplete()| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 56 times by 1 test |
&& d->determineHorizontalAlignment()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2-56 |
| 1400 | d->updateLayout();executed 4 times by 1 test: d->updateLayout(); | 4 |
| 1401 | }executed 62 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 62 |
| 1402 | | - |
| 1403 | QQuickText::HAlignment QQuickText::effectiveHAlign() const | - |
| 1404 | { | - |
| 1405 | const QQuickTextPrivate * const d = d_func(); | - |
| 1406 | QQuickText::HAlignment effectiveAlignment = d->hAlign; | - |
| 1407 | if (!d->hAlignImplicit| TRUE | evaluated 3029 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 1311756 times by 32 testsEvaluated 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| TRUE | evaluated 174 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2855 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
) { | 174-1311756 |
| 1408 | switch (d->hAlign) { | - |
| 1409 | caseexecuted 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 | caseexecuted 52 times by 1 test: case QQuickText::AlignRight: QQuickText::AlignRight:executed 52 times by 1 test: case QQuickText::AlignRight: | 52 |
| 1413 | effectiveAlignment = QQuickText::AlignLeft; | - |
| 1414 | break;executed 52 times by 1 test: break; | 52 |
| 1415 | default never executed: default: :never executed: default: | 0 |
| 1416 | break; never executed: break; | 0 |
| 1417 | } | - |
| 1418 | } | - |
| 1419 | returnexecuted 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 | | - |
| 1422 | bool QQuickTextPrivate::setHAlign(QQuickText::HAlignment alignment, bool forceAlign) | - |
| 1423 | { | - |
| 1424 | QQuickText * const q = q_func(); | - |
| 1425 | if (hAlign != alignment| TRUE | evaluated 511 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 469304 times by 34 testsEvaluated 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 469302 times by 34 testsEvaluated 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()| TRUE | evaluated 511 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 2 times by 1 test |
) | 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 | returnexecuted 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 | returnexecuted 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 | | - |
| 1437 | bool QQuickTextPrivate::determineHorizontalAlignment() | - |
| 1438 | { | - |
| 1439 | if (hAlignImplicit| TRUE | evaluated 469292 times by 34 testsEvaluated 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 | evaluated 503 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
) { | 503-469292 |
| 1440 | | - |
| 1441 | bool alignToRight = text.isEmpty()| TRUE | evaluated 48613 times by 18 testsEvaluated 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
| | FALSE | evaluated 420679 times by 32 testsEvaluated 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 | returnexecuted 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 | returnexecuted 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 | | - |
| 1450 | void QQuickTextPrivate::mirrorChange() | - |
| 1451 | { | - |
| 1452 | QQuickText * const q = q_func(); | - |
| 1453 | if (q->isComponentComplete()| TRUE | evaluated 14 times by 2 testsEvaluated by:- tst_qquickanchors
- tst_qquicktext
| | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 14-20 |
| 1454 | if (!hAlignImplicit| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 6 times by 2 testsEvaluated by:- tst_qquickanchors
- tst_qquicktext
|
&& (hAlign == QQuickText::AlignRight| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| hAlign == QQuickText::AlignLeft| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) { | 0-8 |
| 1455 | updateLayout(); | - |
| 1456 | q->effectiveHorizontalAlignmentChanged(); | - |
| 1457 | }executed 8 times by 1 test: end of block | 8 |
| 1458 | }executed 14 times by 2 tests: end of blockExecuted by:- tst_qquickanchors
- tst_qquicktext
| 14 |
| 1459 | }executed 34 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickanchors
- tst_qquicktext
| 34 |
| 1460 | | - |
| 1461 | QQuickText::VAlignment QQuickText::vAlign() const | - |
| 1462 | { | - |
| 1463 | const QQuickTextPrivate * const d = d_func(); | - |
| 1464 | returnexecuted 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 | | - |
| 1467 | void QQuickText::setVAlign(VAlignment align) | - |
| 1468 | { | - |
| 1469 | QQuickTextPrivate * const d = d_func(); | - |
| 1470 | if (d->vAlign == align| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 435 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
|
) | 20-435 |
| 1471 | return;executed 20 times by 1 test: return; | 20 |
| 1472 | | - |
| 1473 | d->vAlign = align; | - |
| 1474 | | - |
| 1475 | if (isComponentComplete()| TRUE | evaluated 6 times by 1 test | | FALSE | evaluated 429 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
|
) | 6-429 |
| 1476 | d->updateLayout();executed 6 times by 1 test: d->updateLayout(); | 6 |
| 1477 | | - |
| 1478 | verticalAlignmentChanged(align); | - |
| 1479 | }executed 435 times by 4 tests: end of blockExecuted by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
| 435 |
| 1480 | QQuickText::WrapMode QQuickText::wrapMode() const | - |
| 1481 | { | - |
| 1482 | const QQuickTextPrivate * const d = d_func(); | - |
| 1483 | returnexecuted 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 | | - |
| 1486 | void QQuickText::setWrapMode(WrapMode mode) | - |
| 1487 | { | - |
| 1488 | QQuickTextPrivate * const d = d_func(); | - |
| 1489 | if (mode == d->wrapMode| TRUE | evaluated 34 times by 1 test | | FALSE | evaluated 380 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
|
) | 34-380 |
| 1490 | return;executed 34 times by 1 test: return; | 34 |
| 1491 | | - |
| 1492 | d->wrapMode = mode; | - |
| 1493 | d->updateLayout(); | - |
| 1494 | | - |
| 1495 | wrapModeChanged(); | - |
| 1496 | }executed 380 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| 380 |
| 1497 | int QQuickText::lineCount() const | - |
| 1498 | { | - |
| 1499 | const QQuickTextPrivate * const d = d_func(); | - |
| 1500 | returnexecuted 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 | } | - |
| 1502 | bool QQuickText::truncated() const | - |
| 1503 | { | - |
| 1504 | const QQuickTextPrivate * const d = d_func(); | - |
| 1505 | returnexecuted 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 | } | - |
| 1507 | int QQuickText::maximumLineCount() const | - |
| 1508 | { | - |
| 1509 | const QQuickTextPrivate * const d = d_func(); | - |
| 1510 | returnexecuted 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 | | - |
| 1513 | void QQuickText::setMaximumLineCount(int lines) | - |
| 1514 | { | - |
| 1515 | QQuickTextPrivate * const d = d_func(); | - |
| 1516 | | - |
| 1517 | d->maximumLineCountValid = lines==0x7fffffff| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 58 times by 1 test |
? false : true; | 8-58 |
| 1518 | if (d->maximumLineCount() != lines| TRUE | evaluated 64 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 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 | 64 |
| 1524 | }executed 66 times by 1 test: end of block | 66 |
| 1525 | | - |
| 1526 | void QQuickText::resetMaximumLineCount() | - |
| 1527 | { | - |
| 1528 | QQuickTextPrivate * const d = d_func(); | - |
| 1529 | setMaximumLineCount(0x7fffffff); | - |
| 1530 | if (d->truncated != false| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
) { | 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 | 8 |
| 1535 | QQuickText::TextFormat QQuickText::textFormat() const | - |
| 1536 | { | - |
| 1537 | const QQuickTextPrivate * const d = d_func(); | - |
| 1538 | returnexecuted 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 | | - |
| 1541 | void QQuickText::setTextFormat(TextFormat format) | - |
| 1542 | { | - |
| 1543 | QQuickTextPrivate * const d = d_func(); | - |
| 1544 | if (format == d->format| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 256 times by 3 testsEvaluated 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| TRUE | evaluated 58 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 198 times by 3 testsEvaluated by:- tst_examples
- tst_qquickmousearea
- tst_qquicktext
|
|| (format == AutoText| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 194 times by 3 testsEvaluated by:- tst_examples
- tst_qquickmousearea
- tst_qquicktext
|
&& Qt::mightBeRichText(d->text)| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
); | 2-198 |
| 1550 | | - |
| 1551 | if (isComponentComplete()| TRUE | evaluated 18 times by 1 test | | FALSE | evaluated 238 times by 3 testsEvaluated by:- tst_examples
- tst_qquickmousearea
- tst_qquicktext
|
) { | 18-238 |
| 1552 | if (!wasRich| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 2 times by 1 test |
&& d->richText| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 14 times by 1 test |
) { | 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 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 | 16 |
| 1561 | d->determineHorizontalAlignment(); | - |
| 1562 | }executed 18 times by 1 test: end of block | 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 blockExecuted by:- tst_examples
- tst_qquickmousearea
- tst_qquicktext
| 256 |
| 1569 | QQuickText::TextElideMode QQuickText::elideMode() const | - |
| 1570 | { | - |
| 1571 | const QQuickTextPrivate * const d = d_func(); | - |
| 1572 | returnexecuted 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 | | - |
| 1575 | void QQuickText::setElideMode(QQuickText::TextElideMode mode) | - |
| 1576 | { | - |
| 1577 | QQuickTextPrivate * const d = d_func(); | - |
| 1578 | if (mode == d->elideMode| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 320 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 42-320 |
| 1579 | return;executed 42 times by 1 test: return; | 42 |
| 1580 | | - |
| 1581 | d->elideMode = mode; | - |
| 1582 | d->updateLayout(); | - |
| 1583 | | - |
| 1584 | elideModeChanged(mode); | - |
| 1585 | }executed 320 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 320 |
| 1586 | QUrl QQuickText::baseUrl() const | - |
| 1587 | { | - |
| 1588 | const QQuickTextPrivate * const d = d_func(); | - |
| 1589 | if (!d->extra.isAllocated()| TRUE | evaluated 1970 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlenginedebugservice
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 254 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
|| d->extra->baseUrl.isEmpty()| TRUE | evaluated 216 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 38 times by 1 test |
) { | 38-1970 |
| 1590 | if (QQmlContext *context = qmlContext(this)| TRUE | evaluated 2186 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlenginedebugservice
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickpathview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | never evaluated |
) | 0-2186 |
| 1591 | returnexecuted 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 | returnexecuted 38 times by 1 test: return d->extra->baseUrl; d->extra->baseUrl;executed 38 times by 1 test: return d->extra->baseUrl; | 38 |
| 1596 | } | - |
| 1597 | } | - |
| 1598 | | - |
| 1599 | void QQuickText::setBaseUrl(const QUrl &url) | - |
| 1600 | { | - |
| 1601 | QQuickTextPrivate * const d = d_func(); | - |
| 1602 | if (baseUrl() != url| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) { | 2-20 |
| 1603 | d->extra.value().baseUrl = url; | - |
| 1604 | | - |
| 1605 | if (d->richText| TRUE | never evaluated | | FALSE | evaluated 20 times by 1 test |
) { | 0-20 |
| 1606 | d->ensureDoc(); | - |
| 1607 | d->extra->doc->setBaseUrl(url); | - |
| 1608 | } never executed: end of block | 0 |
| 1609 | if (d->styledText| TRUE | never evaluated | | FALSE | evaluated 20 times by 1 test |
) { | 0-20 |
| 1610 | d->textHasChanged = true; | - |
| 1611 | if (d->extra.isAllocated()| TRUE | never evaluated | | FALSE | never 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 | 20 |
| 1619 | }executed 22 times by 1 test: end of block | 22 |
| 1620 | | - |
| 1621 | void QQuickText::resetBaseUrl() | - |
| 1622 | { | - |
| 1623 | if (QQmlContext *context = qmlContext(this)| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-2 |
| 1624 | setBaseUrl(context->baseUrl());executed 2 times by 1 test: setBaseUrl(context->baseUrl()); | 2 |
| 1625 | else | - |
| 1626 | setBaseUrl(QUrl()); never executed: setBaseUrl(QUrl()); | 0 |
| 1627 | } | - |
| 1628 | | - |
| 1629 | | - |
| 1630 | QRectF 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| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 222 times by 1 test |
) | 2-222 |
| 1639 | rect.adjust(-1, 0, 1, 2);executed 2 times by 1 test: rect.adjust(-1, 0, 1, 2); | 2 |
| 1640 | | - |
| 1641 | | - |
| 1642 | returnexecuted 224 times by 1 test: return rect; rect;executed 224 times by 1 test: return rect; | 224 |
| 1643 | } | - |
| 1644 | | - |
| 1645 | QRectF QQuickText::clipRect() const | - |
| 1646 | { | - |
| 1647 | const QQuickTextPrivate * const d = d_func(); | - |
| 1648 | | - |
| 1649 | QRectF rect = QQuickImplicitSizeItem::clipRect(); | - |
| 1650 | if (d->style != Normal| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 38 times by 2 testsEvaluated 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); | 8 |
| 1652 | returnexecuted 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 | | - |
| 1656 | void QQuickText::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) | - |
| 1657 | { | - |
| 1658 | QQuickTextPrivate * const d = d_func(); | - |
| 1659 | if (d->text.isEmpty()| TRUE | evaluated 215255 times by 20 testsEvaluated 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
| | FALSE | evaluated 386322 times by 33 testsEvaluated 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| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 386310 times by 33 testsEvaluated 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()| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 2 times by 1 test |
|| heightValid()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
); | 0-386310 |
| 1669 | bool verticalScale = (| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 386318 times by 33 testsEvaluated 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)| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 386318 times by 33 testsEvaluated 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()| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
; | 0-386318 |
| 1670 | | - |
| 1671 | bool widthMaximum = newGeometry.width() >= oldGeometry.width()| TRUE | evaluated 354949 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 31373 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlvaluetypes
- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquicktext
|
&& !d->widthExceeded| TRUE | evaluated 354337 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 612 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
; | 612-354949 |
| 1672 | bool heightMaximum = newGeometry.height() >= oldGeometry.height()| TRUE | evaluated 386136 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 186 times by 4 testsEvaluated by:- tst_qqmlvaluetypes
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktext
|
&& !d->heightExceeded| TRUE | evaluated 386060 times by 33 testsEvaluated 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
- ...
| | FALSE | evaluated 76 times by 1 test |
; | 76-386136 |
| 1673 | | - |
| 1674 | bool verticalPositionChanged = heightChanged| TRUE | evaluated 218262 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 168060 times by 28 testsEvaluated 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| TRUE | evaluated 268 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
| | FALSE | evaluated 217994 times by 31 testsEvaluated 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| TRUE | evaluated 35169 times by 25 testsEvaluated 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
| | FALSE | evaluated 351153 times by 33 testsEvaluated 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| TRUE | evaluated 34371 times by 25 testsEvaluated 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
| | FALSE | evaluated 798 times by 6 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktext
- tst_scenegraph
|
) || d->internalWidthUpdate| TRUE | evaluated 350221 times by 32 testsEvaluated 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
- ...
| | FALSE | evaluated 1730 times by 10 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquicktext
- tst_qquicktextedit
- tst_scenegraph
|
) | 798-351153 |
| 1677 | gotoexecuted 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| TRUE | evaluated 320 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 1410 times by 8 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquicktext
- tst_scenegraph
|
&& widthChanged| TRUE | evaluated 286 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 34 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) || verticalPositionChanged| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 1426 times by 8 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
| 304 |
| 1685 | | - |
| 1686 | if (!wrapped| TRUE | evaluated 1142 times by 9 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 588 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
|
&& !elide| TRUE | evaluated 1084 times by 9 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 58 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
&& !scaleFont| TRUE | evaluated 1080 times by 9 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 4 times by 1 test |
&& !verticalPositionChanged| TRUE | evaluated 838 times by 8 testsEvaluated by:- tst_examples
- tst_qquickaccessible
- tst_qquickanchors
- tst_qquickgridview
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquicktext
- tst_qquicktextedit
| | FALSE | evaluated 242 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
|
) | 4-1142 |
| 1687 | gotoexecuted 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| TRUE | evaluated 108 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 784 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_scenegraph
|
| 108-784 |
| 1690 | && ((widthValid()| TRUE | evaluated 92 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 16 times by 1 test |
&& oldGeometry.width() <= 0| TRUE | evaluated 26 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 66 times by 1 test |
&& newGeometry.width() <= 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 2-92 |
| 1691 | || (heightValid()| TRUE | evaluated 82 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 24 times by 1 test |
&& oldGeometry.height() <= 0| TRUE | evaluated 22 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 60 times by 1 test |
&& newGeometry.height() <= 0| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 20 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
))) { | 2-82 |
| 1692 | gotoexecuted 4 times by 1 test: goto geomChangeDone; geomChangeDone;executed 4 times by 1 test: goto geomChangeDone; | 4 |
| 1693 | } | - |
| 1694 | | - |
| 1695 | if (widthMaximum| TRUE | evaluated 628 times by 4 testsEvaluated by:- tst_examples
- tst_qquicklistview
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 260 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
&& heightMaximum| TRUE | evaluated 626 times by 4 testsEvaluated by:- tst_examples
- tst_qquicklistview
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 2 times by 1 test |
&& !d->isLineLaidOutConnected()| TRUE | evaluated 624 times by 4 testsEvaluated by:- tst_examples
- tst_qquicklistview
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 2 times by 1 test |
&& !verticalPositionChanged| TRUE | evaluated 376 times by 3 testsEvaluated by:- tst_examples
- tst_qquicktext
- tst_scenegraph
| | FALSE | evaluated 248 times by 3 testsEvaluated by:- tst_examples
- tst_qquicklistview
- tst_qquicktext
|
) | 2-628 |
| 1696 | gotoexecuted 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| TRUE | evaluated 372 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
| | FALSE | evaluated 140 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
|| widthMaximum| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 128 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) && !d->isLineLaidOutConnected()| TRUE | evaluated 126 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2 times by 1 test |
) { | 2-372 |
| 1699 | if (newGeometry.height() > oldGeometry.height()| TRUE | evaluated 96 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 30 times by 1 test |
) { | 30-96 |
| 1700 | if (!d->heightExceeded| TRUE | evaluated 74 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 22 times by 1 test |
&& !qFuzzyIsNull(oldGeometry.height())| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 64 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 10-74 |
| 1701 | | - |
| 1702 | gotoexecuted 10 times by 1 test: goto geomChangeDone; geomChangeDone;executed 10 times by 1 test: goto geomChangeDone; | 10 |
| 1703 | } | - |
| 1704 | if (d->lineCount == d->maximumLineCount()| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 70 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 16-70 |
| 1705 | gotoexecuted 16 times by 1 test: goto geomChangeDone; geomChangeDone;executed 16 times by 1 test: goto geomChangeDone; | 16 |
| 1706 | }executed 70 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
else if (newGeometry.height() < oldGeometry.height()| TRUE | evaluated 30 times by 1 test | | FALSE | never evaluated |
) { | 0-70 |
| 1707 | if (d->lineCount < 2| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 22 times by 1 test |
&& !verticalScale| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& newGeometry.height() > 0| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) | 0-22 |
| 1708 | gotoexecuted 8 times by 1 test: goto geomChangeDone; geomChangeDone;executed 8 times by 1 test: goto geomChangeDone; | 8 |
| 1709 | | - |
| 1710 | if (!verticalScale| TRUE | evaluated 22 times by 1 test | | FALSE | never evaluated |
| 0-22 |
| 1711 | && d->elideMode != QQuickText::ElideRight| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 14 times by 1 test |
| 8-14 |
| 1712 | && !(d->maximumLineCountValid| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 4 times by 1 test |
&& d->widthExceeded| TRUE | evaluated 4 times by 1 test | | FALSE | never evaluated |
)) { | 0-4 |
| 1713 | gotoexecuted 4 times by 1 test: goto geomChangeDone; geomChangeDone;executed 4 times by 1 test: goto geomChangeDone; | 4 |
| 1714 | } | - |
| 1715 | }executed 18 times by 1 test: end of block | 18 |
| 1716 | }executed 88 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
else if (!heightChanged| TRUE | evaluated 128 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 258 times by 4 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
|
&& widthMaximum| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 126 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) { | 2-258 |
| 1717 | gotoexecuted 2 times by 1 test: goto geomChangeDone; geomChangeDone;executed 2 times by 1 test: goto geomChangeDone; | 2 |
| 1718 | } | - |
| 1719 | | - |
| 1720 | if (d->updateOnComponentComplete| TRUE | evaluated 272 times by 3 testsEvaluated by:- tst_examples
- tst_qquicklistview
- tst_qquicktext
| | FALSE | evaluated 200 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
|| d->textHasChanged| TRUE | evaluated 86 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 114 times by 3 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
|
) { | 86-272 |
| 1721 | | - |
| 1722 | d->updateLayout(); | - |
| 1723 | }executed 358 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquicklistview
- tst_qquicktext
else { | 358 |
| 1724 | | - |
| 1725 | d->updateSize(); | - |
| 1726 | }executed 114 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickflickable
- tst_qquicktext
| 114 |
| 1727 | | - |
| 1728 | geomChangeDone: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 blockExecuted 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 | | - |
| 1732 | void QQuickText::triggerPreprocess() | - |
| 1733 | { | - |
| 1734 | QQuickTextPrivate * const d = d_func(); | - |
| 1735 | if (d->updateType == QQuickTextPrivate::UpdateNone| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 1736 | d->updateType = QQuickTextPrivate::UpdatePreprocess; never executed: d->updateType = QQuickTextPrivate::UpdatePreprocess; | 0 |
| 1737 | update(); | - |
| 1738 | } never executed: end of block | 0 |
| 1739 | | - |
| 1740 | QSGNode *QQuickText::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) | - |
| 1741 | { | - |
| 1742 | (void)data;; | - |
| 1743 | QQuickTextPrivate * const d = d_func(); | - |
| 1744 | | - |
| 1745 | if (d->text.isEmpty()| TRUE | evaluated 38737 times by 5 testsEvaluated by:- tst_examples
- tst_qquickfontloader
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktextedit
| | FALSE | evaluated 248380 times by 21 testsEvaluated 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 | returnexecuted 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| TRUE | never evaluated | | FALSE | evaluated 248380 times by 21 testsEvaluated 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| TRUE | never evaluated | | FALSE | never 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| TRUE | evaluated 173985 times by 21 testsEvaluated 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
| | FALSE | evaluated 74395 times by 9 testsEvaluated 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| TRUE | evaluated 84 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 248296 times by 21 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquicktext
else if (d->layedOutTextRect.width() > 0| TRUE | evaluated 248296 times by 21 testsEvaluated 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
| | FALSE | never evaluated |
) { | 0-248296 |
| 1779 | const qreal dx = QQuickTextUtil::alignedX(d->lineWidth, d->availableWidth(), effectiveHAlign()) + leftPadding(); | - |
| 1780 | int unelidedLineCount = d->lineCount; | - |
| 1781 | if (d->elideLayout| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 248272 times by 21 testsEvaluated 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; | 24 |
| 1783 | if (unelidedLineCount > 0| TRUE | evaluated 248272 times by 21 testsEvaluated 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
| | FALSE | evaluated 24 times by 1 test |
) { | 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 blockExecuted 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| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 248272 times by 21 testsEvaluated 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); | 24 |
| 1793 | | - |
| 1794 | if (d->extra.isAllocated()| TRUE | evaluated 308 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 247988 times by 21 testsEvaluated 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| TRUE | evaluated 30 times by 1 test | | FALSE | never evaluated |
&& pix->isReady()| TRUE | evaluated 26 times by 1 test | | FALSE | evaluated 4 times by 1 test |
) | 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()); | 26 |
| 1799 | }executed 30 times by 1 test: end of block | 30 |
| 1800 | }executed 308 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
| 308 |
| 1801 | }executed 248296 times by 21 tests: end of blockExecuted 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 | returnexecuted 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 | | - |
| 1810 | void QQuickText::updatePolish() | - |
| 1811 | { | - |
| 1812 | QQuickTextPrivate * const d = d_func(); | - |
| 1813 | | - |
| 1814 | | - |
| 1815 | | - |
| 1816 | if (!d->assignedFont.isEmpty()| TRUE | evaluated 253536 times by 21 testsEvaluated 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
| | FALSE | evaluated 39087 times by 5 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
|
&& QFontInfo(d->font).family() != d->assignedFont| TRUE | never evaluated | | FALSE | evaluated 253536 times by 21 testsEvaluated 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| TRUE | evaluated 88 times by 1 test | | FALSE | evaluated 292535 times by 21 testsEvaluated 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 | 88 |
| 1823 | invalidateFontCaches(); | - |
| 1824 | }executed 292623 times by 21 tests: end of blockExecuted 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 | | - |
| 1832 | qreal QQuickText::contentWidth() const | - |
| 1833 | { | - |
| 1834 | const QQuickTextPrivate * const d = d_func(); | - |
| 1835 | returnexecuted 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 | | - |
| 1844 | qreal QQuickText::contentHeight() const | - |
| 1845 | { | - |
| 1846 | const QQuickTextPrivate * const d = d_func(); | - |
| 1847 | returnexecuted 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 | } | - |
| 1849 | qreal QQuickText::lineHeight() const | - |
| 1850 | { | - |
| 1851 | const QQuickTextPrivate * const d = d_func(); | - |
| 1852 | returnexecuted 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 | | - |
| 1855 | void QQuickText::setLineHeight(qreal lineHeight) | - |
| 1856 | { | - |
| 1857 | QQuickTextPrivate * const d = d_func(); | - |
| 1858 | | - |
| 1859 | if ((| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
d->lineHeight() == lineHeight)| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
|| (| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
lineHeight < 0.0)| TRUE | never evaluated | | FALSE | evaluated 30 times by 1 test |
) | 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 | 30 |
| 1868 | QQuickText::LineHeightMode QQuickText::lineHeightMode() const | - |
| 1869 | { | - |
| 1870 | const QQuickTextPrivate * const d = d_func(); | - |
| 1871 | returnexecuted 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 | | - |
| 1874 | void QQuickText::setLineHeightMode(LineHeightMode mode) | - |
| 1875 | { | - |
| 1876 | QQuickTextPrivate * const d = d_func(); | - |
| 1877 | if (mode == d->lineHeightMode()| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 14 times by 1 test |
) | 8-14 |
| 1878 | return;executed 8 times by 1 test: return; | 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 | 14 |
| 1887 | QQuickText::FontSizeMode QQuickText::fontSizeMode() const | - |
| 1888 | { | - |
| 1889 | const QQuickTextPrivate * const d = d_func(); | - |
| 1890 | returnexecuted 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 | | - |
| 1893 | void QQuickText::setFontSizeMode(FontSizeMode mode) | - |
| 1894 | { | - |
| 1895 | QQuickTextPrivate * const d = d_func(); | - |
| 1896 | if (d->fontSizeMode() == mode| TRUE | never evaluated | | FALSE | evaluated 94 times by 1 test |
) | 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 | 94 |
| 1905 | int QQuickText::minimumPixelSize() const | - |
| 1906 | { | - |
| 1907 | const QQuickTextPrivate * const d = d_func(); | - |
| 1908 | returnexecuted 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 | | - |
| 1911 | void QQuickText::setMinimumPixelSize(int size) | - |
| 1912 | { | - |
| 1913 | QQuickTextPrivate * const d = d_func(); | - |
| 1914 | if (d->minimumPixelSize() == size| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
) | 0-8 |
| 1915 | return; never executed: return; | 0 |
| 1916 | | - |
| 1917 | if (d->fontSizeMode() != FixedSize| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
&& (widthValid()| TRUE | never evaluated | | FALSE | never evaluated |
|| heightValid()| TRUE | never evaluated | | FALSE | never 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 | 8 |
| 1924 | int QQuickText::minimumPointSize() const | - |
| 1925 | { | - |
| 1926 | const QQuickTextPrivate * const d = d_func(); | - |
| 1927 | returnexecuted 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 | | - |
| 1930 | void QQuickText::setMinimumPointSize(int size) | - |
| 1931 | { | - |
| 1932 | QQuickTextPrivate * const d = d_func(); | - |
| 1933 | if (d->minimumPointSize() == size| TRUE | never evaluated | | FALSE | evaluated 12 times by 1 test |
) | 0-12 |
| 1934 | return; never executed: return; | 0 |
| 1935 | | - |
| 1936 | if (d->fontSizeMode() != FixedSize| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 8 times by 1 test |
&& (widthValid()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
|| heightValid()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
)) { | 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 | 12 |
| 1943 | | - |
| 1944 | | - |
| 1945 | | - |
| 1946 | | - |
| 1947 | int QQuickText::resourcesLoading() const | - |
| 1948 | { | - |
| 1949 | const QQuickTextPrivate * const d = d_func(); | - |
| 1950 | if (d->richText| TRUE | evaluated 24 times by 1 test | | FALSE | never evaluated |
&& d->extra.isAllocated()| TRUE | evaluated 24 times by 1 test | | FALSE | never evaluated |
&& d->extra->doc| TRUE | evaluated 24 times by 1 test | | FALSE | never evaluated |
) | 0-24 |
| 1951 | returnexecuted 24 times by 1 test: return d->extra->doc->resourcesLoading(); d->extra->doc->resourcesLoading();executed 24 times by 1 test: return d->extra->doc->resourcesLoading(); | 24 |
| 1952 | return never executed: return 0; 0;never executed: return 0; | 0 |
| 1953 | } | - |
| 1954 | | - |
| 1955 | | - |
| 1956 | void QQuickText::componentComplete() | - |
| 1957 | { | - |
| 1958 | QQuickTextPrivate * const d = d_func(); | - |
| 1959 | if (d->updateOnComponentComplete| TRUE | evaluated 264678 times by 35 testsEvaluated 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
- ...
| | FALSE | never evaluated |
) { | 0-264678 |
| 1960 | if (d->richText| TRUE | evaluated 148 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 264530 times by 35 testsEvaluated 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 blockExecuted by:- tst_examples
- tst_qquicktext
else { | 148 |
| 1965 | d->rightToLeftText = d->text.isRightToLeft(); | - |
| 1966 | }executed 264530 times by 35 tests: end of blockExecuted 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 blockExecuted 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| TRUE | evaluated 264440 times by 35 testsEvaluated 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
- ...
| | FALSE | evaluated 238 times by 2 testsEvaluated 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 blockExecuted 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 | | - |
| 1974 | QString QQuickTextPrivate::anchorAt(const QTextLayout *layout, const QPointF &mousePos) | - |
| 1975 | { | - |
| 1976 | for (int i = 0; i < layout->lineCount()| TRUE | evaluated 300 times by 1 test | | FALSE | evaluated 62 times by 1 test |
; ++i) { | 62-300 |
| 1977 | QTextLine line = layout->lineAt(i); | - |
| 1978 | if (line.naturalTextRect().contains(mousePos)| TRUE | evaluated 202 times by 1 test | | FALSE | evaluated 98 times by 1 test |
) { | 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()| TRUE | evaluated 278 times by 1 test | | FALSE | never evaluated |
| 0-278 |
| 1983 | && charPos >= formatRange.start| TRUE | evaluated 256 times by 1 test | | FALSE | evaluated 22 times by 1 test |
| 22-256 |
| 1984 | && charPos < formatRange.start + formatRange.length| TRUE | evaluated 180 times by 1 test | | FALSE | evaluated 76 times by 1 test |
) { | 76-180 |
| 1985 | returnexecuted 180 times by 1 test: return formatRange.format.anchorHref(); formatRange.format.anchorHref();executed 180 times by 1 test: return formatRange.format.anchorHref(); | 180 |
| 1986 | } | - |
| 1987 | }executed 98 times by 1 test: end of block | 98 |
| 1988 | break;executed 22 times by 1 test: break; | 22 |
| 1989 | } | - |
| 1990 | }executed 98 times by 1 test: end of block | 98 |
| 1991 | returnexecuted 84 times by 1 test: return QString(); QString();executed 84 times by 1 test: return QString(); | 84 |
| 1992 | } | - |
| 1993 | | - |
| 1994 | QString 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| TRUE | evaluated 240 times by 1 test | | FALSE | evaluated 162 times by 1 test |
) { | 162-240 |
| 2001 | QString link = anchorAt(&layout, translatedMousePos); | - |
| 2002 | if (link.isEmpty()| TRUE | evaluated 80 times by 1 test | | FALSE | evaluated 160 times by 1 test |
&& elideLayout| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 56 times by 1 test |
) | 24-160 |
| 2003 | link = anchorAt(elideLayout, translatedMousePos);executed 24 times by 1 test: link = anchorAt(elideLayout, translatedMousePos); | 24 |
| 2004 | returnexecuted 240 times by 1 test: return link; link;executed 240 times by 1 test: return link; | 240 |
| 2005 | } else if (richText| TRUE | evaluated 162 times by 1 test | | FALSE | never evaluated |
&& extra.isAllocated()| TRUE | evaluated 162 times by 1 test | | FALSE | never evaluated |
&& extra->doc| TRUE | evaluated 162 times by 1 test | | FALSE | never evaluated |
) { | 0-162 |
| 2006 | translatedMousePos.rx() -= QQuickTextUtil::alignedX(layedOutTextRect.width(), availableWidth(), q->effectiveHAlign()); | - |
| 2007 | returnexecuted 162 times by 1 test: return extra->doc->documentLayout()->anchorAt(translatedMousePos); extra->doc->documentLayout()->anchorAt(translatedMousePos);executed 162 times by 1 test: return extra->doc->documentLayout()->anchorAt(translatedMousePos); | 162 |
| 2008 | } | - |
| 2009 | return never executed: return QString(); QString();never executed: return QString(); | 0 |
| 2010 | } | - |
| 2011 | | - |
| 2012 | bool 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); returnexecuted 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 | | - |
| 2019 | void QQuickText::mousePressEvent(QMouseEvent *event) | - |
| 2020 | { | - |
| 2021 | QQuickTextPrivate * const d = d_func(); | - |
| 2022 | | - |
| 2023 | QString link; | - |
| 2024 | if (d->isLinkActivatedConnected()| TRUE | evaluated 64 times by 1 test | | FALSE | evaluated 230 times by 4 testsEvaluated 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()); | 64 |
| 2026 | | - |
| 2027 | if (link.isEmpty()| TRUE | evaluated 236 times by 5 testsEvaluated by:- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktaphandler
- tst_qquicktext
| | FALSE | evaluated 58 times by 1 test |
) { | 58-236 |
| 2028 | event->setAccepted(false); | - |
| 2029 | }executed 236 times by 5 tests: end of blockExecuted 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 | 58 |
| 2032 | | - |
| 2033 | | - |
| 2034 | | - |
| 2035 | if (!event->isAccepted()| TRUE | evaluated 236 times by 5 testsEvaluated by:- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktaphandler
- tst_qquicktext
| | FALSE | evaluated 58 times by 1 test |
) | 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 blockExecuted by:- tst_qquickdraghandler
- tst_qquickgridview
- tst_qquicklistview
- tst_qquicktaphandler
- tst_qquicktext
| 294 |
| 2038 | | - |
| 2039 | | - |
| 2040 | | - |
| 2041 | void QQuickText::mouseReleaseEvent(QMouseEvent *event) | - |
| 2042 | { | - |
| 2043 | QQuickTextPrivate * const d = d_func(); | - |
| 2044 | | - |
| 2045 | | - |
| 2046 | | - |
| 2047 | QString link; | - |
| 2048 | if (d->isLinkActivatedConnected()| TRUE | evaluated 64 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2-64 |
| 2049 | link = d->anchorAt(event->localPos());executed 64 times by 1 test: link = d->anchorAt(event->localPos()); | 64 |
| 2050 | | - |
| 2051 | if (!link.isEmpty()| TRUE | evaluated 58 times by 1 test | | FALSE | evaluated 8 times by 2 testsEvaluated by:- tst_qquickpathview
- tst_qquicktext
|
&& d->extra.isAllocated()| TRUE | evaluated 58 times by 1 test | | FALSE | never evaluated |
&& d->extra->activeLink == link| TRUE | evaluated 48 times by 1 test | | FALSE | evaluated 10 times by 1 test |
) | 0-58 |
| 2052 | linkActivated(d->extra->activeLink);executed 48 times by 1 test: linkActivated(d->extra->activeLink); | 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()| TRUE | evaluated 18 times by 2 testsEvaluated by:- tst_qquickpathview
- tst_qquicktext
| | FALSE | evaluated 48 times by 1 test |
) | 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 blockExecuted by:- tst_qquickpathview
- tst_qquicktext
| 66 |
| 2059 | | - |
| 2060 | bool 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); returnexecuted 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 | } | - |
| 2065 | QString QQuickText::hoveredLink() const | - |
| 2066 | { | - |
| 2067 | const QQuickTextPrivate * const d = d_func(); | - |
| 2068 | if (const_cast<| TRUE | evaluated 192 times by 1 test | | FALSE | evaluated 16 times by 1 testEvaluated by:- tst_qqmlenginedebugservice
|
QQuickTextPrivate *>(d)->isLinkHoveredConnected()| TRUE | evaluated 192 times by 1 test | | FALSE | evaluated 16 times by 1 testEvaluated by:- tst_qqmlenginedebugservice
|
) { | 16-192 |
| 2069 | if (d->extra.isAllocated()| TRUE | evaluated 184 times by 1 test | | FALSE | evaluated 8 times by 1 test |
) | 8-184 |
| 2070 | returnexecuted 184 times by 1 test: return d->extra->hoveredLink; d->extra->hoveredLink;executed 184 times by 1 test: return d->extra->hoveredLink; | 184 |
| 2071 | }executed 8 times by 1 test: end of block else { | 8 |
| 2072 | | - |
| 2073 | if (QQuickWindow *wnd = window()| TRUE | never evaluated | | FALSE | evaluated 16 times by 1 testEvaluated 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 blockExecuted by:- tst_qqmlenginedebugservice
| 16 |
| 2079 | returnexecuted 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 | | - |
| 2082 | void QQuickTextPrivate::processHoverEvent(QHoverEvent *event) | - |
| 2083 | { | - |
| 2084 | QQuickText * const q = q_func(); | - |
| 2085 | for (bool qt_category_enabled = DBG_HOVER_TRACE().isDebugEnabled(); qt_category_enabled| TRUE | never evaluated | | FALSE | evaluated 146 times by 1 test |
; 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()| TRUE | evaluated 146 times by 1 test | | FALSE | never evaluated |
) { | 0-146 |
| 2088 | if (event->type() != QEvent::HoverLeave| TRUE | evaluated 82 times by 1 test | | FALSE | evaluated 64 times by 1 test |
) | 64-82 |
| 2089 | link = anchorAt(event->posF());executed 82 times by 1 test: link = anchorAt(event->posF()); | 82 |
| 2090 | | - |
| 2091 | if ((!extra.isAllocated()| TRUE | evaluated 42 times by 1 test | | FALSE | evaluated 104 times by 1 test |
&& !link.isEmpty()| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 6 times by 1 test |
) || (extra.isAllocated()| TRUE | evaluated 104 times by 1 test | | FALSE | evaluated 6 times by 1 test |
&& extra->hoveredLink != link| TRUE | evaluated 92 times by 1 test | | FALSE | evaluated 12 times by 1 test |
)) { | 6-104 |
| 2092 | extra.value().hoveredLink = link; | - |
| 2093 | q->linkHovered(extra->hoveredLink); | - |
| 2094 | }executed 128 times by 1 test: end of block | 128 |
| 2095 | }executed 146 times by 1 test: end of block | 146 |
| 2096 | event->setAccepted(!link.isEmpty()); | - |
| 2097 | }executed 146 times by 1 test: end of block | 146 |
| 2098 | | - |
| 2099 | void 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 | 64 |
| 2104 | | - |
| 2105 | void 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 | 18 |
| 2110 | | - |
| 2111 | void 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 | 64 |
| 2116 | QQuickText::RenderType QQuickText::renderType() const | - |
| 2117 | { | - |
| 2118 | const QQuickTextPrivate * const d = d_func(); | - |
| 2119 | returnexecuted 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 | | - |
| 2122 | void QQuickText::setRenderType(QQuickText::RenderType renderType) | - |
| 2123 | { | - |
| 2124 | QQuickTextPrivate * const d = d_func(); | - |
| 2125 | if (d->renderType == renderType| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquicklayouts
- tst_qquicktext
| | FALSE | evaluated 76 times by 2 testsEvaluated 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()| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 72 times by 1 test |
) | 4-72 |
| 2132 | d->updateLayout();executed 4 times by 1 test: d->updateLayout(); | 4 |
| 2133 | }executed 76 times by 2 tests: end of blockExecuted by:- tst_qquicktext
- tst_scenegraph
| 76 |
| 2134 | | - |
| 2135 | | - |
| 2136 | | - |
| 2137 | | - |
| 2138 | | - |
| 2139 | | - |
| 2140 | | - |
| 2141 | void QQuickText::doLayout() | - |
| 2142 | { | - |
| 2143 | forceLayout(); | - |
| 2144 | } never executed: end of block | 0 |
| 2145 | | - |
| 2146 | | - |
| 2147 | | - |
| 2148 | | - |
| 2149 | | - |
| 2150 | | - |
| 2151 | | - |
| 2152 | void QQuickText::forceLayout() | - |
| 2153 | { | - |
| 2154 | QQuickTextPrivate * const d = d_func(); | - |
| 2155 | d->updateSize(); | - |
| 2156 | }executed 2 times by 1 test: end of block | 2 |
| 2157 | QString QQuickText::linkAt(qreal x, qreal y) const | - |
| 2158 | { | - |
| 2159 | const QQuickTextPrivate * const d = d_func(); | - |
| 2160 | returnexecuted 192 times by 1 test: return d->anchorAt(QPointF(x, y)); d->anchorAt(QPointF(x, y));executed 192 times by 1 test: return d->anchorAt(QPointF(x, y)); | 192 |
| 2161 | } | - |
| 2162 | | - |
| 2163 | | - |
| 2164 | | - |
| 2165 | | - |
| 2166 | | - |
| 2167 | | - |
| 2168 | | - |
| 2169 | void QQuickText::invalidateFontCaches() | - |
| 2170 | { | - |
| 2171 | QQuickTextPrivate * const d = d_func(); | - |
| 2172 | | - |
| 2173 | if (d->richText| TRUE | evaluated 174 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 540829 times by 21 testsEvaluated 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()| TRUE | evaluated 174 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
&& d->extra->doc != nullptr| TRUE | evaluated 174 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
) { | 0-540829 |
| 2174 | QTextBlock block; | - |
| 2175 | for (block = d->extra->doc->firstBlock(); block.isValid()| TRUE | evaluated 222 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 174 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
; block = block.next()) { | 174-222 |
| 2176 | if (block.layout() != nullptr| TRUE | evaluated 222 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never evaluated |
&& block.layout()->engine() != nullptr| TRUE | evaluated 222 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | never 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 blockExecuted by:- tst_examples
- tst_qquicktext
| 222 |
| 2179 | }executed 174 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquicktext
else { | 174 |
| 2180 | if (d->layout.engine() != nullptr| TRUE | evaluated 540829 times by 21 testsEvaluated 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
| | FALSE | never 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 blockExecuted 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 | } | - |
| 2184 | qreal QQuickText::padding() const | - |
| 2185 | { | - |
| 2186 | const QQuickTextPrivate * const d = d_func(); | - |
| 2187 | returnexecuted 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 | | - |
| 2190 | void QQuickText::setPadding(qreal padding) | - |
| 2191 | { | - |
| 2192 | QQuickTextPrivate * const d = d_func(); | - |
| 2193 | if (qFuzzyCompare(d->padding(), padding)| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
) | 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()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
|| !d->extra->explicitTopPadding| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 0-4 |
| 2200 | topPaddingChanged();executed 2 times by 1 test: topPaddingChanged(); | 2 |
| 2201 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
|| !d->extra->explicitLeftPadding| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 0-4 |
| 2202 | leftPaddingChanged();executed 2 times by 1 test: leftPaddingChanged(); | 2 |
| 2203 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
|| !d->extra->explicitRightPadding| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 0-4 |
| 2204 | rightPaddingChanged();executed 2 times by 1 test: rightPaddingChanged(); | 2 |
| 2205 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 4 times by 1 test |
|| !d->extra->explicitBottomPadding| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 0-4 |
| 2206 | bottomPaddingChanged();executed 2 times by 1 test: bottomPaddingChanged(); | 2 |
| 2207 | }executed 4 times by 1 test: end of block | 4 |
| 2208 | | - |
| 2209 | void QQuickText::resetPadding() | - |
| 2210 | { | - |
| 2211 | setPadding(0); | - |
| 2212 | }executed 2 times by 1 test: end of block | 2 |
| 2213 | | - |
| 2214 | qreal QQuickText::topPadding() const | - |
| 2215 | { | - |
| 2216 | const QQuickTextPrivate * const d = d_func(); | - |
| 2217 | if (d->extra.isAllocated()| TRUE | evaluated 6520 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2713358 times by 35 testsEvaluated 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| TRUE | evaluated 896 times by 1 test | | FALSE | evaluated 5624 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 896-2713358 |
| 2218 | returnexecuted 896 times by 1 test: return d->extra->topPadding; d->extra->topPadding;executed 896 times by 1 test: return d->extra->topPadding; | 896 |
| 2219 | returnexecuted 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 | | - |
| 2222 | void 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 | 32 |
| 2227 | | - |
| 2228 | void QQuickText::resetTopPadding() | - |
| 2229 | { | - |
| 2230 | QQuickTextPrivate * const d = d_func(); | - |
| 2231 | d->setTopPadding(0, true); | - |
| 2232 | }executed 2 times by 1 test: end of block | 2 |
| 2233 | | - |
| 2234 | qreal QQuickText::leftPadding() const | - |
| 2235 | { | - |
| 2236 | const QQuickTextPrivate * const d = d_func(); | - |
| 2237 | if (d->extra.isAllocated()| TRUE | evaluated 4824 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 2238461 times by 35 testsEvaluated 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| TRUE | evaluated 132 times by 1 test | | FALSE | evaluated 4692 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 132-2238461 |
| 2238 | returnexecuted 132 times by 1 test: return d->extra->leftPadding; d->extra->leftPadding;executed 132 times by 1 test: return d->extra->leftPadding; | 132 |
| 2239 | returnexecuted 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 | | - |
| 2242 | void 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 | 4 |
| 2247 | | - |
| 2248 | void QQuickText::resetLeftPadding() | - |
| 2249 | { | - |
| 2250 | QQuickTextPrivate * const d = d_func(); | - |
| 2251 | d->setLeftPadding(0, true); | - |
| 2252 | }executed 2 times by 1 test: end of block | 2 |
| 2253 | | - |
| 2254 | qreal QQuickText::rightPadding() const | - |
| 2255 | { | - |
| 2256 | const QQuickTextPrivate * const d = d_func(); | - |
| 2257 | if (d->extra.isAllocated()| TRUE | evaluated 4084 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 1990419 times by 35 testsEvaluated 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| TRUE | evaluated 138 times by 1 test | | FALSE | evaluated 3946 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 138-1990419 |
| 2258 | returnexecuted 138 times by 1 test: return d->extra->rightPadding; d->extra->rightPadding;executed 138 times by 1 test: return d->extra->rightPadding; | 138 |
| 2259 | returnexecuted 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 | | - |
| 2262 | void 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 | 4 |
| 2267 | | - |
| 2268 | void QQuickText::resetRightPadding() | - |
| 2269 | { | - |
| 2270 | QQuickTextPrivate * const d = d_func(); | - |
| 2271 | d->setRightPadding(0, true); | - |
| 2272 | }executed 2 times by 1 test: end of block | 2 |
| 2273 | | - |
| 2274 | qreal QQuickText::bottomPadding() const | - |
| 2275 | { | - |
| 2276 | const QQuickTextPrivate * const d = d_func(); | - |
| 2277 | if (d->extra.isAllocated()| TRUE | evaluated 4578 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
| | FALSE | evaluated 1993371 times by 35 testsEvaluated 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| TRUE | evaluated 694 times by 1 test | | FALSE | evaluated 3884 times by 2 testsEvaluated by:- tst_examples
- tst_qquicktext
|
) | 694-1993371 |
| 2278 | returnexecuted 694 times by 1 test: return d->extra->bottomPadding; d->extra->bottomPadding;executed 694 times by 1 test: return d->extra->bottomPadding; | 694 |
| 2279 | returnexecuted 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 | | - |
| 2282 | void 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 | 32 |
| 2287 | | - |
| 2288 | void QQuickText::resetBottomPadding() | - |
| 2289 | { | - |
| 2290 | QQuickTextPrivate * const d = d_func(); | - |
| 2291 | d->setBottomPadding(0, true); | - |
| 2292 | }executed 2 times by 1 test: end of block | 2 |
| 2293 | QJSValue QQuickText::fontInfo() const | - |
| 2294 | { | - |
| 2295 | const QQuickTextPrivate * const d = d_func(); | - |
| 2296 | | - |
| 2297 | QJSEngine *engine = qjsEngine(this); | - |
| 2298 | if (!engine| TRUE | never evaluated | | FALSE | evaluated 8 times by 1 test |
) { | 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), 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); returnexecuted 8 times by 1 test: return qstring_literal_temp; qstring_literal_temp;executed 8 times by 1 test: return qstring_literal_temp; }()), d->fontInfo.pixelSize()); | 8 |
| 2311 | returnexecuted 8 times by 1 test: return value; value;executed 8 times by 1 test: return value; | 8 |
| 2312 | } | - |
| 2313 | QSizeF QQuickText::advance() const | - |
| 2314 | { | - |
| 2315 | const QQuickTextPrivate * const d = d_func(); | - |
| 2316 | returnexecuted 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 | | - |
| | |