| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | static const QQuickItemPrivate::ChangeTypes watchedChanges | - |
| 7 | = QQuickItemPrivate::Geometry | - |
| 8 | | QQuickItemPrivate::SiblingOrder | - |
| 9 | | QQuickItemPrivate::Visibility | - |
| 10 | | QQuickItemPrivate::Destroyed; | - |
| 11 | | - |
| 12 | void QQuickBasePositionerPrivate::watchChanges(QQuickItem *other) | - |
| 13 | { | - |
| 14 | QQuickItemPrivate *otherPrivate = QQuickItemPrivate::get(other); | - |
| 15 | otherPrivate->addItemChangeListener(this, watchedChanges); | - |
| 16 | }executed 37586 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 37586 |
| 17 | | - |
| 18 | void QQuickBasePositionerPrivate::unwatchChanges(QQuickItem* other) | - |
| 19 | { | - |
| 20 | QQuickItemPrivate *otherPrivate = QQuickItemPrivate::get(other); | - |
| 21 | otherPrivate->removeItemChangeListener(this, watchedChanges); | - |
| 22 | }executed 37574 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 37574 |
| 23 | | - |
| 24 | | - |
| 25 | QQuickBasePositioner::PositionedItem::PositionedItem(QQuickItem *i) | - |
| 26 | : item(i) | - |
| 27 | , transitionableItem(nullptr) | - |
| 28 | , index(-1) | - |
| 29 | , isNew(false) | - |
| 30 | , isVisible(true) | - |
| 31 | , topPadding(0) | - |
| 32 | , leftPadding(0) | - |
| 33 | , rightPadding(0) | - |
| 34 | , bottomPadding(0) | - |
| 35 | { | - |
| 36 | }executed 121175 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 121175 |
| 37 | | - |
| 38 | QQuickBasePositioner::PositionedItem::~PositionedItem() | - |
| 39 | { | - |
| 40 | delete transitionableItem; | - |
| 41 | }executed 121175 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 121175 |
| 42 | | - |
| 43 | qreal QQuickBasePositioner::PositionedItem::itemX() const | - |
| 44 | { | - |
| 45 | returnexecuted 231322 times by 21 tests: return transitionableItem ? transitionableItem->itemX() : item->x();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
transitionableItem ? transitionableItem->itemX() : item->x();executed 231322 times by 21 tests: return transitionableItem ? transitionableItem->itemX() : item->x();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 231322 |
| 46 | } | - |
| 47 | | - |
| 48 | qreal QQuickBasePositioner::PositionedItem::itemY() const | - |
| 49 | { | - |
| 50 | returnexecuted 116212 times by 21 tests: return transitionableItem ? transitionableItem->itemY() : item->y();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
transitionableItem ? transitionableItem->itemY() : item->y();executed 116212 times by 21 tests: return transitionableItem ? transitionableItem->itemY() : item->y();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 116212 |
| 51 | } | - |
| 52 | | - |
| 53 | void QQuickBasePositioner::PositionedItem::moveTo(const QPointF &pos) | - |
| 54 | { | - |
| 55 | if (transitionableItem| TRUE | evaluated 6552 times by 1 test | | FALSE | evaluated 23629 times by 19 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 6552-23629 |
| 56 | transitionableItem->moveTo(pos);executed 6552 times by 1 test: transitionableItem->moveTo(pos); | 6552 |
| 57 | else | - |
| 58 | item->setPosition(pos);executed 23629 times by 19 tests: item->setPosition(pos);Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 23629 |
| 59 | } | - |
| 60 | | - |
| 61 | void QQuickBasePositioner::PositionedItem::transitionNextReposition(QQuickItemViewTransitioner *transitioner, QQuickItemViewTransitioner::TransitionType type, bool asTarget) | - |
| 62 | { | - |
| 63 | if (!transitioner| TRUE | never evaluated | | FALSE | evaluated 7488 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 0-7488 |
| 64 | return; never executed: return; | 0 |
| 65 | if (!transitionableItem| TRUE | evaluated 4240 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 3248 times by 1 test |
) | 3248-4240 |
| 66 | transitionableItem = new QQuickItemViewTransitionableItem(item);executed 4240 times by 2 tests: transitionableItem = new QQuickItemViewTransitionableItem(item);Executed by:- tst_examples
- tst_qquickpositioners
| 4240 |
| 67 | transitioner->transitionNextReposition(transitionableItem, type, asTarget); | - |
| 68 | }executed 7488 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 7488 |
| 69 | | - |
| 70 | bool QQuickBasePositioner::PositionedItem::prepareTransition(QQuickItemViewTransitioner *transitioner, const QRectF &viewBounds) | - |
| 71 | { | - |
| 72 | returnexecuted 8060 times by 2 tests: return transitionableItem ? transitionableItem->prepareTransition(transitioner, index, viewBounds) : false;Executed by:- tst_examples
- tst_qquickpositioners
transitionableItem ? transitionableItem->prepareTransition(transitioner, index, viewBounds) : false;executed 8060 times by 2 tests: return transitionableItem ? transitionableItem->prepareTransition(transitioner, index, viewBounds) : false;Executed by:- tst_examples
- tst_qquickpositioners
| 8060 |
| 73 | } | - |
| 74 | | - |
| 75 | void QQuickBasePositioner::PositionedItem::startTransition(QQuickItemViewTransitioner *transitioner) | - |
| 76 | { | - |
| 77 | if (transitionableItem| TRUE | evaluated 7488 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 572 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 572-7488 |
| 78 | transitionableItem->startTransition(transitioner, index);executed 7488 times by 2 tests: transitionableItem->startTransition(transitioner, index);Executed by:- tst_examples
- tst_qquickpositioners
| 7488 |
| 79 | }executed 8060 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 8060 |
| 80 | | - |
| 81 | void QQuickBasePositioner::PositionedItem::updatePadding(qreal lp, qreal tp, qreal rp, qreal bp) | - |
| 82 | { | - |
| 83 | leftPadding = lp; | - |
| 84 | topPadding = tp; | - |
| 85 | rightPadding = rp; | - |
| 86 | bottomPadding = bp; | - |
| 87 | }executed 120048 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 120048 |
| 88 | | - |
| 89 | QQuickBasePositioner::QQuickBasePositioner(PositionerType at, QQuickItem *parent) | - |
| 90 | : QQuickImplicitSizeItem(*(new QQuickBasePositionerPrivate), parent) | - |
| 91 | { | - |
| 92 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 93 | d->init(at); | - |
| 94 | }executed 11162 times by 16 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
| 11162 |
| 95 | QQuickBasePositioner::QQuickBasePositioner(QQuickBasePositionerPrivate &dd, PositionerType at, QQuickItem *parent) | - |
| 96 | : QQuickImplicitSizeItem(dd, parent) | - |
| 97 | { | - |
| 98 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 99 | d->init(at); | - |
| 100 | }executed 1234 times by 15 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 1234 |
| 101 | | - |
| 102 | QQuickBasePositioner::~QQuickBasePositioner() | - |
| 103 | { | - |
| 104 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 105 | delete d->transitioner; | - |
| 106 | for (int i = 0; i < positionedItems.count()| TRUE | evaluated 37085 times by 19 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 12382 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; ++i) | 12382-37085 |
| 107 | d->unwatchChanges(positionedItems.at(i).item);executed 37085 times by 19 tests: d->unwatchChanges(positionedItems.at(i).item);Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 37085 |
| 108 | for (int i = 0; i < unpositionedItems.count()| TRUE | evaluated 207 times by 8 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
| | FALSE | evaluated 12382 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; ++i) | 207-12382 |
| 109 | d->unwatchChanges(unpositionedItems.at(i).item);executed 207 times by 8 tests: d->unwatchChanges(unpositionedItems.at(i).item);Executed by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
| 207 |
| 110 | clearPositionedItems(&positionedItems); | - |
| 111 | clearPositionedItems(&unpositionedItems); | - |
| 112 | }executed 12382 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 12382 |
| 113 | | - |
| 114 | void QQuickBasePositioner::updatePolish() | - |
| 115 | { | - |
| 116 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 117 | if (d->positioningDirty| TRUE | evaluated 27136 times by 9 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
| | FALSE | evaluated 5513 times by 17 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 5513-27136 |
| 118 | prePositioning();executed 27136 times by 9 tests: prePositioning();Executed by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
| 27136 |
| 119 | }executed 32649 times by 19 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 32649 |
| 120 | | - |
| 121 | qreal QQuickBasePositioner::spacing() const | - |
| 122 | { | - |
| 123 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 124 | returnexecuted 155980 times by 21 tests: return d->spacing;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
d->spacing;executed 155980 times by 21 tests: return d->spacing;Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 155980 |
| 125 | } | - |
| 126 | | - |
| 127 | void QQuickBasePositioner::setSpacing(qreal s) | - |
| 128 | { | - |
| 129 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 130 | if (s == d->spacing| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 432 times by 9 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquicktextinput
|
) | 2-432 |
| 131 | return;executed 2 times by 1 test: return; | 2 |
| 132 | d->spacing = s; | - |
| 133 | d->setPositioningDirty(); | - |
| 134 | spacingChanged(); | - |
| 135 | }executed 432 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquicktextinput
| 432 |
| 136 | | - |
| 137 | QQuickTransition *QQuickBasePositioner::populate() const | - |
| 138 | { | - |
| 139 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 140 | return never executed: return d->transitioner ? d->transitioner->populateTransition : nullptr; d->transitioner ? d->transitioner->populateTransition : nullptr;never executed: return d->transitioner ? d->transitioner->populateTransition : nullptr; | 0 |
| 141 | } | - |
| 142 | | - |
| 143 | void QQuickBasePositioner::setPopulate(QQuickTransition *transition) | - |
| 144 | { | - |
| 145 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 146 | if (!d->transitioner| TRUE | evaluated 1024 times by 1 test | | FALSE | evaluated 20 times by 1 test |
) | 20-1024 |
| 147 | d->transitioner = new QQuickItemViewTransitioner;executed 1024 times by 1 test: d->transitioner = new QQuickItemViewTransitioner; | 1024 |
| 148 | if (d->transitioner->populateTransition != transition| TRUE | evaluated 1044 times by 1 test | | FALSE | never evaluated |
) { | 0-1044 |
| 149 | d->transitioner->populateTransition = transition; | - |
| 150 | populateChanged(); | - |
| 151 | }executed 1044 times by 1 test: end of block | 1044 |
| 152 | }executed 1044 times by 1 test: end of block | 1044 |
| 153 | | - |
| 154 | QQuickTransition *QQuickBasePositioner::move() const | - |
| 155 | { | - |
| 156 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 157 | returnexecuted 4 times by 1 test: return d->transitioner ? d->transitioner->displacedTransition : nullptr; d->transitioner ? d->transitioner->displacedTransition : nullptr;executed 4 times by 1 test: return d->transitioner ? d->transitioner->displacedTransition : nullptr; | 4 |
| 158 | } | - |
| 159 | | - |
| 160 | void QQuickBasePositioner::setMove(QQuickTransition *mt) | - |
| 161 | { | - |
| 162 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 163 | if (!d->transitioner| TRUE | evaluated 32 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 1032 times by 1 test |
) | 32-1032 |
| 164 | d->transitioner = new QQuickItemViewTransitioner;executed 32 times by 2 tests: d->transitioner = new QQuickItemViewTransitioner;Executed by:- tst_examples
- tst_qquickpositioners
| 32 |
| 165 | if (mt == d->transitioner->displacedTransition| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1062 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 2-1062 |
| 166 | return;executed 2 times by 1 test: return; | 2 |
| 167 | | - |
| 168 | d->transitioner->displacedTransition = mt; | - |
| 169 | moveChanged(); | - |
| 170 | }executed 1062 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 1062 |
| 171 | | - |
| 172 | QQuickTransition *QQuickBasePositioner::add() const | - |
| 173 | { | - |
| 174 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 175 | returnexecuted 4 times by 1 test: return d->transitioner ? d->transitioner->addTransition : nullptr; d->transitioner ? d->transitioner->addTransition : nullptr;executed 4 times by 1 test: return d->transitioner ? d->transitioner->addTransition : nullptr; | 4 |
| 176 | } | - |
| 177 | | - |
| 178 | void QQuickBasePositioner::setAdd(QQuickTransition *add) | - |
| 179 | { | - |
| 180 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 181 | if (!d->transitioner| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1054 times by 1 test |
) | 2-1054 |
| 182 | d->transitioner = new QQuickItemViewTransitioner;executed 2 times by 1 test: d->transitioner = new QQuickItemViewTransitioner; | 2 |
| 183 | if (add == d->transitioner->addTransition| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1054 times by 1 test |
) | 2-1054 |
| 184 | return;executed 2 times by 1 test: return; | 2 |
| 185 | | - |
| 186 | d->transitioner->addTransition = add; | - |
| 187 | addChanged(); | - |
| 188 | }executed 1054 times by 1 test: end of block | 1054 |
| 189 | | - |
| 190 | void QQuickBasePositioner::componentComplete() | - |
| 191 | { | - |
| 192 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 193 | QQuickItem::componentComplete(); | - |
| 194 | if (d->transitioner| TRUE | evaluated 1058 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 11338 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 1058-11338 |
| 195 | d->transitioner->setPopulateTransitionEnabled(true);executed 1058 times by 2 tests: d->transitioner->setPopulateTransitionEnabled(true);Executed by:- tst_examples
- tst_qquickpositioners
| 1058 |
| 196 | positionedItems.reserve(childItems().count()); | - |
| 197 | prePositioning(); | - |
| 198 | if (d->transitioner| TRUE | evaluated 1058 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 11338 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 1058-11338 |
| 199 | d->transitioner->setPopulateTransitionEnabled(false);executed 1058 times by 2 tests: d->transitioner->setPopulateTransitionEnabled(false);Executed by:- tst_examples
- tst_qquickpositioners
| 1058 |
| 200 | }executed 12396 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 12396 |
| 201 | | - |
| 202 | void QQuickBasePositioner::itemChange(ItemChange change, const ItemChangeData &value) | - |
| 203 | { | - |
| 204 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 205 | if (change == ItemChildAddedChange| TRUE | evaluated 38962 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 49574 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 38962-49574 |
| 206 | d->setPositioningDirty(); | - |
| 207 | }executed 38962 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
else if (change == ItemChildRemovedChange| TRUE | evaluated 338 times by 5 testsEvaluated by:- tst_qqmlqt
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 49236 times by 22 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 338-49236 |
| 208 | QQuickItem *child = value.item; | - |
| 209 | QQuickBasePositioner::PositionedItem posItem(child); | - |
| 210 | int idx = positionedItems.find(posItem); | - |
| 211 | if (idx >= 0| TRUE | evaluated 270 times by 3 testsEvaluated by:- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 68 times by 3 testsEvaluated by:- tst_qqmlqt
- tst_qquickitem2
- tst_qquickrepeater
|
) { | 68-270 |
| 212 | d->unwatchChanges(child); | - |
| 213 | removePositionedItem(&positionedItems, idx); | - |
| 214 | }executed 270 times by 3 tests: end of blockExecuted by:- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
else if ((| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlqt
- tst_qquickitem2
| | FALSE | evaluated 56 times by 1 test |
idx = unpositionedItems.find(posItem)) >= 0| TRUE | evaluated 12 times by 2 testsEvaluated by:- tst_qqmlqt
- tst_qquickitem2
| | FALSE | evaluated 56 times by 1 test |
) { | 12-270 |
| 215 | d->unwatchChanges(child); | - |
| 216 | removePositionedItem(&unpositionedItems, idx); | - |
| 217 | }executed 12 times by 2 tests: end of blockExecuted by:- tst_qqmlqt
- tst_qquickitem2
| 12 |
| 218 | d->setPositioningDirty(); | - |
| 219 | }executed 338 times by 5 tests: end of blockExecuted by:- tst_qqmlqt
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
| 338 |
| 220 | | - |
| 221 | QQuickItem::itemChange(change, value); | - |
| 222 | }executed 88536 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 88536 |
| 223 | | - |
| 224 | void QQuickBasePositioner::forceLayout() | - |
| 225 | { | - |
| 226 | updatePolish(); | - |
| 227 | } never executed: end of block | 0 |
| 228 | | - |
| 229 | void QQuickBasePositioner::prePositioning() | - |
| 230 | { | - |
| 231 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 232 | if (!isComponentComplete()| TRUE | evaluated 148 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| | FALSE | evaluated 39652 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 148-39652 |
| 233 | return;executed 148 times by 6 tests: return;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| 148 |
| 234 | | - |
| 235 | if (d->doingPositioning| TRUE | never evaluated | | FALSE | evaluated 39652 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 0-39652 |
| 236 | return; never executed: return; | 0 |
| 237 | | - |
| 238 | d->positioningDirty = false; | - |
| 239 | d->doingPositioning = true; | - |
| 240 | | - |
| 241 | QList<QQuickItem *> children = childItems(); | - |
| 242 | | - |
| 243 | QPODVector<PositionedItem,8> oldItems; | - |
| 244 | positionedItems.copyAndClear(oldItems); | - |
| 245 | for (int ii = 0; ii < unpositionedItems.count()| TRUE | evaluated 104 times by 5 testsEvaluated by:- tst_examples
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
| | FALSE | evaluated 39652 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; ii++) | 104-39652 |
| 246 | oldItems.append(unpositionedItems[ii]);executed 104 times by 5 tests: oldItems.append(unpositionedItems[ii]);Executed by:- tst_examples
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
| 104 |
| 247 | unpositionedItems.clear(); | - |
| 248 | int addedIndex = -1; | - |
| 249 | | - |
| 250 | for (int ii = 0; ii < children.count()| TRUE | evaluated 122567 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 39652 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; ++ii) { | 39652-122567 |
| 251 | QQuickItem *child = children.at(ii); | - |
| 252 | if (QQuickItemPrivate::get(child)->isTransparentForPositioner()| TRUE | evaluated 1730 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| | FALSE | evaluated 120837 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 1730-120837 |
| 253 | continue;executed 1730 times by 9 tests: continue;Executed by:- tst_examples
- tst_qqmlqt
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| 1730 |
| 254 | QQuickItemPrivate *childPrivate = QQuickItemPrivate::get(child); | - |
| 255 | PositionedItem posItem(child); | - |
| 256 | int wIdx = oldItems.find(posItem); | - |
| 257 | if (wIdx < 0| TRUE | evaluated 37586 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 83251 times by 9 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
|
) { | 37586-83251 |
| 258 | d->watchChanges(child); | - |
| 259 | posItem.isNew = true; | - |
| 260 | if (!childPrivate->explicitVisible| TRUE | evaluated 66 times by 2 testsEvaluated by:- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 37520 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
|| !child->width()| TRUE | evaluated 192 times by 7 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | evaluated 37328 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
|| !child->height()| TRUE | never evaluated | | FALSE | evaluated 37328 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 0-37520 |
| 261 | posItem.isVisible = false; | - |
| 262 | posItem.index = -1; | - |
| 263 | unpositionedItems.append(posItem); | - |
| 264 | }executed 258 times by 8 tests: end of blockExecuted by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
else { | 258 |
| 265 | posItem.index = positionedItems.count(); | - |
| 266 | positionedItems.append(posItem); | - |
| 267 | | - |
| 268 | if (d->transitioner| TRUE | evaluated 4244 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 33084 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 4244-33084 |
| 269 | if (addedIndex < 0| TRUE | evaluated 450 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 3794 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 450-3794 |
| 270 | addedIndex = posItem.index;executed 450 times by 2 tests: addedIndex = posItem.index;Executed by:- tst_examples
- tst_qquickpositioners
| 450 |
| 271 | PositionedItem *theItem = &positionedItems[positionedItems.count()-1]; | - |
| 272 | if (d->transitioner->canTransition(QQuickItemViewTransitioner::PopulateTransition, true)| TRUE | evaluated 536 times by 1 test | | FALSE | evaluated 3708 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 536-3708 |
| 273 | theItem->transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::PopulateTransition, true);executed 536 times by 1 test: theItem->transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::PopulateTransition, true); | 536 |
| 274 | else if (!d->transitioner->populateTransitionEnabled()| TRUE | evaluated 3136 times by 1 test | | FALSE | evaluated 572 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 572-3136 |
| 275 | theItem->transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, true);executed 3136 times by 1 test: theItem->transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, true); | 3136 |
| 276 | }executed 4244 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 4244 |
| 277 | }executed 37328 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 37328 |
| 278 | } else { | - |
| 279 | PositionedItem *item = &oldItems[wIdx]; | - |
| 280 | | - |
| 281 | | - |
| 282 | if (!childPrivate->explicitVisible| TRUE | evaluated 68 times by 3 testsEvaluated by:- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
| | FALSE | evaluated 83183 times by 9 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
|
|| !child->width()| TRUE | evaluated 1 time by 1 test | | FALSE | evaluated 83182 times by 9 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
|
|| !child->height()| TRUE | never evaluated | | FALSE | evaluated 83182 times by 9 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextinput
|
) { | 0-83183 |
| 283 | item->isVisible = false; | - |
| 284 | item->index = -1; | - |
| 285 | unpositionedItems.append(*item); | - |
| 286 | }executed 69 times by 4 tests: end of blockExecuted by:- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
else if (!item->isVisible| TRUE | evaluated 41 times by 5 testsEvaluated by:- tst_examples
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
| | FALSE | evaluated 83141 times by 7 testsEvaluated by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
|
) { | 41-83141 |
| 287 | | - |
| 288 | item->isVisible = true; | - |
| 289 | item->isNew = true; | - |
| 290 | item->index = positionedItems.count(); | - |
| 291 | positionedItems.append(*item); | - |
| 292 | | - |
| 293 | if (d->transitioner| TRUE | evaluated 24 times by 1 test | | FALSE | evaluated 17 times by 4 testsEvaluated by:- tst_examples
- tst_qquicklayouts
- tst_qquickstates
- tst_qquicktextinput
|
) { | 17-24 |
| 294 | if (addedIndex < 0| TRUE | evaluated 24 times by 1 test | | FALSE | never evaluated |
) | 0-24 |
| 295 | addedIndex = item->index;executed 24 times by 1 test: addedIndex = item->index; | 24 |
| 296 | positionedItems[positionedItems.count()-1].transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, true); | - |
| 297 | }executed 24 times by 1 test: end of block | 24 |
| 298 | }executed 41 times by 5 tests: end of blockExecuted by:- tst_examples
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextinput
else { | 41 |
| 299 | item->isNew = false; | - |
| 300 | item->index = positionedItems.count(); | - |
| 301 | positionedItems.append(*item); | - |
| 302 | }executed 83141 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
| 83141 |
| 303 | } | - |
| 304 | } | - |
| 305 | | - |
| 306 | if (d->transitioner| TRUE | evaluated 1580 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 38072 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 1580-38072 |
| 307 | for (int i=0; i<positionedItems.count()| TRUE | evaluated 8060 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 1580 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
; i++) { | 1580-8060 |
| 308 | if (!positionedItems[i].isNew| TRUE | evaluated 3792 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 4268 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 3792-4268 |
| 309 | if (addedIndex >= 0| TRUE | evaluated 2944 times by 1 test | | FALSE | evaluated 848 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 848-2944 |
| 310 | positionedItems[i].transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::AddTransition, false); | - |
| 311 | }executed 2944 times by 1 test: end of block else { | 2944 |
| 312 | | - |
| 313 | | - |
| 314 | positionedItems[i].transitionNextReposition(d->transitioner, QQuickItemViewTransitioner::MoveTransition, false); | - |
| 315 | }executed 848 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 848 |
| 316 | } | - |
| 317 | }executed 8060 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 8060 |
| 318 | }executed 1580 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 1580 |
| 319 | | - |
| 320 | QSizeF contentSize(0,0); | - |
| 321 | reportConflictingAnchors(); | - |
| 322 | if (!d->anchorConflict| TRUE | evaluated 39636 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 16 times by 1 test |
) { | 16-39636 |
| 323 | doPositioning(&contentSize); | - |
| 324 | updateAttachedProperties(); | - |
| 325 | }executed 39636 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 39636 |
| 326 | | - |
| 327 | if (d->transitioner| TRUE | evaluated 1580 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 38072 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 1580-38072 |
| 328 | QRectF viewBounds(QPointF(), contentSize); | - |
| 329 | for (int i=0; i<positionedItems.count()| TRUE | evaluated 8060 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 1580 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
; i++) | 1580-8060 |
| 330 | positionedItems[i].prepareTransition(d->transitioner, viewBounds);executed 8060 times by 2 tests: positionedItems[i].prepareTransition(d->transitioner, viewBounds);Executed by:- tst_examples
- tst_qquickpositioners
| 8060 |
| 331 | for (int i=0; i<positionedItems.count()| TRUE | evaluated 8060 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 1580 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
; i++) | 1580-8060 |
| 332 | positionedItems[i].startTransition(d->transitioner);executed 8060 times by 2 tests: positionedItems[i].startTransition(d->transitioner);Executed by:- tst_examples
- tst_qquickpositioners
| 8060 |
| 333 | d->transitioner->resetTargetLists(); | - |
| 334 | }executed 1580 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 1580 |
| 335 | | - |
| 336 | d->doingPositioning = false; | - |
| 337 | | - |
| 338 | | - |
| 339 | setImplicitSize(contentSize.width(), contentSize.height()); | - |
| 340 | | - |
| 341 | positioningComplete(); | - |
| 342 | }executed 39652 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 39652 |
| 343 | | - |
| 344 | void QQuickBasePositioner::positionItem(qreal x, qreal y, PositionedItem *target) | - |
| 345 | { | - |
| 346 | if ( target->itemX() != x| TRUE | evaluated 7558 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickvisualdatamodel
| | FALSE | evaluated 112490 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
|| target->itemY() != y| TRUE | evaluated 22271 times by 15 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| | FALSE | evaluated 90219 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 7558-112490 |
| 347 | target->moveTo(QPointF(x, y));executed 29829 times by 19 tests: target->moveTo(QPointF(x, y));Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 29829 |
| 348 | }executed 120048 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 120048 |
| 349 | | - |
| 350 | void QQuickBasePositioner::positionItemX(qreal x, PositionedItem *target) | - |
| 351 | { | - |
| 352 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 353 | if (target->itemX() != x| TRUE | evaluated 300 times by 1 test | | FALSE | evaluated 86 times by 1 test |
| 86-300 |
| 354 | && (d->type == Horizontal| TRUE | never evaluated | | FALSE | evaluated 300 times by 1 test |
|| d->type == Both| TRUE | evaluated 300 times by 1 test | | FALSE | never evaluated |
)) { | 0-300 |
| 355 | target->moveTo(QPointF(x, target->itemY())); | - |
| 356 | }executed 300 times by 1 test: end of block | 300 |
| 357 | }executed 386 times by 1 test: end of block | 386 |
| 358 | | - |
| 359 | void QQuickBasePositioner::positionItemY(qreal y, PositionedItem *target) | - |
| 360 | { | - |
| 361 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 362 | if (target->itemY() != y| TRUE | evaluated 52 times by 1 test | | FALSE | evaluated 334 times by 1 test |
| 52-334 |
| 363 | && (d->type == Vertical| TRUE | never evaluated | | FALSE | evaluated 52 times by 1 test |
|| d->type == Both| TRUE | evaluated 52 times by 1 test | | FALSE | never evaluated |
)) { | 0-52 |
| 364 | target->moveTo(QPointF(target->itemX(), y)); | - |
| 365 | }executed 52 times by 1 test: end of block | 52 |
| 366 | }executed 386 times by 1 test: end of block | 386 |
| 367 | | - |
| 368 | | - |
| 369 | | - |
| 370 | | - |
| 371 | | - |
| 372 | | - |
| 373 | void QQuickBasePositioner::removePositionedItem(QPODVector<PositionedItem,8> *items, int index) | - |
| 374 | { | - |
| 375 | ((index >= 0 && index < items->count()) ? static_cast<void>(0) : qt_assert("index >= 0 && index < items->count()", __FILE__, 441)); | - |
| 376 | delete items->at(index).transitionableItem; | - |
| 377 | items->remove(index); | - |
| 378 | }executed 282 times by 5 tests: end of blockExecuted by:- tst_qqmlqt
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickrepeater
| 282 |
| 379 | void QQuickBasePositioner::clearPositionedItems(QPODVector<PositionedItem,8> *items) | - |
| 380 | { | - |
| 381 | for (int i=0; i<items->count()| TRUE | evaluated 37292 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 24764 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; i++) | 24764-37292 |
| 382 | delete items->at(i).transitionableItem;executed 37292 times by 21 tests: delete items->at(i).transitionableItem;Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 37292 |
| 383 | items->clear(); | - |
| 384 | }executed 24764 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 24764 |
| 385 | | - |
| 386 | QQuickPositionerAttached *QQuickBasePositioner::qmlAttachedProperties(QObject *obj) | - |
| 387 | { | - |
| 388 | returnexecuted 22 times by 1 test: return new QQuickPositionerAttached(obj); new QQuickPositionerAttached(obj);executed 22 times by 1 test: return new QQuickPositionerAttached(obj); | 22 |
| 389 | } | - |
| 390 | | - |
| 391 | void QQuickBasePositioner::updateAttachedProperties(QQuickPositionerAttached *specificProperty, QQuickItem *specificPropertyOwner) const | - |
| 392 | { | - |
| 393 | | - |
| 394 | | - |
| 395 | | - |
| 396 | | - |
| 397 | QQuickPositionerAttached *prevLastProperty = nullptr; | - |
| 398 | QQuickPositionerAttached *lastProperty = nullptr; | - |
| 399 | | - |
| 400 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 120514 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| | FALSE | evaluated 39658 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; ++ii) { | 39658-120514 |
| 401 | const PositionedItem &child = positionedItems.at(ii); | - |
| 402 | if (!child.item| TRUE | never evaluated | | FALSE | evaluated 120514 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 0-120514 |
| 403 | continue; never executed: continue; | 0 |
| 404 | | - |
| 405 | QQuickPositionerAttached *property = nullptr; | - |
| 406 | | - |
| 407 | if (specificProperty| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 120494 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 20-120494 |
| 408 | if (specificPropertyOwner == child.item| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 12 times by 1 test |
) { | 8-12 |
| 409 | property = specificProperty; | - |
| 410 | }executed 8 times by 1 test: end of block | 8 |
| 411 | }executed 20 times by 1 test: end of block else { | 20 |
| 412 | property = static_cast<QQuickPositionerAttached *>(qmlAttachedPropertiesObject<QQuickBasePositioner>(child.item, false)); | - |
| 413 | }executed 120494 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 120494 |
| 414 | | - |
| 415 | if (property| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 120482 times by 21 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) { | 32-120482 |
| 416 | property->setIndex(ii); | - |
| 417 | property->setIsFirstItem(ii == 0); | - |
| 418 | | - |
| 419 | if (property->isLastItem()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 30 times by 1 test |
) { | 2-30 |
| 420 | if (prevLastProperty| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
| 421 | prevLastProperty->setIsLastItem(false); never executed: prevLastProperty->setIsLastItem(false); | 0 |
| 422 | prevLastProperty = property; | - |
| 423 | }executed 2 times by 1 test: end of block | 2 |
| 424 | }executed 32 times by 1 test: end of block | 32 |
| 425 | | - |
| 426 | lastProperty = property; | - |
| 427 | }executed 120514 times by 21 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 120514 |
| 428 | | - |
| 429 | if (prevLastProperty| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 39656 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
&& prevLastProperty != lastProperty| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) | 0-39656 |
| 430 | prevLastProperty->setIsLastItem(false);executed 2 times by 1 test: prevLastProperty->setIsLastItem(false); | 2 |
| 431 | if (lastProperty| TRUE | evaluated 14 times by 1 test | | FALSE | evaluated 39644 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
) | 14-39644 |
| 432 | lastProperty->setIsLastItem(true);executed 14 times by 1 test: lastProperty->setIsLastItem(true); | 14 |
| 433 | | - |
| 434 | | - |
| 435 | for (int ii = 0; ii < unpositionedItems.count()| TRUE | evaluated 343 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
| | FALSE | evaluated 39658 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
; ++ii) { | 343-39658 |
| 436 | const PositionedItem &child = unpositionedItems.at(ii); | - |
| 437 | if (!child.item| TRUE | never evaluated | | FALSE | evaluated 343 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
|
) | 0-343 |
| 438 | continue; never executed: continue; | 0 |
| 439 | | - |
| 440 | QQuickPositionerAttached *property = nullptr; | - |
| 441 | | - |
| 442 | if (specificProperty| TRUE | evaluated 16 times by 1 test | | FALSE | evaluated 327 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 16-327 |
| 443 | if (specificPropertyOwner == child.item| TRUE | never evaluated | | FALSE | evaluated 16 times by 1 test |
) { | 0-16 |
| 444 | property = specificProperty; | - |
| 445 | } never executed: end of block | 0 |
| 446 | }executed 16 times by 1 test: end of block else { | 16 |
| 447 | property = static_cast<QQuickPositionerAttached *>(qmlAttachedPropertiesObject<QQuickBasePositioner>(child.item, false)); | - |
| 448 | }executed 327 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
| 327 |
| 449 | | - |
| 450 | if (property| TRUE | never evaluated | | FALSE | evaluated 343 times by 9 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
|
) { | 0-343 |
| 451 | property->setIndex(-1); | - |
| 452 | property->setIsFirstItem(false); | - |
| 453 | property->setIsLastItem(false); | - |
| 454 | } never executed: end of block | 0 |
| 455 | }executed 343 times by 9 tests: end of blockExecuted by:- tst_examples
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
| 343 |
| 456 | }executed 39658 times by 23 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 39658 |
| 457 | | - |
| 458 | qreal QQuickBasePositioner::padding() const | - |
| 459 | { | - |
| 460 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 461 | returnexecuted 56 times by 1 test: return d->padding(); d->padding();executed 56 times by 1 test: return d->padding(); | 56 |
| 462 | } | - |
| 463 | | - |
| 464 | void QQuickBasePositioner::setPadding(qreal padding) | - |
| 465 | { | - |
| 466 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 467 | if (qFuzzyCompare(d->padding(), padding)| TRUE | never evaluated | | FALSE | evaluated 610 times by 1 test |
) | 0-610 |
| 468 | return; never executed: return; | 0 |
| 469 | | - |
| 470 | d->extra.value().padding = padding; | - |
| 471 | d->setPositioningDirty(); | - |
| 472 | paddingChanged(); | - |
| 473 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 610 times by 1 test |
|| !d->extra->explicitTopPadding| TRUE | evaluated 72 times by 1 test | | FALSE | evaluated 538 times by 1 test |
) | 0-610 |
| 474 | topPaddingChanged();executed 72 times by 1 test: topPaddingChanged(); | 72 |
| 475 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 610 times by 1 test |
|| !d->extra->explicitLeftPadding| TRUE | evaluated 72 times by 1 test | | FALSE | evaluated 538 times by 1 test |
) | 0-610 |
| 476 | leftPaddingChanged();executed 72 times by 1 test: leftPaddingChanged(); | 72 |
| 477 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 610 times by 1 test |
|| !d->extra->explicitRightPadding| TRUE | evaluated 72 times by 1 test | | FALSE | evaluated 538 times by 1 test |
) | 0-610 |
| 478 | rightPaddingChanged();executed 72 times by 1 test: rightPaddingChanged(); | 72 |
| 479 | if (!d->extra.isAllocated()| TRUE | never evaluated | | FALSE | evaluated 610 times by 1 test |
|| !d->extra->explicitBottomPadding| TRUE | evaluated 72 times by 1 test | | FALSE | evaluated 538 times by 1 test |
) | 0-610 |
| 480 | bottomPaddingChanged();executed 72 times by 1 test: bottomPaddingChanged(); | 72 |
| 481 | }executed 610 times by 1 test: end of block | 610 |
| 482 | | - |
| 483 | void QQuickBasePositioner::resetPadding() | - |
| 484 | { | - |
| 485 | setPadding(0); | - |
| 486 | }executed 8 times by 1 test: end of block | 8 |
| 487 | | - |
| 488 | qreal QQuickBasePositioner::topPadding() const | - |
| 489 | { | - |
| 490 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 491 | if (d->extra.isAllocated()| TRUE | evaluated 9610 times by 1 test | | FALSE | evaluated 194612 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
&& d->extra->explicitTopPadding| TRUE | evaluated 8806 times by 1 test | | FALSE | evaluated 804 times by 1 test |
) | 804-194612 |
| 492 | returnexecuted 8806 times by 1 test: return d->extra->topPadding; d->extra->topPadding;executed 8806 times by 1 test: return d->extra->topPadding; | 8806 |
| 493 | returnexecuted 195416 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
d->padding();executed 195416 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 195416 |
| 494 | } | - |
| 495 | | - |
| 496 | void QQuickBasePositioner::setTopPadding(qreal padding) | - |
| 497 | { | - |
| 498 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 499 | d->setTopPadding(padding); | - |
| 500 | }executed 602 times by 1 test: end of block | 602 |
| 501 | | - |
| 502 | void QQuickBasePositioner::resetTopPadding() | - |
| 503 | { | - |
| 504 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 505 | d->setTopPadding(0, true); | - |
| 506 | }executed 8 times by 1 test: end of block | 8 |
| 507 | | - |
| 508 | qreal QQuickBasePositioner::leftPadding() const | - |
| 509 | { | - |
| 510 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 511 | if (d->extra.isAllocated()| TRUE | evaluated 9584 times by 1 test | | FALSE | evaluated 265904 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
&& d->extra->explicitLeftPadding| TRUE | evaluated 8672 times by 1 test | | FALSE | evaluated 912 times by 1 test |
) | 912-265904 |
| 512 | returnexecuted 8672 times by 1 test: return d->extra->leftPadding; d->extra->leftPadding;executed 8672 times by 1 test: return d->extra->leftPadding; | 8672 |
| 513 | returnexecuted 266816 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
d->padding();executed 266816 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 266816 |
| 514 | } | - |
| 515 | | - |
| 516 | void QQuickBasePositioner::setLeftPadding(qreal padding) | - |
| 517 | { | - |
| 518 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 519 | d->setLeftPadding(padding); | - |
| 520 | }executed 602 times by 1 test: end of block | 602 |
| 521 | | - |
| 522 | void QQuickBasePositioner::resetLeftPadding() | - |
| 523 | { | - |
| 524 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 525 | d->setLeftPadding(0, true); | - |
| 526 | }executed 8 times by 1 test: end of block | 8 |
| 527 | | - |
| 528 | qreal QQuickBasePositioner::rightPadding() const | - |
| 529 | { | - |
| 530 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 531 | if (d->extra.isAllocated()| TRUE | evaluated 6932 times by 1 test | | FALSE | evaluated 153996 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
&& d->extra->explicitRightPadding| TRUE | evaluated 5994 times by 1 test | | FALSE | evaluated 938 times by 1 test |
) | 938-153996 |
| 532 | returnexecuted 5994 times by 1 test: return d->extra->rightPadding; d->extra->rightPadding;executed 5994 times by 1 test: return d->extra->rightPadding; | 5994 |
| 533 | returnexecuted 154934 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
d->padding();executed 154934 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 154934 |
| 534 | } | - |
| 535 | | - |
| 536 | void QQuickBasePositioner::setRightPadding(qreal padding) | - |
| 537 | { | - |
| 538 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 539 | d->setRightPadding(padding); | - |
| 540 | }executed 602 times by 1 test: end of block | 602 |
| 541 | | - |
| 542 | void QQuickBasePositioner::resetRightPadding() | - |
| 543 | { | - |
| 544 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 545 | d->setRightPadding(0, true); | - |
| 546 | }executed 8 times by 1 test: end of block | 8 |
| 547 | | - |
| 548 | qreal QQuickBasePositioner::bottomPadding() const | - |
| 549 | { | - |
| 550 | const QQuickBasePositionerPrivate * const d = d_func(); | - |
| 551 | if (d->extra.isAllocated()| TRUE | evaluated 7780 times by 1 test | | FALSE | evaluated 155904 times by 23 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
|
&& d->extra->explicitBottomPadding| TRUE | evaluated 7174 times by 1 test | | FALSE | evaluated 606 times by 1 test |
) | 606-155904 |
| 552 | returnexecuted 7174 times by 1 test: return d->extra->bottomPadding; d->extra->bottomPadding;executed 7174 times by 1 test: return d->extra->bottomPadding; | 7174 |
| 553 | returnexecuted 156510 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
d->padding();executed 156510 times by 23 tests: return d->padding();Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanchors
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_qquickvisualdatamodel
- tst_scenegraph
| 156510 |
| 554 | } | - |
| 555 | | - |
| 556 | void QQuickBasePositioner::setBottomPadding(qreal padding) | - |
| 557 | { | - |
| 558 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 559 | d->setBottomPadding(padding); | - |
| 560 | }executed 602 times by 1 test: end of block | 602 |
| 561 | | - |
| 562 | void QQuickBasePositioner::resetBottomPadding() | - |
| 563 | { | - |
| 564 | QQuickBasePositionerPrivate * const d = d_func(); | - |
| 565 | d->setBottomPadding(0, true); | - |
| 566 | }executed 8 times by 1 test: end of block | 8 |
| 567 | | - |
| 568 | QQuickBasePositionerPrivate::ExtraData::ExtraData() | - |
| 569 | : padding(0) | - |
| 570 | , topPadding(0) | - |
| 571 | , leftPadding(0) | - |
| 572 | , rightPadding(0) | - |
| 573 | , bottomPadding(0) | - |
| 574 | , explicitTopPadding(false) | - |
| 575 | , explicitLeftPadding(false) | - |
| 576 | , explicitRightPadding(false) | - |
| 577 | , explicitBottomPadding(false) | - |
| 578 | { | - |
| 579 | }executed 594 times by 1 test: end of block | 594 |
| 580 | | - |
| 581 | void QQuickBasePositionerPrivate::setTopPadding(qreal value, bool reset) | - |
| 582 | { | - |
| 583 | QQuickBasePositioner * const q = q_func(); | - |
| 584 | qreal oldPadding = q->topPadding(); | - |
| 585 | if (!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) { | 0-602 |
| 586 | extra.value().topPadding = value; | - |
| 587 | extra.value().explicitTopPadding = !reset; | - |
| 588 | }executed 610 times by 1 test: end of block | 610 |
| 589 | if ((!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 602 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
)) { | 0-602 |
| 590 | setPositioningDirty(); | - |
| 591 | q->topPaddingChanged(); | - |
| 592 | }executed 610 times by 1 test: end of block | 610 |
| 593 | }executed 610 times by 1 test: end of block | 610 |
| 594 | | - |
| 595 | void QQuickBasePositionerPrivate::setLeftPadding(qreal value, bool reset) | - |
| 596 | { | - |
| 597 | QQuickBasePositioner * const q = q_func(); | - |
| 598 | qreal oldPadding = q->leftPadding(); | - |
| 599 | if (!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) { | 0-602 |
| 600 | extra.value().leftPadding = value; | - |
| 601 | extra.value().explicitLeftPadding = !reset; | - |
| 602 | }executed 610 times by 1 test: end of block | 610 |
| 603 | if ((!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 602 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
)) { | 0-602 |
| 604 | setPositioningDirty(); | - |
| 605 | q->leftPaddingChanged(); | - |
| 606 | }executed 610 times by 1 test: end of block | 610 |
| 607 | }executed 610 times by 1 test: end of block | 610 |
| 608 | | - |
| 609 | void QQuickBasePositionerPrivate::setRightPadding(qreal value, bool reset) | - |
| 610 | { | - |
| 611 | QQuickBasePositioner * const q = q_func(); | - |
| 612 | qreal oldPadding = q->rightPadding(); | - |
| 613 | if (!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) { | 0-602 |
| 614 | extra.value().rightPadding = value; | - |
| 615 | extra.value().explicitRightPadding = !reset; | - |
| 616 | }executed 610 times by 1 test: end of block | 610 |
| 617 | if ((!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 602 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
)) { | 0-602 |
| 618 | setPositioningDirty(); | - |
| 619 | q->rightPaddingChanged(); | - |
| 620 | }executed 610 times by 1 test: end of block | 610 |
| 621 | }executed 610 times by 1 test: end of block | 610 |
| 622 | | - |
| 623 | void QQuickBasePositionerPrivate::setBottomPadding(qreal value, bool reset) | - |
| 624 | { | - |
| 625 | QQuickBasePositioner * const q = q_func(); | - |
| 626 | qreal oldPadding = q->bottomPadding(); | - |
| 627 | if (!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
|| extra.isAllocated()| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
) { | 0-602 |
| 628 | extra.value().bottomPadding = value; | - |
| 629 | extra.value().explicitBottomPadding = !reset; | - |
| 630 | }executed 610 times by 1 test: end of block | 610 |
| 631 | if ((!reset| TRUE | evaluated 602 times by 1 test | | FALSE | evaluated 8 times by 1 test |
&& !qFuzzyCompare(oldPadding, value)| TRUE | evaluated 602 times by 1 test | | FALSE | never evaluated |
) || (reset| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
&& !qFuzzyCompare(oldPadding, padding())| TRUE | evaluated 8 times by 1 test | | FALSE | never evaluated |
)) { | 0-602 |
| 632 | setPositioningDirty(); | - |
| 633 | q->bottomPaddingChanged(); | - |
| 634 | }executed 610 times by 1 test: end of block | 610 |
| 635 | }executed 610 times by 1 test: end of block | 610 |
| 636 | QQuickPositionerAttached::QQuickPositionerAttached(QObject *parent) : QObject(parent), m_index(-1), m_isFirstItem(false), m_isLastItem(false) | - |
| 637 | { | - |
| 638 | QQuickItem *attachedItem = qobject_cast<QQuickItem *>(parent); | - |
| 639 | if (attachedItem| TRUE | evaluated 22 times by 1 test | | FALSE | never evaluated |
) { | 0-22 |
| 640 | QQuickBasePositioner *positioner = qobject_cast<QQuickBasePositioner *>(attachedItem->parent()); | - |
| 641 | if (positioner| TRUE | evaluated 22 times by 1 test | | FALSE | never evaluated |
) { | 0-22 |
| 642 | positioner->updateAttachedProperties(this, attachedItem); | - |
| 643 | }executed 22 times by 1 test: end of block | 22 |
| 644 | }executed 22 times by 1 test: end of block | 22 |
| 645 | }executed 22 times by 1 test: end of block | 22 |
| 646 | | - |
| 647 | | - |
| 648 | | - |
| 649 | | - |
| 650 | | - |
| 651 | | - |
| 652 | | - |
| 653 | void QQuickPositionerAttached::setIndex(int index) | - |
| 654 | { | - |
| 655 | if (m_index == index| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 22 times by 1 test |
) | 10-22 |
| 656 | return;executed 10 times by 1 test: return; | 10 |
| 657 | m_index = index; | - |
| 658 | indexChanged(); | - |
| 659 | }executed 22 times by 1 test: end of block | 22 |
| 660 | void QQuickPositionerAttached::setIsFirstItem(bool isFirstItem) | - |
| 661 | { | - |
| 662 | if (m_isFirstItem == isFirstItem| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 10 times by 1 test |
) | 10-22 |
| 663 | return;executed 22 times by 1 test: return; | 22 |
| 664 | m_isFirstItem = isFirstItem; | - |
| 665 | isFirstItemChanged(); | - |
| 666 | }executed 10 times by 1 test: end of block | 10 |
| 667 | | - |
| 668 | void QQuickPositionerAttached::setIsLastItem(bool isLastItem) | - |
| 669 | { | - |
| 670 | if (m_isLastItem == isLastItem| TRUE | never evaluated | | FALSE | evaluated 16 times by 1 test |
) | 0-16 |
| 671 | return; never executed: return; | 0 |
| 672 | m_isLastItem = isLastItem; | - |
| 673 | isLastItemChanged(); | - |
| 674 | }executed 16 times by 1 test: end of block | 16 |
| 675 | QQuickColumn::QQuickColumn(QQuickItem *parent) | - |
| 676 | : QQuickBasePositioner(Vertical, parent) | - |
| 677 | { | - |
| 678 | }executed 11162 times by 16 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
| 11162 |
| 679 | | - |
| 680 | void QQuickColumn::doPositioning(QSizeF *contentSize) | - |
| 681 | { | - |
| 682 | | - |
| 683 | qreal voffset = topPadding(); | - |
| 684 | const qreal padding = leftPadding() + rightPadding(); | - |
| 685 | contentSize->setWidth(qMax(contentSize->width(), padding)); | - |
| 686 | | - |
| 687 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 110836 times by 15 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| | FALSE | evaluated 37564 times by 16 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
|
; ++ii) { | 37564-110836 |
| 688 | PositionedItem &child = positionedItems[ii]; | - |
| 689 | positionItem(child.itemX() + leftPadding() - child.leftPadding, voffset, &child); | - |
| 690 | child.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding()); | - |
| 691 | contentSize->setWidth(qMax(contentSize->width(), child.item->width() + padding)); | - |
| 692 | | - |
| 693 | voffset += child.item->height(); | - |
| 694 | voffset += spacing(); | - |
| 695 | }executed 110836 times by 15 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| 110836 |
| 696 | | - |
| 697 | if (voffset - topPadding() != 0| TRUE | evaluated 37286 times by 15 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| | FALSE | evaluated 278 times by 5 testsEvaluated by:- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktextedit
- tst_qquicktextinput
|
) | 278-37286 |
| 698 | voffset -= spacing();executed 37286 times by 15 tests: voffset -= spacing();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| 37286 |
| 699 | contentSize->setHeight(voffset + bottomPadding()); | - |
| 700 | }executed 37564 times by 16 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
| 37564 |
| 701 | | - |
| 702 | void QQuickColumn::reportConflictingAnchors() | - |
| 703 | { | - |
| 704 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate*>(QQuickBasePositionerPrivate::get(this)); | - |
| 705 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 110840 times by 15 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| | FALSE | evaluated 37564 times by 16 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
|
; ++ii) { | 37564-110840 |
| 706 | const PositionedItem &child = positionedItems.at(ii); | - |
| 707 | if (child.item| TRUE | evaluated 110840 times by 15 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| | FALSE | never evaluated |
) { | 0-110840 |
| 708 | QQuickAnchors *anchors = QQuickItemPrivate::get(static_cast<QQuickItem *>(child.item))->_anchors; | - |
| 709 | if (anchors| TRUE | evaluated 180 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 110660 times by 15 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
|
) { | 180-110660 |
| 710 | QQuickAnchors::Anchors usedAnchors = anchors->usedAnchors(); | - |
| 711 | if (usedAnchors & QQuickAnchors::TopAnchor || | - |
| 712 | usedAnchors & QQuickAnchors::BottomAnchor || | - |
| 713 | usedAnchors & QQuickAnchors::VCenterAnchor || | - |
| 714 | anchors->fill()| TRUE | never evaluated | | FALSE | evaluated 178 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
|| anchors->centerIn()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 176 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 0-178 |
| 715 | d->anchorConflict = true; | - |
| 716 | break;executed 4 times by 1 test: break; | 4 |
| 717 | } | - |
| 718 | }executed 176 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 176 |
| 719 | }executed 110836 times by 15 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| 110836 |
| 720 | }executed 110836 times by 15 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextinput
- tst_scenegraph
| 110836 |
| 721 | if (d->anchorConflict| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 37564 times by 16 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
|
) { | 4-37564 |
| 722 | qmlWarning(this) << "Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column." | - |
| 723 | << " Column will not function."; | - |
| 724 | }executed 4 times by 1 test: end of block | 4 |
| 725 | }executed 37568 times by 16 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanchors
- tst_qquickflickable
- tst_qquickfocusscope
- tst_qquickgridview
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
- tst_qquickstates
- tst_qquicktext
- tst_qquicktextedit
- tst_qquicktextinput
- tst_scenegraph
| 37568 |
| 726 | class QQuickRowPrivate : public QQuickBasePositionerPrivate | - |
| 727 | { | - |
| 728 | inline QQuickRow* q_func() { return static_cast<QQuickRow *>(q_ptr); } inline const QQuickRow* q_func() const { return static_cast<const QQuickRow *>(q_ptr); } friend class QQuickRow; | - |
| 729 | | - |
| 730 | public: | - |
| 731 | QQuickRowPrivate() | - |
| 732 | : QQuickBasePositionerPrivate() | - |
| 733 | {}executed 564 times by 14 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 564 |
| 734 | | - |
| 735 | void effectiveLayoutDirectionChange() override | - |
| 736 | { | - |
| 737 | QQuickRow * const q = q_func(); | - |
| 738 | | - |
| 739 | if (getEffectiveLayoutDirection(q) == Qt::RightToLeft| TRUE | evaluated 24 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 10 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 10-24 |
| 740 | addItemChangeListener(this, QQuickItemPrivate::Geometry);executed 24 times by 2 tests: addItemChangeListener(this, QQuickItemPrivate::Geometry);Executed by:- tst_examples
- tst_qquickpositioners
| 24 |
| 741 | else | - |
| 742 | removeItemChangeListener(this, QQuickItemPrivate::Geometry);executed 10 times by 2 tests: removeItemChangeListener(this, QQuickItemPrivate::Geometry);Executed by:- tst_examples
- tst_qquickpositioners
| 10 |
| 743 | | - |
| 744 | q->prePositioning(); | - |
| 745 | q->effectiveLayoutDirectionChanged(); | - |
| 746 | }executed 34 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 34 |
| 747 | }; | - |
| 748 | | - |
| 749 | QQuickRow::QQuickRow(QQuickItem *parent) | - |
| 750 | : QQuickBasePositioner(*new QQuickRowPrivate, Horizontal, parent) | - |
| 751 | { | - |
| 752 | }executed 564 times by 14 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 564 |
| 753 | Qt::LayoutDirection QQuickRow::layoutDirection() const | - |
| 754 | { | - |
| 755 | return never executed: return QQuickBasePositionerPrivate::getLayoutDirection(this); QQuickBasePositionerPrivate::getLayoutDirection(this);never executed: return QQuickBasePositionerPrivate::getLayoutDirection(this); | 0 |
| 756 | } | - |
| 757 | | - |
| 758 | void QQuickRow::setLayoutDirection(Qt::LayoutDirection layoutDirection) | - |
| 759 | { | - |
| 760 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate* >(QQuickBasePositionerPrivate::get(this)); | - |
| 761 | if (d->layoutDirection != layoutDirection| TRUE | evaluated 24 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 28 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 24-28 |
| 762 | d->layoutDirection = layoutDirection; | - |
| 763 | layoutDirectionChanged(); | - |
| 764 | d->effectiveLayoutDirectionChange(); | - |
| 765 | }executed 24 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 24 |
| 766 | }executed 52 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 52 |
| 767 | Qt::LayoutDirection QQuickRow::effectiveLayoutDirection() const | - |
| 768 | { | - |
| 769 | return never executed: return QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this); QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this);never executed: return QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this); | 0 |
| 770 | } | - |
| 771 | | - |
| 772 | void QQuickRow::doPositioning(QSizeF *contentSize) | - |
| 773 | { | - |
| 774 | | - |
| 775 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate* >(QQuickBasePositionerPrivate::get(this)); | - |
| 776 | qreal hoffset1 = leftPadding(); | - |
| 777 | qreal hoffset2 = rightPadding(); | - |
| 778 | if (!d->isLeftToRight()| TRUE | evaluated 82 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 726 times by 14 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
|
) | 82-726 |
| 779 | qSwap(hoffset1, hoffset2);executed 82 times by 2 tests: qSwap(hoffset1, hoffset2);Executed by:- tst_examples
- tst_qquickpositioners
| 82 |
| 780 | qreal hoffset = hoffset1; | - |
| 781 | const qreal padding = topPadding() + bottomPadding(); | - |
| 782 | contentSize->setHeight(qMax(contentSize->height(), padding)); | - |
| 783 | | - |
| 784 | QList<qreal> hoffsets; | - |
| 785 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 3036 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 808 times by 14 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
|
; ++ii) { | 808-3036 |
| 786 | PositionedItem &child = positionedItems[ii]; | - |
| 787 | | - |
| 788 | if (d->isLeftToRight()| TRUE | evaluated 2794 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 242 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 242-2794 |
| 789 | positionItem(hoffset, child.itemY() + topPadding() - child.topPadding, &child); | - |
| 790 | child.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding()); | - |
| 791 | }executed 2794 times by 13 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
else { | 2794 |
| 792 | hoffsets << hoffset; | - |
| 793 | }executed 242 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 242 |
| 794 | | - |
| 795 | contentSize->setHeight(qMax(contentSize->height(), child.item->height() + padding)); | - |
| 796 | | - |
| 797 | hoffset += child.item->width(); | - |
| 798 | hoffset += spacing(); | - |
| 799 | }executed 3036 times by 13 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 3036 |
| 800 | | - |
| 801 | if (hoffset - hoffset1 != 0| TRUE | evaluated 524 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 284 times by 6 testsEvaluated by:- tst_examples
- tst_qqmlqt
- tst_qquickitem2
- tst_qquicklayouts
- tst_qquickpositioners
- tst_qquickrepeater
|
) | 284-524 |
| 802 | hoffset -= spacing();executed 524 times by 13 tests: hoffset -= spacing();Executed by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 524 |
| 803 | contentSize->setWidth(hoffset + hoffset2); | - |
| 804 | | - |
| 805 | if (d->isLeftToRight()| TRUE | evaluated 726 times by 14 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 82 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 82-726 |
| 806 | return;executed 726 times by 14 tests: return;Executed by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 726 |
| 807 | | - |
| 808 | | - |
| 809 | qreal end = 0; | - |
| 810 | if (!widthValid()| TRUE | evaluated 52 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 30 times by 1 test |
) | 30-52 |
| 811 | end = contentSize->width();executed 52 times by 2 tests: end = contentSize->width();Executed by:- tst_examples
- tst_qquickpositioners
| 52 |
| 812 | else | - |
| 813 | end = width();executed 30 times by 1 test: end = width(); | 30 |
| 814 | | - |
| 815 | int acc = 0; | - |
| 816 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 242 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 82 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
; ++ii) { | 82-242 |
| 817 | PositionedItem &child = positionedItems[ii]; | - |
| 818 | hoffset = end - hoffsets[acc++] - child.item->width(); | - |
| 819 | positionItem(hoffset, child.itemY() + topPadding() - child.topPadding, &child); | - |
| 820 | child.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding()); | - |
| 821 | }executed 242 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 242 |
| 822 | }executed 82 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 82 |
| 823 | | - |
| 824 | void QQuickRow::reportConflictingAnchors() | - |
| 825 | { | - |
| 826 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate*>(QQuickBasePositionerPrivate::get(this)); | - |
| 827 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 3040 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 808 times by 14 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
|
; ++ii) { | 808-3040 |
| 828 | const PositionedItem &child = positionedItems.at(ii); | - |
| 829 | if (child.item| TRUE | evaluated 3040 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | never evaluated |
) { | 0-3040 |
| 830 | QQuickAnchors *anchors = QQuickItemPrivate::get(static_cast<QQuickItem *>(child.item))->_anchors; | - |
| 831 | if (anchors| TRUE | evaluated 62 times by 3 testsEvaluated by:- tst_examples
- tst_qquickpositioners
- tst_qquickrepeater
| | FALSE | evaluated 2978 times by 13 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
|
) { | 62-2978 |
| 832 | QQuickAnchors::Anchors usedAnchors = anchors->usedAnchors(); | - |
| 833 | if (usedAnchors & QQuickAnchors::LeftAnchor || | - |
| 834 | usedAnchors & QQuickAnchors::RightAnchor || | - |
| 835 | usedAnchors & QQuickAnchors::HCenterAnchor || | - |
| 836 | anchors->fill()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 58 times by 3 testsEvaluated by:- tst_examples
- tst_qquickpositioners
- tst_qquickrepeater
|
|| anchors->centerIn()| TRUE | never evaluated | | FALSE | evaluated 58 times by 3 testsEvaluated by:- tst_examples
- tst_qquickpositioners
- tst_qquickrepeater
|
) { | 0-58 |
| 837 | d->anchorConflict = true; | - |
| 838 | break;executed 4 times by 1 test: break; | 4 |
| 839 | } | - |
| 840 | }executed 58 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
- tst_qquickrepeater
| 58 |
| 841 | }executed 3036 times by 13 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 3036 |
| 842 | }executed 3036 times by 13 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 3036 |
| 843 | if (d->anchorConflict| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 808 times by 14 testsEvaluated by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
|
) | 4-808 |
| 844 | qmlWarning(this) << "Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row."executed 4 times by 1 test: qmlWarning(this) << "Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row." << " Row will not function."; | 4 |
| 845 | << " Row will not function.";executed 4 times by 1 test: qmlWarning(this) << "Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row." << " Row will not function."; | 4 |
| 846 | }executed 812 times by 14 tests: end of blockExecuted by:- tst_examples
- tst_flickableinterop
- tst_qqmlqt
- tst_qquickanimations
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquickitemlayer
- tst_qquicklayouts
- tst_qquicklistview
- tst_qquickmultipointtoucharea
- tst_qquickpathview
- tst_qquickpositioners
- tst_qquickrepeater
| 812 |
| 847 | class QQuickGridPrivate : public QQuickBasePositionerPrivate | - |
| 848 | { | - |
| 849 | inline QQuickGrid* q_func() { return static_cast<QQuickGrid *>(q_ptr); } inline const QQuickGrid* q_func() const { return static_cast<const QQuickGrid *>(q_ptr); } friend class QQuickGrid; | - |
| 850 | | - |
| 851 | public: | - |
| 852 | QQuickGridPrivate() | - |
| 853 | : QQuickBasePositionerPrivate() | - |
| 854 | {}executed 368 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 368 |
| 855 | | - |
| 856 | void effectiveLayoutDirectionChange() override | - |
| 857 | { | - |
| 858 | QQuickGrid * const q = q_func(); | - |
| 859 | | - |
| 860 | if (getEffectiveLayoutDirection(q) == Qt::RightToLeft| TRUE | evaluated 22 times by 1 test | | FALSE | evaluated 12 times by 1 test |
) | 12-22 |
| 861 | addItemChangeListener(this, QQuickItemPrivate::Geometry);executed 22 times by 1 test: addItemChangeListener(this, QQuickItemPrivate::Geometry); | 22 |
| 862 | else | - |
| 863 | removeItemChangeListener(this, QQuickItemPrivate::Geometry);executed 12 times by 1 test: removeItemChangeListener(this, QQuickItemPrivate::Geometry); | 12 |
| 864 | | - |
| 865 | q->prePositioning(); | - |
| 866 | q->effectiveLayoutDirectionChanged(); | - |
| 867 | q->effectiveHorizontalAlignmentChanged(q->effectiveHAlign()); | - |
| 868 | }executed 34 times by 1 test: end of block | 34 |
| 869 | }; | - |
| 870 | | - |
| 871 | QQuickGrid::QQuickGrid(QQuickItem *parent) | - |
| 872 | : QQuickBasePositioner(*new QQuickGridPrivate, Both, parent) | - |
| 873 | , m_rows(-1) | - |
| 874 | , m_columns(-1) | - |
| 875 | , m_rowSpacing(-1) | - |
| 876 | , m_columnSpacing(-1) | - |
| 877 | , m_useRowSpacing(false) | - |
| 878 | , m_useColumnSpacing(false) | - |
| 879 | , m_flow(LeftToRight) | - |
| 880 | , m_hItemAlign(AlignLeft) | - |
| 881 | , m_vItemAlign(AlignTop) | - |
| 882 | { | - |
| 883 | }executed 368 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 368 |
| 884 | void QQuickGrid::setColumns(const int columns) | - |
| 885 | { | - |
| 886 | if (columns == m_columns| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 98 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
|
) | 2-98 |
| 887 | return;executed 2 times by 1 test: return; | 2 |
| 888 | m_columns = columns; | - |
| 889 | prePositioning(); | - |
| 890 | columnsChanged(); | - |
| 891 | }executed 98 times by 6 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| 98 |
| 892 | | - |
| 893 | void QQuickGrid::setRows(const int rows) | - |
| 894 | { | - |
| 895 | if (rows == m_rows| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 18 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 2-18 |
| 896 | return;executed 2 times by 1 test: return; | 2 |
| 897 | m_rows = rows; | - |
| 898 | prePositioning(); | - |
| 899 | rowsChanged(); | - |
| 900 | }executed 18 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 18 |
| 901 | QQuickGrid::Flow QQuickGrid::flow() const | - |
| 902 | { | - |
| 903 | returnexecuted 6 times by 1 test: return m_flow; m_flow;executed 6 times by 1 test: return m_flow; | 6 |
| 904 | } | - |
| 905 | | - |
| 906 | void QQuickGrid::setFlow(Flow flow) | - |
| 907 | { | - |
| 908 | if (m_flow != flow| TRUE | evaluated 6 times by 1 test | | FALSE | never evaluated |
) { | 0-6 |
| 909 | m_flow = flow; | - |
| 910 | prePositioning(); | - |
| 911 | flowChanged(); | - |
| 912 | }executed 6 times by 1 test: end of block | 6 |
| 913 | }executed 6 times by 1 test: end of block | 6 |
| 914 | void QQuickGrid::setRowSpacing(const qreal rowSpacing) | - |
| 915 | { | - |
| 916 | if (rowSpacing == m_rowSpacing| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 0-4 |
| 917 | return; never executed: return; | 0 |
| 918 | m_rowSpacing = rowSpacing; | - |
| 919 | m_useRowSpacing = true; | - |
| 920 | prePositioning(); | - |
| 921 | rowSpacingChanged(); | - |
| 922 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 4 |
| 923 | void QQuickGrid::setColumnSpacing(const qreal columnSpacing) | - |
| 924 | { | - |
| 925 | if (columnSpacing == m_columnSpacing| TRUE | never evaluated | | FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) | 0-4 |
| 926 | return; never executed: return; | 0 |
| 927 | m_columnSpacing = columnSpacing; | - |
| 928 | m_useColumnSpacing = true; | - |
| 929 | prePositioning(); | - |
| 930 | columnSpacingChanged(); | - |
| 931 | }executed 4 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 4 |
| 932 | Qt::LayoutDirection QQuickGrid::layoutDirection() const | - |
| 933 | { | - |
| 934 | returnexecuted 2 times by 1 test: return QQuickBasePositionerPrivate::getLayoutDirection(this); QQuickBasePositionerPrivate::getLayoutDirection(this);executed 2 times by 1 test: return QQuickBasePositionerPrivate::getLayoutDirection(this); | 2 |
| 935 | } | - |
| 936 | | - |
| 937 | void QQuickGrid::setLayoutDirection(Qt::LayoutDirection layoutDirection) | - |
| 938 | { | - |
| 939 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate*>(QQuickBasePositionerPrivate::get(this)); | - |
| 940 | if (d->layoutDirection != layoutDirection| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 24 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 24-30 |
| 941 | d->layoutDirection = layoutDirection; | - |
| 942 | layoutDirectionChanged(); | - |
| 943 | d->effectiveLayoutDirectionChange(); | - |
| 944 | }executed 30 times by 1 test: end of block | 30 |
| 945 | }executed 54 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 54 |
| 946 | Qt::LayoutDirection QQuickGrid::effectiveLayoutDirection() const | - |
| 947 | { | - |
| 948 | returnexecuted 3732 times by 7 tests: return QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this);Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this);executed 3732 times by 7 tests: return QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this);Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3732 |
| 949 | } | - |
| 950 | QQuickGrid::HAlignment QQuickGrid::hItemAlign() const | - |
| 951 | { | - |
| 952 | returnexecuted 3732 times by 7 tests: return m_hItemAlign;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
m_hItemAlign;executed 3732 times by 7 tests: return m_hItemAlign;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3732 |
| 953 | } | - |
| 954 | void QQuickGrid::setHItemAlign(HAlignment align) | - |
| 955 | { | - |
| 956 | if (m_hItemAlign != align| TRUE | evaluated 12 times by 1 test | | FALSE | evaluated 22 times by 1 test |
) { | 12-22 |
| 957 | m_hItemAlign = align; | - |
| 958 | prePositioning(); | - |
| 959 | horizontalAlignmentChanged(align); | - |
| 960 | effectiveHorizontalAlignmentChanged(effectiveHAlign()); | - |
| 961 | }executed 12 times by 1 test: end of block | 12 |
| 962 | }executed 34 times by 1 test: end of block | 34 |
| 963 | | - |
| 964 | QQuickGrid::HAlignment QQuickGrid::effectiveHAlign() const | - |
| 965 | { | - |
| 966 | HAlignment effectiveAlignment = m_hItemAlign; | - |
| 967 | if (effectiveLayoutDirection() == Qt::RightToLeft| TRUE | evaluated 470 times by 1 test | | FALSE | evaluated 3262 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) { | 470-3262 |
| 968 | switch (hItemAlign()) { | - |
| 969 | caseexecuted 422 times by 1 test: case AlignLeft: AlignLeft:executed 422 times by 1 test: case AlignLeft: | 422 |
| 970 | effectiveAlignment = AlignRight; | - |
| 971 | break;executed 422 times by 1 test: break; | 422 |
| 972 | caseexecuted 24 times by 1 test: case AlignRight: AlignRight:executed 24 times by 1 test: case AlignRight: | 24 |
| 973 | effectiveAlignment = AlignLeft; | - |
| 974 | break;executed 24 times by 1 test: break; | 24 |
| 975 | defaultexecuted 24 times by 1 test: default: :executed 24 times by 1 test: default: | 24 |
| 976 | break;executed 24 times by 1 test: break; | 24 |
| 977 | } | - |
| 978 | } | - |
| 979 | returnexecuted 3732 times by 7 tests: return effectiveAlignment;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
effectiveAlignment;executed 3732 times by 7 tests: return effectiveAlignment;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3732 |
| 980 | } | - |
| 981 | | - |
| 982 | | - |
| 983 | QQuickGrid::VAlignment QQuickGrid::vItemAlign() const | - |
| 984 | { | - |
| 985 | return never executed: return m_vItemAlign; m_vItemAlign;never executed: return m_vItemAlign; | 0 |
| 986 | } | - |
| 987 | void QQuickGrid::setVItemAlign(VAlignment align) | - |
| 988 | { | - |
| 989 | if (m_vItemAlign != align| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 22 times by 1 test |
) { | 8-22 |
| 990 | m_vItemAlign = align; | - |
| 991 | prePositioning(); | - |
| 992 | verticalAlignmentChanged(align); | - |
| 993 | }executed 8 times by 1 test: end of block | 8 |
| 994 | }executed 30 times by 1 test: end of block | 30 |
| 995 | | - |
| 996 | void QQuickGrid::doPositioning(QSizeF *contentSize) | - |
| 997 | { | - |
| 998 | | - |
| 999 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate*>(QQuickBasePositionerPrivate::get(this)); | - |
| 1000 | int c = m_columns; | - |
| 1001 | int r = m_rows; | - |
| 1002 | int numVisible = positionedItems.count(); | - |
| 1003 | | - |
| 1004 | if (m_columns <= 0| TRUE | evaluated 402 times by 2 testsEvaluated by:- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 268 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
|
&& m_rows <= 0| TRUE | evaluated 392 times by 2 testsEvaluated by:- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 10 times by 1 test |
) { | 10-402 |
| 1005 | c = 4; | - |
| 1006 | r = (numVisible+3)/4; | - |
| 1007 | }executed 392 times by 2 tests: end of blockExecuted by:- tst_qquickpositioners
- tst_qquickvisualdatamodel
else if (m_rows <= 0| TRUE | evaluated 256 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| | FALSE | evaluated 22 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 22-392 |
| 1008 | r = (numVisible+(m_columns-1))/m_columns; | - |
| 1009 | }executed 256 times by 6 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
else if (m_columns <= 0| TRUE | evaluated 10 times by 1 test | | FALSE | evaluated 12 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 10-256 |
| 1010 | c = (numVisible+(m_rows-1))/m_rows; | - |
| 1011 | }executed 10 times by 1 test: end of block | 10 |
| 1012 | | - |
| 1013 | if (r == 0| TRUE | evaluated 252 times by 1 test | | FALSE | evaluated 418 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
|| c == 0| TRUE | never evaluated | | FALSE | evaluated 418 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) { | 0-418 |
| 1014 | contentSize->setHeight(topPadding() + bottomPadding()); | - |
| 1015 | contentSize->setWidth(leftPadding() + rightPadding()); | - |
| 1016 | return;executed 252 times by 1 test: return; | 252 |
| 1017 | } | - |
| 1018 | | - |
| 1019 | QList<qreal> maxColWidth; | - |
| 1020 | QList<qreal> maxRowHeight; | - |
| 1021 | int childIndex =0; | - |
| 1022 | if (m_flow == LeftToRight| TRUE | evaluated 410 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 8 times by 1 test |
) { | 8-410 |
| 1023 | for (int i = 0; i < r| TRUE | evaluated 1304 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 410 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
; i++) { | 410-1304 |
| 1024 | for (int j = 0; j < c| TRUE | evaluated 3954 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 964 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
|
; j++) { | 964-3954 |
| 1025 | if (j == 0| TRUE | evaluated 1304 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2650 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 1304-2650 |
| 1026 | maxRowHeight << 0;executed 1304 times by 7 tests: maxRowHeight << 0;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 1304 |
| 1027 | if (i == 0| TRUE | evaluated 1342 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 2612 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
|
) | 1342-2612 |
| 1028 | maxColWidth << 0;executed 1342 times by 7 tests: maxColWidth << 0;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 1342 |
| 1029 | | - |
| 1030 | if (childIndex == numVisible| TRUE | evaluated 340 times by 5 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 3614 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 340-3614 |
| 1031 | break;executed 340 times by 5 tests: break;Executed by:- tst_examples
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 340 |
| 1032 | | - |
| 1033 | const PositionedItem &child = positionedItems.at(childIndex++); | - |
| 1034 | if (child.item->width() > maxColWidth[j]| TRUE | evaluated 2758 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 856 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
|
) | 856-2758 |
| 1035 | maxColWidth[j] = child.item->width();executed 2758 times by 7 tests: maxColWidth[j] = child.item->width();Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 2758 |
| 1036 | if (child.item->height() > maxRowHeight[i]| TRUE | evaluated 2696 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 918 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 918-2696 |
| 1037 | maxRowHeight[i] = child.item->height();executed 2696 times by 7 tests: maxRowHeight[i] = child.item->height();Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 2696 |
| 1038 | }executed 3614 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3614 |
| 1039 | }executed 1304 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 1304 |
| 1040 | }executed 410 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
else { | 410 |
| 1041 | for (int j = 0; j < c| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 8 times by 1 test |
; j++) { | 8-36 |
| 1042 | for (int i = 0; i < r| TRUE | evaluated 80 times by 1 test | | FALSE | evaluated 28 times by 1 test |
; i++) { | 28-80 |
| 1043 | if (j == 0| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 60 times by 1 test |
) | 20-60 |
| 1044 | maxRowHeight << 0;executed 20 times by 1 test: maxRowHeight << 0; | 20 |
| 1045 | if (i == 0| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 44 times by 1 test |
) | 36-44 |
| 1046 | maxColWidth << 0;executed 36 times by 1 test: maxColWidth << 0; | 36 |
| 1047 | | - |
| 1048 | if (childIndex == numVisible| TRUE | evaluated 8 times by 1 test | | FALSE | evaluated 72 times by 1 test |
) | 8-72 |
| 1049 | break;executed 8 times by 1 test: break; | 8 |
| 1050 | | - |
| 1051 | const PositionedItem &child = positionedItems.at(childIndex++); | - |
| 1052 | if (child.item->width() > maxColWidth[j]| TRUE | evaluated 36 times by 1 test | | FALSE | evaluated 36 times by 1 test |
) | 36 |
| 1053 | maxColWidth[j] = child.item->width();executed 36 times by 1 test: maxColWidth[j] = child.item->width(); | 36 |
| 1054 | if (child.item->height() > maxRowHeight[i]| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 52 times by 1 test |
) | 20-52 |
| 1055 | maxRowHeight[i] = child.item->height();executed 20 times by 1 test: maxRowHeight[i] = child.item->height(); | 20 |
| 1056 | }executed 72 times by 1 test: end of block | 72 |
| 1057 | }executed 36 times by 1 test: end of block | 36 |
| 1058 | }executed 8 times by 1 test: end of block | 8 |
| 1059 | | - |
| 1060 | qreal columnSpacing = m_useColumnSpacing| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 412 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
? m_columnSpacing : spacing(); | 6-412 |
| 1061 | qreal rowSpacing = m_useRowSpacing| TRUE | evaluated 6 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 412 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
? m_rowSpacing : spacing(); | 6-412 |
| 1062 | | - |
| 1063 | qreal widthSum = 0; | - |
| 1064 | for (int j = 0; j < maxColWidth.size()| TRUE | evaluated 1378 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 418 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
; j++) { | 418-1378 |
| 1065 | if (j| TRUE | evaluated 960 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 418 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 418-960 |
| 1066 | widthSum += columnSpacing;executed 960 times by 7 tests: widthSum += columnSpacing;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 960 |
| 1067 | widthSum += maxColWidth[j]; | - |
| 1068 | }executed 1378 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 1378 |
| 1069 | widthSum += leftPadding() + rightPadding(); | - |
| 1070 | | - |
| 1071 | qreal heightSum = 0; | - |
| 1072 | for (int i = 0; i < maxRowHeight.size()| TRUE | evaluated 1324 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 418 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
; i++) { | 418-1324 |
| 1073 | if (i| TRUE | evaluated 906 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| | FALSE | evaluated 418 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 418-906 |
| 1074 | heightSum += rowSpacing;executed 906 times by 6 tests: heightSum += rowSpacing;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| 906 |
| 1075 | heightSum += maxRowHeight[i]; | - |
| 1076 | }executed 1324 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 1324 |
| 1077 | heightSum += topPadding() + bottomPadding(); | - |
| 1078 | | - |
| 1079 | contentSize->setHeight(heightSum); | - |
| 1080 | contentSize->setWidth(widthSum); | - |
| 1081 | | - |
| 1082 | int end = 0; | - |
| 1083 | if (widthValid()| TRUE | evaluated 224 times by 4 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 194 times by 5 testsEvaluated by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 194-224 |
| 1084 | end = width();executed 224 times by 4 tests: end = width();Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickitem2
- tst_qquickpositioners
| 224 |
| 1085 | else | - |
| 1086 | end = widthSum;executed 194 times by 5 tests: end = widthSum;Executed by:- tst_examples
- tst_qquickflickable
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 194 |
| 1087 | | - |
| 1088 | qreal xoffset = leftPadding(); | - |
| 1089 | if (!d->isLeftToRight()| TRUE | evaluated 92 times by 1 test | | FALSE | evaluated 326 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 92-326 |
| 1090 | xoffset = end - rightPadding();executed 92 times by 1 test: xoffset = end - rightPadding(); | 92 |
| 1091 | qreal yoffset = topPadding(); | - |
| 1092 | int curRow =0; | - |
| 1093 | int curCol =0; | - |
| 1094 | for (int i = 0; i < positionedItems.count()| TRUE | evaluated 3686 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 348 times by 5 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
; ++i) { | 348-3686 |
| 1095 | PositionedItem &child = positionedItems[i]; | - |
| 1096 | qreal childXOffset = xoffset; | - |
| 1097 | | - |
| 1098 | if (effectiveHAlign() == AlignRight| TRUE | evaluated 424 times by 1 test | | FALSE | evaluated 3262 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 424-3262 |
| 1099 | childXOffset += maxColWidth[curCol] - child.item->width();executed 424 times by 1 test: childXOffset += maxColWidth[curCol] - child.item->width(); | 424 |
| 1100 | else if (hItemAlign() == AlignHCenter| TRUE | evaluated 50 times by 1 test | | FALSE | evaluated 3212 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 50-3212 |
| 1101 | childXOffset += (maxColWidth[curCol] - child.item->width())/2.0;executed 50 times by 1 test: childXOffset += (maxColWidth[curCol] - child.item->width())/2.0; | 50 |
| 1102 | | - |
| 1103 | if (!d->isLeftToRight()| TRUE | evaluated 444 times by 1 test | | FALSE | evaluated 3242 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 444-3242 |
| 1104 | childXOffset -= maxColWidth[curCol];executed 444 times by 1 test: childXOffset -= maxColWidth[curCol]; | 444 |
| 1105 | | - |
| 1106 | qreal alignYOffset = yoffset; | - |
| 1107 | if (m_vItemAlign == AlignVCenter| TRUE | evaluated 30 times by 1 test | | FALSE | evaluated 3656 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 30-3656 |
| 1108 | alignYOffset += (maxRowHeight[curRow] - child.item->height())/2.0;executed 30 times by 1 test: alignYOffset += (maxRowHeight[curRow] - child.item->height())/2.0; | 30 |
| 1109 | else if (m_vItemAlign == AlignBottom| TRUE | evaluated 20 times by 1 test | | FALSE | evaluated 3636 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 20-3636 |
| 1110 | alignYOffset += maxRowHeight[curRow] - child.item->height();executed 20 times by 1 test: alignYOffset += maxRowHeight[curRow] - child.item->height(); | 20 |
| 1111 | | - |
| 1112 | positionItem(childXOffset, alignYOffset, &child); | - |
| 1113 | child.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding()); | - |
| 1114 | | - |
| 1115 | if (m_flow == LeftToRight| TRUE | evaluated 3614 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 72 times by 1 test |
) { | 72-3614 |
| 1116 | if (d->isLeftToRight()| TRUE | evaluated 3170 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 444 times by 1 test |
) | 444-3170 |
| 1117 | xoffset += maxColWidth[curCol]+columnSpacing;executed 3170 times by 7 tests: xoffset += maxColWidth[curCol]+columnSpacing;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3170 |
| 1118 | else | - |
| 1119 | xoffset -= maxColWidth[curCol]+columnSpacing;executed 444 times by 1 test: xoffset -= maxColWidth[curCol]+columnSpacing; | 444 |
| 1120 | curCol++; | - |
| 1121 | curCol %= c; | - |
| 1122 | if (!curCol| TRUE | evaluated 964 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| | FALSE | evaluated 2650 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) { | 964-2650 |
| 1123 | yoffset += maxRowHeight[curRow]+rowSpacing; | - |
| 1124 | if (d->isLeftToRight()| TRUE | evaluated 872 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| | FALSE | evaluated 92 times by 1 test |
) | 92-872 |
| 1125 | xoffset = leftPadding();executed 872 times by 6 tests: xoffset = leftPadding();Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| 872 |
| 1126 | else | - |
| 1127 | xoffset = end - rightPadding();executed 92 times by 1 test: xoffset = end - rightPadding(); | 92 |
| 1128 | curRow++; | - |
| 1129 | if (curRow>=r| TRUE | evaluated 70 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| | FALSE | evaluated 894 times by 6 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
|
) | 70-894 |
| 1130 | break;executed 70 times by 6 tests: break;Executed by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| 70 |
| 1131 | }executed 894 times by 6 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
| 894 |
| 1132 | }executed 3544 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
else { | 3544 |
| 1133 | yoffset += maxRowHeight[curRow]+rowSpacing; | - |
| 1134 | curRow++; | - |
| 1135 | curRow %= r; | - |
| 1136 | if (!curRow| TRUE | evaluated 28 times by 1 test | | FALSE | evaluated 44 times by 1 test |
) { | 28-44 |
| 1137 | if (d->isLeftToRight()| TRUE | evaluated 28 times by 1 test | | FALSE | never evaluated |
) | 0-28 |
| 1138 | xoffset += maxColWidth[curCol]+columnSpacing;executed 28 times by 1 test: xoffset += maxColWidth[curCol]+columnSpacing; | 28 |
| 1139 | else | - |
| 1140 | xoffset -= maxColWidth[curCol]+columnSpacing; never executed: xoffset -= maxColWidth[curCol]+columnSpacing; | 0 |
| 1141 | yoffset = topPadding(); | - |
| 1142 | curCol++; | - |
| 1143 | if (curCol>=c| TRUE | never evaluated | | FALSE | evaluated 28 times by 1 test |
) | 0-28 |
| 1144 | break; never executed: break; | 0 |
| 1145 | }executed 28 times by 1 test: end of block | 28 |
| 1146 | }executed 72 times by 1 test: end of block | 72 |
| 1147 | } | - |
| 1148 | }executed 418 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 418 |
| 1149 | | - |
| 1150 | void QQuickGrid::reportConflictingAnchors() | - |
| 1151 | { | - |
| 1152 | QQuickBasePositionerPrivate *d = static_cast<QQuickBasePositionerPrivate*>(QQuickBasePositionerPrivate::get(this)); | - |
| 1153 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 3750 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | evaluated 670 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
; ++ii) { | 670-3750 |
| 1154 | const PositionedItem &child = positionedItems.at(ii); | - |
| 1155 | if (child.item| TRUE | evaluated 3750 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| | FALSE | never evaluated |
) { | 0-3750 |
| 1156 | QQuickAnchors *anchors = QQuickItemPrivate::get(static_cast<QQuickItem *>(child.item))->_anchors; | - |
| 1157 | if (anchors| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 3746 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
&& (anchors->usedAnchors() || anchors->fill()| TRUE | never evaluated | | FALSE | evaluated 2 times by 1 test |
|| anchors->centerIn()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
)) { | 0-3746 |
| 1158 | d->anchorConflict = true; | - |
| 1159 | break;executed 4 times by 1 test: break; | 4 |
| 1160 | } | - |
| 1161 | }executed 3746 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3746 |
| 1162 | }executed 3746 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 3746 |
| 1163 | if (d->anchorConflict| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 670 times by 7 testsEvaluated by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
|
) | 4-670 |
| 1164 | qmlWarning(this) << "Cannot specify anchors for items inside Grid." << " Grid will not function.";executed 4 times by 1 test: qmlWarning(this) << "Cannot specify anchors for items inside Grid." << " Grid will not function."; | 4 |
| 1165 | }executed 674 times by 7 tests: end of blockExecuted by:- tst_examples
- tst_qquickdraghandler
- tst_qquickflickable
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickpositioners
- tst_qquickvisualdatamodel
| 674 |
| 1166 | class QQuickFlowPrivate : public QQuickBasePositionerPrivate | - |
| 1167 | { | - |
| 1168 | inline QQuickFlow* q_func() { return static_cast<QQuickFlow *>(q_ptr); } inline const QQuickFlow* q_func() const { return static_cast<const QQuickFlow *>(q_ptr); } friend class QQuickFlow; | - |
| 1169 | | - |
| 1170 | public: | - |
| 1171 | QQuickFlowPrivate() | - |
| 1172 | : QQuickBasePositionerPrivate(), flow(QQuickFlow::LeftToRight) | - |
| 1173 | {}executed 302 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| 302 |
| 1174 | | - |
| 1175 | void effectiveLayoutDirectionChange() override | - |
| 1176 | { | - |
| 1177 | QQuickFlow * const q = q_func(); | - |
| 1178 | | - |
| 1179 | q->prePositioning(); | - |
| 1180 | q->effectiveLayoutDirectionChanged(); | - |
| 1181 | }executed 30 times by 1 test: end of block | 30 |
| 1182 | | - |
| 1183 | QQuickFlow::Flow flow; | - |
| 1184 | }; | - |
| 1185 | | - |
| 1186 | QQuickFlow::QQuickFlow(QQuickItem *parent) | - |
| 1187 | : QQuickBasePositioner(*(new QQuickFlowPrivate), Both, parent) | - |
| 1188 | { | - |
| 1189 | QQuickFlowPrivate * const d = d_func(); | - |
| 1190 | | - |
| 1191 | d->addItemChangeListener(d, QQuickItemPrivate::Geometry); | - |
| 1192 | }executed 302 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| 302 |
| 1193 | QQuickFlow::Flow QQuickFlow::flow() const | - |
| 1194 | { | - |
| 1195 | const QQuickFlowPrivate * const d = d_func(); | - |
| 1196 | returnexecuted 8 times by 1 test: return d->flow; d->flow;executed 8 times by 1 test: return d->flow; | 8 |
| 1197 | } | - |
| 1198 | | - |
| 1199 | void QQuickFlow::setFlow(Flow flow) | - |
| 1200 | { | - |
| 1201 | QQuickFlowPrivate * const d = d_func(); | - |
| 1202 | if (d->flow != flow| TRUE | evaluated 20 times by 1 test | | FALSE | never evaluated |
) { | 0-20 |
| 1203 | d->flow = flow; | - |
| 1204 | prePositioning(); | - |
| 1205 | flowChanged(); | - |
| 1206 | }executed 20 times by 1 test: end of block | 20 |
| 1207 | }executed 20 times by 1 test: end of block | 20 |
| 1208 | Qt::LayoutDirection QQuickFlow::layoutDirection() const | - |
| 1209 | { | - |
| 1210 | const QQuickFlowPrivate * const d = d_func(); | - |
| 1211 | returnexecuted 4 times by 1 test: return d->layoutDirection; d->layoutDirection;executed 4 times by 1 test: return d->layoutDirection; | 4 |
| 1212 | } | - |
| 1213 | | - |
| 1214 | void QQuickFlow::setLayoutDirection(Qt::LayoutDirection layoutDirection) | - |
| 1215 | { | - |
| 1216 | QQuickFlowPrivate * const d = d_func(); | - |
| 1217 | if (d->layoutDirection != layoutDirection| TRUE | evaluated 26 times by 1 test | | FALSE | evaluated 40 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
|
) { | 26-40 |
| 1218 | d->layoutDirection = layoutDirection; | - |
| 1219 | layoutDirectionChanged(); | - |
| 1220 | d->effectiveLayoutDirectionChange(); | - |
| 1221 | }executed 26 times by 1 test: end of block | 26 |
| 1222 | }executed 66 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 66 |
| 1223 | Qt::LayoutDirection QQuickFlow::effectiveLayoutDirection() const | - |
| 1224 | { | - |
| 1225 | return never executed: return QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this); QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this);never executed: return QQuickBasePositionerPrivate::getEffectiveLayoutDirection(this); | 0 |
| 1226 | } | - |
| 1227 | | - |
| 1228 | void QQuickFlow::doPositioning(QSizeF *contentSize) | - |
| 1229 | { | - |
| 1230 | | - |
| 1231 | QQuickFlowPrivate * const d = d_func(); | - |
| 1232 | | - |
| 1233 | qreal hoffset1 = leftPadding(); | - |
| 1234 | qreal hoffset2 = rightPadding(); | - |
| 1235 | if (!d->isLeftToRight()| TRUE | evaluated 82 times by 1 test | | FALSE | evaluated 512 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
) | 82-512 |
| 1236 | qSwap(hoffset1, hoffset2);executed 82 times by 1 test: qSwap(hoffset1, hoffset2); | 82 |
| 1237 | qreal hoffset = hoffset1; | - |
| 1238 | const qreal voffset1 = topPadding(); | - |
| 1239 | qreal voffset = voffset1; | - |
| 1240 | qreal linemax = 0; | - |
| 1241 | QList<qreal> hoffsets; | - |
| 1242 | contentSize->setWidth(qMax(contentSize->width(), hoffset1 + hoffset2)); | - |
| 1243 | contentSize->setHeight(qMax(contentSize->height(), voffset + bottomPadding())); | - |
| 1244 | | - |
| 1245 | for (int i = 0; i < positionedItems.count()| TRUE | evaluated 2876 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 594 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
; ++i) { | 594-2876 |
| 1246 | PositionedItem &child = positionedItems[i]; | - |
| 1247 | | - |
| 1248 | if (d->flow == LeftToRight| TRUE | evaluated 2756 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 120 times by 1 test |
) { | 120-2756 |
| 1249 | if (widthValid()| TRUE | evaluated 2730 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 26 times by 1 test |
&& hoffset != hoffset1| TRUE | evaluated 2440 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 290 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
&& hoffset + child.item->width() + hoffset2 > width()| TRUE | evaluated 566 times by 2 testsEvaluated by:- tst_examples
- tst_qquickpositioners
| | FALSE | evaluated 1874 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
) { | 26-2730 |
| 1250 | hoffset = hoffset1; | - |
| 1251 | voffset += linemax + spacing(); | - |
| 1252 | linemax = 0; | - |
| 1253 | }executed 566 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickpositioners
| 566 |
| 1254 | }executed 2756 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
else { | 2756 |
| 1255 | if (heightValid()| TRUE | evaluated 80 times by 1 test | | FALSE | evaluated 40 times by 1 test |
&& voffset != voffset1| TRUE | evaluated 64 times by 1 test | | FALSE | evaluated 16 times by 1 test |
&& voffset + child.item->height() + bottomPadding() > height()| TRUE | evaluated 32 times by 1 test | | FALSE | evaluated 32 times by 1 test |
) { | 16-80 |
| 1256 | voffset = voffset1; | - |
| 1257 | hoffset += linemax + spacing(); | - |
| 1258 | linemax = 0; | - |
| 1259 | }executed 32 times by 1 test: end of block | 32 |
| 1260 | }executed 120 times by 1 test: end of block | 120 |
| 1261 | | - |
| 1262 | if (d->isLeftToRight()| TRUE | evaluated 2490 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 386 times by 1 test |
) { | 386-2490 |
| 1263 | positionItem(hoffset, voffset, &child); | - |
| 1264 | child.updatePadding(leftPadding(), topPadding(), rightPadding(), bottomPadding()); | - |
| 1265 | }executed 2490 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
else { | 2490 |
| 1266 | hoffsets << hoffset; | - |
| 1267 | positionItemY(voffset, &child); | - |
| 1268 | child.topPadding = topPadding(); | - |
| 1269 | child.bottomPadding = bottomPadding(); | - |
| 1270 | }executed 386 times by 1 test: end of block | 386 |
| 1271 | | - |
| 1272 | contentSize->setWidth(qMax(contentSize->width(), hoffset + child.item->width() + hoffset2)); | - |
| 1273 | contentSize->setHeight(qMax(contentSize->height(), voffset + child.item->height() + bottomPadding())); | - |
| 1274 | | - |
| 1275 | if (d->flow == LeftToRight| TRUE | evaluated 2756 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 120 times by 1 test |
) { | 120-2756 |
| 1276 | hoffset += child.item->width(); | - |
| 1277 | hoffset += spacing(); | - |
| 1278 | linemax = qMax(linemax, child.item->height()); | - |
| 1279 | }executed 2756 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
else { | 2756 |
| 1280 | voffset += child.item->height(); | - |
| 1281 | voffset += spacing(); | - |
| 1282 | linemax = qMax(linemax, child.item->width()); | - |
| 1283 | }executed 120 times by 1 test: end of block | 120 |
| 1284 | } | - |
| 1285 | | - |
| 1286 | if (d->isLeftToRight()| TRUE | evaluated 512 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 82 times by 1 test |
) | 82-512 |
| 1287 | return;executed 512 times by 3 tests: return;Executed by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| 512 |
| 1288 | | - |
| 1289 | qreal end; | - |
| 1290 | if (widthValid()| TRUE | evaluated 70 times by 1 test | | FALSE | evaluated 12 times by 1 test |
) | 12-70 |
| 1291 | end = width();executed 70 times by 1 test: end = width(); | 70 |
| 1292 | else | - |
| 1293 | end = contentSize->width();executed 12 times by 1 test: end = contentSize->width(); | 12 |
| 1294 | int acc = 0; | - |
| 1295 | for (int i = 0; i < positionedItems.count()| TRUE | evaluated 386 times by 1 test | | FALSE | evaluated 82 times by 1 test |
; ++i) { | 82-386 |
| 1296 | PositionedItem &child = positionedItems[i]; | - |
| 1297 | hoffset = end - hoffsets[acc++] - child.item->width(); | - |
| 1298 | positionItemX(hoffset, &child); | - |
| 1299 | child.leftPadding = leftPadding(); | - |
| 1300 | child.rightPadding = rightPadding(); | - |
| 1301 | }executed 386 times by 1 test: end of block | 386 |
| 1302 | }executed 82 times by 1 test: end of block | 82 |
| 1303 | | - |
| 1304 | void QQuickFlow::reportConflictingAnchors() | - |
| 1305 | { | - |
| 1306 | QQuickFlowPrivate * const d = d_func(); | - |
| 1307 | for (int ii = 0; ii < positionedItems.count()| TRUE | evaluated 2880 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | evaluated 594 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
; ++ii) { | 594-2880 |
| 1308 | const PositionedItem &child = positionedItems.at(ii); | - |
| 1309 | if (child.item| TRUE | evaluated 2880 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| | FALSE | never evaluated |
) { | 0-2880 |
| 1310 | QQuickAnchors *anchors = QQuickItemPrivate::get(static_cast<QQuickItem *>(child.item))->_anchors; | - |
| 1311 | if (anchors| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 2876 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
&& (anchors->usedAnchors() || anchors->fill()| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
|| anchors->centerIn()| TRUE | never evaluated | | FALSE | never evaluated |
)) { | 0-2876 |
| 1312 | d->anchorConflict = true; | - |
| 1313 | break;executed 4 times by 1 test: break; | 4 |
| 1314 | } | - |
| 1315 | }executed 2876 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| 2876 |
| 1316 | }executed 2876 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| 2876 |
| 1317 | if (d->anchorConflict| TRUE | evaluated 4 times by 1 test | | FALSE | evaluated 594 times by 3 testsEvaluated by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
|
) | 4-594 |
| 1318 | qmlWarning(this) << "Cannot specify anchors for items inside Flow." << " Flow will not function.";executed 4 times by 1 test: qmlWarning(this) << "Cannot specify anchors for items inside Flow." << " Flow will not function."; | 4 |
| 1319 | }executed 598 times by 3 tests: end of blockExecuted by:- tst_examples
- tst_qquickitem2
- tst_qquickpositioners
| 598 |
| 1320 | | - |
| 1321 | | - |
| 1322 | | - |
| | |