qabstractanimation.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/animation/qabstractanimation.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12typedef QList<QAbstractAnimationTimer*>::ConstIterator TimerListConstIt;-
13typedef QList<QAbstractAnimation*>::ConstIterator AnimationListConstIt;-
14namespace { namespace Q_QGS_unifiedTimer { typedef QThreadStorage<QUnifiedTimer *> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 28 times by 28 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qtreewidget - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 28 times by 28 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qtreewidget - unknown status
  • ...
}
executed 28 times by 28 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qtreewidget - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 9634 times by 54 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
&holder.value;
executed 9634 times by 54 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
} } } static QGlobalStatic<QThreadStorage<QUnifiedTimer *>, Q_QGS_unifiedTimer::innerFunction, Q_QGS_unifiedTimer::guard> unifiedTimer;
0-9634
15-
16-
17QUnifiedTimer::QUnifiedTimer() :-
18 QObject(), defaultDriver(this), lastTick(0), timingInterval(16),-
19 currentAnimationIdx(0), insideTick(false), insideRestart(false), consistentTiming(false), slowMode(false),-
20 startTimersPending(false), stopTimerPending(false),-
21 slowdownFactor(5.0f), profilerCallback(0),-
22 driverStartTime(0), temporalDrift(0)-
23{-
24 time.invalidate();-
25 driver = &defaultDriver;-
26}
executed 26 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
26
27-
28-
29QUnifiedTimer *QUnifiedTimer::instance(bool create)-
30{-
31 QUnifiedTimer *inst;-
32-
33 if (create
createDescription
TRUEevaluated 2356 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 1296 times by 54 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
&& !unifiedTimer()->hasLocalData()
!unifiedTimer(...hasLocalData()Description
TRUEevaluated 26 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 2330 times by 23 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindowContainer
) {
26-2356
34 inst = new QUnifiedTimer;-
35 unifiedTimer()->setLocalData(inst);-
36 }
executed 26 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
else {
26
37 inst = unifiedTimer()
unifiedTimer()Description
TRUEevaluated 3626 times by 54 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEnever evaluated
? unifiedTimer()->localData() : 0;
0-3626
38 }
executed 3626 times by 54 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
3626
39-
40-
41-
42-
43 return
executed 3652 times by 54 tests: return inst;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
inst;
executed 3652 times by 54 tests: return inst;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
3652
44}-
45-
46QUnifiedTimer *QUnifiedTimer::instance()-
47{-
48 return
executed 2235 times by 26 tests: return instance(true);
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
instance(true);
executed 2235 times by 26 tests: return instance(true);
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
2235
49}-
50-
51void QUnifiedTimer::maybeUpdateAnimationsToCurrentTime()-
52{-
53 if (elapsed() - lastTick > 50
elapsed() - lastTick > 50Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractAnimation
FALSEevaluated 283 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
)
2-283
54 updateAnimationTimers(-1);
executed 2 times by 1 test: updateAnimationTimers(-1);
Executed by:
  • tst_QAbstractAnimation
2
55}
executed 285 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
285
56-
57qint64 QUnifiedTimer::elapsed() const-
58{-
59 if (driver->isRunning()
driver->isRunning()Description
TRUEevaluated 2054 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 397 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
)
397-2054
60 return
executed 2054 times by 12 tests: return driverStartTime + driver->elapsed();
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
driverStartTime + driver->elapsed();
executed 2054 times by 12 tests: return driverStartTime + driver->elapsed();
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
2054
61 else if (time.isValid()
time.isValid()Description
TRUEevaluated 147 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 250 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
)
147-250
62 return
executed 147 times by 12 tests: return time.elapsed() + temporalDrift;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
time.elapsed() + temporalDrift;
executed 147 times by 12 tests: return time.elapsed() + temporalDrift;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
147
63-
64-
65-
66-
67 return
executed 250 times by 26 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
0;
executed 250 times by 26 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
250
68}-
69-
70void QUnifiedTimer::startAnimationDriver()-
71{-
72 if (driver->isRunning()
driver->isRunning()Description
TRUEnever evaluated
FALSEevaluated 123 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
) {
0-123
73 QMessageLogger(__FILE__, 272, __PRETTY_FUNCTION__).warning("QUnifiedTimer::startAnimationDriver: driver is already running...");-
74 return;
never executed: return;
0
75 }-
76-
77-
78-
79 driverStartTime = elapsed();-
80 driver->start();-
81}
executed 123 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
123
82-
83void QUnifiedTimer::stopAnimationDriver()-
84{-
85 if (!driver->isRunning()
!driver->isRunning()Description
TRUEnever evaluated
FALSEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
) {
0-118
86 QMessageLogger(__FILE__, 285, __PRETTY_FUNCTION__).warning("QUnifiedTimer::stopAnimationDriver: driver is not running");-
87 return;
never executed: return;
0
88 }-
89-
90-
91-
92 temporalDrift = elapsed() - time.elapsed();-
93 driver->stop();-
94}
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
95-
96void QUnifiedTimer::updateAnimationTimers(qint64)-
97{-
98-
99 if(insideTick
insideTickDescription
TRUEnever evaluated
FALSEevaluated 1925 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
0-1925
100 return;
never executed: return;
0
101-
102 qint64 totalElapsed = elapsed();-
103-
104-
105 qint64 delta = (consistentTiming
consistentTimingDescription
TRUEevaluated 96 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
FALSEevaluated 1829 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
&& !pauseTimer.isActive()
!pauseTimer.isActive()Description
TRUEevaluated 78 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
) ?
18-1829
106 timingInterval : totalElapsed - lastTick;-
107 if (slowMode
slowModeDescription
TRUEnever evaluated
FALSEevaluated 1925 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
) {
0-1925
108 if (slowdownFactor > 0
slowdownFactor > 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
109 delta = qRound(delta / slowdownFactor);
never executed: delta = qRound(delta / slowdownFactor);
0
110 else-
111 delta = 0;
never executed: delta = 0;
0
112 }-
113-
114 lastTick = totalElapsed;-
115-
116-
117-
118-
119-
120-
121 if (delta > 0
delta > 0Description
TRUEevaluated 1923 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QAbstractAnimation
) {
2-1923
122 insideTick = true;-
123 if (profilerCallback
profilerCallbackDescription
TRUEnever evaluated
FALSEevaluated 1923 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
0-1923
124 profilerCallback(delta);
never executed: profilerCallback(delta);
0
125 for (currentAnimationIdx = 0; currentAnimationIdx < animationTimers.count()
currentAnimati...Timers.count()Description
TRUEevaluated 1905 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1923 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
; ++currentAnimationIdx) {
1905-1923
126 QAbstractAnimationTimer *animation = animationTimers.at(currentAnimationIdx);-
127 animation->updateAnimationsTime(delta);-
128 }
executed 1905 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1905
129 insideTick = false;-
130 currentAnimationIdx = 0;-
131 }
executed 1923 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1923
132}
executed 1925 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1925
133-
134int QUnifiedTimer::runningAnimationCount()-
135{-
136 int count = 0;-
137 for (int i = 0; i < animationTimers.count()
i < animationTimers.count()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
138 count += animationTimers.at(i)->runningAnimationCount();
never executed: count += animationTimers.at(i)->runningAnimationCount();
0
139 return
never executed: return count;
count;
never executed: return count;
0
140}-
141-
142void QUnifiedTimer::registerProfilerCallback(void (*cb)(qint64))-
143{-
144 profilerCallback = cb;-
145}
never executed: end of block
0
146-
147void QUnifiedTimer::localRestart()-
148{-
149 if (insideRestart
insideRestartDescription
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 2053 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
21-2053
150 return;
executed 21 times by 2 tests: return;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
21
151-
152 if (!pausedAnimationTimers.isEmpty()
!pausedAnimati...mers.isEmpty()Description
TRUEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 2022 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
&& (
(animationTime...imers.count())Description
TRUEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEnever evaluated
animationTimers.count() + animationTimersToStart.count() == pausedAnimationTimers.count())
(animationTime...imers.count())Description
TRUEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEnever evaluated
) {
0-2022
153 driver->stop();-
154 int closestTimeToFinish = closestPausedAnimationTimerTimeToFinish();-
155-
156 Qt::TimerType timerType = closestTimeToFinish < 2000
closestTimeToFinish < 2000Description
TRUEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEnever evaluated
? Qt::PreciseTimer : Qt::CoarseTimer;
0-31
157 pauseTimer.start(closestTimeToFinish, timerType, this);-
158 }
executed 31 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
else if (!driver->isRunning()
!driver->isRunning()Description
TRUEevaluated 123 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1899 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
) {
31-1899
159 if (pauseTimer.isActive()
pauseTimer.isActive()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 112 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
11-112
160 pauseTimer.stop();
executed 11 times by 2 tests: pauseTimer.stop();
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
11
161 startAnimationDriver();-
162 }
executed 123 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
123
163-
164}
executed 2053 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
2053
165-
166void QUnifiedTimer::restart()-
167{-
168 insideRestart = true;-
169 for (int i = 0; i < animationTimers.count()
i < animationTimers.count()Description
TRUEevaluated 1902 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1920 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
; ++i)
1902-1920
170 animationTimers.at(i)->restartAnimationTimer();
executed 1902 times by 12 tests: animationTimers.at(i)->restartAnimationTimer();
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1902
171 insideRestart = false;-
172-
173 localRestart();-
174}
executed 1920 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1920
175-
176void QUnifiedTimer::setTimingInterval(int interval)-
177{-
178 timingInterval = interval;-
179-
180 if (driver->isRunning()
driver->isRunning()Description
TRUEnever evaluated
FALSEnever evaluated
&& !pauseTimer.isActive()
!pauseTimer.isActive()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
181-
182 stopAnimationDriver();-
183 startAnimationDriver();-
184 }
never executed: end of block
0
185}
never executed: end of block
0
186-
187void QUnifiedTimer::startTimers()-
188{-
189 startTimersPending = false;-
190-
191-
192 animationTimers += animationTimersToStart;-
193 animationTimersToStart.clear();-
194 if (!animationTimers.isEmpty()
!animationTimers.isEmpty()Description
TRUEevaluated 121 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-121
195 if (!time.isValid()
!time.isValid()Description
TRUEevaluated 121 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-121
196 lastTick = 0;-
197 time.start();-
198 temporalDrift = 0;-
199 driverStartTime = 0;-
200 }
executed 121 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
121
201 localRestart();-
202 }
executed 121 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
121
203}
executed 121 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
121
204-
205void QUnifiedTimer::stopTimer()-
206{-
207 stopTimerPending = false;-
208 if (animationTimers.isEmpty()
animationTimers.isEmpty()Description
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-118
209 stopAnimationDriver();-
210 pauseTimer.stop();-
211-
212 time.invalidate();-
213 }
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
214}
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
215-
216void QUnifiedTimer::timerEvent(QTimerEvent *event)-
217{-
218-
219-
220 if (consistentTiming
consistentTimingDescription
TRUEevaluated 16 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
) {
3-16
221 if (stopTimerPending
stopTimerPendingDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
)
0-16
222 stopTimer();
never executed: stopTimer();
0
223 if (startTimersPending
startTimersPendingDescription
TRUEnever evaluated
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
)
0-16
224 startTimers();
never executed: startTimers();
0
225 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_QPauseAnimation
16
226-
227 if (event->timerId() == pauseTimer.timerId()
event->timerId...imer.timerId()Description
TRUEevaluated 19 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEnever evaluated
) {
0-19
228-
229 updateAnimationTimers(-1);-
230 restart();-
231 }
executed 19 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
19
232}
executed 19 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
19
233-
234void QUnifiedTimer::startAnimationTimer(QAbstractAnimationTimer *timer)-
235{-
236 if (timer->isRegistered
timer->isRegisteredDescription
TRUEnever evaluated
FALSEevaluated 121 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
0-121
237 return;
never executed: return;
0
238 timer->isRegistered = true;-
239-
240 QUnifiedTimer *inst = instance(true);-
241 inst->animationTimersToStart << timer;-
242 if (!inst->startTimersPending
!inst->startTimersPendingDescription
TRUEevaluated 121 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-121
243 inst->startTimersPending = true;-
244 QMetaObject::invokeMethod(inst, "startTimers", Qt::QueuedConnection);-
245 }
executed 121 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
121
246}
executed 121 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
121
247-
248void QUnifiedTimer::stopAnimationTimer(QAbstractAnimationTimer *timer)-
249{-
250 QUnifiedTimer *inst = QUnifiedTimer::instance(false);-
251 if (inst
instDescription
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-118
252-
253-
254-
255 if (!timer->isRegistered
!timer->isRegisteredDescription
TRUEnever evaluated
FALSEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
0-118
256 return;
never executed: return;
0
257 timer->isRegistered = false;-
258-
259 int idx = inst->animationTimers.indexOf(timer);-
260 if (idx != -1
idx != -1Description
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-118
261 inst->animationTimers.removeAt(idx);-
262-
263 if (idx <= inst->currentAnimationIdx
idx <= inst->c...ntAnimationIdxDescription
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
)
0-118
264 --
executed 118 times by 10 tests: --inst->currentAnimationIdx;
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
inst->currentAnimationIdx;
executed 118 times by 10 tests: --inst->currentAnimationIdx;
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
265-
266 if (inst->animationTimers.isEmpty()
inst->animatio...mers.isEmpty()Description
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
&& !inst->stopTimerPending
!inst->stopTimerPendingDescription
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-118
267 inst->stopTimerPending = true;-
268 QMetaObject::invokeMethod(inst, "stopTimer", Qt::QueuedConnection);-
269 }
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
270 }
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
else {
118
271 inst->animationTimersToStart.removeOne(timer);-
272 }
never executed: end of block
0
273 }-
274}
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
275-
276void QUnifiedTimer::pauseAnimationTimer(QAbstractAnimationTimer *timer, int duration)-
277{-
278 QUnifiedTimer *inst = QUnifiedTimer::instance();-
279 if (!timer->isRegistered
!timer->isRegisteredDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
)
9-13
280 inst->startAnimationTimer(timer);
executed 9 times by 2 tests: inst->startAnimationTimer(timer);
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
9
281-
282 bool timerWasPaused = timer->isPaused;-
283 timer->isPaused = true;-
284 timer->pauseDuration = duration;-
285 if (!timerWasPaused
!timerWasPausedDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
)
11
286 inst->pausedAnimationTimers << timer;
executed 11 times by 2 tests: inst->pausedAnimationTimers << timer;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
11
287 inst->localRestart();-
288}
executed 22 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
22
289-
290void QUnifiedTimer::resumeAnimationTimer(QAbstractAnimationTimer *timer)-
291{-
292 if (!timer->isPaused
!timer->isPausedDescription
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
)
11-118
293 return;
executed 118 times by 10 tests: return;
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
294-
295 timer->isPaused = false;-
296 QUnifiedTimer *inst = QUnifiedTimer::instance();-
297 inst->pausedAnimationTimers.removeOne(timer);-
298 inst->localRestart();-
299}
executed 11 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
11
300-
301int QUnifiedTimer::closestPausedAnimationTimerTimeToFinish()-
302{-
303 int closestTimeToFinish = 2147483647;-
304 for (TimerListConstIt it = pausedAnimationTimers.constBegin(), cend = pausedAnimationTimers.constEnd(); it != cend
it != cendDescription
TRUEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
; ++it) {
31
305 const int timeToFinish = (*it)->pauseDuration;-
306 if (timeToFinish < closestTimeToFinish
timeToFinish <...stTimeToFinishDescription
TRUEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEnever evaluated
)
0-31
307 closestTimeToFinish = timeToFinish;
executed 31 times by 2 tests: closestTimeToFinish = timeToFinish;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
31
308 }
executed 31 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
31
309 return
executed 31 times by 2 tests: return closestTimeToFinish;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
closestTimeToFinish;
executed 31 times by 2 tests: return closestTimeToFinish;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
31
310}-
311-
312void QUnifiedTimer::installAnimationDriver(QAnimationDriver *d)-
313{-
314 if (driver != &defaultDriver
driver != &defaultDriverDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
315 QMessageLogger(__FILE__, 514, __PRETTY_FUNCTION__).warning("QUnifiedTimer: animation driver already installed...");-
316 return;
never executed: return;
0
317 }-
318-
319 bool running = driver->isRunning();-
320 if (running
runningDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
321 stopAnimationDriver();
never executed: stopAnimationDriver();
0
322 driver = d;-
323 if (running
runningDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
324 startAnimationDriver();
never executed: startAnimationDriver();
0
325}
never executed: end of block
0
326-
327void QUnifiedTimer::uninstallAnimationDriver(QAnimationDriver *d)-
328{-
329 if (driver != d
driver != dDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
330 QMessageLogger(__FILE__, 529, __PRETTY_FUNCTION__).warning("QUnifiedTimer: trying to uninstall a driver that is not installed...");-
331 return;
never executed: return;
0
332 }-
333-
334 bool running = driver->isRunning();-
335 if (running
runningDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
336 stopAnimationDriver();
never executed: stopAnimationDriver();
0
337 driver = &defaultDriver;-
338 if (running
runningDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
339 startAnimationDriver();
never executed: startAnimationDriver();
0
340}
never executed: end of block
0
341-
342-
343-
344-
345-
346bool QUnifiedTimer::canUninstallAnimationDriver(QAnimationDriver *d)-
347{-
348 return
never executed: return d == driver && driver != &defaultDriver;
d == driver
d == driverDescription
TRUEnever evaluated
FALSEnever evaluated
&& driver != &defaultDriver
driver != &defaultDriverDescription
TRUEnever evaluated
FALSEnever evaluated
;
never executed: return d == driver && driver != &defaultDriver;
0
349}-
350-
351-
352namespace { namespace Q_QGS_animationTimer { typedef QThreadStorage<QAnimationTimer *> Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 28 times by 28 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qtreewidget - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 28 times by 28 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qtreewidget - unknown status
  • ...
}
executed 28 times by 28 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qtreewidget - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 9981 times by 28 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
&holder.value;
executed 9981 times by 28 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
} } } static QGlobalStatic<QThreadStorage<QAnimationTimer *>, Q_QGS_animationTimer::innerFunction, Q_QGS_animationTimer::guard> animationTimer;
0-9981
353-
354-
355QAnimationTimer::QAnimationTimer() :-
356 QAbstractAnimationTimer(), lastTick(0),-
357 currentAnimationIdx(0), insideTick(false),-
358 startAnimationPending(false), stopTimerPending(false),-
359 runningLeafAnimations(0)-
360{-
361}
executed 28 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
28
362-
363QAnimationTimer *QAnimationTimer::instance(bool create)-
364{-
365 QAnimationTimer *inst;-
366-
367 if (create
createDescription
TRUEevaluated 1537 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 2699 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
&& !animationTimer()->hasLocalData()
!animationTime...hasLocalData()Description
TRUEevaluated 28 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 1509 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
) {
28-2699
368 inst = new QAnimationTimer;-
369 animationTimer()->setLocalData(inst);-
370 }
executed 28 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
else {
28
371 inst = animationTimer()
animationTimer()Description
TRUEevaluated 4208 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEnever evaluated
? animationTimer()->localData() : 0;
0-4208
372 }
executed 4208 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
4208
373-
374-
375-
376-
377 return
executed 4236 times by 28 tests: return inst;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
inst;
executed 4236 times by 28 tests: return inst;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
4236
378}-
379-
380QAnimationTimer *QAnimationTimer::instance()-
381{-
382 return
never executed: return instance(true);
instance(true);
never executed: return instance(true);
0
383}-
384-
385void QAnimationTimer::ensureTimerUpdate()-
386{-
387 QAnimationTimer *inst = QAnimationTimer::instance(false);-
388 QUnifiedTimer *instU = QUnifiedTimer::instance(false);-
389 if (instU
instUDescription
TRUEevaluated 759 times by 23 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindowContainer
FALSEevaluated 393 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • ...
&& inst
instDescription
TRUEevaluated 759 times by 23 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindowContainer
FALSEnever evaluated
&& inst->isPaused
inst->isPausedDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
FALSEevaluated 756 times by 23 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWindowContainer
)
0-759
390 instU->updateAnimationTimers(-1);
executed 3 times by 1 test: instU->updateAnimationTimers(-1);
Executed by:
  • tst_QPauseAnimation
3
391}
executed 1152 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1152
392-
393void QAnimationTimer::updateAnimationsTime(qint64 delta)-
394{-
395-
396 if (insideTick
insideTickDescription
TRUEnever evaluated
FALSEevaluated 1905 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
0-1905
397 return;
never executed: return;
0
398-
399 lastTick += delta;-
400-
401-
402-
403-
404 if (delta
deltaDescription
TRUEevaluated 1905 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-1905
405 insideTick = true;-
406 for (currentAnimationIdx = 0; currentAnimationIdx < animations.count()
currentAnimati...ations.count()Description
TRUEevaluated 2091 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1905 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
; ++currentAnimationIdx) {
1905-2091
407 QAbstractAnimation *animation = animations.at(currentAnimationIdx);-
408 int elapsed = QAbstractAnimationPrivate::get(animation)->totalCurrentTime-
409 + (animation->direction() == QAbstractAnimation::Forward
animation->dir...ation::ForwardDescription
TRUEevaluated 2036 times by 11 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
FALSEevaluated 55 times by 3 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QTreeView
? delta : -delta);
55-2036
410 animation->setCurrentTime(elapsed);-
411 }
executed 2091 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
2091
412 insideTick = false;-
413 currentAnimationIdx = 0;-
414 }
executed 1905 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1905
415}
executed 1905 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1905
416-
417void QAnimationTimer::updateAnimationTimer()-
418{-
419 QAnimationTimer *inst = QAnimationTimer::instance(false);-
420 if (inst
instDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QTreeView
FALSEnever evaluated
)
0-10
421 inst->restartAnimationTimer();
executed 10 times by 2 tests: inst->restartAnimationTimer();
Executed by:
  • tst_QPauseAnimation
  • tst_QTreeView
10
422}
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QTreeView
10
423-
424void QAnimationTimer::restartAnimationTimer()-
425{-
426 if (runningLeafAnimations == 0
runningLeafAnimations == 0Description
TRUEevaluated 138 times by 9 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1916 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
&& !runningPauseAnimations.isEmpty()
!runningPauseA...ions.isEmpty()Description
TRUEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 116 times by 9 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
22-1916
427 QUnifiedTimer::pauseAnimationTimer(this, closestPauseAnimationTimeToFinish());
executed 22 times by 2 tests: QUnifiedTimer::pauseAnimationTimer(this, closestPauseAnimationTimeToFinish());
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
22
428 else if (isPaused
isPausedDescription
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 2021 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
11-2021
429 QUnifiedTimer::resumeAnimationTimer(this);
executed 11 times by 2 tests: QUnifiedTimer::resumeAnimationTimer(this);
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
11
430 else if (!isRegistered
!isRegisteredDescription
TRUEevaluated 112 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1909 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
112-1909
431 QUnifiedTimer::startAnimationTimer(this);
executed 112 times by 12 tests: QUnifiedTimer::startAnimationTimer(this);
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
112
432}
executed 2054 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
2054
433-
434void QAnimationTimer::startAnimations()-
435{-
436 if (!startAnimationPending
!startAnimationPendingDescription
TRUEnever evaluated
FALSEevaluated 285 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
)
0-285
437 return;
never executed: return;
0
438 startAnimationPending = false;-
439-
440-
441 QUnifiedTimer::instance()->maybeUpdateAnimationsToCurrentTime();-
442-
443-
444 animations += animationsToStart;-
445 animationsToStart.clear();-
446 if (!animations.isEmpty()
!animations.isEmpty()Description
TRUEevaluated 142 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 143 times by 18 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
)
142-143
447 restartAnimationTimer();
executed 142 times by 12 tests: restartAnimationTimer();
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
142
448}
executed 285 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
285
449-
450void QAnimationTimer::stopTimer()-
451{-
452 stopTimerPending = false;-
453 bool pendingStart = startAnimationPending
startAnimationPendingDescription
TRUEevaluated 31 times by 7 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
FALSEevaluated 106 times by 9 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
&& animationsToStart.size() > 0
animationsToStart.size() > 0Description
TRUEevaluated 18 times by 6 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
FALSEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMainWindow
  • tst_QStateMachine
;
13-106
454 if (animations.isEmpty()
animations.isEmpty()Description
TRUEevaluated 136 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPropertyAnimation
&& !pendingStart
!pendingStartDescription
TRUEevaluated 118 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 18 times by 6 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
) {
1-136
455 QUnifiedTimer::resumeAnimationTimer(this);-
456 QUnifiedTimer::stopAnimationTimer(this);-
457-
458 lastTick = 0;-
459 }
executed 118 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
118
460}
executed 137 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
137
461-
462void QAnimationTimer::registerAnimation(QAbstractAnimation *animation, bool isTopLevel)-
463{-
464 QAnimationTimer *inst = instance(true);-
465 inst->registerRunningAnimation(animation);-
466 if (isTopLevel
isTopLevelDescription
TRUEevaluated 1120 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 417 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
) {
417-1120
467 ((!(!QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer)) ? qt_assert("!QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer",__FILE__,666) : qt_noop());-
468 QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer = true;-
469 inst->animationsToStart << animation;-
470 if (!inst->startAnimationPending
!inst->startAnimationPendingDescription
TRUEevaluated 290 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 830 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • 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
) {
290-830
471 inst->startAnimationPending = true;-
472 QMetaObject::invokeMethod(inst, "startAnimations", Qt::QueuedConnection);-
473 }
executed 290 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
290
474 }
executed 1120 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1120
475}
executed 1537 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1537
476-
477void QAnimationTimer::unregisterAnimation(QAbstractAnimation *animation)-
478{-
479 QAnimationTimer *inst = QAnimationTimer::instance(false);-
480 if (inst
instDescription
TRUEevaluated 1537 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEnever evaluated
) {
0-1537
481-
482-
483-
484 inst->unregisterRunningAnimation(animation);-
485-
486 if (!QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer
!QAbstractAnim...egisteredTimerDescription
TRUEevaluated 417 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
FALSEevaluated 1120 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
417-1120
487 return;
executed 417 times by 6 tests: return;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
417
488-
489 int idx = inst->animations.indexOf(animation);-
490 if (idx != -1
idx != -1Description
TRUEevaluated 156 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 964 times by 23 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • 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_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
) {
156-964
491 inst->animations.removeAt(idx);-
492-
493 if (idx <= inst->currentAnimationIdx
idx <= inst->c...ntAnimationIdxDescription
TRUEevaluated 149 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 7 times by 3 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QPropertyAnimation
  • tst_QStateMachine
)
7-149
494 --
executed 149 times by 12 tests: --inst->currentAnimationIdx;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
inst->currentAnimationIdx;
executed 149 times by 12 tests: --inst->currentAnimationIdx;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
149
495-
496 if (inst->animations.isEmpty()
inst->animations.isEmpty()Description
TRUEevaluated 140 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 16 times by 4 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QStateMachine
&& !inst->stopTimerPending
!inst->stopTimerPendingDescription
TRUEevaluated 140 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-140
497 inst->stopTimerPending = true;-
498 QMetaObject::invokeMethod(inst, "stopTimer", Qt::QueuedConnection);-
499 }
executed 140 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
140
500 }
executed 156 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
else {
156
501 inst->animationsToStart.removeOne(animation);-
502 }
executed 964 times by 23 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • 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_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
964
503 }-
504 QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer = false;-
505}
executed 1120 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1120
506-
507void QAnimationTimer::registerRunningAnimation(QAbstractAnimation *animation)-
508{-
509 if (QAbstractAnimationPrivate::get(animation)->isGroup
QAbstractAnima...tion)->isGroupDescription
TRUEevaluated 112 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
FALSEevaluated 1425 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
112-1425
510 return;
executed 112 times by 6 tests: return;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
112
511-
512 if (QAbstractAnimationPrivate::get(animation)->isPause
QAbstractAnima...tion)->isPauseDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 1398 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
) {
27-1398
513 runningPauseAnimations << animation;-
514 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
else
27
515 runningLeafAnimations++;
executed 1398 times by 28 tests: runningLeafAnimations++;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1398
516}-
517-
518void QAnimationTimer::unregisterRunningAnimation(QAbstractAnimation *animation)-
519{-
520 if (QAbstractAnimationPrivate::get(animation)->isGroup
QAbstractAnima...tion)->isGroupDescription
TRUEevaluated 112 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
FALSEevaluated 1425 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
112-1425
521 return;
executed 112 times by 6 tests: return;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
112
522-
523 if (QAbstractAnimationPrivate::get(animation)->isPause
QAbstractAnima...tion)->isPauseDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 1398 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
27-1398
524 runningPauseAnimations.removeOne(animation);
executed 27 times by 2 tests: runningPauseAnimations.removeOne(animation);
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
27
525 else-
526 runningLeafAnimations--;
executed 1398 times by 28 tests: runningLeafAnimations--;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1398
527 ((!(runningLeafAnimations >= 0)) ? qt_assert("runningLeafAnimations >= 0",__FILE__,726) : qt_noop());-
528}
executed 1425 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1425
529-
530int QAnimationTimer::closestPauseAnimationTimeToFinish()-
531{-
532 int closestTimeToFinish = 2147483647;-
533 for (AnimationListConstIt it = runningPauseAnimations.constBegin(), cend = runningPauseAnimations.constEnd(); it != cend
it != cendDescription
TRUEevaluated 39 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
; ++it) {
22-39
534 const QAbstractAnimation *animation = *it;-
535 int timeToFinish;-
536-
537 if (animation->direction() == QAbstractAnimation::Forward
animation->dir...ation::ForwardDescription
TRUEevaluated 38 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPauseAnimation
)
1-38
538 timeToFinish = animation->duration() - animation->currentLoopTime();
executed 38 times by 2 tests: timeToFinish = animation->duration() - animation->currentLoopTime();
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
38
539 else-
540 timeToFinish = animation->currentLoopTime();
executed 1 time by 1 test: timeToFinish = animation->currentLoopTime();
Executed by:
  • tst_QPauseAnimation
1
541-
542 if (timeToFinish < closestTimeToFinish
timeToFinish <...stTimeToFinishDescription
TRUEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
)
13-26
543 closestTimeToFinish = timeToFinish;
executed 26 times by 2 tests: closestTimeToFinish = timeToFinish;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
26
544 }
executed 39 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
39
545 return
executed 22 times by 2 tests: return closestTimeToFinish;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
closestTimeToFinish;
executed 22 times by 2 tests: return closestTimeToFinish;
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
22
546}-
547QAnimationDriver::QAnimationDriver(QObject *parent)-
548 : QObject(*(new QAnimationDriverPrivate), parent)-
549{-
550}
executed 26 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
26
551-
552QAnimationDriver::QAnimationDriver(QAnimationDriverPrivate &dd, QObject *parent)-
553 : QObject(dd, parent)-
554{-
555}
never executed: end of block
0
556-
557QAnimationDriver::~QAnimationDriver()-
558{-
559 QUnifiedTimer *timer = QUnifiedTimer::instance(false);-
560 if (timer
timerDescription
TRUEnever evaluated
FALSEevaluated 26 times by 26 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qwidget - unknown status
  • tst_qwidget_window - unknown status
  • ...
&& timer->canUninstallAnimationDriver(this)
timer->canUnin...onDriver(this)Description
TRUEnever evaluated
FALSEnever evaluated
)
0-26
561 uninstall();
never executed: uninstall();
0
562}
executed 26 times by 26 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qaccessibility - unknown status
  • tst_qcolumnview - unknown status
  • tst_qdockwidget - unknown status
  • tst_qgraphicsproxywidget - unknown status
  • tst_qlineedit - unknown status
  • tst_qmainwindow - unknown status
  • tst_qmdiarea - unknown status
  • tst_qmdisubwindow - unknown status
  • tst_qmenu - unknown status
  • tst_qparallelanimationgroup - unknown status
  • tst_qpauseanimation - unknown status
  • tst_qprinter - unknown status
  • tst_qprogressbar - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qscroller - unknown status
  • tst_qsequentialanimationgroup - unknown status
  • tst_qshortcut - unknown status
  • tst_qstatemachine - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qtoolbar - unknown status
  • tst_qtreeview - unknown status
  • tst_qwidget - unknown status
  • tst_qwidget_window - unknown status
  • ...
26
563void QAnimationDriver::setStartTime(qint64)-
564{-
565}-
566qint64 QAnimationDriver::startTime() const-
567{-
568 return
never executed: return 0;
0;
never executed: return 0;
0
569}-
570void QAnimationDriver::advanceAnimation(qint64 timeStep)-
571{-
572 QUnifiedTimer *instance = QUnifiedTimer::instance();-
573-
574-
575 instance->updateAnimationTimers(timeStep);-
576 instance->restart();-
577}
executed 1901 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1901
578void QAnimationDriver::advance()-
579{-
580 advanceAnimation(-1);-
581}
executed 1901 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1901
582void QAnimationDriver::install()-
583{-
584 QUnifiedTimer *timer = QUnifiedTimer::instance(true);-
585 timer->installAnimationDriver(this);-
586}
never executed: end of block
0
587-
588-
589-
590-
591-
592-
593-
594void QAnimationDriver::uninstall()-
595{-
596 QUnifiedTimer *timer = QUnifiedTimer::instance(true);-
597 timer->uninstallAnimationDriver(this);-
598}
never executed: end of block
0
599-
600bool QAnimationDriver::isRunning() const-
601{-
602 return
executed 4714 times by 26 tests: return d_func()->running;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
d_func()->running;
executed 4714 times by 26 tests: return d_func()->running;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
4714
603}-
604-
605-
606void QAnimationDriver::start()-
607{-
608 QAnimationDriverPrivate * const d = d_func();-
609 if (!d->running
!d->runningDescription
TRUEevaluated 123 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
) {
0-123
610 d->running = true;-
611 d->timer.start();-
612 started();-
613 }
executed 123 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
123
614}
executed 123 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
123
615-
616-
617void QAnimationDriver::stop()-
618{-
619 QAnimationDriverPrivate * const d = d_func();-
620 if (d->running
d->runningDescription
TRUEevaluated 120 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
) {
29-120
621 d->running = false;-
622 stopped();-
623 }
executed 120 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
120
624}
executed 149 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
149
625qint64 QAnimationDriver::elapsed() const-
626{-
627 const QAnimationDriverPrivate * const d = d_func();-
628 return
executed 2054 times by 12 tests: return d->running ? d->timer.elapsed() : 0;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
d->running
d->runningDescription
TRUEevaluated 2054 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEnever evaluated
? d->timer.elapsed() : 0;
executed 2054 times by 12 tests: return d->running ? d->timer.elapsed() : 0;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
0-2054
629}-
630QDefaultAnimationDriver::QDefaultAnimationDriver(QUnifiedTimer *timer)-
631 : QAnimationDriver(0), m_unified_timer(timer)-
632{-
633 connect(this, qFlagLocation("2""started()" "\0" __FILE__ ":" "927"), this, qFlagLocation("1""startTimer()" "\0" __FILE__ ":" "927"));-
634 connect(this, qFlagLocation("2""stopped()" "\0" __FILE__ ":" "928"), this, qFlagLocation("1""stopTimer()" "\0" __FILE__ ":" "928"));-
635}
executed 26 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
26
636-
637void QDefaultAnimationDriver::timerEvent(QTimerEvent *e)-
638{-
639 ((!(e->timerId() == m_timer.timerId())) ? qt_assert("e->timerId() == m_timer.timerId()",__FILE__,933) : qt_noop());-
640 (void)e;;-
641 advance();-
642}
executed 1901 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
1901
643-
644void QDefaultAnimationDriver::startTimer()-
645{-
646-
647 m_timer.start(m_unified_timer->timingInterval, Qt::PreciseTimer, this);-
648}
executed 123 times by 12 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
123
649-
650void QDefaultAnimationDriver::stopTimer()-
651{-
652 m_timer.stop();-
653}
executed 120 times by 10 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
120
654-
655-
656-
657void QAbstractAnimationPrivate::setState(QAbstractAnimation::State newState)-
658{-
659 QAbstractAnimation * const q = q_func();-
660 if (state == newState
state == newStateDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPropertyAnimation
FALSEevaluated 3035 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
1-3035
661 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QPropertyAnimation
1
662-
663 if (loopCount == 0
loopCount == 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPropertyAnimation
FALSEevaluated 3034 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
1-3034
664 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QPropertyAnimation
1
665-
666 QAbstractAnimation::State oldState = state;-
667 int oldCurrentTime = currentTime;-
668 int oldCurrentLoop = currentLoop;-
669 QAbstractAnimation::Direction oldDirection = direction;-
670-
671-
672 if ((newState == QAbstractAnimation::Paused
newState == QA...mation::PausedDescription
TRUEevaluated 58 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 2976 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
|| newState == QAbstractAnimation::Running
newState == QA...ation::RunningDescription
TRUEevaluated 1537 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 1439 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
)
58-2976
673 && oldState == QAbstractAnimation::Stopped
oldState == QA...ation::StoppedDescription
TRUEevaluated 1525 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 70 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
) {
70-1525
674-
675-
676-
677 totalCurrentTime = currentTime = (
(direction == ...tion::Forward)Description
TRUEevaluated 1406 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
FALSEevaluated 119 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QTreeWidget
direction == QAbstractAnimation::Forward)
(direction == ...tion::Forward)Description
TRUEevaluated 1406 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
FALSEevaluated 119 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QTreeWidget
?
119-1406
678 0 : (loopCount == -1
loopCount == -1Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QParallelAnimationGroup
FALSEevaluated 116 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QTreeWidget
? q->duration() : q->totalDuration());
3-116
679 }
executed 1525 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1525
680-
681 state = newState;-
682 QPointer<QAbstractAnimation> guard(q);-
683-
684-
685-
686 bool isTopLevel = !group
!groupDescription
TRUEevaluated 2216 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 818 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
|| group->state() == QAbstractAnimation::Stopped
group->state()...ation::StoppedDescription
TRUEevaluated 37 times by 3 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QSequentialAnimationGroup
FALSEevaluated 781 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
;
37-2216
687 if (oldState == QAbstractAnimation::Running
oldState == QA...ation::RunningDescription
TRUEevaluated 1455 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 1579 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
) {
1455-1579
688 if (newState == QAbstractAnimation::Paused
newState == QA...mation::PausedDescription
TRUEevaluated 58 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 1397 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
&& hasRegisteredTimer
hasRegisteredTimerDescription
TRUEevaluated 29 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QSequentialAnimationGroup
)
29-1397
689 QAnimationTimer::ensureTimerUpdate();
executed 29 times by 4 tests: QAnimationTimer::ensureTimerUpdate();
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
29
690-
691 QAnimationTimer::unregisterAnimation(q);-
692 }
executed 1455 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
else if (newState == QAbstractAnimation::Running
newState == QA...ation::RunningDescription
TRUEevaluated 1537 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 42 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
) {
42-1537
693 QAnimationTimer::registerAnimation(q, isTopLevel);-
694 }
executed 1537 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1537
695-
696 q->updateState(newState, oldState);-
697 if (!guard
!guardDescription
TRUEnever evaluated
FALSEevaluated 3034 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
|| newState != state
newState != stateDescription
TRUEnever evaluated
FALSEevaluated 3034 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
0-3034
698 return;
never executed: return;
0
699-
700-
701 q->stateChanged(newState, oldState);-
702 if (!guard
!guardDescription
TRUEnever evaluated
FALSEevaluated 3034 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
|| newState != state
newState != stateDescription
TRUEnever evaluated
FALSEevaluated 3034 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
0-3034
703 return;
never executed: return;
0
704-
705 switch (state) {-
706 case
executed 58 times by 4 tests: case QAbstractAnimation::Paused:
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
QAbstractAnimation::Paused:
executed 58 times by 4 tests: case QAbstractAnimation::Paused:
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
58
707 break;
executed 58 times by 4 tests: break;
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
58
708 case
executed 1537 times by 28 tests: case QAbstractAnimation::Running:
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
QAbstractAnimation::Running:
executed 1537 times by 28 tests: case QAbstractAnimation::Running:
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1537
709 {-
710-
711-
712 if (oldState == QAbstractAnimation::Stopped
oldState == QA...ation::StoppedDescription
TRUEevaluated 1525 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 12 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
) {
12-1525
713 if (isTopLevel
isTopLevelDescription
TRUEevaluated 1113 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
FALSEevaluated 412 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
) {
412-1113
714-
715 QAnimationTimer::ensureTimerUpdate();-
716 q->setCurrentTime(totalCurrentTime);-
717 }
executed 1113 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1113
718 }
executed 1525 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1525
719 }-
720 break;
executed 1537 times by 28 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1537
721 case
executed 1439 times by 26 tests: case QAbstractAnimation::Stopped:
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
QAbstractAnimation::Stopped:
executed 1439 times by 26 tests: case QAbstractAnimation::Stopped:
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
1439
722-
723 int dura = q->duration();-
724-
725 if (deleteWhenStopped
deleteWhenStoppedDescription
TRUEevaluated 854 times by 17 tests
Evaluated 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
FALSEevaluated 585 times by 10 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
585-854
726 q->deleteLater();
executed 854 times by 17 tests: q->deleteLater();
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
854
727-
728 if (dura == -1
dura == -1Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QScroller
  • tst_QSequentialAnimationGroup
FALSEevaluated 1423 times by 25 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
|| loopCount < 0
loopCount < 0Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QSequentialAnimationGroup
FALSEevaluated 1414 times by 25 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
9-1423
729 || (oldDirection == QAbstractAnimation::Forward
oldDirection =...ation::ForwardDescription
TRUEevaluated 1322 times by 24 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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
FALSEevaluated 92 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QTreeView
&& (
(oldCurrentTim...a * loopCount)Description
TRUEevaluated 1222 times by 23 tests
Evaluated 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
FALSEevaluated 100 times by 7 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QLineEdit
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
oldCurrentTime * (oldCurrentLoop + 1)) == (dura * loopCount)
(oldCurrentTim...a * loopCount)Description
TRUEevaluated 1222 times by 23 tests
Evaluated 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
FALSEevaluated 100 times by 7 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QLineEdit
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
)
92-1322
730 || (oldDirection == QAbstractAnimation::Backward
oldDirection =...tion::BackwardDescription
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QTreeView
FALSEevaluated 100 times by 7 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QLineEdit
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
&& oldCurrentTime == 0
oldCurrentTime == 0Description
TRUEevaluated 87 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QTreeView
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
)) {
5-100
731 q->finished();-
732 }
executed 1334 times by 25 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
1334
733 break;
executed 1439 times by 26 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
1439
734 }-
735}
executed 3034 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
3034
736-
737-
738-
739-
740-
741-
742-
743QAbstractAnimation::QAbstractAnimation(QObject *parent)-
744 : QObject(*new QAbstractAnimationPrivate, 0)-
745{-
746-
747 setParent(parent);-
748}
executed 27 times by 3 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QProgressBar
  • tst_QScroller
27
749-
750-
751-
752-
753QAbstractAnimation::QAbstractAnimation(QAbstractAnimationPrivate &dd, QObject *parent)-
754 : QObject(dd, 0)-
755{-
756-
757 setParent(parent);-
758}
executed 2163 times by 43 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • ...
2163
759-
760-
761-
762-
763-
764-
765QAbstractAnimation::~QAbstractAnimation()-
766{-
767 QAbstractAnimationPrivate * const d = d_func();-
768-
769 if (d->state != Stopped
d->state != StoppedDescription
TRUEevaluated 86 times by 6 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QProgressBar
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 1979 times by 44 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QPropertyAnimation
  • ...
) {
86-1979
770 QAbstractAnimation::State oldState = d->state;-
771 d->state = Stopped;-
772 stateChanged(oldState, d->state);-
773 if (oldState == QAbstractAnimation::Running
oldState == QA...ation::RunningDescription
TRUEevaluated 82 times by 6 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QProgressBar
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QSequentialAnimationGroup
)
4-82
774 QAnimationTimer::unregisterAnimation(this);
executed 82 times by 6 tests: QAnimationTimer::unregisterAnimation(this);
Executed by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QProgressBar
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
82
775 }
executed 86 times by 6 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QProgressBar
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
86
776}
executed 2065 times by 45 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • ...
2065
777QAbstractAnimation::State QAbstractAnimation::state() const-
778{-
779 const QAbstractAnimationPrivate * const d = d_func();-
780 return
executed 3985 times by 10 tests: return d->state;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
d->state;
executed 3985 times by 10 tests: return d->state;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
3985
781}-
782-
783-
784-
785-
786-
787-
788-
789QAnimationGroup *QAbstractAnimation::group() const-
790{-
791 const QAbstractAnimationPrivate * const d = d_func();-
792 return
executed 701 times by 7 tests: return d->group;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
d->group;
executed 701 times by 7 tests: return d->group;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
701
793}-
794QAbstractAnimation::Direction QAbstractAnimation::direction() const-
795{-
796 const QAbstractAnimationPrivate * const d = d_func();-
797 return
executed 2154 times by 13 tests: return d->direction;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
d->direction;
executed 2154 times by 13 tests: return d->direction;
Executed by:
  • tst_QAbstractAnimation
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
2154
798}-
799void QAbstractAnimation::setDirection(Direction direction)-
800{-
801 QAbstractAnimationPrivate * const d = d_func();-
802 if (d->direction == direction
d->direction == directionDescription
TRUEevaluated 232 times by 7 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 100 times by 7 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
)
100-232
803 return;
executed 232 times by 7 tests: return;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
232
804-
805 if (state() == Stopped
state() == StoppedDescription
TRUEevaluated 90 times by 5 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeWidget
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QTreeView
) {
10-90
806 if (direction == Backward
direction == BackwardDescription
TRUEevaluated 88 times by 5 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeWidget
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QPropertyAnimation
) {
2-88
807 d->currentTime = duration();-
808 d->currentLoop = d->loopCount - 1;-
809 }
executed 88 times by 5 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeWidget
else {
88
810 d->currentTime = 0;-
811 d->currentLoop = 0;-
812 }
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QPropertyAnimation
2
813 }-
814-
815-
816-
817 if (d->hasRegisteredTimer
d->hasRegisteredTimerDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QTreeView
FALSEevaluated 90 times by 5 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeWidget
)
10-90
818 QAnimationTimer::ensureTimerUpdate();
executed 10 times by 2 tests: QAnimationTimer::ensureTimerUpdate();
Executed by:
  • tst_QPauseAnimation
  • tst_QTreeView
10
819-
820 d->direction = direction;-
821 updateDirection(direction);-
822-
823 if (d->hasRegisteredTimer
d->hasRegisteredTimerDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QTreeView
FALSEevaluated 90 times by 5 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeWidget
)
10-90
824-
825 QAnimationTimer::updateAnimationTimer();
executed 10 times by 2 tests: QAnimationTimer::updateAnimationTimer();
Executed by:
  • tst_QPauseAnimation
  • tst_QTreeView
10
826-
827 directionChanged(direction);-
828}
executed 100 times by 7 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
100
829int QAbstractAnimation::loopCount() const-
830{-
831 const QAbstractAnimationPrivate * const d = d_func();-
832 return
executed 8125 times by 8 tests: return d->loopCount;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
d->loopCount;
executed 8125 times by 8 tests: return d->loopCount;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
8125
833}-
834void QAbstractAnimation::setLoopCount(int loopCount)-
835{-
836 QAbstractAnimationPrivate * const d = d_func();-
837 d->loopCount = loopCount;-
838}
executed 146 times by 6 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
146
839int QAbstractAnimation::currentLoop() const-
840{-
841 const QAbstractAnimationPrivate * const d = d_func();-
842 return
executed 138 times by 7 tests: return d->currentLoop;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
d->currentLoop;
executed 138 times by 7 tests: return d->currentLoop;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
138
843}-
844int QAbstractAnimation::totalDuration() const-
845{-
846 int dura = duration();-
847 if (dura <= 0
dura <= 0Description
TRUEevaluated 1190 times by 5 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 7955 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
)
1190-7955
848 return
executed 1190 times by 5 tests: return dura;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
dura;
executed 1190 times by 5 tests: return dura;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
1190
849 int loopcount = loopCount();-
850 if (loopcount < 0
loopcount < 0Description
TRUEevaluated 32 times by 4 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 7923 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
)
32-7923
851 return
executed 32 times by 4 tests: return -1;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
-1;
executed 32 times by 4 tests: return -1;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
32
852 return
executed 7923 times by 8 tests: return dura * loopcount;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
dura * loopcount;
executed 7923 times by 8 tests: return dura * loopcount;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
7923
853}-
854-
855-
856-
857-
858-
859-
860-
861int QAbstractAnimation::currentLoopTime() const-
862{-
863 const QAbstractAnimationPrivate * const d = d_func();-
864 return
executed 483 times by 6 tests: return d->currentTime;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
d->currentTime;
executed 483 times by 6 tests: return d->currentTime;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
483
865}-
866int QAbstractAnimation::currentTime() const-
867{-
868 const QAbstractAnimationPrivate * const d = d_func();-
869 return
executed 142 times by 8 tests: return d->totalCurrentTime;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
d->totalCurrentTime;
executed 142 times by 8 tests: return d->totalCurrentTime;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
142
870}-
871void QAbstractAnimation::setCurrentTime(int msecs)-
872{-
873 QAbstractAnimationPrivate * const d = d_func();-
874 msecs = qMax(msecs, 0);-
875-
876-
877 int dura = duration();-
878 int totalDura = dura <= 0
dura <= 0Description
TRUEevaluated 1305 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 3845 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
? dura : ((
(d->loopCount < 0)Description
TRUEevaluated 37 times by 4 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 3808 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
d->loopCount < 0)
(d->loopCount < 0)Description
TRUEevaluated 37 times by 4 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 3808 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
? -1 : dura * d->loopCount);
37-3845
879 if (totalDura != -1
totalDura != -1Description
TRUEevaluated 4809 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • ...
FALSEevaluated 341 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
)
341-4809
880 msecs = qMin(totalDura, msecs);
executed 4809 times by 26 tests: msecs = qMin(totalDura, msecs);
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QTreeView
  • tst_QTreeWidget
  • tst_QWidget
  • tst_QWidget_window
  • ...
4809
881 d->totalCurrentTime = msecs;-
882-
883-
884 int oldLoop = d->currentLoop;-
885 d->currentLoop = ((
(dura <= 0)Description
TRUEevaluated 1305 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 3845 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
dura <= 0)
(dura <= 0)Description
TRUEevaluated 1305 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 3845 times by 12 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
  • tst_QTreeWidget
? 0 : (msecs / dura));
1305-3845
886 if (d->currentLoop == d->loopCount
d->currentLoop == d->loopCountDescription
TRUEevaluated 415 times by 11 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
FALSEevaluated 4735 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
) {
415-4735
887-
888 d->currentTime = qMax(0, dura);-
889 d->currentLoop = qMax(0, d->loopCount - 1);-
890 }
executed 415 times by 11 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
else {
415
891 if (d->direction == Forward
d->direction == ForwardDescription
TRUEevaluated 4502 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
FALSEevaluated 233 times by 5 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
) {
233-4502
892 d->currentTime = (
(dura <= 0)Description
TRUEevaluated 1275 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 3227 times by 11 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
dura <= 0)
(dura <= 0)Description
TRUEevaluated 1275 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
FALSEevaluated 3227 times by 11 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
? msecs : (msecs % dura);
1275-3227
893 }
executed 4502 times by 27 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
else {
4502
894 d->currentTime = (
(dura <= 0)Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
FALSEevaluated 203 times by 5 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
dura <= 0)
(dura <= 0)Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
FALSEevaluated 203 times by 5 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
? msecs : ((msecs - 1) % dura) + 1;
30-203
895 if (d->currentTime == dura
d->currentTime == duraDescription
TRUEevaluated 46 times by 2 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
FALSEevaluated 187 times by 5 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
)
46-187
896 --
executed 46 times by 2 tests: --d->currentLoop;
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
d->currentLoop;
executed 46 times by 2 tests: --d->currentLoop;
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
46
897 }
executed 233 times by 5 tests: end of block
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
233
898 }-
899-
900 updateCurrentTime(d->currentTime);-
901 if (d->currentLoop != oldLoop
d->currentLoop != oldLoopDescription
TRUEevaluated 237 times by 5 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 4913 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
237-4913
902 currentLoopChanged(d->currentLoop);
executed 237 times by 5 tests: currentLoopChanged(d->currentLoop);
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
237
903-
904-
905-
906-
907 if ((d->direction == Forward
d->direction == ForwardDescription
TRUEevaluated 4840 times by 27 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • ...
FALSEevaluated 310 times by 6 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
&& d->totalCurrentTime == totalDura
d->totalCurren...e == totalDuraDescription
TRUEevaluated 1307 times by 24 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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
FALSEevaluated 3533 times by 13 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
)
310-4840
908 || (d->direction == Backward
d->direction == BackwardDescription
TRUEevaluated 310 times by 6 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3533 times by 13 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
&& d->totalCurrentTime == 0
d->totalCurrentTime == 0Description
TRUEevaluated 74 times by 5 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeView
FALSEevaluated 236 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QTreeWidget
)) {
74-3533
909 stop();-
910 }
executed 1381 times by 25 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
1381
911}
executed 5150 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
5150
912void QAbstractAnimation::start(DeletionPolicy policy)-
913{-
914 QAbstractAnimationPrivate * const d = d_func();-
915 if (d->state == Running
d->state == RunningDescription
TRUEevaluated 476 times by 7 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
FALSEevaluated 1533 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
)
476-1533
916 return;
executed 476 times by 7 tests: return;
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeView
476
917 d->deleteWhenStopped = policy;-
918 d->setState(Running);-
919}
executed 1533 times by 28 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • ...
1533
920void QAbstractAnimation::stop()-
921{-
922 QAbstractAnimationPrivate * const d = d_func();-
923-
924 if (d->state == Stopped
d->state == StoppedDescription
TRUEevaluated 2742 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
  • ...
FALSEevaluated 1439 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
)
1439-2742
925 return;
executed 2742 times by 26 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
  • ...
2742
926-
927 d->setState(Stopped);-
928}
executed 1439 times by 26 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QTreeView
  • tst_QWidget
  • tst_QWidget_window
  • ...
1439
929void QAbstractAnimation::pause()-
930{-
931 QAbstractAnimationPrivate * const d = d_func();-
932 if (d->state == Stopped
d->state == StoppedDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QPropertyAnimation
FALSEevaluated 59 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
) {
2-59
933 QMessageLogger(__FILE__, 1393, __PRETTY_FUNCTION__).warning("QAbstractAnimation::pause: Cannot pause a stopped animation");-
934 return;
executed 2 times by 2 tests: return;
Executed by:
  • tst_QAnimationGroup
  • tst_QPropertyAnimation
2
935 }-
936-
937 d->setState(Paused);-
938}
executed 59 times by 4 tests: end of block
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
59
939void QAbstractAnimation::resume()-
940{-
941 QAbstractAnimationPrivate * const d = d_func();-
942 if (d->state != Paused
d->state != PausedDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPropertyAnimation
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
) {
2-5
943 QMessageLogger(__FILE__, 1411, __PRETTY_FUNCTION__).warning("QAbstractAnimation::resume: "-
944 "Cannot resume an animation that is not paused");-
945 return;
executed 2 times by 1 test: return;
Executed by:
  • tst_QPropertyAnimation
2
946 }-
947-
948 d->setState(Running);-
949}
executed 5 times by 3 tests: end of block
Executed by:
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
5
950-
951-
952-
953-
954-
955-
956-
957void QAbstractAnimation::setPaused(bool paused)-
958{-
959 if (paused
pausedDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
960 pause();
never executed: pause();
0
961 else-
962 resume();
never executed: resume();
0
963}-
964-
965-
966-
967-
968-
969bool QAbstractAnimation::event(QEvent *event)-
970{-
971 return
executed 1235 times by 23 tests: return QObject::event(event);
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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
QObject::event(event);
executed 1235 times by 23 tests: return QObject::event(event);
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • 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
1235
972}-
973void QAbstractAnimation::updateState(QAbstractAnimation::State newState,-
974 QAbstractAnimation::State oldState)-
975{-
976 (void)oldState;;-
977 (void)newState;;-
978}
executed 304 times by 9 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
304
979-
980-
981-
982-
983-
984-
985-
986void QAbstractAnimation::updateDirection(QAbstractAnimation::Direction direction)-
987{-
988 (void)direction;;-
989}
executed 79 times by 6 tests: end of block
Executed by:
  • tst_QAbstractAnimation
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QTreeView
  • tst_QTreeWidget
79
990-
991-
992-
993-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9