OpenCoverage

qquickanchors.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickanchors.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtQuick module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qquickanchors_p_p.h"-
41-
42#include "qquickitem_p.h"-
43-
44#include <qqmlinfo.h>-
45-
46QT_BEGIN_NAMESPACE-
47-
48static Q_ALWAYS_INLINE QQuickItem *readParentItem(const QQuickItem *item)-
49{-
50 return QQuickItemPrivate::get(item)->parentItem;
executed 96683 times by 75 tests: return QQuickItemPrivate::get(item)->parentItem;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
96683
51}-
52-
53static Q_ALWAYS_INLINE qreal readX(const QQuickItem *item)-
54{-
55 return QQuickItemPrivate::get(item)->x;
executed 3970 times by 18 tests: return QQuickItemPrivate::get(item)->x;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_touchmouse
3970
56}-
57-
58static Q_ALWAYS_INLINE qreal readY(const QQuickItem *item)-
59{-
60 return QQuickItemPrivate::get(item)->y;
executed 3310 times by 18 tests: return QQuickItemPrivate::get(item)->y;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_touchmouse
3310
61}-
62-
63static Q_ALWAYS_INLINE qreal readWidth(const QQuickItem *item)-
64{-
65 return QQuickItemPrivate::get(item)->width;
executed 41043 times by 75 tests: return QQuickItemPrivate::get(item)->width;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
41043
66}-
67-
68static Q_ALWAYS_INLINE qreal readHeight(const QQuickItem *item)-
69{-
70 return QQuickItemPrivate::get(item)->height;
executed 41663 times by 75 tests: return QQuickItemPrivate::get(item)->height;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
41663
71}-
72-
73static Q_ALWAYS_INLINE qreal readBaselineOffset(const QQuickItem *item)-
74{-
75 return QQuickItemPrivate::get(item)->baselineOffset;
executed 82 times by 2 tests: return QQuickItemPrivate::get(item)->baselineOffset;
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
82
76}-
77-
78//TODO: should we cache relationships, so we don't have to check each time (parent-child or sibling)?-
79//TODO: support non-parent, non-sibling (need to find lowest common ancestor)-
80-
81static inline qreal hcenter(const QQuickItem *item)-
82{-
83 qreal width = readWidth(item);-
84 if (QQuickAnchors *anchors = QQuickItemPrivate::get(item)->_anchors) {
QQuickAnchors ...tem)->_anchorsDescription
TRUEevaluated 11913 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 9091 times by 31 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktaphandler
  • ...
9091-11913
85 if (!QQuickAnchorsPrivate::get(anchors)->centerAligned)
!QQuickAnchors...>centerAlignedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 11905 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
8-11905
86 return width / 2;
executed 8 times by 1 test: return width / 2;
Executed by:
  • tst_qquickanchors
8
87 }
executed 11905 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
11905
88 int iw = width;-
89 if (iw % 2)
iw % 2Description
TRUEevaluated 1967 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_scenegraph
FALSEevaluated 19029 times by 34 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
1967-19029
90 return (width + 1) / 2;
executed 1967 times by 14 tests: return (width + 1) / 2;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_scenegraph
1967
91 else-
92 return width / 2;
executed 19029 times by 34 tests: return width / 2;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
19029
93}-
94-
95static inline qreal vcenter(const QQuickItem *item)-
96{-
97 qreal height = readHeight(item);-
98 if (QQuickAnchors *anchors = QQuickItemPrivate::get(item)->_anchors) {
QQuickAnchors ...tem)->_anchorsDescription
TRUEevaluated 10365 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 8061 times by 30 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • tst_qquickstates
  • tst_qquicktaphandler
  • ...
8061-10365
99 if (!QQuickAnchorsPrivate::get(anchors)->centerAligned)
!QQuickAnchors...>centerAlignedDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 10357 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
8-10357
100 return height / 2;
executed 8 times by 1 test: return height / 2;
Executed by:
  • tst_qquickanchors
8
101 }
executed 10357 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
10357
102 int ih = height;-
103 if (ih % 2)
ih % 2Description
TRUEevaluated 2437 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
FALSEevaluated 15981 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
2437-15981
104 return (height + 1) / 2;
executed 2437 times by 8 tests: return (height + 1) / 2;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextedit
2437
105 else-
106 return height / 2;
executed 15981 times by 33 tests: return height / 2;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
15981
107}-
108-
109//local position-
110static inline qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)-
111{-
112 qreal ret = 0.0;-
113 switch (anchorLine) {-
114 case QQuickAnchors::LeftAnchor:
executed 1110 times by 12 tests: case QQuickAnchors::LeftAnchor:
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_touchmouse
1110
115 ret = readX(item);-
116 break;
executed 1110 times by 12 tests: break;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_touchmouse
1110
117 case QQuickAnchors::RightAnchor:
executed 1102 times by 11 tests: case QQuickAnchors::RightAnchor:
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
1102
118 ret = readX(item) + readWidth(item);-
119 break;
executed 1102 times by 11 tests: break;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
1102
120 case QQuickAnchors::TopAnchor:
executed 696 times by 11 tests: case QQuickAnchors::TopAnchor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
696
121 ret = readY(item);-
122 break;
executed 696 times by 11 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
696
123 case QQuickAnchors::BottomAnchor:
executed 1110 times by 14 tests: case QQuickAnchors::BottomAnchor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
1110
124 ret = readY(item) + readHeight(item);-
125 break;
executed 1110 times by 14 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
1110
126 case QQuickAnchors::HCenterAnchor:
executed 324 times by 6 tests: case QQuickAnchors::HCenterAnchor:
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
324
127 ret = readX(item) + hcenter(item);-
128 break;
executed 324 times by 6 tests: break;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
324
129 case QQuickAnchors::VCenterAnchor:
executed 36 times by 3 tests: case QQuickAnchors::VCenterAnchor:
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
36
130 ret = readY(item) + vcenter(item);-
131 break;
executed 36 times by 3 tests: break;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
36
132 case QQuickAnchors::BaselineAnchor:
executed 34 times by 2 tests: case QQuickAnchors::BaselineAnchor:
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
34
133 ret = readY(item) + readBaselineOffset(item);-
134 break;
executed 34 times by 2 tests: break;
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
34
135 default:
never executed: default:
0
136 break;
never executed: break;
0
137 }-
138-
139 return ret;
executed 4412 times by 16 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_touchmouse
4412
140}-
141-
142//position when origin is 0,0-
143static inline qreal adjustedPosition(QQuickItem *item, QQuickAnchors::Anchor anchorLine)-
144{-
145 qreal ret = 0.0;-
146 switch (anchorLine) {-
147 case QQuickAnchors::LeftAnchor:
executed 924 times by 16 tests: case QQuickAnchors::LeftAnchor:
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
924
148 ret = 0.0;-
149 break;
executed 924 times by 16 tests: break;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
924
150 case QQuickAnchors::RightAnchor:
executed 5414 times by 12 tests: case QQuickAnchors::RightAnchor:
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
5414
151 ret = readWidth(item);-
152 break;
executed 5414 times by 12 tests: break;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
5414
153 case QQuickAnchors::TopAnchor:
executed 1434 times by 18 tests: case QQuickAnchors::TopAnchor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
1434
154 ret = 0.0;-
155 break;
executed 1434 times by 18 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
1434
156 case QQuickAnchors::BottomAnchor:
executed 7101 times by 15 tests: case QQuickAnchors::BottomAnchor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
7101
157 ret = readHeight(item);-
158 break;
executed 7101 times by 15 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
7101
159 case QQuickAnchors::HCenterAnchor:
executed 2548 times by 12 tests: case QQuickAnchors::HCenterAnchor:
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
2548
160 ret = hcenter(item);-
161 break;
executed 2548 times by 12 tests: break;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquickvisualdatamodel
2548
162 case QQuickAnchors::VCenterAnchor:
executed 1434 times by 9 tests: case QQuickAnchors::VCenterAnchor:
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
1434
163 ret = vcenter(item);-
164 break;
executed 1434 times by 9 tests: break;
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
1434
165 case QQuickAnchors::BaselineAnchor:
executed 2 times by 1 test: case QQuickAnchors::BaselineAnchor:
Executed by:
  • tst_qquickstates
2
166 ret = readBaselineOffset(item);-
167 break;
executed 2 times by 1 test: break;
Executed by:
  • tst_qquickstates
2
168 default:
never executed: default:
0
169 break;
never executed: break;
0
170 }-
171-
172 return ret;
executed 18857 times by 24 tests: return ret;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
18857
173}-
174-
175QQuickAnchors::QQuickAnchors(QQuickItem *item, QObject *parent)-
176: QObject(*new QQuickAnchorsPrivate(item), parent)-
177{-
178}
executed 12520 times by 83 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • ...
12520
179-
180QQuickAnchors::~QQuickAnchors()-
181{-
182 Q_D(QQuickAnchors);-
183 d->inDestructor = true;-
184 d->remDepend(d->fill);-
185 d->remDepend(d->centerIn);-
186 d->remDepend(d->leftAnchorItem);-
187 d->remDepend(d->rightAnchorItem);-
188 d->remDepend(d->topAnchorItem);-
189 d->remDepend(d->bottomAnchorItem);-
190 d->remDepend(d->vCenterAnchorItem);-
191 d->remDepend(d->hCenterAnchorItem);-
192 d->remDepend(d->baselineAnchorItem);-
193}
executed 12460 times by 80 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • ...
12460
194-
195void QQuickAnchorsPrivate::fillChanged()-
196{-
197 Q_Q(QQuickAnchors);-
198 if (!fill || !isItemComplete())
!fillDescription
TRUEevaluated 100 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextinput
FALSEevaluated 12929 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
!isItemComplete()Description
TRUEevaluated 5102 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
FALSEevaluated 7827 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
100-12929
199 return;
executed 5202 times by 71 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
5202
200-
201 if (updatingFill < 2) {
updatingFill < 2Description
TRUEevaluated 7827 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
FALSEnever evaluated
0-7827
202 ++updatingFill;-
203-
204 qreal horizontalMargin = q->mirrored() ? rightMargin : leftMargin;
q->mirrored()Description
TRUEevaluated 24 times by 5 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 7803 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
24-7803
205-
206 if (fill == readParentItem(item)) { //child-parent
fill == readParentItem(item)Description
TRUEevaluated 6393 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
FALSEevaluated 1434 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
1434-6393
207 setItemPos(QPointF(horizontalMargin, topMargin));-
208 } else if (readParentItem(fill) == readParentItem(item)) { //siblings
executed 6393 times by 70 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
readParentItem...rentItem(item)Description
TRUEevaluated 1434 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
FALSEnever evaluated
0-6393
209 setItemPos(QPointF(readX(fill)+horizontalMargin, readY(fill) + topMargin));-
210 }
executed 1434 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
1434
211 setItemSize(QSizeF(readWidth(fill) - leftMargin - rightMargin,-
212 readHeight(fill) - topMargin - bottomMargin));-
213-
214 --updatingFill;-
215 } else {
executed 7827 times by 71 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
7827
216 // ### Make this certain :)-
217 qmlWarning(item) << QQuickAnchors::tr("Possible anchor loop detected on fill.");-
218 }
never executed: end of block
0
219-
220}-
221-
222void QQuickAnchorsPrivate::centerInChanged()-
223{-
224 Q_Q(QQuickAnchors);-
225 if (!centerIn || fill || !isItemComplete())
!centerInDescription
TRUEevaluated 112 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
FALSEevaluated 11631 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
fillDescription
TRUEnever evaluated
FALSEevaluated 11631 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
!isItemComplete()Description
TRUEevaluated 3850 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 7781 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
0-11631
226 return;
executed 3962 times by 33 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
3962
227-
228 if (updatingCenterIn < 2) {
updatingCenterIn < 2Description
TRUEevaluated 7781 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEnever evaluated
0-7781
229 ++updatingCenterIn;-
230-
231 qreal effectiveHCenterOffset = q->mirrored() ? -hCenterOffset : hCenterOffset;
q->mirrored()Description
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
FALSEevaluated 7741 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
40-7741
232 if (centerIn == readParentItem(item)) {
centerIn == re...rentItem(item)Description
TRUEevaluated 7597 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 184 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
184-7597
233 QPointF p(hcenter(readParentItem(item)) - hcenter(item) + effectiveHCenterOffset,-
234 vcenter(readParentItem(item)) - vcenter(item) + vCenterOffset);-
235 setItemPos(p);-
236-
237 } else if (readParentItem(centerIn) == readParentItem(item)) {
executed 7597 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
readParentItem...rentItem(item)Description
TRUEevaluated 184 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
FALSEnever evaluated
0-7597
238 QPointF p(centerIn->x() + hcenter(centerIn) - hcenter(item) + effectiveHCenterOffset,-
239 centerIn->y() + vcenter(centerIn) - vcenter(item) + vCenterOffset);-
240 setItemPos(p);-
241 }
executed 184 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
184
242-
243 --updatingCenterIn;-
244 } else {
executed 7781 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
7781
245 // ### Make this certain :)-
246 qmlWarning(item) << QQuickAnchors::tr("Possible anchor loop detected on centerIn.");-
247 }
never executed: end of block
0
248}-
249-
250void QQuickAnchorsPrivate::clearItem(QQuickItem *item)-
251{-
252 if (!item)
!itemDescription
TRUEnever evaluated
FALSEevaluated 11962 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
0-11962
253 return;
never executed: return;
0
254 if (fill == item)
fill == itemDescription
TRUEevaluated 4828 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
FALSEevaluated 7134 times by 36 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
4828-7134
255 fill = nullptr;
executed 4828 times by 66 tests: fill = nullptr;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
4828
256 if (centerIn == item)
centerIn == itemDescription
TRUEevaluated 3844 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • ...
FALSEevaluated 8118 times by 66 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • tst_qquickgravity
  • tst_qquickgridview
  • tst_qquickgroupgoal
  • tst_qquickimage
  • ...
3844-8118
257 centerIn = nullptr;
executed 3844 times by 32 tests: centerIn = nullptr;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickspritesequence
  • ...
3844
258 if (leftAnchorItem == item) {
leftAnchorItem == itemDescription
TRUEevaluated 438 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 11524 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
438-11524
259 leftAnchorItem = nullptr;-
260 usedAnchors &= ~QQuickAnchors::LeftAnchor;-
261 }
executed 438 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
438
262 if (rightAnchorItem == item) {
rightAnchorItem == itemDescription
TRUEevaluated 564 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 11398 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
564-11398
263 rightAnchorItem = nullptr;-
264 usedAnchors &= ~QQuickAnchors::RightAnchor;-
265 }
executed 564 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
564
266 if (topAnchorItem == item) {
topAnchorItem == itemDescription
TRUEevaluated 956 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 11006 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
956-11006
267 topAnchorItem = nullptr;-
268 usedAnchors &= ~QQuickAnchors::TopAnchor;-
269 }
executed 956 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
956
270 if (bottomAnchorItem == item) {
bottomAnchorItem == itemDescription
TRUEevaluated 1054 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_rendernode
FALSEevaluated 10908 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
1054-10908
271 bottomAnchorItem = nullptr;-
272 usedAnchors &= ~QQuickAnchors::BottomAnchor;-
273 }
executed 1054 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_rendernode
1054
274 if (vCenterAnchorItem == item) {
vCenterAnchorItem == itemDescription
TRUEevaluated 910 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
FALSEevaluated 11052 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
910-11052
275 vCenterAnchorItem = nullptr;-
276 usedAnchors &= ~QQuickAnchors::VCenterAnchor;-
277 }
executed 910 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
910
278 if (hCenterAnchorItem == item) {
hCenterAnchorItem == itemDescription
TRUEevaluated 1272 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
FALSEevaluated 10690 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
1272-10690
279 hCenterAnchorItem = nullptr;-
280 usedAnchors &= ~QQuickAnchors::HCenterAnchor;-
281 }
executed 1272 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
1272
282 if (baselineAnchorItem == item) {
baselineAnchorItem == itemDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 11950 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
12-11950
283 baselineAnchorItem = nullptr;-
284 usedAnchors &= ~QQuickAnchors::BaselineAnchor;-
285 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
12
286}
executed 11962 times by 70 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickfriction
  • tst_qquickgravity
  • ...
11962
287-
288QQuickGeometryChange QQuickAnchorsPrivate::calculateDependency(QQuickItem *controlItem) const-
289{-
290 QQuickGeometryChange dependency;-
291-
292 if (!controlItem || inDestructor)
!controlItemDescription
TRUEnever evaluated
FALSEevaluated 13474 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
inDestructorDescription
TRUEevaluated 576 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
FALSEevaluated 12898 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
0-13474
293 return dependency;
executed 576 times by 16 tests: return dependency;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
576
294-
295 if (fill == controlItem) {
fill == controlItemDescription
TRUEevaluated 5104 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
FALSEevaluated 7794 times by 38 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpointattractor
  • ...
5104-7794
296 if (controlItem == readParentItem(item))
controlItem ==...rentItem(item)Description
TRUEevaluated 4490 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
FALSEevaluated 614 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
614-4490
297 dependency.setSizeChange(true);
executed 4490 times by 70 tests: dependency.setSizeChange(true);
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
4490
298 else //sibling-
299 dependency.setAllChanged(true);
executed 614 times by 10 tests: dependency.setAllChanged(true);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
614
300 return dependency; //exit early
executed 5104 times by 71 tests: return dependency;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
5104
301 }-
302-
303 if (centerIn == controlItem) {
centerIn == controlItemDescription
TRUEevaluated 3854 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 3940 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
3854-3940
304 if (controlItem == readParentItem(item))
controlItem ==...rentItem(item)Description
TRUEevaluated 3790 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 64 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
64-3790
305 dependency.setSizeChange(true);
executed 3790 times by 33 tests: dependency.setSizeChange(true);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
3790
306 else //sibling-
307 dependency.setAllChanged(true);
executed 64 times by 2 tests: dependency.setAllChanged(true);
Executed by:
  • tst_examples
  • tst_qquickanchors
64
308 return dependency; //exit early
executed 3854 times by 33 tests: return dependency;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
3854
309 }-
310-
311 if ((usedAnchors & QQuickAnchors::LeftAnchor && leftAnchorItem == controlItem) ||
usedAnchors & ...rs::LeftAnchorDescription
TRUEevaluated 820 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 3120 times by 22 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
leftAnchorItem == controlItemDescription
TRUEevaluated 584 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 236 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
236-3120
312 (usedAnchors & QQuickAnchors::RightAnchor && rightAnchorItem == controlItem) ||
usedAnchors & ...s::RightAnchorDescription
TRUEevaluated 748 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_rendernode
FALSEevaluated 2608 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
rightAnchorItem == controlItemDescription
TRUEevaluated 614 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_rendernode
FALSEevaluated 134 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
134-2608
313 (usedAnchors & QQuickAnchors::HCenterAnchor && hCenterAnchorItem == controlItem)) {
usedAnchors & ...:HCenterAnchorDescription
TRUEevaluated 1404 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 1338 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
hCenterAnchorI...== controlItemDescription
TRUEevaluated 1366 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 38 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickitem2
  • tst_qquickstates
38-1404
314 if (controlItem == readParentItem(item))
controlItem ==...rentItem(item)Description
TRUEevaluated 2232 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 332 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
332-2232
315 dependency.setWidthChange(true);
executed 2232 times by 20 tests: dependency.setWidthChange(true);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
2232
316 else //sibling-
317 dependency.setHorizontalChange(true);
executed 332 times by 8 tests: dependency.setHorizontalChange(true);
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
332
318 }-
319-
320 if ((usedAnchors & QQuickAnchors::TopAnchor && topAnchorItem == controlItem) ||
usedAnchors & ...ors::TopAnchorDescription
TRUEevaluated 1276 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 2664 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
  • tst_touchmouse
topAnchorItem == controlItemDescription
TRUEevaluated 1030 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 246 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
246-2664
321 (usedAnchors & QQuickAnchors::BottomAnchor && bottomAnchorItem == controlItem) ||
usedAnchors & ...::BottomAnchorDescription
TRUEevaluated 956 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
FALSEevaluated 1954 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_touchmouse
bottomAnchorIt...== controlItemDescription
TRUEevaluated 858 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
FALSEevaluated 98 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
98-1954
322 (usedAnchors & QQuickAnchors::VCenterAnchor && vCenterAnchorItem == controlItem) ||
usedAnchors & ...:VCenterAnchorDescription
TRUEevaluated 1026 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 1026 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_touchmouse
vCenterAnchorI...== controlItemDescription
TRUEevaluated 926 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickitem2
100-1026
323 (usedAnchors & QQuickAnchors::BaselineAnchor && baselineAnchorItem == controlItem)) {
usedAnchors & ...BaselineAnchorDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEevaluated 1106 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_touchmouse
baselineAnchor...== controlItemDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEnever evaluated
0-1106
324 if (controlItem == readParentItem(item))
controlItem ==...rentItem(item)Description
TRUEevaluated 2546 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 288 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
288-2546
325 dependency.setHeightChange(true);
executed 2546 times by 23 tests: dependency.setHeightChange(true);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
2546
326 else //sibling-
327 dependency.setVerticalChange(true);
executed 288 times by 11 tests: dependency.setVerticalChange(true);
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
288
328 }-
329-
330 return dependency;
executed 3940 times by 25 tests: return dependency;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
3940
331}-
332-
333void QQuickAnchorsPrivate::addDepend(QQuickItem *item)-
334{-
335 if (!item || !componentComplete)
!itemDescription
TRUEnever evaluated
FALSEevaluated 27200 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
!componentCompleteDescription
TRUEevaluated 14498 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
FALSEevaluated 12702 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
0-27200
336 return;
executed 14498 times by 75 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
14498
337-
338 QQuickItemPrivate *p = QQuickItemPrivate::get(item);-
339 p->updateOrAddGeometryChangeListener(this, calculateDependency(item));-
340}
executed 12702 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
12702
341-
342void QQuickAnchorsPrivate::remDepend(QQuickItem *item)-
343{-
344 if (!item || !componentComplete)
!itemDescription
TRUEevaluated 126406 times by 83 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • ...
FALSEevaluated 772 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
!componentCompleteDescription
TRUEnever evaluated
FALSEevaluated 772 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
0-126406
345 return;
executed 126406 times by 83 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • ...
126406
346-
347 QQuickItemPrivate *p = QQuickItemPrivate::get(item);-
348 p->updateOrRemoveGeometryChangeListener(this, calculateDependency(item));-
349}
executed 772 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpointerhandler
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquickvisualdatamodel
772
350-
351bool QQuickAnchors::mirrored()-
352{-
353 Q_D(QQuickAnchors);-
354 return QQuickItemPrivate::get(d->item)->effectiveLayoutMirror;
executed 25460 times by 75 tests: return QQuickItemPrivate::get(d->item)->effectiveLayoutMirror;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
25460
355}-
356-
357bool QQuickAnchors::alignWhenCentered() const-
358{-
359 Q_D(const QQuickAnchors);-
360 return d->centerAligned;
executed 4 times by 1 test: return d->centerAligned;
Executed by:
  • tst_qquickdesignersupport
4
361}-
362-
363void QQuickAnchors::setAlignWhenCentered(bool aligned)-
364{-
365 Q_D(QQuickAnchors);-
366 if (aligned == d->centerAligned)
aligned == d->centerAlignedDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-6
367 return;
never executed: return;
0
368 d->centerAligned = aligned;-
369 emit centerAlignedChanged();-
370 if (d->centerIn) {
d->centerInDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-6
371 d->centerInChanged();-
372 } else {
never executed: end of block
0
373 if (d->usedAnchors & QQuickAnchors::VCenterAnchor)
d->usedAnchors...:VCenterAnchorDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-6
374 d->updateVerticalAnchors();
never executed: d->updateVerticalAnchors();
0
375 else if (d->usedAnchors & QQuickAnchors::HCenterAnchor)
d->usedAnchors...:HCenterAnchorDescription
TRUEnever evaluated
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-6
376 d->updateHorizontalAnchors();
never executed: d->updateHorizontalAnchors();
0
377 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
6
378}-
379-
380bool QQuickAnchorsPrivate::isItemComplete() const-
381{-
382 return componentComplete;
executed 86394 times by 79 tests: return componentComplete;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
86394
383}-
384-
385void QQuickAnchors::classBegin()-
386{-
387 Q_D(QQuickAnchors);-
388 d->componentComplete = false;-
389}
executed 12418 times by 77 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
12418
390-
391void QQuickAnchors::componentComplete()-
392{-
393 Q_D(QQuickAnchors);-
394 d->componentComplete = true;-
395}
executed 12418 times by 77 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
12418
396-
397void QQuickAnchorsPrivate::setItemHeight(qreal v)-
398{-
399 updatingMe = true;-
400 item->setHeight(v);-
401 updatingMe = false;-
402}
executed 502 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
502
403-
404void QQuickAnchorsPrivate::setItemWidth(qreal v)-
405{-
406 updatingMe = true;-
407 item->setWidth(v);-
408 updatingMe = false;-
409}
executed 714 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
714
410-
411void QQuickAnchorsPrivate::setItemX(qreal v)-
412{-
413 updatingMe = true;-
414 item->setX(v);-
415 updatingMe = false;-
416}
executed 9528 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
9528
417-
418void QQuickAnchorsPrivate::setItemY(qreal v)-
419{-
420 updatingMe = true;-
421 item->setY(v);-
422 updatingMe = false;-
423}
executed 10699 times by 23 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
10699
424-
425void QQuickAnchorsPrivate::setItemPos(const QPointF &v)-
426{-
427 updatingMe = true;-
428 item->setPosition(v);-
429 updatingMe = false;-
430}
executed 15608 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
15608
431-
432void QQuickAnchorsPrivate::setItemSize(const QSizeF &v)-
433{-
434 updatingMe = true;-
435 item->setSize(v);-
436 updatingMe = false;-
437}
executed 7827 times by 71 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
7827
438-
439void QQuickAnchorsPrivate::updateMe()-
440{-
441 if (updatingMe) {
updatingMeDescription
TRUEevaluated 28032 times by 72 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • ...
FALSEevaluated 13884 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • ...
13884-28032
442 updatingMe = false;-
443 return;
executed 28032 times by 72 tests: return;
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlvaluetypes
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • ...
28032
444 }-
445-
446 update();-
447}
executed 13884 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • ...
13884
448-
449void QQuickAnchorsPrivate::updateOnComplete()-
450{-
451 //optimization to only set initial dependencies once, at completion time-
452 QQuickItem *dependencies[9];-
453 dependencies[0] = fill;-
454 dependencies[1] = centerIn;-
455 dependencies[2] = leftAnchorItem;-
456 dependencies[3] = rightAnchorItem;-
457 dependencies[4] = hCenterAnchorItem;-
458 dependencies[5] = topAnchorItem;-
459 dependencies[6] = bottomAnchorItem;-
460 dependencies[7] = vCenterAnchorItem;-
461 dependencies[8] = baselineAnchorItem;-
462-
463 std::sort(dependencies, dependencies + 9);-
464-
465 QQuickItem *lastDependency = nullptr;-
466 for (int i = 0; i < 9; ++i) {
i < 9Description
TRUEevaluated 111762 times by 77 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
FALSEevaluated 12418 times by 77 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
12418-111762
467 QQuickItem *dependency = dependencies[i];-
468 if (lastDependency != dependency) {
lastDependency != dependencyDescription
TRUEevaluated 12504 times by 75 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
FALSEevaluated 99258 times by 77 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
12504-99258
469 addDepend(dependency);-
470 lastDependency = dependency;-
471 }
executed 12504 times by 75 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
12504
472 }
executed 111762 times by 77 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
111762
473-
474 update();-
475}
executed 12418 times by 77 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • ...
12418
476-
477-
478void QQuickAnchorsPrivate::update()-
479{-
480 if (!isItemComplete())
!isItemComplete()Description
TRUEevaluated 2270 times by 13 tests
Evaluated by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 24032 times by 79 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • ...
2270-24032
481 return;
executed 2270 times by 13 tests: return;
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qquickaccessible
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickshadereffect
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_rendernode
  • tst_touchmouse
2270
482-
483 if (fill) {
fillDescription
TRUEevaluated 5104 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
FALSEevaluated 18928 times by 41 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • ...
5104-18928
484 fillChanged();-
485 } else if (centerIn) {
executed 5104 times by 71 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
centerInDescription
TRUEevaluated 6835 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
FALSEevaluated 12093 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
5104-12093
486 centerInChanged();-
487 } else {
executed 6835 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
6835
488 if (usedAnchors & QQuickAnchors::Horizontal_Mask)
usedAnchors & ...orizontal_MaskDescription
TRUEevaluated 8568 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 3525 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
3525-8568
489 updateHorizontalAnchors();
executed 8568 times by 21 tests: updateHorizontalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
8568
490 if (usedAnchors & QQuickAnchors::Vertical_Mask)
usedAnchors & ...:Vertical_MaskDescription
TRUEevaluated 9857 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 2236 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquickvisualdatamodel
  • tst_touchmouse
2236-9857
491 updateVerticalAnchors();
executed 9857 times by 23 tests: updateVerticalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
9857
492 }
executed 12093 times by 28 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlenginedebugservice
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • ...
12093
493}-
494-
495void QQuickAnchorsPrivate::itemGeometryChanged(QQuickItem *, QQuickGeometryChange change, const QRectF &)-
496{-
497 if (!isItemComplete())
!isItemComplete()Description
TRUEnever evaluated
FALSEevaluated 4837 times by 32 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklineextruder
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmaskextruder
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • ...
0-4837
498 return;
never executed: return;
0
499-
500 if (fill) {
fillDescription
TRUEevaluated 2659 times by 24 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklineextruder
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmaskextruder
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickturbulence
  • tst_touchmouse
FALSEevaluated 2178 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
2178-2659
501 fillChanged();-
502 } else if (centerIn) {
executed 2659 times by 24 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklineextruder
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmaskextruder
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpincharea
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktext
  • tst_qquicktextinput
  • tst_qquickturbulence
  • tst_touchmouse
centerInDescription
TRUEevaluated 930 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickstates
FALSEevaluated 1248 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktextedit
930-2659
503 centerInChanged();-
504 } else {
executed 930 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanimations
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickstates
930
505 if ((usedAnchors & QQuickAnchors::Horizontal_Mask) && change.horizontalChange())
(usedAnchors &...rizontal_Mask)Description
TRUEevaluated 956 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
  • tst_qquicktextedit
FALSEevaluated 292 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
change.horizontalChange()Description
TRUEevaluated 756 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
FALSEevaluated 200 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicktextedit
200-956
506 updateHorizontalAnchors();
executed 756 times by 6 tests: updateHorizontalAnchors();
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquickpositioners
756
507 if ((usedAnchors & QQuickAnchors::Vertical_Mask) && change.verticalChange())
(usedAnchors &...Vertical_Mask)Description
TRUEevaluated 770 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktextedit
FALSEevaluated 478 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquicklayouts
  • tst_qquickpositioners
change.verticalChange()Description
TRUEevaluated 554 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktextedit
FALSEevaluated 216 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickitem2
216-770
508 updateVerticalAnchors();
executed 554 times by 10 tests: updateVerticalAnchors();
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktextedit
554
509 }
executed 1248 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquicktextedit
1248
510}-
511-
512QQuickItem *QQuickAnchors::fill() const-
513{-
514 Q_D(const QQuickAnchors);-
515 return d->fill;
executed 250 times by 5 tests: return d->fill;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickdesignersupport
  • tst_qquickpositioners
  • tst_qquickrepeater
250
516}-
517-
518void QQuickAnchors::setFill(QQuickItem *f)-
519{-
520 Q_D(QQuickAnchors);-
521 if (d->fill == f)
d->fill == fDescription
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 5108 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
8-5108
522 return;
executed 8 times by 3 tests: return;
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
8
523-
524 if (!f) {
!fDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 5106 times by 71 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
2-5106
525 QQuickItem *oldFill = d->fill;-
526 d->fill = f;-
527 d->remDepend(oldFill);-
528 emit fillChanged();-
529 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
530 }-
531 if (f != readParentItem(d->item) && readParentItem(f) != readParentItem(d->item)){
f != readParentItem(d->item)Description
TRUEevaluated 616 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
FALSEevaluated 4490 times by 70 tests
Evaluated by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
readParentItem...tItem(d->item)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 614 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpointerhandler
  • tst_qquicktext
  • tst_touchmouse
2-4490
532 qmlWarning(d->item) << tr("Cannot anchor to an item that isn't a parent or sibling.");-
533 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
534 }-
535 QQuickItem *oldFill = d->fill;-
536 d->fill = f;-
537 d->remDepend(oldFill);-
538 d->addDepend(d->fill);-
539 emit fillChanged();-
540 d->fillChanged();-
541}
executed 5104 times by 71 tests: end of block
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlcomponent
  • tst_qqmlecmascript
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • tst_qquickfocusscope
  • tst_qquickfriction
  • ...
5104
542-
543void QQuickAnchors::resetFill()-
544{-
545 setFill(nullptr);-
546}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
2
547-
548QQuickItem *QQuickAnchors::centerIn() const-
549{-
550 Q_D(const QQuickAnchors);-
551 return d->centerIn;
executed 246 times by 5 tests: return d->centerIn;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickdesignersupport
  • tst_qquickpositioners
  • tst_qquickrepeater
246
552}-
553-
554void QQuickAnchors::setCenterIn(QQuickItem* c)-
555{-
556 Q_D(QQuickAnchors);-
557 if (d->centerIn == c)
d->centerIn == cDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickpathview
FALSEevaluated 3858 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
2-3858
558 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickpathview
2
559-
560 if (!c) {
!cDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 3856 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
2-3856
561 QQuickItem *oldCI = d->centerIn;-
562 d->centerIn = c;-
563 d->remDepend(oldCI);-
564 emit centerInChanged();-
565 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
566 }-
567 if (c != readParentItem(d->item) && readParentItem(c) != readParentItem(d->item)){
c != readParentItem(d->item)Description
TRUEevaluated 66 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
FALSEevaluated 3790 times by 33 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
readParentItem...tItem(d->item)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 64 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
2-3790
568 qmlWarning(d->item) << tr("Cannot anchor to an item that isn't a parent or sibling.");-
569 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
570 }-
571 QQuickItem *oldCI = d->centerIn;-
572 d->centerIn = c;-
573 d->remDepend(oldCI);-
574 d->addDepend(d->centerIn);-
575 emit centerInChanged();-
576 d->centerInChanged();-
577}
executed 3854 times by 33 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickpathview
  • tst_qquickpointattractor
  • tst_qquickpositioners
  • tst_qquickrepeater
  • ...
3854
578-
579void QQuickAnchors::resetCenterIn()-
580{-
581 setCenterIn(nullptr);-
582}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
2
583-
584bool QQuickAnchorsPrivate::calcStretch(QQuickItem *edge1Item,-
585 QQuickAnchors::Anchor edge1Line,-
586 QQuickItem *edge2Item,-
587 QQuickAnchors::Anchor edge2Line,-
588 qreal offset1,-
589 qreal offset2,-
590 QQuickAnchors::Anchor line,-
591 qreal &stretch) const-
592{-
593 bool edge1IsParent = (edge1Item == readParentItem(item));-
594 bool edge2IsParent = (edge2Item == readParentItem(item));-
595 bool edge1IsSibling = (readParentItem(edge1Item) == readParentItem(item));-
596 bool edge2IsSibling = (readParentItem(edge2Item) == readParentItem(item));-
597-
598 bool invalid = false;-
599 if ((edge2IsParent && edge1IsParent) || (edge2IsSibling && edge1IsSibling)) {
edge2IsParentDescription
TRUEevaluated 850 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
FALSEevaluated 366 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickstates
edge1IsParentDescription
TRUEevaluated 554 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
FALSEevaluated 296 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
edge2IsSiblingDescription
TRUEevaluated 366 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 296 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
edge1IsSiblingDescription
TRUEevaluated 52 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 314 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickstates
52-850
600 stretch = (position(edge2Item, edge2Line) + offset2)-
601 - (position(edge1Item, edge1Line) + offset1);-
602 } else if (edge2IsParent && edge1IsSibling) {
executed 606 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
edge2IsParentDescription
TRUEevaluated 296 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEevaluated 314 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickstates
edge1IsSiblingDescription
TRUEevaluated 296 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
FALSEnever evaluated
0-606
603 stretch = (position(edge2Item, edge2Line) + offset2)-
604 - (position(readParentItem(item), line)-
605 + position(edge1Item, edge1Line) + offset1);-
606 } else if (edge2IsSibling && edge1IsParent) {
executed 296 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
edge2IsSiblingDescription
TRUEevaluated 314 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickstates
FALSEnever evaluated
edge1IsParentDescription
TRUEevaluated 314 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickstates
FALSEnever evaluated
0-314
607 stretch = (position(readParentItem(item), line) + position(edge2Item, edge2Line) + offset2)-
608 - (position(edge1Item, edge1Line) + offset1);-
609 } else
executed 314 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickstates
314
610 invalid = true;
never executed: invalid = true;
0
611-
612 return invalid;
executed 1216 times by 14 tests: return invalid;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
1216
613}-
614-
615void QQuickAnchorsPrivate::updateVerticalAnchors()-
616{-
617 if (fill || centerIn || !isItemComplete())
fillDescription
TRUEevaluated 450 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquicktext
  • tst_qquicktextinput
FALSEevaluated 16107 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
centerInDescription
TRUEevaluated 98 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 16009 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
!isItemComplete()Description
TRUEevaluated 5200 times by 28 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • ...
FALSEevaluated 10809 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
98-16107
618 return;
executed 5748 times by 30 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktext
  • tst_qquicktextedit
  • ...
5748
619-
620 if (Q_UNLIKELY(updatingVerticalAnchor > 1)) {
__builtin_expe...r > 1), false)Description
TRUEnever evaluated
FALSEevaluated 10809 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
0-10809
621 // ### Make this certain :)-
622 qmlWarning(item) << QQuickAnchors::tr("Possible anchor loop detected on vertical anchor.");-
623 return;
never executed: return;
0
624 }-
625-
626 ++updatingVerticalAnchor;-
627 if (usedAnchors & QQuickAnchors::TopAnchor) {
usedAnchors & ...ors::TopAnchorDescription
TRUEevaluated 2060 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 8749 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
2060-8749
628 //Handle stretching-
629 bool invalid = true;-
630 qreal height = 0.0;-
631 if (usedAnchors & QQuickAnchors::BottomAnchor) {
usedAnchors & ...::BottomAnchorDescription
TRUEevaluated 498 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
FALSEevaluated 1562 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_rendernode
  • tst_touchmouse
498-1562
632 invalid = calcStretch(topAnchorItem, topAnchorLine,-
633 bottomAnchorItem, bottomAnchorLine,-
634 topMargin, -bottomMargin, QQuickAnchors::TopAnchor, height);-
635 } else if (usedAnchors & QQuickAnchors::VCenterAnchor) {
executed 498 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
usedAnchors & ...:VCenterAnchorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 1560 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_rendernode
  • tst_touchmouse
2-1560
636 invalid = calcStretch(topAnchorItem, topAnchorLine,-
637 vCenterAnchorItem, vCenterAnchorLine,-
638 topMargin, vCenterOffset, QQuickAnchors::TopAnchor, height);-
639 height *= 2;-
640 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
2
641 if (!invalid)
!invalidDescription
TRUEevaluated 500 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
FALSEevaluated 1560 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_rendernode
  • tst_touchmouse
500-1560
642 setItemHeight(height);
executed 500 times by 11 tests: setItemHeight(height);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
500
643-
644 //Handle top-
645 if (topAnchorItem == readParentItem(item)) {
topAnchorItem ...rentItem(item)Description
TRUEevaluated 1454 times by 18 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 606 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
606-1454
646 setItemY(adjustedPosition(topAnchorItem, topAnchorLine) + topMargin);-
647 } else if (readParentItem(topAnchorItem) == readParentItem(item)) {
executed 1454 times by 18 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
readParentItem...rentItem(item)Description
TRUEevaluated 606 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
FALSEnever evaluated
0-1454
648 setItemY(position(topAnchorItem, topAnchorLine) + topMargin);-
649 }
executed 606 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
606
650 } else if (usedAnchors & QQuickAnchors::BottomAnchor) {
executed 2060 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
usedAnchors & ...::BottomAnchorDescription
TRUEevaluated 7199 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
FALSEevaluated 1550 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
1550-7199
651 //Handle stretching (top + bottom case is handled above)-
652 if (usedAnchors & QQuickAnchors::VCenterAnchor) {
usedAnchors & ...:VCenterAnchorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 7197 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
2-7197
653 qreal height = 0.0;-
654 bool invalid = calcStretch(vCenterAnchorItem, vCenterAnchorLine,-
655 bottomAnchorItem, bottomAnchorLine,-
656 vCenterOffset, -bottomMargin, QQuickAnchors::TopAnchor,-
657 height);-
658 if (!invalid)
!invalidDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEnever evaluated
0-2
659 setItemHeight(height*2);
executed 2 times by 1 test: setItemHeight(height*2);
Executed by:
  • tst_qquickanchors
2
660 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
2
661-
662 //Handle bottom-
663 if (bottomAnchorItem == readParentItem(item)) {
bottomAnchorIt...rentItem(item)Description
TRUEevaluated 7123 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
FALSEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
76-7123
664 setItemY(adjustedPosition(bottomAnchorItem, bottomAnchorLine) - readHeight(item) - bottomMargin);-
665 } else if (readParentItem(bottomAnchorItem) == readParentItem(item)) {
executed 7123 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
readParentItem...rentItem(item)Description
TRUEevaluated 76 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
FALSEnever evaluated
0-7123
666 setItemY(position(bottomAnchorItem, bottomAnchorLine) - readHeight(item) - bottomMargin);-
667 }
executed 76 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
76
668 } else if (usedAnchors & QQuickAnchors::VCenterAnchor) {
executed 7199 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
usedAnchors & ...:VCenterAnchorDescription
TRUEevaluated 1394 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 156 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
156-7199
669 //(stetching handled above)-
670-
671 //Handle vCenter-
672 if (vCenterAnchorItem == readParentItem(item)) {
vCenterAnchorI...rentItem(item)Description
TRUEevaluated 1386 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
8-1386
673 setItemY(adjustedPosition(vCenterAnchorItem, vCenterAnchorLine)-
674 - vcenter(item) + vCenterOffset);-
675 } else if (readParentItem(vCenterAnchorItem) == readParentItem(item)) {
executed 1386 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
readParentItem...rentItem(item)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEnever evaluated
0-1386
676 setItemY(position(vCenterAnchorItem, vCenterAnchorLine) - vcenter(item) + vCenterOffset);-
677 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
8
678 } else if (usedAnchors & QQuickAnchors::BaselineAnchor) {
executed 1394 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
usedAnchors & ...BaselineAnchorDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEevaluated 110 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
46-1394
679 //Handle baseline-
680 if (baselineAnchorItem == readParentItem(item)) {
baselineAnchor...rentItem(item)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
8-38
681 setItemY(adjustedPosition(baselineAnchorItem, baselineAnchorLine)-
682 - readBaselineOffset(item) + baselineOffset);-
683 } else if (readParentItem(baselineAnchorItem) == readParentItem(item)) {
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
readParentItem...rentItem(item)Description
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEnever evaluated
0-38
684 setItemY(position(baselineAnchorItem, baselineAnchorLine)-
685 - readBaselineOffset(item) + baselineOffset);-
686 }
executed 38 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
38
687 }
executed 46 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
46
688 --updatingVerticalAnchor;-
689}
executed 10809 times by 23 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
10809
690-
691static inline QQuickAnchors::Anchor reverseAnchorLine(QQuickAnchors::Anchor anchorLine)-
692{-
693 if (anchorLine == QQuickAnchors::LeftAnchor) {
anchorLine == ...rs::LeftAnchorDescription
TRUEevaluated 62 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
  • tst_qquicktextinput
FALSEevaluated 358 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextinput
62-358
694 return QQuickAnchors::RightAnchor;
executed 62 times by 4 tests: return QQuickAnchors::RightAnchor;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
  • tst_qquicktextinput
62
695 } else if (anchorLine == QQuickAnchors::RightAnchor) {
anchorLine == ...s::RightAnchorDescription
TRUEevaluated 36 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEevaluated 322 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextinput
36-322
696 return QQuickAnchors::LeftAnchor;
executed 36 times by 2 tests: return QQuickAnchors::LeftAnchor;
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
36
697 } else {-
698 return anchorLine;
executed 322 times by 5 tests: return anchorLine;
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextinput
322
699 }-
700}-
701-
702void QQuickAnchorsPrivate::updateHorizontalAnchors()-
703{-
704 Q_Q(QQuickAnchors);-
705 if (fill || centerIn || !isItemComplete())
fillDescription
TRUEevaluated 16 times by 5 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquicktext
  • tst_qquicktextedit
FALSEevaluated 14690 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_scenegraph
  • tst_touchmouse
centerInDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 14686 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_scenegraph
  • tst_touchmouse
!isItemComplete()Description
TRUEevaluated 4956 times by 25 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_scenegraph
  • tst_touchmouse
FALSEevaluated 9730 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
4-14690
706 return;
executed 4976 times by 26 tests: return;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktableview
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_scenegraph
  • ...
4976
707-
708 if (updatingHorizontalAnchor < 3) {
updatingHorizontalAnchor < 3Description
TRUEevaluated 9724 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
6-9724
709 ++updatingHorizontalAnchor;-
710 qreal effectiveRightMargin, effectiveLeftMargin, effectiveHorizontalCenterOffset;-
711 QQuickItem *effectiveLeftItem, *effectiveRightItem, *effectiveHorizontalCenterItem;-
712 QQuickAnchors::Anchor effectiveLeftLine, effectiveRightLine, effectiveHorizontalCenterLine;-
713 QQuickAnchors::Anchor effectiveLeftAnchor, effectiveRightAnchor;-
714 if (q->mirrored()) {
q->mirrored()Description
TRUEevaluated 140 times by 5 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextinput
FALSEevaluated 9584 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
140-9584
715 effectiveLeftAnchor = QQuickAnchors::RightAnchor;-
716 effectiveRightAnchor = QQuickAnchors::LeftAnchor;-
717 effectiveLeftItem = rightAnchorItem;-
718 effectiveLeftLine = reverseAnchorLine(rightAnchorLine);-
719 effectiveRightItem = leftAnchorItem;-
720 effectiveRightLine = reverseAnchorLine(leftAnchorLine);-
721 effectiveHorizontalCenterItem = hCenterAnchorItem;-
722 effectiveHorizontalCenterLine = reverseAnchorLine(hCenterAnchorLine);-
723 effectiveLeftMargin = rightMargin;-
724 effectiveRightMargin = leftMargin;-
725 effectiveHorizontalCenterOffset = -hCenterOffset;-
726 } else {
executed 140 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextinput
140
727 effectiveLeftAnchor = QQuickAnchors::LeftAnchor;-
728 effectiveRightAnchor = QQuickAnchors::RightAnchor;-
729 effectiveLeftItem = leftAnchorItem;-
730 effectiveLeftLine = leftAnchorLine;-
731 effectiveRightItem = rightAnchorItem;-
732 effectiveRightLine = rightAnchorLine;-
733 effectiveHorizontalCenterItem = hCenterAnchorItem;-
734 effectiveHorizontalCenterLine = hCenterAnchorLine;-
735 effectiveLeftMargin = leftMargin;-
736 effectiveRightMargin = rightMargin;-
737 effectiveHorizontalCenterOffset = hCenterOffset;-
738 }
executed 9584 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
9584
739-
740 if (usedAnchors & effectiveLeftAnchor) {
usedAnchors & ...tiveLeftAnchorDescription
TRUEevaluated 1262 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 8462 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
1262-8462
741 //Handle stretching-
742 bool invalid = true;-
743 qreal width = 0.0;-
744 if (usedAnchors & effectiveRightAnchor) {
usedAnchors & ...iveRightAnchorDescription
TRUEevaluated 660 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
FALSEevaluated 602 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_rendernode
  • tst_touchmouse
602-660
745 invalid = calcStretch(effectiveLeftItem, effectiveLeftLine,-
746 effectiveRightItem, effectiveRightLine,-
747 effectiveLeftMargin, -effectiveRightMargin,-
748 QQuickAnchors::LeftAnchor, width);-
749 } else if (usedAnchors & QQuickAnchors::HCenterAnchor) {
executed 660 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
usedAnchors & ...:HCenterAnchorDescription
TRUEevaluated 48 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
FALSEevaluated 554 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_rendernode
  • tst_touchmouse
48-660
750 invalid = calcStretch(effectiveLeftItem, effectiveLeftLine,-
751 effectiveHorizontalCenterItem, effectiveHorizontalCenterLine,-
752 effectiveLeftMargin, effectiveHorizontalCenterOffset,-
753 QQuickAnchors::LeftAnchor, width);-
754 width *= 2;-
755 }
executed 48 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
48
756 if (!invalid)
!invalidDescription
TRUEevaluated 708 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
FALSEevaluated 554 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_rendernode
  • tst_touchmouse
554-708
757 setItemWidth(width);
executed 708 times by 11 tests: setItemWidth(width);
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
708
758-
759 //Handle left-
760 if (effectiveLeftItem == readParentItem(item)) {
effectiveLeftI...rentItem(item)Description
TRUEevaluated 936 times by 16 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 326 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
326-936
761 setItemX(adjustedPosition(effectiveLeftItem, effectiveLeftLine) + effectiveLeftMargin);-
762 } else if (readParentItem(effectiveLeftItem) == readParentItem(item)) {
executed 936 times by 16 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
readParentItem...rentItem(item)Description
TRUEevaluated 326 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
FALSEnever evaluated
0-936
763 setItemX(position(effectiveLeftItem, effectiveLeftLine) + effectiveLeftMargin);-
764 }
executed 326 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
326
765 } else if (usedAnchors & effectiveRightAnchor) {
executed 1262 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
usedAnchors & ...iveRightAnchorDescription
TRUEevaluated 5696 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
FALSEevaluated 2766 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
1262-5696
766 //Handle stretching (left + right case is handled in updateLeftAnchor)-
767 if (usedAnchors & QQuickAnchors::HCenterAnchor) {
usedAnchors & ...:HCenterAnchorDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 5690 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
6-5690
768 qreal width = 0.0;-
769 bool invalid = calcStretch(effectiveHorizontalCenterItem,-
770 effectiveHorizontalCenterLine,-
771 effectiveRightItem, effectiveRightLine,-
772 effectiveHorizontalCenterOffset, -effectiveRightMargin,-
773 QQuickAnchors::LeftAnchor, width);-
774 if (!invalid)
!invalidDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEnever evaluated
0-6
775 setItemWidth(width*2);
executed 6 times by 1 test: setItemWidth(width*2);
Executed by:
  • tst_qquickanchors
6
776 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
6
777-
778 //Handle right-
779 if (effectiveRightItem == readParentItem(item)) {
effectiveRight...rentItem(item)Description
TRUEevaluated 5404 times by 12 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
FALSEevaluated 292 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
292-5404
780 setItemX(adjustedPosition(effectiveRightItem, effectiveRightLine)-
781 - readWidth(item) - effectiveRightMargin);-
782 } else if (readParentItem(effectiveRightItem) == readParentItem(item)) {
executed 5404 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
readParentItem...rentItem(item)Description
TRUEevaluated 292 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
FALSEnever evaluated
0-5404
783 setItemX(position(effectiveRightItem, effectiveRightLine)-
784 - readWidth(item) - effectiveRightMargin);-
785 }
executed 292 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
292
786 } else if (usedAnchors & QQuickAnchors::HCenterAnchor) {
executed 5696 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_rendernode
usedAnchors & ...:HCenterAnchorDescription
TRUEevaluated 2570 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 196 times by 6 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
196-5696
787 //Handle hCenter-
788 if (effectiveHorizontalCenterItem == readParentItem(item)) {
effectiveHoriz...rentItem(item)Description
TRUEevaluated 2546 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
24-2546
789 setItemX(adjustedPosition(effectiveHorizontalCenterItem, effectiveHorizontalCenterLine) - hcenter(item) + effectiveHorizontalCenterOffset);-
790 } else if (readParentItem(effectiveHorizontalCenterItem) == readParentItem(item)) {
executed 2546 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
readParentItem...rentItem(item)Description
TRUEevaluated 24 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
FALSEnever evaluated
0-2546
791 setItemX(position(effectiveHorizontalCenterItem, effectiveHorizontalCenterLine) - hcenter(item) + effectiveHorizontalCenterOffset);-
792 }
executed 24 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickstates
24
793 }
executed 2570 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
2570
794 --updatingHorizontalAnchor;-
795 } else {
executed 9724 times by 21 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
9724
796 // ### Make this certain :)-
797 qmlWarning(item) << QQuickAnchors::tr("Possible anchor loop detected on horizontal anchor.");-
798 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
6
799}-
800-
801QQuickAnchorLine QQuickAnchors::top() const-
802{-
803 Q_D(const QQuickAnchors);-
804 return QQuickAnchorLine(d->topAnchorItem, d->topAnchorLine);
executed 72 times by 6 tests: return QQuickAnchorLine(d->topAnchorItem, d->topAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
72
805}-
806-
807void QQuickAnchors::setTop(const QQuickAnchorLine &edge)-
808{-
809 Q_D(QQuickAnchors);-
810 if (!d->checkVAnchorValid(edge) ||
!d->checkVAnchorValid(edge)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 1016 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
8-1016
811 (d->topAnchorItem == edge.item && d->topAnchorLine == edge.anchorLine))
d->topAnchorItem == edge.itemDescription
TRUEnever evaluated
FALSEevaluated 1016 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
d->topAnchorLi...dge.anchorLineDescription
TRUEnever evaluated
FALSEnever evaluated
0-1016
812 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanchors
8
813-
814 d->usedAnchors |= TopAnchor;-
815-
816 if (!d->checkVValid()) {
!d->checkVValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 1014 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
2-1014
817 d->usedAnchors &= ~TopAnchor;-
818 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
819 }-
820-
821 QQuickItem *oldTop = d->topAnchorItem;-
822 d->topAnchorItem = edge.item;-
823 d->topAnchorLine = edge.anchorLine;-
824 d->remDepend(oldTop);-
825 d->addDepend(d->topAnchorItem);-
826 emit topChanged();-
827 d->updateVerticalAnchors();-
828}
executed 1014 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
1014
829-
830void QQuickAnchors::resetTop()-
831{-
832 Q_D(QQuickAnchors);-
833 d->usedAnchors &= ~TopAnchor;-
834 d->remDepend(d->topAnchorItem);-
835 d->topAnchorItem = nullptr;-
836 d->topAnchorLine = QQuickAnchors::InvalidAnchor;-
837 emit topChanged();-
838 d->updateVerticalAnchors();-
839}
executed 52 times by 4 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
52
840-
841QQuickAnchorLine QQuickAnchors::bottom() const-
842{-
843 Q_D(const QQuickAnchors);-
844 return QQuickAnchorLine(d->bottomAnchorItem, d->bottomAnchorLine);
executed 72 times by 6 tests: return QQuickAnchorLine(d->bottomAnchorItem, d->bottomAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
72
845}-
846-
847void QQuickAnchors::setBottom(const QQuickAnchorLine &edge)-
848{-
849 Q_D(QQuickAnchors);-
850 if (!d->checkVAnchorValid(edge) ||
!d->checkVAnchorValid(edge)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 1126 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_rendernode
8-1126
851 (d->bottomAnchorItem == edge.item && d->bottomAnchorLine == edge.anchorLine))
d->bottomAncho...m == edge.itemDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEevaluated 1124 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_rendernode
d->bottomAncho...dge.anchorLineDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickstates
FALSEnever evaluated
0-1124
852 return;
executed 10 times by 2 tests: return;
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
10
853-
854 d->usedAnchors |= BottomAnchor;-
855-
856 if (!d->checkVValid()) {
!d->checkVValid()Description
TRUEnever evaluated
FALSEevaluated 1124 times by 19 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_rendernode
0-1124
857 d->usedAnchors &= ~BottomAnchor;-
858 return;
never executed: return;
0
859 }-
860-
861 QQuickItem *oldBottom = d->bottomAnchorItem;-
862 d->bottomAnchorItem = edge.item;-
863 d->bottomAnchorLine = edge.anchorLine;-
864 d->remDepend(oldBottom);-
865 d->addDepend(d->bottomAnchorItem);-
866 emit bottomChanged();-
867 d->updateVerticalAnchors();-
868}
executed 1124 times by 19 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquickvisualdatamodel
  • tst_rendernode
1124
869-
870void QQuickAnchors::resetBottom()-
871{-
872 Q_D(QQuickAnchors);-
873 d->usedAnchors &= ~BottomAnchor;-
874 d->remDepend(d->bottomAnchorItem);-
875 d->bottomAnchorItem = nullptr;-
876 d->bottomAnchorLine = QQuickAnchors::InvalidAnchor;-
877 emit bottomChanged();-
878 d->updateVerticalAnchors();-
879}
executed 50 times by 3 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
50
880-
881QQuickAnchorLine QQuickAnchors::verticalCenter() const-
882{-
883 Q_D(const QQuickAnchors);-
884 return QQuickAnchorLine(d->vCenterAnchorItem, d->vCenterAnchorLine);
executed 68 times by 6 tests: return QQuickAnchorLine(d->vCenterAnchorItem, d->vCenterAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
68
885}-
886-
887void QQuickAnchors::setVerticalCenter(const QQuickAnchorLine &edge)-
888{-
889 Q_D(QQuickAnchors);-
890 if (!d->checkVAnchorValid(edge) ||
!d->checkVAnchorValid(edge)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 922 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
2-922
891 (d->vCenterAnchorItem == edge.item && d->vCenterAnchorLine == edge.anchorLine))
d->vCenterAnch...m == edge.itemDescription
TRUEnever evaluated
FALSEevaluated 922 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
d->vCenterAnch...dge.anchorLineDescription
TRUEnever evaluated
FALSEnever evaluated
0-922
892 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
893-
894 d->usedAnchors |= VCenterAnchor;-
895-
896 if (!d->checkVValid()) {
!d->checkVValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 920 times by 9 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
2-920
897 d->usedAnchors &= ~VCenterAnchor;-
898 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
899 }-
900-
901 QQuickItem *oldVCenter = d->vCenterAnchorItem;-
902 d->vCenterAnchorItem = edge.item;-
903 d->vCenterAnchorLine = edge.anchorLine;-
904 d->remDepend(oldVCenter);-
905 d->addDepend(d->vCenterAnchorItem);-
906 emit verticalCenterChanged();-
907 d->updateVerticalAnchors();-
908}
executed 920 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
920
909-
910void QQuickAnchors::resetVerticalCenter()-
911{-
912 Q_D(QQuickAnchors);-
913 d->usedAnchors &= ~VCenterAnchor;-
914 d->remDepend(d->vCenterAnchorItem);-
915 d->vCenterAnchorItem = nullptr;-
916 d->vCenterAnchorLine = QQuickAnchors::InvalidAnchor;-
917 emit verticalCenterChanged();-
918 d->updateVerticalAnchors();-
919}
executed 20 times by 4 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
20
920-
921QQuickAnchorLine QQuickAnchors::baseline() const-
922{-
923 Q_D(const QQuickAnchors);-
924 return QQuickAnchorLine(d->baselineAnchorItem, d->baselineAnchorLine);
executed 68 times by 6 tests: return QQuickAnchorLine(d->baselineAnchorItem, d->baselineAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
68
925}-
926-
927void QQuickAnchors::setBaseline(const QQuickAnchorLine &edge)-
928{-
929 Q_D(QQuickAnchors);-
930 if (!d->checkVAnchorValid(edge) ||
!d->checkVAnchorValid(edge)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
8-18
931 (d->baselineAnchorItem == edge.item && d->baselineAnchorLine == edge.anchorLine))
d->baselineAnc...m == edge.itemDescription
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
d->baselineAnc...dge.anchorLineDescription
TRUEnever evaluated
FALSEnever evaluated
0-18
932 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanchors
8
933-
934 d->usedAnchors |= BaselineAnchor;-
935-
936 if (!d->checkVValid()) {
!d->checkVValid()Description
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
0-18
937 d->usedAnchors &= ~BaselineAnchor;-
938 return;
never executed: return;
0
939 }-
940-
941 QQuickItem *oldBaseline = d->baselineAnchorItem;-
942 d->baselineAnchorItem = edge.item;-
943 d->baselineAnchorLine = edge.anchorLine;-
944 d->remDepend(oldBaseline);-
945 d->addDepend(d->baselineAnchorItem);-
946 emit baselineChanged();-
947 d->updateVerticalAnchors();-
948}
executed 18 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
18
949-
950void QQuickAnchors::resetBaseline()-
951{-
952 Q_D(QQuickAnchors);-
953 d->usedAnchors &= ~BaselineAnchor;-
954 d->remDepend(d->baselineAnchorItem);-
955 d->baselineAnchorItem = nullptr;-
956 d->baselineAnchorLine = QQuickAnchors::InvalidAnchor;-
957 emit baselineChanged();-
958 d->updateVerticalAnchors();-
959}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickstates
4
960-
961QQuickAnchorLine QQuickAnchors::left() const-
962{-
963 Q_D(const QQuickAnchors);-
964 return QQuickAnchorLine(d->leftAnchorItem, d->leftAnchorLine);
executed 76 times by 6 tests: return QQuickAnchorLine(d->leftAnchorItem, d->leftAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
76
965}-
966-
967void QQuickAnchors::setLeft(const QQuickAnchorLine &edge)-
968{-
969 Q_D(QQuickAnchors);-
970 if (!d->checkHAnchorValid(edge) ||
!d->checkHAnchorValid(edge)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 562 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
8-562
971 (d->leftAnchorItem == edge.item && d->leftAnchorLine == edge.anchorLine))
d->leftAnchorItem == edge.itemDescription
TRUEnever evaluated
FALSEevaluated 562 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
d->leftAnchorL...dge.anchorLineDescription
TRUEnever evaluated
FALSEnever evaluated
0-562
972 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanchors
8
973-
974 d->usedAnchors |= LeftAnchor;-
975-
976 if (!d->checkHValid()) {
!d->checkHValid()Description
TRUEnever evaluated
FALSEevaluated 562 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
0-562
977 d->usedAnchors &= ~LeftAnchor;-
978 return;
never executed: return;
0
979 }-
980-
981 QQuickItem *oldLeft = d->leftAnchorItem;-
982 d->leftAnchorItem = edge.item;-
983 d->leftAnchorLine = edge.anchorLine;-
984 d->remDepend(oldLeft);-
985 d->addDepend(d->leftAnchorItem);-
986 emit leftChanged();-
987 d->updateHorizontalAnchors();-
988}
executed 562 times by 17 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
562
989-
990void QQuickAnchors::resetLeft()-
991{-
992 Q_D(QQuickAnchors);-
993 d->usedAnchors &= ~LeftAnchor;-
994 d->remDepend(d->leftAnchorItem);-
995 d->leftAnchorItem = nullptr;-
996 d->leftAnchorLine = QQuickAnchors::InvalidAnchor;-
997 emit leftChanged();-
998 d->updateHorizontalAnchors();-
999}
executed 92 times by 4 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickitem2
  • tst_qquickstates
92
1000-
1001QQuickAnchorLine QQuickAnchors::right() const-
1002{-
1003 Q_D(const QQuickAnchors);-
1004 return QQuickAnchorLine(d->rightAnchorItem, d->rightAnchorLine);
executed 80 times by 6 tests: return QQuickAnchorLine(d->rightAnchorItem, d->rightAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
80
1005}-
1006-
1007void QQuickAnchors::setRight(const QQuickAnchorLine &edge)-
1008{-
1009 Q_D(QQuickAnchors);-
1010 if (!d->checkHAnchorValid(edge) ||
!d->checkHAnchorValid(edge)Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 730 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
8-730
1011 (d->rightAnchorItem == edge.item && d->rightAnchorLine == edge.anchorLine))
d->rightAnchor...m == edge.itemDescription
TRUEnever evaluated
FALSEevaluated 730 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
d->rightAnchor...dge.anchorLineDescription
TRUEnever evaluated
FALSEnever evaluated
0-730
1012 return;
executed 8 times by 1 test: return;
Executed by:
  • tst_qquickanchors
8
1013-
1014 d->usedAnchors |= RightAnchor;-
1015-
1016 if (!d->checkHValid()) {
!d->checkHValid()Description
TRUEnever evaluated
FALSEevaluated 730 times by 15 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
0-730
1017 d->usedAnchors &= ~RightAnchor;-
1018 return;
never executed: return;
0
1019 }-
1020-
1021 QQuickItem *oldRight = d->rightAnchorItem;-
1022 d->rightAnchorItem = edge.item;-
1023 d->rightAnchorLine = edge.anchorLine;-
1024 d->remDepend(oldRight);-
1025 d->addDepend(d->rightAnchorItem);-
1026 emit rightChanged();-
1027 d->updateHorizontalAnchors();-
1028}
executed 730 times by 15 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
730
1029-
1030void QQuickAnchors::resetRight()-
1031{-
1032 Q_D(QQuickAnchors);-
1033 d->usedAnchors &= ~RightAnchor;-
1034 d->remDepend(d->rightAnchorItem);-
1035 d->rightAnchorItem = nullptr;-
1036 d->rightAnchorLine = QQuickAnchors::InvalidAnchor;-
1037 emit rightChanged();-
1038 d->updateHorizontalAnchors();-
1039}
executed 94 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickstates
94
1040-
1041QQuickAnchorLine QQuickAnchors::horizontalCenter() const-
1042{-
1043 Q_D(const QQuickAnchors);-
1044 return QQuickAnchorLine(d->hCenterAnchorItem, d->hCenterAnchorLine);
executed 72 times by 6 tests: return QQuickAnchorLine(d->hCenterAnchorItem, d->hCenterAnchorLine);
Executed by:
  • tst_examples
  • tst_qquickanimations
  • tst_qquickdesignersupport
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
72
1045}-
1046-
1047void QQuickAnchors::setHorizontalCenter(const QQuickAnchorLine &edge)-
1048{-
1049 Q_D(QQuickAnchors);-
1050 if (!d->checkHAnchorValid(edge) ||
!d->checkHAnchorValid(edge)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 1372 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
2-1372
1051 (d->hCenterAnchorItem == edge.item && d->hCenterAnchorLine == edge.anchorLine))
d->hCenterAnch...m == edge.itemDescription
TRUEnever evaluated
FALSEevaluated 1372 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
d->hCenterAnch...dge.anchorLineDescription
TRUEnever evaluated
FALSEnever evaluated
0-1372
1052 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
1053-
1054 d->usedAnchors |= HCenterAnchor;-
1055-
1056 if (!d->checkHValid()) {
!d->checkHValid()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 1370 times by 10 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
2-1370
1057 d->usedAnchors &= ~HCenterAnchor;-
1058 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_qquickanchors
2
1059 }-
1060-
1061 QQuickItem *oldHCenter = d->hCenterAnchorItem;-
1062 d->hCenterAnchorItem = edge.item;-
1063 d->hCenterAnchorLine = edge.anchorLine;-
1064 d->remDepend(oldHCenter);-
1065 d->addDepend(d->hCenterAnchorItem);-
1066 emit horizontalCenterChanged();-
1067 d->updateHorizontalAnchors();-
1068}
executed 1370 times by 10 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
1370
1069-
1070void QQuickAnchors::resetHorizontalCenter()-
1071{-
1072 Q_D(QQuickAnchors);-
1073 d->usedAnchors &= ~HCenterAnchor;-
1074 d->remDepend(d->hCenterAnchorItem);-
1075 d->hCenterAnchorItem = nullptr;-
1076 d->hCenterAnchorLine = QQuickAnchors::InvalidAnchor;-
1077 emit horizontalCenterChanged();-
1078 d->updateHorizontalAnchors();-
1079}
executed 26 times by 4 tests: end of block
Executed by:
  • tst_qquickanchors
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
26
1080-
1081qreal QQuickAnchors::leftMargin() const-
1082{-
1083 Q_D(const QQuickAnchors);-
1084 return d->leftMargin;
executed 42 times by 3 tests: return d->leftMargin;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
  • tst_qquickitem2
42
1085}-
1086-
1087void QQuickAnchors::setLeftMargin(qreal offset)-
1088{-
1089 Q_D(QQuickAnchors);-
1090 d->leftMarginExplicit = true;-
1091 if (d->leftMargin == offset)
d->leftMargin == offsetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_examples
FALSEevaluated 414 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktextinput
2-414
1092 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_examples
2
1093 d->leftMargin = offset;-
1094 if (d->fill)
d->fillDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 410 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktextinput
4-410
1095 d->fillChanged();
executed 4 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
4
1096 else-
1097 d->updateHorizontalAnchors();
executed 410 times by 8 tests: d->updateHorizontalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktextinput
410
1098 emit leftMarginChanged();-
1099}
executed 414 times by 8 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquicktextinput
414
1100-
1101void QQuickAnchors::resetLeftMargin()-
1102{-
1103 Q_D(QQuickAnchors);-
1104 d->leftMarginExplicit = false;-
1105 if (d->leftMargin == d->margins)
d->leftMargin == d->marginsDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-4
1106 return;
never executed: return;
0
1107 d->leftMargin = d->margins;-
1108 if (d->fill)
d->fillDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
2
1109 d->fillChanged();
executed 2 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
2
1110 else-
1111 d->updateHorizontalAnchors();
executed 2 times by 1 test: d->updateHorizontalAnchors();
Executed by:
  • tst_qquickanchors
2
1112 emit leftMarginChanged();-
1113}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
4
1114-
1115qreal QQuickAnchors::rightMargin() const-
1116{-
1117 Q_D(const QQuickAnchors);-
1118 return d->rightMargin;
executed 40 times by 2 tests: return d->rightMargin;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
40
1119}-
1120-
1121void QQuickAnchors::setRightMargin(qreal offset)-
1122{-
1123 Q_D(QQuickAnchors);-
1124 d->rightMarginExplicit = true;-
1125 if (d->rightMargin == offset)
d->rightMargin == offsetDescription
TRUEnever evaluated
FALSEevaluated 208 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
0-208
1126 return;
never executed: return;
0
1127 d->rightMargin = offset;-
1128 if (d->fill)
d->fillDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 202 times by 2 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
6-202
1129 d->fillChanged();
executed 6 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
6
1130 else-
1131 d->updateHorizontalAnchors();
executed 202 times by 2 tests: d->updateHorizontalAnchors();
Executed by:
  • tst_examples
  • tst_qquickanchors
202
1132 emit rightMarginChanged();-
1133}
executed 208 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
208
1134-
1135void QQuickAnchors::resetRightMargin()-
1136{-
1137 Q_D(QQuickAnchors);-
1138 d->rightMarginExplicit = false;-
1139 if (d->rightMargin == d->margins)
d->rightMargin == d->marginsDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-4
1140 return;
never executed: return;
0
1141 d->rightMargin = d->margins;-
1142 if (d->fill)
d->fillDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
2
1143 d->fillChanged();
executed 2 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
2
1144 else-
1145 d->updateHorizontalAnchors();
executed 2 times by 1 test: d->updateHorizontalAnchors();
Executed by:
  • tst_qquickanchors
2
1146 emit rightMarginChanged();-
1147}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
4
1148-
1149qreal QQuickAnchors::margins() const-
1150{-
1151 Q_D(const QQuickAnchors);-
1152 return d->margins;
executed 28 times by 2 tests: return d->margins;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
28
1153}-
1154-
1155void QQuickAnchors::setMargins(qreal offset)-
1156{-
1157 Q_D(QQuickAnchors);-
1158 if (d->margins == offset)
d->margins == offsetDescription
TRUEnever evaluated
FALSEevaluated 1582 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
0-1582
1159 return;
never executed: return;
0
1160 d->margins = offset;-
1161-
1162 bool updateHorizontal = false;-
1163 bool updateVertical = false;-
1164-
1165 if (!d->rightMarginExplicit && d->rightMargin != offset) {
!d->rightMarginExplicitDescription
TRUEevaluated 1574 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
d->rightMargin != offsetDescription
TRUEevaluated 1574 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-1574
1166 d->rightMargin = offset;-
1167 updateHorizontal = true;-
1168 emit rightMarginChanged();-
1169 }
executed 1574 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1574
1170 if (!d->leftMarginExplicit && d->leftMargin != offset) {
!d->leftMarginExplicitDescription
TRUEevaluated 1366 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 216 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
d->leftMargin != offsetDescription
TRUEevaluated 1366 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-1366
1171 d->leftMargin = offset;-
1172 updateHorizontal = true;-
1173 emit leftMarginChanged();-
1174 }
executed 1366 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1366
1175 if (!d->topMarginExplicit && d->topMargin != offset) {
!d->topMarginExplicitDescription
TRUEevaluated 1314 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 268 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
d->topMargin != offsetDescription
TRUEevaluated 1314 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-1314
1176 d->topMargin = offset;-
1177 updateVertical = true;-
1178 emit topMarginChanged();-
1179 }
executed 1314 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1314
1180 if (!d->bottomMarginExplicit && d->bottomMargin != offset) {
!d->bottomMarginExplicitDescription
TRUEevaluated 1384 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 198 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
d->bottomMargin != offsetDescription
TRUEevaluated 1384 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEnever evaluated
0-1384
1181 d->bottomMargin = offset;-
1182 updateVertical = true;-
1183 emit bottomMarginChanged();-
1184 }
executed 1384 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1384
1185-
1186 if (d->fill) {
d->fillDescription
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquicklistview
FALSEevaluated 1566 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
16-1566
1187 if (updateHorizontal || updateVertical)
updateHorizontalDescription
TRUEevaluated 14 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquicklistview
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
updateVerticalDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-14
1188 d->fillChanged();
executed 14 times by 3 tests: d->fillChanged();
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquicklistview
14
1189 } else {
executed 16 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquicklistview
16
1190 if (updateHorizontal)
updateHorizontalDescription
TRUEevaluated 1564 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
2-1564
1191 d->updateHorizontalAnchors();
executed 1564 times by 14 tests: d->updateHorizontalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1564
1192 if (updateVertical)
updateVerticalDescription
TRUEevaluated 1370 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
FALSEevaluated 196 times by 3 tests
Evaluated by:
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
196-1370
1193 d->updateVerticalAnchors();
executed 1370 times by 14 tests: d->updateVerticalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1370
1194 }
executed 1566 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1566
1195-
1196 emit marginsChanged();-
1197}
executed 1582 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmultipointtoucharea
  • tst_qquicktableview
  • tst_rendernode
  • tst_scenegraph
1582
1198-
1199qreal QQuickAnchors::horizontalCenterOffset() const-
1200{-
1201 Q_D(const QQuickAnchors);-
1202 return d->hCenterOffset;
executed 8 times by 2 tests: return d->hCenterOffset;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
8
1203}-
1204-
1205void QQuickAnchors::setHorizontalCenterOffset(qreal offset)-
1206{-
1207 Q_D(QQuickAnchors);-
1208 if (d->hCenterOffset == offset)
d->hCenterOffset == offsetDescription
TRUEnever evaluated
FALSEevaluated 216 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
0-216
1209 return;
never executed: return;
0
1210 d->hCenterOffset = offset;-
1211 if (d->centerIn)
d->centerInDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 212 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
4-212
1212 d->centerInChanged();
executed 4 times by 1 test: d->centerInChanged();
Executed by:
  • tst_qquickanchors
4
1213 else-
1214 d->updateHorizontalAnchors();
executed 212 times by 4 tests: d->updateHorizontalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
212
1215 emit horizontalCenterOffsetChanged();-
1216}
executed 216 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
216
1217-
1218qreal QQuickAnchors::topMargin() const-
1219{-
1220 Q_D(const QQuickAnchors);-
1221 return d->topMargin;
executed 42 times by 3 tests: return d->topMargin;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
  • tst_qquickitem2
42
1222}-
1223-
1224void QQuickAnchors::setTopMargin(qreal offset)-
1225{-
1226 Q_D(QQuickAnchors);-
1227 d->topMarginExplicit = true;-
1228 if (d->topMargin == offset)
d->topMargin == offsetDescription
TRUEnever evaluated
FALSEevaluated 560 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextinput
0-560
1229 return;
never executed: return;
0
1230 d->topMargin = offset;-
1231 if (d->fill)
d->fillDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 552 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextinput
8-552
1232 d->fillChanged();
executed 8 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
8
1233 else-
1234 d->updateVerticalAnchors();
executed 552 times by 7 tests: d->updateVerticalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextinput
552
1235 emit topMarginChanged();-
1236}
executed 560 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquicktextinput
560
1237-
1238void QQuickAnchors::resetTopMargin()-
1239{-
1240 Q_D(QQuickAnchors);-
1241 d->topMarginExplicit = false;-
1242 if (d->topMargin == d->margins)
d->topMargin == d->marginsDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-4
1243 return;
never executed: return;
0
1244 d->topMargin = d->margins;-
1245 if (d->fill)
d->fillDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
2
1246 d->fillChanged();
executed 2 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
2
1247 else-
1248 d->updateVerticalAnchors();
executed 2 times by 1 test: d->updateVerticalAnchors();
Executed by:
  • tst_qquickanchors
2
1249 emit topMarginChanged();-
1250}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
4
1251-
1252qreal QQuickAnchors::bottomMargin() const-
1253{-
1254 Q_D(const QQuickAnchors);-
1255 return d->bottomMargin;
executed 40 times by 2 tests: return d->bottomMargin;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
40
1256}-
1257-
1258void QQuickAnchors::setBottomMargin(qreal offset)-
1259{-
1260 Q_D(QQuickAnchors);-
1261 d->bottomMarginExplicit = true;-
1262 if (d->bottomMargin == offset)
d->bottomMargin == offsetDescription
TRUEnever evaluated
FALSEevaluated 302 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
0-302
1263 return;
never executed: return;
0
1264 d->bottomMargin = offset;-
1265 if (d->fill)
d->fillDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 296 times by 7 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
6-296
1266 d->fillChanged();
executed 6 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
6
1267 else-
1268 d->updateVerticalAnchors();
executed 296 times by 7 tests: d->updateVerticalAnchors();
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
296
1269 emit bottomMarginChanged();-
1270}
executed 302 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
302
1271-
1272void QQuickAnchors::resetBottomMargin()-
1273{-
1274 Q_D(QQuickAnchors);-
1275 d->bottomMarginExplicit = false;-
1276 if (d->bottomMargin == d->margins)
d->bottomMargin == d->marginsDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-4
1277 return;
never executed: return;
0
1278 d->bottomMargin = d->margins;-
1279 if (d->fill)
d->fillDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
2
1280 d->fillChanged();
executed 2 times by 1 test: d->fillChanged();
Executed by:
  • tst_qquickanchors
2
1281 else-
1282 d->updateVerticalAnchors();
executed 2 times by 1 test: d->updateVerticalAnchors();
Executed by:
  • tst_qquickanchors
2
1283 emit bottomMarginChanged();-
1284}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
4
1285-
1286qreal QQuickAnchors::verticalCenterOffset() const-
1287{-
1288 Q_D(const QQuickAnchors);-
1289 return d->vCenterOffset;
executed 8 times by 2 tests: return d->vCenterOffset;
Executed by:
  • tst_qquickanchors
  • tst_qquickdesignersupport
8
1290}-
1291-
1292void QQuickAnchors::setVerticalCenterOffset(qreal offset)-
1293{-
1294 Q_D(QQuickAnchors);-
1295 if (d->vCenterOffset == offset)
d->vCenterOffset == offsetDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-16
1296 return;
never executed: return;
0
1297 d->vCenterOffset = offset;-
1298 if (d->centerIn)
d->centerInDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquickanchors
4-12
1299 d->centerInChanged();
executed 4 times by 1 test: d->centerInChanged();
Executed by:
  • tst_qquickanchors
4
1300 else-
1301 d->updateVerticalAnchors();
executed 12 times by 1 test: d->updateVerticalAnchors();
Executed by:
  • tst_qquickanchors
12
1302 emit verticalCenterOffsetChanged();-
1303}
executed 16 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
16
1304-
1305qreal QQuickAnchors::baselineOffset() const-
1306{-
1307 Q_D(const QQuickAnchors);-
1308 return d->baselineOffset;
executed 4 times by 1 test: return d->baselineOffset;
Executed by:
  • tst_qquickdesignersupport
4
1309}-
1310-
1311void QQuickAnchors::setBaselineOffset(qreal offset)-
1312{-
1313 Q_D(QQuickAnchors);-
1314 if (d->baselineOffset == offset)
d->baselineOffset == offsetDescription
TRUEnever evaluated
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
0-4
1315 return;
never executed: return;
0
1316 d->baselineOffset = offset;-
1317 d->updateVerticalAnchors();-
1318 emit baselineOffsetChanged();-
1319}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qquickanchors
4
1320-
1321QQuickAnchors::Anchors QQuickAnchors::usedAnchors() const-
1322{-
1323 Q_D(const QQuickAnchors);-
1324 return static_cast<QQuickAnchors::Anchors>(d->usedAnchors);
executed 4233 times by 25 tests: return static_cast<QQuickAnchors::Anchors>(d->usedAnchors);
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qqmlbinding
  • tst_qqmlproperty
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickfontloader_static
  • tst_qquickgridview
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktaphandler
  • tst_qquicktext
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_scenegraph
4233
1325}-
1326-
1327Qt::Orientations QQuickAnchors::activeDirections() const-
1328{-
1329 Q_D(const QQuickAnchors);-
1330 if (d->fill || d->centerIn)
d->fillDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklayouts
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_qquicklayouts
d->centerInDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquicklayouts
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qquicklayouts
2-14
1331 return Qt::Horizontal | Qt::Vertical;
executed 4 times by 1 test: return Qt::Horizontal | Qt::Vertical;
Executed by:
  • tst_qquicklayouts
4
1332 Qt::Orientations o;-
1333 if (d->usedAnchors & QQuickAnchors::Horizontal_Mask)
d->usedAnchors...orizontal_MaskDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicklayouts
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicklayouts
6
1334 o |= Qt::Horizontal;
executed 6 times by 1 test: o |= Qt::Horizontal;
Executed by:
  • tst_qquicklayouts
6
1335 if (d->usedAnchors & QQuickAnchors::Vertical_Mask)
d->usedAnchors...:Vertical_MaskDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicklayouts
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquicklayouts
6
1336 o |= Qt::Vertical;
executed 6 times by 1 test: o |= Qt::Vertical;
Executed by:
  • tst_qquicklayouts
6
1337 return o;
executed 12 times by 1 test: return o;
Executed by:
  • tst_qquicklayouts
12
1338}-
1339-
1340bool QQuickAnchorsPrivate::checkHValid() const-
1341{-
1342 if (usedAnchors & QQuickAnchors::LeftAnchor &&
usedAnchors & ...rs::LeftAnchorDescription
TRUEevaluated 826 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 1838 times by 14 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_rendernode
826-1838
1343 usedAnchors & QQuickAnchors::RightAnchor &&
usedAnchors & ...s::RightAnchorDescription
TRUEevaluated 250 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
FALSEevaluated 576 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
250-576
1344 usedAnchors & QQuickAnchors::HCenterAnchor) {
usedAnchors & ...:HCenterAnchorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 248 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickstates
  • tst_qquickvisualdatamodel
  • tst_touchmouse
2-248
1345 qmlWarning(item) << QQuickAnchors::tr("Cannot specify left, right, and horizontalCenter anchors at the same time.");-
1346 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
2
1347 }-
1348-
1349 return true;
executed 2662 times by 21 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
2662
1350}-
1351-
1352bool QQuickAnchorsPrivate::checkHAnchorValid(QQuickAnchorLine anchor) const-
1353{-
1354 if (!anchor.item) {
!anchor.itemDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2676 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
6-2676
1355 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor to a null item.");-
1356 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
6
1357 } else if (anchor.anchorLine & QQuickAnchors::Vertical_Mask) {
anchor.anchorL...:Vertical_MaskDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2672 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
4-2672
1358 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor a horizontal edge to a vertical edge.");-
1359 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
4
1360 } else if (anchor.item != readParentItem(item)
anchor.item !=...rentItem(item)Description
TRUEevaluated 356 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
FALSEevaluated 2316 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
356-2316
1361 && readParentItem(anchor.item) != readParentItem(item)) {
readParentItem...rentItem(item)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 352 times by 8 tests
Evaluated by:
  • tst_examples
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_touchmouse
4-352
1362 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor to an item that isn't a parent or sibling.");-
1363 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
4
1364 } else if (anchor.item == item) {
anchor.item == itemDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 2664 times by 21 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
4-2664
1365 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor item to self.");-
1366 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
4
1367 }-
1368-
1369 return true;
executed 2664 times by 21 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
2664
1370}-
1371-
1372bool QQuickAnchorsPrivate::checkVValid() const-
1373{-
1374 if (usedAnchors & QQuickAnchors::TopAnchor &&
usedAnchors & ...ors::TopAnchorDescription
TRUEevaluated 1420 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
FALSEevaluated 1660 times by 17 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_rendernode
1420-1660
1375 usedAnchors & QQuickAnchors::BottomAnchor &&
usedAnchors & ...::BottomAnchorDescription
TRUEevaluated 412 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
FALSEevaluated 1008 times by 20 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
412-1008
1376 usedAnchors & QQuickAnchors::VCenterAnchor) {
usedAnchors & ...:VCenterAnchorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 410 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquickvisualdatamodel
2-410
1377 qmlWarning(item) << QQuickAnchors::tr("Cannot specify top, bottom, and verticalCenter anchors at the same time.");-
1378 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
2
1379 } else if (usedAnchors & QQuickAnchors::BaselineAnchor &&
usedAnchors & ...BaselineAnchorDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
FALSEevaluated 3058 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
20-3058
1380 (usedAnchors & QQuickAnchors::TopAnchor ||
usedAnchors & ...ors::TopAnchorDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
2-18
1381 usedAnchors & QQuickAnchors::BottomAnchor ||
usedAnchors & ...::BottomAnchorDescription
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
0-18
1382 usedAnchors & QQuickAnchors::VCenterAnchor)) {
usedAnchors & ...:VCenterAnchorDescription
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_qquickanchors
  • tst_qquickstates
0-18
1383 qmlWarning(item) << QQuickAnchors::tr("Baseline anchor cannot be used in conjunction with top, bottom, or verticalCenter anchors.");-
1384 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
2
1385 }-
1386-
1387 return true;
executed 3076 times by 23 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
3076
1388}-
1389-
1390bool QQuickAnchorsPrivate::checkVAnchorValid(QQuickAnchorLine anchor) const-
1391{-
1392 if (!anchor.item) {
!anchor.itemDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 3100 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
8-3100
1393 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor to a null item.");-
1394 return false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
8
1395 } else if (anchor.anchorLine & QQuickAnchors::Horizontal_Mask) {
anchor.anchorL...orizontal_MaskDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 3094 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
6-3094
1396 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor a vertical edge to a horizontal edge.");-
1397 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
6
1398 } else if (anchor.item != readParentItem(item)
anchor.item !=...rentItem(item)Description
TRUEevaluated 306 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
FALSEevaluated 2788 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
306-2788
1399 && readParentItem(anchor.item) != readParentItem(item)) {
readParentItem...rentItem(item)Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 300 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
6-300
1400 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor to an item that isn't a parent or sibling.");-
1401 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
6
1402 } else if (anchor.item == item){
anchor.item == itemDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_qquickanchors
FALSEevaluated 3082 times by 23 tests
Evaluated by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
6-3082
1403 qmlWarning(item) << QQuickAnchors::tr("Cannot anchor item to self.");-
1404 return false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_qquickanchors
6
1405 }-
1406-
1407 return true;
executed 3082 times by 23 tests: return true;
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_qquickaccessible
  • tst_qquickanchors
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshadereffect
  • tst_qquickstates
  • tst_qquicktextedit
  • tst_qquicktextinput
  • tst_qquickvisualdatamodel
  • tst_rendernode
  • tst_touchmouse
3082
1408}-
1409-
1410QT_END_NAMESPACE-
1411-
1412#include <moc_qquickanchors_p.cpp>-
1413-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0