OpenCoverage

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 9689 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 9689 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-9689
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 2373 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 1298 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 2347 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-2373
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 3645 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-3645
38 }
executed 3645 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
  • ...
3645
39-
40-
41-
42-
43 return
executed 3671 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 3671 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
  • ...
3671
44}-
45-
46QUnifiedTimer *QUnifiedTimer::instance()-
47{-
48 return
executed 2251 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 2251 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
  • ...
2251
49}-
50-
51void QUnifiedTimer::maybeUpdateAnimationsToCurrentTime()-
52{-
53 if (elapsed() - lastTick > 50
elapsed() - lastTick > 50Description
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QMainWindow
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
  • ...
)
3-283
54 updateAnimationTimers(-1);
executed 3 times by 2 tests: updateAnimationTimers(-1);
Executed by:
  • tst_QAbstractAnimation
  • tst_QMainWindow
3
55}
executed 286 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
  • ...
286
56-
57qint64 QUnifiedTimer::elapsed() const-
58{-
59 if (driver->isRunning()
driver->isRunning()Description
TRUEevaluated 2072 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 398 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
  • ...
)
398-2072
60 return
executed 2072 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 2072 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
2072
61 else if (time.isValid()
time.isValid()Description
TRUEevaluated 148 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
  • ...
)
148-250
62 return
executed 148 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 148 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
148
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 124 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-124
73 QMessageLogger(__FILE__, 278, __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 124 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
124
82-
83void QUnifiedTimer::stopAnimationDriver()-
84{-
85 if (!driver->isRunning()
!driver->isRunning()Description
TRUEnever evaluated
FALSEevaluated 119 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-119
86 QMessageLogger(__FILE__, 291, __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 119 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
119
95-
96void QUnifiedTimer::updateAnimationTimers(qint64)-
97{-
98-
99 if(insideTick
insideTickDescription
TRUEnever evaluated
FALSEevaluated 1941 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-1941
100 return;
never executed: return;
0
101-
102 qint64 totalElapsed = elapsed();-
103-
104-
105 qint64 delta = (consistentTiming
consistentTimingDescription
TRUEevaluated 97 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
FALSEevaluated 1844 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 79 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QPauseAnimation
) ?
18-1844
106 timingInterval : totalElapsed - lastTick;-
107 if (slowMode
slowModeDescription
TRUEnever evaluated
FALSEevaluated 1941 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-1941
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 1939 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-1939
122 insideTick = true;-
123 if (profilerCallback
profilerCallbackDescription
TRUEnever evaluated
FALSEevaluated 1939 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-1939
124 profilerCallback(delta);
never executed: profilerCallback(delta);
0
125 for (currentAnimationIdx = 0; currentAnimationIdx < animationTimers.count()
currentAnimati...Timers.count()Description
TRUEevaluated 1918 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 1939 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) {
1918-1939
126 QAbstractAnimationTimer *animation = animationTimers.at(currentAnimationIdx);-
127 animation->updateAnimationsTime(delta);-
128 }
executed 1918 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
1918
129 insideTick = false;-
130 currentAnimationIdx = 0;-
131 }
executed 1939 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
1939
132}
executed 1941 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
1941
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 2069 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-2069
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 2038 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-2038
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 124 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 1914 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-1914
159 if (pauseTimer.isActive()
pauseTimer.isActive()Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 113 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-113
160 pauseTimer.stop();
executed 11 times by 2 tests: pauseTimer.stop();
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
11
161 startAnimationDriver();-
162 }
executed 124 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
124
163-
164}
executed 2069 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
2069
165-
166void QUnifiedTimer::restart()-
167{-
168 insideRestart = true;-
169 for (int i = 0; i < animationTimers.count()
i < animationTimers.count()Description
TRUEevaluated 1915 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 1935 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)
1915-1935
170 animationTimers.at(i)->restartAnimationTimer();
executed 1915 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
1915
171 insideRestart = false;-
172-
173 localRestart();-
174}
executed 1935 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
1935
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 122 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-122
195 if (!time.isValid()
!time.isValid()Description
TRUEevaluated 122 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-122
196 lastTick = 0;-
197 time.start();-
198 temporalDrift = 0;-
199 driverStartTime = 0;-
200 }
executed 122 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
122
201 localRestart();-
202 }
executed 122 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
122
203}
executed 122 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
122
204-
205void QUnifiedTimer::stopTimer()-
206{-
207 stopTimerPending = false;-
208 if (animationTimers.isEmpty()
animationTimers.isEmpty()Description
TRUEevaluated 119 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-119
209 stopAnimationDriver();-
210 pauseTimer.stop();-
211-
212 time.invalidate();-
213 }
executed 119 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
119
214}
executed 119 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
119
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 122 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-122
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 122 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-122
243 inst->startTimersPending = true;-
244 QMetaObject::invokeMethod(inst, "startTimers", Qt::QueuedConnection);-
245 }
executed 122 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
122
246}
executed 122 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
122
247-
248void QUnifiedTimer::stopAnimationTimer(QAbstractAnimationTimer *timer)-
249{-
250 QUnifiedTimer *inst = QUnifiedTimer::instance(false);-
251 if (inst
instDescription
TRUEevaluated 119 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-119
252-
253-
254-
255 if (!timer->isRegistered
!timer->isRegisteredDescription
TRUEnever evaluated
FALSEevaluated 119 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-119
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 119 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-119
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
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMainWindow
)
1-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 119 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 119 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-119
267 inst->stopTimerPending = true;-
268 QMetaObject::invokeMethod(inst, "stopTimer", Qt::QueuedConnection);-
269 }
executed 119 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
119
270 }
executed 119 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 {
119
271 inst->animationTimersToStart.removeOne(timer);-
272 }
never executed: end of block
0
273 }-
274}
executed 119 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
119
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 119 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-119
293 return;
executed 119 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
119
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__, 520, __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__, 535, __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 && driver != &defaultDriver;
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 9988 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 9988 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-9988
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 1538 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 2701 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 1510 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-2701
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 4211 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-4211
372 }
executed 4211 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
  • ...
4211
373-
374-
375-
376-
377 return
executed 4239 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 4239 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
  • ...
4239
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 760 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 760 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 757 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-760
390 instU->updateAnimationTimers(-1);
executed 3 times by 1 test: instU->updateAnimationTimers(-1);
Executed by:
  • tst_QPauseAnimation
3
391}
executed 1153 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
  • ...
1153
392-
393void QAnimationTimer::updateAnimationsTime(qint64 delta)-
394{-
395-
396 if (insideTick
insideTickDescription
TRUEnever evaluated
FALSEevaluated 1918 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-1918
397 return;
never executed: return;
0
398-
399 lastTick += delta;-
400-
401-
402-
403-
404 if (delta
deltaDescription
TRUEevaluated 1918 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-1918
405 insideTick = true;-
406 for (currentAnimationIdx = 0; currentAnimationIdx < animations.count()
currentAnimati...ations.count()Description
TRUEevaluated 2102 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 1918 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) {
1918-2102
407 QAbstractAnimation *animation = animations.at(currentAnimationIdx);-
408 int elapsed = QAbstractAnimationPrivate::get(animation)->totalCurrentTime-
409 + (animation->direction() == QAbstractAnimation::Forward
animation->dir...ation::ForwardDescription
TRUEevaluated 2047 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-2047
410 animation->setCurrentTime(elapsed);-
411 }
executed 2102 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
2102
412 insideTick = false;-
413 currentAnimationIdx = 0;-
414 }
executed 1918 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
1918
415}
executed 1918 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
1918
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 139 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 1929 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 117 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-1929
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 2035 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-2035
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 113 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 1922 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
)
113-1922
431 QUnifiedTimer::startAnimationTimer(this);
executed 113 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
113
432}
executed 2068 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
2068
433-
434void QAnimationTimer::startAnimations()-
435{-
436 if (!startAnimationPending
!startAnimationPendingDescription
TRUEnever evaluated
FALSEevaluated 286 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-286
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 143 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
)
143
447 restartAnimationTimer();
executed 143 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
143
448}
executed 286 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
  • ...
286
449-
450void QAnimationTimer::stopTimer()-
451{-
452 stopTimerPending = false;-
453 bool pendingStart = startAnimationPending
startAnimationPendingDescription
TRUEevaluated 32 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 14 times by 2 tests
Evaluated by:
  • tst_QMainWindow
  • tst_QStateMachine
;
14-106
454 if (animations.isEmpty()
animations.isEmpty()Description
TRUEevaluated 137 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 119 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-137
455 QUnifiedTimer::resumeAnimationTimer(this);-
456 QUnifiedTimer::stopAnimationTimer(this);-
457-
458 lastTick = 0;-
459 }
executed 119 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
119
460}
executed 138 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
138
461-
462void QAnimationTimer::registerAnimation(QAbstractAnimation *animation, bool isTopLevel)-
463{-
464 QAnimationTimer *inst = instance(true);-
465 inst->registerRunningAnimation(animation);-
466 if (isTopLevel
isTopLevelDescription
TRUEevaluated 1121 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-1121
467 ((!(!QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer)) ? qt_assert("!QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer",__FILE__,672) : qt_noop());-
468 QAbstractAnimationPrivate::get(animation)->hasRegisteredTimer = true;-
469 inst->animationsToStart << animation;-
470 if (!inst->startAnimationPending
!inst->startAnimationPendingDescription
TRUEevaluated 291 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
) {
291-830
471 inst->startAnimationPending = true;-
472 QMetaObject::invokeMethod(inst, "startAnimations", Qt::QueuedConnection);-
473 }
executed 291 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
  • ...
291
474 }
executed 1121 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
  • ...
1121
475}
executed 1538 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
  • ...
1538
476-
477void QAnimationTimer::unregisterAnimation(QAbstractAnimation *animation)-
478{-
479 QAnimationTimer *inst = QAnimationTimer::instance(false);-
480 if (inst
instDescription
TRUEevaluated 1538 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-1538
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 1121 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-1121
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 157 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
) {
157-964
491 inst->animations.removeAt(idx);-
492-
493 if (idx <= inst->currentAnimationIdx
idx <= inst->c...ntAnimationIdxDescription
TRUEevaluated 150 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-150
494 --
executed 150 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 150 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
150
495-
496 if (inst->animations.isEmpty()
inst->animations.isEmpty()Description
TRUEevaluated 141 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 141 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-141
497 inst->stopTimerPending = true;-
498 QMetaObject::invokeMethod(inst, "stopTimer", Qt::QueuedConnection);-
499 }
executed 141 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
141
500 }
executed 157 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 {
157
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 1121 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
  • ...
1121
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 1426 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-1426
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 1399 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-1399
513 runningPauseAnimations << animation;-
514 }
executed 27 times by 2 tests: end of block
Executed by:
  • tst_QPauseAnimation
  • tst_QSequentialAnimationGroup
else
27
515 runningLeafAnimations++;
executed 1399 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
  • ...
1399
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 1426 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-1426
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 1399 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-1399
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 1399 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
  • ...
1399
527 ((!(runningLeafAnimations >= 0)) ? qt_assert("runningLeafAnimations >= 0",__FILE__,732) : qt_noop());-
528}
executed 1426 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
  • ...
1426
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 1916 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
1916
578void QAnimationDriver::advance()-
579{-
580 advanceAnimation(-1);-
581}
executed 1916 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
1916
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 4751 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 4751 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
  • ...
4751
603}-
604-
605-
606void QAnimationDriver::start()-
607{-
608 QAnimationDriverPrivate * const d = d_func();-
609 if (!d->running
!d->runningDescription
TRUEevaluated 124 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-124
610 d->running = true;-
611 d->timer.start();-
612 started();-
613 }
executed 124 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
124
614}
executed 124 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
124
615-
616-
617void QAnimationDriver::stop()-
618{-
619 QAnimationDriverPrivate * const d = d_func();-
620 if (d->running
d->runningDescription
TRUEevaluated 121 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-121
621 d->running = false;-
622 stopped();-
623 }
executed 121 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
121
624}
executed 150 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
150
625qint64 QAnimationDriver::elapsed() const-
626{-
627 const QAnimationDriverPrivate * const d = d_func();-
628 return
executed 2072 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->timer.elapsed() : 0;
executed 2072 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
2072
629}-
630QDefaultAnimationDriver::QDefaultAnimationDriver(QUnifiedTimer *timer)-
631 : QAnimationDriver(0), m_unified_timer(timer)-
632{-
633 connect(this, qFlagLocation("2""started()" "\0" __FILE__ ":" "933"), this, qFlagLocation("1""startTimer()" "\0" __FILE__ ":" "933"));-
634 connect(this, qFlagLocation("2""stopped()" "\0" __FILE__ ":" "934"), this, qFlagLocation("1""stopTimer()" "\0" __FILE__ ":" "934"));-
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__,939) : qt_noop());-
640 (void)e;;-
641 advance();-
642}
executed 1916 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
1916
643-
644void QDefaultAnimationDriver::startTimer()-
645{-
646-
647 m_timer.start(m_unified_timer->timingInterval, Qt::PreciseTimer, this);-
648}
executed 124 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
124
649-
650void QDefaultAnimationDriver::stopTimer()-
651{-
652 m_timer.stop();-
653}
executed 121 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
121
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 3037 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-3037
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 3036 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-3036
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 2978 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 1538 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 1440 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-2978
673 && oldState == QAbstractAnimation::Stopped
oldState == QA...ation::StoppedDescription
TRUEevaluated 1526 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-1526
674-
675-
676-
677 totalCurrentTime = currentTime = (
(direction == ...tion::Forward)Description
TRUEevaluated 1407 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 1407 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-1407
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 1526 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
  • ...
1526
680-
681 state = newState;-
682 QPointer<QAbstractAnimation> guard(q);-
683-
684-
685-
686 bool isTopLevel = !group
!groupDescription
TRUEevaluated 2218 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-2218
687 if (oldState == QAbstractAnimation::Running
oldState == QA...ation::RunningDescription
TRUEevaluated 1456 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 1580 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
  • ...
) {
1456-1580
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 1398 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-1398
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 1456 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 1538 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-1538
693 QAnimationTimer::registerAnimation(q, isTopLevel);-
694 }
executed 1538 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
  • ...
1538
695-
696 q->updateState(newState, oldState);-
697 if (!guard
!guardDescription
TRUEnever evaluated
FALSEevaluated 3036 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 3036 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-3036
698 return;
never executed: return;
0
699-
700-
701 q->stateChanged(newState, oldState);-
702 if (!guard
!guardDescription
TRUEnever evaluated
FALSEevaluated 3036 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 3036 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-3036
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 1538 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 1538 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
  • ...
1538
709 {-
710-
711-
712 if (oldState == QAbstractAnimation::Stopped
oldState == QA...ation::StoppedDescription
TRUEevaluated 1526 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-1526
713 if (isTopLevel
isTopLevelDescription
TRUEevaluated 1114 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-1114
714-
715 QAnimationTimer::ensureTimerUpdate();-
716 q->setCurrentTime(totalCurrentTime);-
717 }
executed 1114 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
  • ...
1114
718 }
executed 1526 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
  • ...
1526
719 }-
720 break;
executed 1538 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
  • ...
1538
721 case
executed 1440 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 1440 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
  • ...
1440
722-
723 int dura = q->duration();-
724-
725 if (deleteWhenStopped
deleteWhenStoppedDescription
TRUEevaluated 855 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-855
726 q->deleteLater();
executed 855 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
855
727-
728 if (dura == -1
dura == -1Description
TRUEevaluated 16 times by 3 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QScroller
  • tst_QSequentialAnimationGroup
FALSEevaluated 1424 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 1415 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-1424
729 || (oldDirection == QAbstractAnimation::Forward
oldDirection =...ation::ForwardDescription
TRUEevaluated 1323 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 101 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QLineEdit
  • tst_QMainWindow
  • 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 101 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QParallelAnimationGroup
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
)
92-1323
730 || (oldDirection == QAbstractAnimation::Backward
oldDirection =...tion::BackwardDescription
TRUEevaluated 92 times by 4 tests
Evaluated by:
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QTreeView
FALSEevaluated 101 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QLineEdit
  • tst_QMainWindow
  • 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-101
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 1440 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
  • ...
1440
734 }-
735}
executed 3036 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
  • ...
3036
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 2166 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
  • ...
2166
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 1982 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-1982
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 2068 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
  • ...
2068
777QAbstractAnimation::State QAbstractAnimation::state() const-
778{-
779 const QAbstractAnimationPrivate * const d = d_func();-
780 return
executed 3997 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 3997 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
3997
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 2165 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 2165 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
2165
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 8171 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 8171 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
8171
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 1192 times by 5 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
FALSEevaluated 8001 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
)
1192-8001
848 return
executed 1192 times by 5 tests: return dura;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
dura;
executed 1192 times by 5 tests: return dura;
Executed by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
1192
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 7969 times by 8 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QTreeWidget
)
32-7969
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 7969 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 7969 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
7969
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 1306 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 3855 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 3818 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 3818 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-3855
879 if (totalDura != -1
totalDura != -1Description
TRUEevaluated 4819 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 342 times by 6 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QParallelAnimationGroup
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QScroller
  • tst_QSequentialAnimationGroup
)
342-4819
880 msecs = qMin(totalDura, msecs);
executed 4819 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
  • ...
4819
881 d->totalCurrentTime = msecs;-
882-
883-
884 int oldLoop = d->currentLoop;-
885 d->currentLoop = ((
(dura <= 0)Description
TRUEevaluated 1306 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 3855 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 1306 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 3855 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));
1306-3855
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 4746 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-4746
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 4513 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-4513
892 d->currentTime = (
(dura <= 0)Description
TRUEevaluated 1276 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 3237 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 1276 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 3237 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);
1276-3237
893 }
executed 4513 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 {
4513
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 4924 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-4924
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 4851 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 3544 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-4851
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 3544 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-3544
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 5161 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
  • ...
5161
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 1534 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-1534
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 1534 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
  • ...
1534
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 1440 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
  • ...
)
1440-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 1440 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
  • ...
1440
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__, 1399, __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__, 1417, __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