| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | QQuickItem *QQuickTextUtil::createCursor( | - |
| 7 | QQmlComponent *component, QQuickItem *parent, const QRectF &rectangle, const char *className) | - |
| 8 | { | - |
| 9 | QQuickItem *item = nullptr; | - |
| 10 | if (component->isReady()| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 4-46 |
| 11 | QQmlContext *creationContext = component->creationContext(); | - |
| 12 | | - |
| 13 | if (QObject *object = component->beginCreate(creationContext| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | never evaluated |
| 0-46 |
| 14 | ? creationContext| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | never evaluated |
| 0-46 |
| 15 | : qmlContext(parent))| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | never evaluated |
) { | 0-46 |
| 16 | if ((| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | never evaluated |
item = qobject_cast<QQuickItem *>(object))| TRUE | evaluated 46 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | never evaluated |
) { | 0-46 |
| 17 | QQml_setParent_noEvent(item, parent); | - |
| 18 | item->setParentItem(parent); | - |
| 19 | item->setPosition(rectangle.topLeft()); | - |
| 20 | item->setHeight(rectangle.height()); | - |
| 21 | }executed 46 times by 2 tests: end of blockExecuted by:- tst_qquicktextedit
- tst_qquicktextinput
else { | 46 |
| 22 | qmlWarning(parent) << tr("%1 does not support loading non-visual cursor delegates.") | - |
| 23 | .arg(QString::fromUtf8(className)); | - |
| 24 | } never executed: end of block | 0 |
| 25 | component->completeCreate(); | - |
| 26 | returnexecuted 46 times by 2 tests: return item;Executed by:- tst_qquicktextedit
- tst_qquicktextinput
item;executed 46 times by 2 tests: return item;Executed by:- tst_qquicktextedit
- tst_qquicktextinput
| 46 |
| 27 | } | - |
| 28 | } never executed: end of block else if (component->isLoading()| TRUE | evaluated 4 times by 2 testsEvaluated by:- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | never evaluated |
) { | 0-4 |
| 29 | QObject::connect(component, qFlagLocation("2""statusChanged(QQmlComponent::Status)" "\0" __FILE__ ":" "71"), | - |
| 30 | parent, qFlagLocation("1""createCursor()" "\0" __FILE__ ":" "72"), Qt::UniqueConnection); | - |
| 31 | returnexecuted 4 times by 2 tests: return item;Executed by:- tst_qquicktextedit
- tst_qquicktextinput
item;executed 4 times by 2 tests: return item;Executed by:- tst_qquicktextedit
- tst_qquicktextinput
| 4 |
| 32 | } | - |
| 33 | qmlWarning(parent, component->errors()) << tr("Could not load cursor delegate"); | - |
| 34 | return never executed: return item; item;never executed: return item; | 0 |
| 35 | } | - |
| 36 | | - |
| 37 | qreal QQuickTextUtil::alignedX(const qreal textWidth, const qreal itemWidth, int alignment) | - |
| 38 | { | - |
| 39 | qreal x = 0; | - |
| 40 | switch (alignment) { | - |
| 41 | caseexecuted 253421 times by 23 tests: case Qt::AlignLeft:Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
Qt::AlignLeft:executed 253421 times by 23 tests: case Qt::AlignLeft:Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 253421 |
| 42 | case never executed: case Qt::AlignJustify: Qt::AlignJustify:never executed: case Qt::AlignJustify: | 0 |
| 43 | break;executed 253421 times by 23 tests: break;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 253421 |
| 44 | caseexecuted 344 times by 4 tests: case Qt::AlignRight:Executed by:- tst_examples
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
Qt::AlignRight:executed 344 times by 4 tests: case Qt::AlignRight:Executed by:- tst_examples
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 344 |
| 45 | x = itemWidth - textWidth; | - |
| 46 | break;executed 344 times by 4 tests: break;Executed by:- tst_examples
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 344 |
| 47 | caseexecuted 401 times by 6 tests: case Qt::AlignHCenter:Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
Qt::AlignHCenter:executed 401 times by 6 tests: case Qt::AlignHCenter:Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 401 |
| 48 | x = (itemWidth - textWidth) / 2; | - |
| 49 | break;executed 401 times by 6 tests: break;Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 401 |
| 50 | } | - |
| 51 | returnexecuted 254166 times by 24 tests: return x;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
x;executed 254166 times by 24 tests: return x;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 254166 |
| 52 | } | - |
| 53 | | - |
| 54 | qreal QQuickTextUtil::alignedY(const qreal textHeight, const qreal itemHeight, int alignment) | - |
| 55 | { | - |
| 56 | qreal y = 0; | - |
| 57 | switch (alignment) { | - |
| 58 | caseexecuted 261930 times by 24 tests: case Qt::AlignTop:Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
Qt::AlignTop:executed 261930 times by 24 tests: case Qt::AlignTop:Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 261930 |
| 59 | break;executed 261930 times by 24 tests: break;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 261930 |
| 60 | caseexecuted 146 times by 3 tests: case Qt::AlignBottom:Executed by:- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
Qt::AlignBottom:executed 146 times by 3 tests: case Qt::AlignBottom:Executed by:- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 146 |
| 61 | y = itemHeight - textHeight; | - |
| 62 | break;executed 146 times by 3 tests: break;Executed by:- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 146 |
| 63 | caseexecuted 435 times by 6 tests: case Qt::AlignVCenter:Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
Qt::AlignVCenter:executed 435 times by 6 tests: case Qt::AlignVCenter:Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 435 |
| 64 | y = (itemHeight - textHeight) / 2; | - |
| 65 | break;executed 435 times by 6 tests: break;Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
| 435 |
| 66 | } | - |
| 67 | returnexecuted 262511 times by 25 tests: return y;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
y;executed 262511 times by 25 tests: return y;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickfontloader
- tst_qquickfontloader_static
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmousearea
- tst_qquickpathview
- tst_qquickpincharea
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickspringanimation
- tst_qquicktaphandler
- tst_qquicktext
- tst_qquicktextdocument
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
- tst_touchmouse
| 262511 |
| 68 | } | - |
| 69 | | - |
| 70 | | - |
| 71 | | - |
| | |