Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | void QPropertyAnimationPrivate::updateMetaProperty() | - |
8 | { | - |
9 | if (!targetTRUE | never evaluated | FALSE | evaluated 3145 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
|| propertyName.isEmpty()TRUE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 2110 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 0-3145 |
10 | propertyType = QVariant::Invalid; | - |
11 | propertyIndex = -1; | - |
12 | return;executed 1035 times by 23 tests: return; Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 1035 |
13 | } | - |
14 | | - |
15 | | - |
16 | | - |
17 | propertyType = targetValue->property(propertyName).userType(); | - |
18 | propertyIndex = targetValue->metaObject()->indexOfProperty(propertyName); | - |
19 | | - |
20 | if (propertyType != QVariant::InvalidTRUE | evaluated 2110 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | never evaluated |
) | 0-2110 |
21 | convertValues(propertyType);executed 2110 times by 23 tests: convertValues(propertyType); Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 2110 |
22 | if (propertyIndex == -1TRUE | evaluated 181 times by 6 testsEvaluated by:- tst_QAnimationGroup
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
| FALSE | evaluated 1929 times by 21 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 181-1929 |
23 | | - |
24 | propertyType = QVariant::Invalid; | - |
25 | if (!targetValue->dynamicPropertyNames().contains(propertyName)TRUE | never evaluated | FALSE | evaluated 181 times by 6 testsEvaluated by:- tst_QAnimationGroup
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
|
) | 0-181 |
26 | QMessageLogger(__FILE__, 119, __PRETTY_FUNCTION__).warning("QPropertyAnimation: you're trying to animate a non-existing property %s of your QObject", propertyName.constData()); never executed: QMessageLogger(__FILE__, 119, __PRETTY_FUNCTION__).warning("QPropertyAnimation: you're trying to animate a non-existing property %s of your QObject", propertyName.constData()); | 0 |
27 | }executed 181 times by 6 tests: end of block Executed by:- tst_QAnimationGroup
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
else if (!targetValue->metaObject()->property(propertyIndex).isWritable()TRUE | never evaluated | FALSE | evaluated 1929 times by 21 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 0-1929 |
28 | QMessageLogger(__FILE__, 121, __PRETTY_FUNCTION__).warning("QPropertyAnimation: you're trying to animate the non-writable property %s of your QObject", propertyName.constData()); | - |
29 | } never executed: end of block | 0 |
30 | }executed 2110 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 2110 |
31 | | - |
32 | void QPropertyAnimationPrivate::updateProperty(const QVariant &newValue) | - |
33 | { | - |
34 | if (state == QAbstractAnimation::StoppedTRUE | evaluated 101 times by 4 testsEvaluated by:- tst_QColumnView
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
| FALSE | evaluated 4023 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) | 101-4023 |
35 | return;executed 101 times by 4 tests: return; Executed by:- tst_QColumnView
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
| 101 |
36 | | - |
37 | if (!targetTRUE | evaluated 2 times by 2 testsEvaluated by:- tst_QLineEdit
- tst_QPropertyAnimation
| FALSE | evaluated 4021 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 2-4021 |
38 | q_func()->stop(); | - |
39 | return;executed 2 times by 2 tests: return; Executed by:- tst_QLineEdit
- tst_QPropertyAnimation
| 2 |
40 | } | - |
41 | | - |
42 | if (newValue.userType() == propertyTypeTRUE | evaluated 2929 times by 20 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 1092 times by 6 testsEvaluated by:- tst_QAnimationGroup
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
|
) { | 1092-2929 |
43 | | - |
44 | | - |
45 | int status = -1; | - |
46 | int flags = 0; | - |
47 | void *argv[] = { const_cast<void *>(newValue.constData()), const_cast<QVariant *>(&newValue), &status, &flags }; | - |
48 | QMetaObject::metacall(targetValue, QMetaObject::WriteProperty, propertyIndex, argv); | - |
49 | }executed 2929 times by 20 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
else { | 2929 |
50 | targetValue->setProperty(propertyName.constData(), newValue); | - |
51 | }executed 1092 times by 6 tests: end of block Executed by:- tst_QAnimationGroup
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
| 1092 |
52 | } | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | QPropertyAnimation::QPropertyAnimation(QObject *parent) | - |
59 | : QVariantAnimation(*new QPropertyAnimationPrivate, parent) | - |
60 | { | - |
61 | }executed 111 times by 4 tests: end of block Executed by:- tst_QAnimationGroup
- tst_QColumnView
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
| 111 |
62 | QPropertyAnimation::QPropertyAnimation(QObject *target, const QByteArray &propertyName, QObject *parent) | - |
63 | : QVariantAnimation(*new QPropertyAnimationPrivate, parent) | - |
64 | { | - |
65 | setTargetObject(target); | - |
66 | setPropertyName(propertyName); | - |
67 | }executed 964 times by 22 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 964 |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | QPropertyAnimation::~QPropertyAnimation() | - |
73 | { | - |
74 | stop(); | - |
75 | }executed 1071 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 1071 |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
82 | | - |
83 | QObject *QPropertyAnimation::targetObject() const | - |
84 | { | - |
85 | returnexecuted 898 times by 17 tests: return d_func()->target.data(); Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
d_func()->target.data();executed 898 times by 17 tests: return d_func()->target.data(); Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 898 |
86 | } | - |
87 | | - |
88 | void QPropertyAnimation::setTargetObject(QObject *target) | - |
89 | { | - |
90 | QPropertyAnimationPrivate * const d = d_func(); | - |
91 | if (d->target.data() == targetTRUE | never evaluated | FALSE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) | 0-1035 |
92 | return; never executed: return; | 0 |
93 | | - |
94 | if (d->state != QAbstractAnimation::StoppedTRUE | never evaluated | FALSE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 0-1035 |
95 | QMessageLogger(__FILE__, 196, __PRETTY_FUNCTION__).warning("QPropertyAnimation::setTargetObject: you can't change the target of a running animation"); | - |
96 | return; never executed: return; | 0 |
97 | } | - |
98 | | - |
99 | d->target = d->targetValue = target; | - |
100 | d->updateMetaProperty(); | - |
101 | }executed 1035 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 1035 |
102 | QByteArray QPropertyAnimation::propertyName() const | - |
103 | { | - |
104 | const QPropertyAnimationPrivate * const d = d_func(); | - |
105 | returnexecuted 46 times by 1 test: return d->propertyName; d->propertyName;executed 46 times by 1 test: return d->propertyName; | 46 |
106 | } | - |
107 | | - |
108 | void QPropertyAnimation::setPropertyName(const QByteArray &propertyName) | - |
109 | { | - |
110 | QPropertyAnimationPrivate * const d = d_func(); | - |
111 | if (d->state != QAbstractAnimation::StoppedTRUE | never evaluated | FALSE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 0-1035 |
112 | QMessageLogger(__FILE__, 221, __PRETTY_FUNCTION__).warning("QPropertyAnimation::setPropertyName: you can't change the property name of a running animation"); | - |
113 | return; never executed: return; | 0 |
114 | } | - |
115 | | - |
116 | d->propertyName = propertyName; | - |
117 | d->updateMetaProperty(); | - |
118 | }executed 1035 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 1035 |
119 | | - |
120 | | - |
121 | | - |
122 | | - |
123 | | - |
124 | bool QPropertyAnimation::event(QEvent *event) | - |
125 | { | - |
126 | returnexecuted 448 times by 17 tests: return QVariantAnimation::event(event); Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QShortcut
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
QVariantAnimation::event(event);executed 448 times by 17 tests: return QVariantAnimation::event(event); Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QShortcut
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 448 |
127 | } | - |
128 | void QPropertyAnimation::updateCurrentValue(const QVariant &value) | - |
129 | { | - |
130 | QPropertyAnimationPrivate * const d = d_func(); | - |
131 | d->updateProperty(value); | - |
132 | }executed 4124 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 4124 |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
140 | void QPropertyAnimation::updateState(QAbstractAnimation::State newState, | - |
141 | QAbstractAnimation::State oldState) | - |
142 | { | - |
143 | QPropertyAnimationPrivate * const d = d_func(); | - |
144 | | - |
145 | if (!d->targetTRUE | evaluated 7 times by 4 testsEvaluated by:- tst_QLineEdit
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
| FALSE | evaluated 2168 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
&& oldState == StoppedTRUE | never evaluated | FALSE | evaluated 7 times by 4 testsEvaluated by:- tst_QLineEdit
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QStateMachine
|
) { | 0-2168 |
146 | QMessageLogger(__FILE__, 263, __PRETTY_FUNCTION__).warning("QPropertyAnimation::updateState (%s): Changing state of an animation without target", | - |
147 | d->propertyName.constData()); | - |
148 | return; never executed: return; | 0 |
149 | } | - |
150 | | - |
151 | QVariantAnimation::updateState(newState, oldState); | - |
152 | | - |
153 | QPropertyAnimation *animToStop = 0; | - |
154 | { | - |
155 | | - |
156 | static QBasicMutex mutex; | - |
157 | QMutexLocker locker(&mutex); | - |
158 | | - |
159 | typedef QPair<QObject *, QByteArray> QPropertyAnimationPair; | - |
160 | typedef QHash<QPropertyAnimationPair, QPropertyAnimation*> QPropertyAnimationHash; | - |
161 | static QPropertyAnimationHash hash; | - |
162 | | - |
163 | | - |
164 | QPropertyAnimationPair key(d->targetValue, d->propertyName); | - |
165 | if (newState == RunningTRUE | evaluated 1075 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 1100 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 1075-1100 |
166 | d->updateMetaProperty(); | - |
167 | animToStop = hash.value(key, 0); | - |
168 | hash.insert(key, this); | - |
169 | locker.unlock(); | - |
170 | | - |
171 | if (oldState == StoppedTRUE | evaluated 1071 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 4 times by 2 testsEvaluated by:- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
|
) { | 4-1071 |
172 | d->setDefaultStartEndValue(d->targetValue->property(d->propertyName.constData())); | - |
173 | | - |
174 | if (!startValue().isValid()TRUE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 36 times by 1 test |
&& (d->direction == BackwardTRUE | never evaluated | FALSE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
|| !d->defaultStartEndValue.isValid()TRUE | never evaluated | FALSE | evaluated 1035 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
)) { | 0-1035 |
175 | QMessageLogger(__FILE__, 292, __PRETTY_FUNCTION__).warning("QPropertyAnimation::updateState (%s, %s, %s): starting an animation without start value", | - |
176 | d->propertyName.constData(), d->target.data()->metaObject()->className(), | - |
177 | QString(d->target.data()->objectName()).toLocal8Bit().constData()); | - |
178 | } never executed: end of block | 0 |
179 | if (!endValue().isValid()TRUE | evaluated 2 times by 1 test | FALSE | evaluated 1069 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
&& (d->direction == ForwardTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
|| !d->defaultStartEndValue.isValid()TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
)) { | 0-1069 |
180 | QMessageLogger(__FILE__, 297, __PRETTY_FUNCTION__).warning("QPropertyAnimation::updateState (%s, %s, %s): starting an animation without end value", | - |
181 | d->propertyName.constData(), d->target.data()->metaObject()->className(), | - |
182 | QString(d->target.data()->objectName()).toLocal8Bit().constData()); | - |
183 | } never executed: end of block | 0 |
184 | }executed 1071 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 1071 |
185 | }executed 1075 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
else if (hash.value(key) == thisTRUE | evaluated 1074 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| FALSE | evaluated 26 times by 3 testsEvaluated by:- tst_QParallelAnimationGroup
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
|
) { | 26-1075 |
186 | hash.remove(key); | - |
187 | }executed 1074 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 1074 |
188 | } | - |
189 | | - |
190 | | - |
191 | if (animToStopTRUE | evaluated 1 time by 1 test | FALSE | evaluated 2174 times by 23 testsEvaluated by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
|
) { | 1-2174 |
192 | | - |
193 | QAbstractAnimation *current = animToStop; | - |
194 | while (current->group()TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
&& current->state() != StoppedTRUE | never evaluated | FALSE | never evaluated |
) | 0-1 |
195 | current = current->group(); never executed: current = current->group(); | 0 |
196 | current->stop(); | - |
197 | }executed 1 time by 1 test: end of block | 1 |
198 | }executed 2175 times by 23 tests: end of block Executed by:- tst_Gestures
- tst_QAccessibility
- tst_QAnimationGroup
- tst_QColumnView
- tst_QDockWidget
- tst_QGraphicsProxyWidget
- tst_QLineEdit
- tst_QMainWindow
- tst_QMdiArea
- tst_QMdiSubWindow
- tst_QMenu
- tst_QParallelAnimationGroup
- tst_QPauseAnimation
- tst_QPrinter
- tst_QPropertyAnimation
- tst_QSequentialAnimationGroup
- tst_QShortcut
- tst_QStateMachine
- tst_QStyleSheetStyle
- tst_QToolBar
- tst_QWidget
- tst_QWidget_window
- tst_QWindowContainer
| 2175 |
199 | | - |
200 | | - |
201 | | - |
| | |