Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlvaluetypeproxybinding.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||
2 | - | |||||||||||||||||||
3 | - | |||||||||||||||||||
4 | QQmlValueTypeProxyBinding::QQmlValueTypeProxyBinding(QObject *o, QQmlPropertyIndex index) | - | ||||||||||||||||||
5 | : QQmlAbstractBinding(), | - | ||||||||||||||||||
6 | m_bindings(nullptr) | - | ||||||||||||||||||
7 | { | - | ||||||||||||||||||
8 | m_target = o; | - | ||||||||||||||||||
9 | m_targetIndex = index; | - | ||||||||||||||||||
10 | } executed 1364 times by 12 tests: end of block Executed by:
| 1364 | ||||||||||||||||||
11 | - | |||||||||||||||||||
12 | QQmlValueTypeProxyBinding::~QQmlValueTypeProxyBinding() | - | ||||||||||||||||||
13 | { | - | ||||||||||||||||||
14 | QQmlAbstractBinding *binding = m_bindings.data(); | - | ||||||||||||||||||
15 | while (binding
| 1362-2178 | ||||||||||||||||||
16 | binding->setAddedToObject(false); | - | ||||||||||||||||||
17 | binding = binding->nextBinding(); | - | ||||||||||||||||||
18 | } executed 2178 times by 10 tests: end of block Executed by:
| 2178 | ||||||||||||||||||
19 | } executed 1362 times by 11 tests: end of block Executed by:
| 1362 | ||||||||||||||||||
20 | - | |||||||||||||||||||
21 | void QQmlValueTypeProxyBinding::setEnabled(bool e, QQmlPropertyData::WriteFlags flags) | - | ||||||||||||||||||
22 | { | - | ||||||||||||||||||
23 | QQmlAbstractBinding *b = m_bindings.data(); | - | ||||||||||||||||||
24 | while (b
| 8-10 | ||||||||||||||||||
25 | b->setEnabled(e, flags); | - | ||||||||||||||||||
26 | b = b->nextBinding(); | - | ||||||||||||||||||
27 | } executed 8 times by 1 test: end of block Executed by:
| 8 | ||||||||||||||||||
28 | } executed 10 times by 1 test: end of block Executed by:
| 10 | ||||||||||||||||||
29 | - | |||||||||||||||||||
30 | bool QQmlValueTypeProxyBinding::isValueTypeProxy() const | - | ||||||||||||||||||
31 | { | - | ||||||||||||||||||
32 | return executed 1170 times by 9 tests: true;return true; Executed by:
executed 1170 times by 9 tests: return true; Executed by:
| 1170 | ||||||||||||||||||
33 | } | - | ||||||||||||||||||
34 | - | |||||||||||||||||||
35 | QQmlAbstractBinding *QQmlValueTypeProxyBinding::subBindings() const | - | ||||||||||||||||||
36 | { | - | ||||||||||||||||||
37 | return executed 2 times by 1 test: m_bindings.data();return m_bindings.data(); Executed by:
executed 2 times by 1 test: return m_bindings.data(); Executed by:
| 2 | ||||||||||||||||||
38 | } | - | ||||||||||||||||||
39 | - | |||||||||||||||||||
40 | QQmlAbstractBinding *QQmlValueTypeProxyBinding::binding(QQmlPropertyIndex propertyIndex) const | - | ||||||||||||||||||
41 | { | - | ||||||||||||||||||
42 | QQmlAbstractBinding *binding = m_bindings.data(); | - | ||||||||||||||||||
43 | - | |||||||||||||||||||
44 | while (binding
| 4-20 | ||||||||||||||||||
45 | binding = binding->nextBinding(); executed 4 times by 1 test: binding = binding->nextBinding(); Executed by:
| 4 | ||||||||||||||||||
46 | - | |||||||||||||||||||
47 | return executed 24 times by 1 test: binding;return binding; Executed by:
executed 24 times by 1 test: return binding; Executed by:
| 24 | ||||||||||||||||||
48 | } | - | ||||||||||||||||||
49 | - | |||||||||||||||||||
50 | - | |||||||||||||||||||
51 | - | |||||||||||||||||||
52 | - | |||||||||||||||||||
53 | void QQmlValueTypeProxyBinding::removeBindings(quint32 mask) | - | ||||||||||||||||||
54 | { | - | ||||||||||||||||||
55 | QQmlAbstractBinding *binding = m_bindings.data(); | - | ||||||||||||||||||
56 | QQmlAbstractBinding *lastBinding = nullptr; | - | ||||||||||||||||||
57 | - | |||||||||||||||||||
58 | while (binding
| 8 | ||||||||||||||||||
59 | const int valueTypeIndex = binding->targetPropertyIndex().valueTypeIndex(); | - | ||||||||||||||||||
60 | if (valueTypeIndex != -1
| 0-8 | ||||||||||||||||||
61 | QQmlAbstractBinding *remove = binding; | - | ||||||||||||||||||
62 | remove->setAddedToObject(false); | - | ||||||||||||||||||
63 | binding = remove->nextBinding(); | - | ||||||||||||||||||
64 | - | |||||||||||||||||||
65 | if (lastBinding == nullptr
| 0-6 | ||||||||||||||||||
66 | m_bindings = remove->nextBinding(); executed 6 times by 2 tests: m_bindings = remove->nextBinding(); Executed by:
| 6 | ||||||||||||||||||
67 | else | - | ||||||||||||||||||
68 | lastBinding->setNextBinding(remove->nextBinding()); never executed: lastBinding->setNextBinding(remove->nextBinding()); | 0 | ||||||||||||||||||
69 | } else { | - | ||||||||||||||||||
70 | lastBinding = binding; | - | ||||||||||||||||||
71 | binding = binding->nextBinding(); | - | ||||||||||||||||||
72 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||
73 | } | - | ||||||||||||||||||
74 | } executed 8 times by 2 tests: end of block Executed by:
| 8 | ||||||||||||||||||
75 | - | |||||||||||||||||||
76 | - | |||||||||||||||||||
Switch to Source code | Preprocessed file |