qtimerinfo_unix.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qtimerinfo_unix.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Contact: http://www.qt.io/licensing/-
5**-
6** This file is part of the QtCore module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL21$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see http://www.qt.io/terms-conditions. For further-
15** information use the contact form at http://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 2.1 or version 3 as published by the Free-
20** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
21** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
22** following information to ensure the GNU Lesser General Public License-
23** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
24** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
25**-
26** As a special exception, The Qt Company gives you certain additional-
27** rights. These rights are described in The Qt Company LGPL Exception-
28** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
29**-
30** $QT_END_LICENSE$-
31**-
32****************************************************************************/-
33-
34#include <qelapsedtimer.h>-
35#include <qcoreapplication.h>-
36-
37#include "private/qcore_unix_p.h"-
38#include "private/qtimerinfo_unix_p.h"-
39#include "private/qobject_p.h"-
40#include "private/qabstracteventdispatcher_p.h"-
41-
42#ifdef QTIMERINFO_DEBUG-
43# include <QDebug>-
44# include <QThread>-
45#endif-
46-
47#include <sys/times.h>-
48-
49QT_BEGIN_NAMESPACE-
50-
51Q_CORE_EXPORT bool qt_disable_lowpriority_timers=false;-
52-
53/*-
54 * Internal functions for manipulating timer data structures. The-
55 * timerBitVec array is used for keeping track of timer identifiers.-
56 */-
57-
58QTimerInfoList::QTimerInfoList()-
59{-
60#if (_POSIX_MONOTONIC_CLOCK-0 <= 0) && !defined(Q_OS_MAC) && !defined(Q_OS_NACL)-
61 if (!QElapsedTimer::isMonotonic()) {
!QElapsedTimer::isMonotonic()Description
TRUEnever evaluated
FALSEevaluated 639945 times by 549 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
0-639945
62 // not using monotonic timers, initialize the timeChanged() machinery-
63 previousTime = qt_gettime();-
64-
65 tms unused;-
66 previousTicks = times(&unused);-
67-
68 ticksPerSecond = sysconf(_SC_CLK_TCK);-
69 msPerTick = 1000/ticksPerSecond;-
70 } else {
never executed: end of block
0
71 // detected monotonic timers-
72 previousTime.tv_sec = previousTime.tv_nsec = 0;-
73 previousTicks = 0;-
74 ticksPerSecond = 0;-
75 msPerTick = 0;-
76 }
executed 639945 times by 549 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
639945
77#endif-
78-
79 firstTimerInfo = 0;-
80}
executed 639945 times by 549 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
639945
81-
82timespec QTimerInfoList::updateCurrentTime()-
83{-
84 return (currentTime = qt_gettime());
executed 4206374 times by 378 tests: return (currentTime = qt_gettime());
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
4206374
85}-
86-
87#if ((_POSIX_MONOTONIC_CLOCK-0 <= 0) && !defined(Q_OS_MAC) && !defined(Q_OS_INTEGRITY)) || defined(QT_BOOTSTRAPPED)-
88-
89timespec qAbsTimespec(const timespec &t)-
90{-
91 timespec tmp = t;-
92 if (tmp.tv_sec < 0) {
tmp.tv_sec < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
93 tmp.tv_sec = -tmp.tv_sec - 1;-
94 tmp.tv_nsec -= 1000000000;-
95 }
never executed: end of block
0
96 if (tmp.tv_sec == 0 && tmp.tv_nsec < 0) {
tmp.tv_sec == 0Description
TRUEnever evaluated
FALSEnever evaluated
tmp.tv_nsec < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
97 tmp.tv_nsec = -tmp.tv_nsec;-
98 }
never executed: end of block
0
99 return normalizedTimespec(tmp);
never executed: return normalizedTimespec(tmp);
0
100}-
101-
102/*-
103 Returns \c true if the real time clock has changed by more than 10%-
104 relative to the processor time since the last time this function was-
105 called. This presumably means that the system time has been changed.-
106-
107 If /a delta is nonzero, delta is set to our best guess at how much the system clock was changed.-
108*/-
109bool QTimerInfoList::timeChanged(timespec *delta)-
110{-
111#ifdef Q_OS_NACL-
112 Q_UNUSED(delta)-
113 return false; // Calling "times" crashes.-
114#endif-
115 struct tms unused;-
116 clock_t currentTicks = times(&unused);-
117-
118 clock_t elapsedTicks = currentTicks - previousTicks;-
119 timespec elapsedTime = currentTime - previousTime;-
120-
121 timespec elapsedTimeTicks;-
122 elapsedTimeTicks.tv_sec = elapsedTicks / ticksPerSecond;-
123 elapsedTimeTicks.tv_nsec = (((elapsedTicks * 1000) / ticksPerSecond) % 1000) * 1000 * 1000;-
124-
125 timespec dummy;-
126 if (!delta)
!deltaDescription
TRUEnever evaluated
FALSEnever evaluated
0
127 delta = &dummy;
never executed: delta = &dummy;
0
128 *delta = elapsedTime - elapsedTimeTicks;-
129-
130 previousTicks = currentTicks;-
131 previousTime = currentTime;-
132-
133 // If tick drift is more than 10% off compared to realtime, we assume that the clock has-
134 // been set. Of course, we have to allow for the tick granularity as well.-
135 timespec tickGranularity;-
136 tickGranularity.tv_sec = 0;-
137 tickGranularity.tv_nsec = msPerTick * 1000 * 1000;-
138 return elapsedTimeTicks < ((qAbsTimespec(*delta) - tickGranularity) * 10);
never executed: return elapsedTimeTicks < ((qAbsTimespec(*delta) - tickGranularity) * 10);
0
139}-
140-
141/*-
142 repair broken timer-
143*/-
144void QTimerInfoList::timerRepair(const timespec &diff)-
145{-
146 // repair all timers-
147 for (int i = 0; i < size(); ++i) {
i < size()Description
TRUEnever evaluated
FALSEnever evaluated
0
148 QTimerInfo *t = at(i);-
149 t->timeout = t->timeout + diff;-
150 }
never executed: end of block
0
151}
never executed: end of block
0
152-
153void QTimerInfoList::repairTimersIfNeeded()-
154{-
155 if (QElapsedTimer::isMonotonic())
QElapsedTimer::isMonotonic()Description
TRUEevaluated 3743510 times by 365 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEnever evaluated
0-3743510
156 return;
executed 3743510 times by 365 tests: return;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
3743510
157 timespec delta;-
158 if (timeChanged(&delta))
timeChanged(&delta)Description
TRUEnever evaluated
FALSEnever evaluated
0
159 timerRepair(delta);
never executed: timerRepair(delta);
0
160}
never executed: end of block
0
161-
162#else // !(_POSIX_MONOTONIC_CLOCK-0 <= 0) && !defined(QT_BOOTSTRAPPED)-
163-
164void QTimerInfoList::repairTimersIfNeeded()-
165{-
166}-
167-
168#endif-
169-
170/*-
171 insert timer info into list-
172*/-
173void QTimerInfoList::timerInsert(QTimerInfo *ti)-
174{-
175 int index = size();-
176 while (index--) {
index--Description
TRUEevaluated 269002 times by 126 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • ...
FALSEevaluated 113254 times by 206 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
113254-269002
177 const QTimerInfo * const t = at(index);-
178 if (!(ti->timeout < t->timeout))
!(ti->timeout < t->timeout)Description
TRUEevaluated 122527 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
FALSEevaluated 146475 times by 97 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
122527-146475
179 break;
executed 122527 times by 108 tests: break;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
122527
180 }
executed 146475 times by 97 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
146475
181 insert(index+1, ti);-
182}
executed 235781 times by 206 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
235781
183-
184inline timespec &operator+=(timespec &t1, int ms)-
185{-
186 t1.tv_sec += ms / 1000;-
187 t1.tv_nsec += ms % 1000 * 1000 * 1000;-
188 return normalizedTimespec(t1);
executed 280467 times by 206 tests: return normalizedTimespec(t1);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
280467
189}-
190-
191inline timespec operator+(const timespec &t1, int ms)-
192{-
193 timespec t2 = t1;-
194 return t2 += ms;
executed 185312 times by 206 tests: return t2 += ms;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
185312
195}-
196-
197static timespec roundToMillisecond(timespec val)-
198{-
199 // always round up-
200 // worst case scenario is that the first trigger of a 1-ms timer is 0.999 ms late-
201-
202 int ns = val.tv_nsec % (1000 * 1000);-
203 val.tv_nsec += 1000 * 1000 - ns;-
204 return normalizedTimespec(val);
executed 277800 times by 191 tests: return normalizedTimespec(val);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
277800
205}-
206-
207#ifdef QTIMERINFO_DEBUG-
208QDebug operator<<(QDebug s, timeval tv)-
209{-
210 QDebugStateSaver saver(s);-
211 s.nospace() << tv.tv_sec << "." << qSetFieldWidth(6) << qSetPadChar(QChar(48)) << tv.tv_usec << reset;-
212 return s;-
213}-
214QDebug operator<<(QDebug s, Qt::TimerType t)-
215{-
216 QDebugStateSaver saver(s);-
217 s << (t == Qt::PreciseTimer ? "P" :-
218 t == Qt::CoarseTimer ? "C" : "VC");-
219 return s;-
220}-
221#endif-
222-
223static void calculateCoarseTimerTimeout(QTimerInfo *t, timespec currentTime)-
224{-
225 // The coarse timer works like this:-
226 // - interval under 40 ms: round to even-
227 // - between 40 and 99 ms: round to multiple of 4-
228 // - otherwise: try to wake up at a multiple of 25 ms, with a maximum error of 5%-
229 //-
230 // We try to wake up at the following second-fraction, in order of preference:-
231 // 0 ms-
232 // 500 ms-
233 // 250 ms or 750 ms-
234 // 200, 400, 600, 800 ms-
235 // other multiples of 100-
236 // other multiples of 50-
237 // other multiples of 25-
238 //-
239 // The objective is to make most timers wake up at the same time, thereby reducing CPU wakeups.-
240-
241 uint interval = uint(t->interval);-
242 uint msec = uint(t->timeout.tv_nsec) / 1000 / 1000;-
243 Q_ASSERT(interval >= 20);-
244-
245 // Calculate how much we can round and still keep within 5% error-
246 uint absMaxRounding = interval / 20;-
247-
248 if (interval < 100 && interval != 25 && interval != 50 && interval != 75) {
interval < 100Description
TRUEevaluated 1464 times by 11 tests
Evaluated by:
  • tst_QGraphicsLayout
  • tst_QMenu
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QScrollBar
  • tst_QTimeLine
  • tst_QTimer
  • tst_QToolButton
  • tst_QTreeView
FALSEevaluated 10174 times by 136 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
interval != 25Description
TRUEevaluated 1464 times by 11 tests
Evaluated by:
  • tst_QGraphicsLayout
  • tst_QMenu
  • tst_QMessageBox
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QObject
  • tst_QScrollBar
  • tst_QTimeLine
  • tst_QTimer
  • tst_QToolButton
  • tst_QTreeView
FALSEnever evaluated
interval != 50Description
TRUEevaluated 1362 times by 5 tests
Evaluated by:
  • tst_QGraphicsLayout
  • tst_QMovie
  • tst_QObject
  • tst_QTimeLine
  • tst_QTimer
FALSEevaluated 102 times by 6 tests
Evaluated by:
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QScrollBar
  • tst_QToolButton
  • tst_QTreeView
interval != 75Description
TRUEevaluated 1362 times by 5 tests
Evaluated by:
  • tst_QGraphicsLayout
  • tst_QMovie
  • tst_QObject
  • tst_QTimeLine
  • tst_QTimer
FALSEnever evaluated
0-10174
249 // special mode for timers of less than 100 ms-
250 if (interval < 50) {
interval < 50Description
TRUEevaluated 1341 times by 3 tests
Evaluated by:
  • tst_QGraphicsLayout
  • tst_QMovie
  • tst_QTimeLine
FALSEevaluated 21 times by 3 tests
Evaluated by:
  • tst_QMovie
  • tst_QObject
  • tst_QTimer
21-1341
251 // round to even-
252 // round towards multiples of 50 ms-
253 bool roundUp = (msec % 50) >= 25;-
254 msec >>= 1;-
255 msec |= uint(roundUp);-
256 msec <<= 1;-
257 } else {
executed 1341 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsLayout
  • tst_QMovie
  • tst_QTimeLine
1341
258 // round to multiple of 4-
259 // round towards multiples of 100 ms-
260 bool roundUp = (msec % 100) >= 50;-
261 msec >>= 2;-
262 msec |= uint(roundUp);-
263 msec <<= 2;-
264 }
executed 21 times by 3 tests: end of block
Executed by:
  • tst_QMovie
  • tst_QObject
  • tst_QTimer
21
265 } else {-
266 uint min = qMax<int>(0, msec - absMaxRounding);-
267 uint max = qMin(1000u, msec + absMaxRounding);-
268-
269 // find the boundary that we want, according to the rules above-
270 // extra rules:-
271 // 1) whatever the interval, we'll take any round-to-the-second timeout-
272 if (min == 0) {
min == 0Description
TRUEevaluated 1447 times by 65 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusThreading
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsItem
  • ...
FALSEevaluated 8829 times by 127 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
1447-8829
273 msec = 0;-
274 goto recalculate;
executed 1447 times by 65 tests: goto recalculate;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusThreading
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsItem
  • ...
1447
275 } else if (max == 1000) {
max == 1000Description
TRUEevaluated 822 times by 67 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHostInfo
  • ...
FALSEevaluated 8007 times by 115 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
822-8007
276 msec = 1000;-
277 goto recalculate;
executed 822 times by 67 tests: goto recalculate;
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHostInfo
  • ...
822
278 }-
279-
280 uint wantedBoundaryMultiple;-
281-
282 // 2) if the interval is a multiple of 500 ms and > 5000 ms, we'll always round-
283 // towards a round-to-the-second-
284 // 3) if the interval is a multiple of 500 ms, we'll round towards the nearest-
285 // multiple of 500 ms-
286 if ((interval % 500) == 0) {
(interval % 500) == 0Description
TRUEevaluated 5685 times by 100 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • ...
FALSEevaluated 2322 times by 65 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
2322-5685
287 if (interval >= 5000) {
interval >= 5000Description
TRUEevaluated 244 times by 15 tests
Evaluated by:
  • tst_QBuffer
  • tst_QDBusInterface
  • tst_QFutureWatcher
  • tst_QHostInfo
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSignalSpy
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
FALSEevaluated 5441 times by 94 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • ...
244-5441
288 msec = msec >= 500 ? max : min;
msec >= 500Description
TRUEevaluated 163 times by 10 tests
Evaluated by:
  • tst_QBuffer
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTimer
FALSEevaluated 81 times by 12 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QFutureWatcher
  • tst_QHostInfo
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSignalSpy
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
81-163
289 goto recalculate;
executed 244 times by 15 tests: goto recalculate;
Executed by:
  • tst_QBuffer
  • tst_QDBusInterface
  • tst_QFutureWatcher
  • tst_QHostInfo
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QNetworkReply
  • tst_QProcess
  • tst_QSignalSpy
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
244
290 } else {-
291 wantedBoundaryMultiple = 500;-
292 }
executed 5441 times by 94 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • ...
5441
293 } else if ((interval % 50) == 0) {
(interval % 50) == 0Description
TRUEevaluated 2311 times by 65 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QMovie
11-2311
294 // 4) same for multiples of 250, 200, 100, 50-
295 uint mult50 = interval / 50;-
296 if ((mult50 % 4) == 0) {
(mult50 % 4) == 0Description
TRUEevaluated 919 times by 17 tests
Evaluated by:
  • tst_QComboBox
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QStateMachine
  • tst_QTextEdit
  • tst_QTimeLine
  • tst_QTimer
  • tst_QTreeView
FALSEevaluated 1392 times by 59 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDialog
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • ...
919-1392
297 // multiple of 200-
298 wantedBoundaryMultiple = 200;-
299 } else if ((mult50 % 2) == 0) {
executed 919 times by 17 tests: end of block
Executed by:
  • tst_QComboBox
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QGraphicsProxyWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QSignalSpy
  • tst_QStateMachine
  • tst_QTextEdit
  • tst_QTimeLine
  • tst_QTimer
  • tst_QTreeView
(mult50 % 2) == 0Description
TRUEevaluated 1239 times by 56 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDialog
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QItemView
  • ...
FALSEevaluated 153 times by 9 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QScrollBar
  • tst_QToolButton
  • tst_QTreeView
153-1239
300 // multiple of 100-
301 wantedBoundaryMultiple = 100;-
302 } else if ((mult50 % 5) == 0) {
executed 1239 times by 56 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDialog
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGestureRecognizer
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QItemView
  • ...
(mult50 % 5) == 0Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QAbstractSlider
FALSEevaluated 148 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QScrollBar
  • tst_QToolButton
  • tst_QTreeView
5-1239
303 // multiple of 250-
304 wantedBoundaryMultiple = 250;-
305 } else {
executed 5 times by 1 test: end of block
Executed by:
  • tst_QAbstractSlider
5
306 // multiple of 50-
307 wantedBoundaryMultiple = 50;-
308 }
executed 148 times by 8 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QMenu
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QScrollBar
  • tst_QToolButton
  • tst_QTreeView
148
309 } else {-
310 wantedBoundaryMultiple = 25;-
311 }
executed 11 times by 1 test: end of block
Executed by:
  • tst_QMovie
11
312-
313 uint base = msec / wantedBoundaryMultiple * wantedBoundaryMultiple;-
314 uint middlepoint = base + wantedBoundaryMultiple / 2;-
315 if (msec < middlepoint)
msec < middlepointDescription
TRUEevaluated 4007 times by 99 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 3756 times by 93 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • ...
3756-4007
316 msec = qMax(base, min);
executed 4007 times by 99 tests: msec = qMax(base, min);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • ...
4007
317 else-
318 msec = qMin(base + wantedBoundaryMultiple, max);
executed 3756 times by 93 tests: msec = qMin(base + wantedBoundaryMultiple, max);
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • ...
3756
319 }-
320-
321recalculate:
code before this statement executed 9125 times by 109 tests: recalculate:
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • ...
9125
322 if (msec == 1000u) {
msec == 1000uDescription
TRUEevaluated 822 times by 67 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHostInfo
  • ...
FALSEevaluated 10816 times by 130 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
822-10816
323 ++t->timeout.tv_sec;-
324 t->timeout.tv_nsec = 0;-
325 } else {
executed 822 times by 67 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDateTimeEdit
  • tst_QDnsLookup
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFontMetrics
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGroupBox
  • tst_QGuiApplication
  • tst_QHostInfo
  • ...
822
326 t->timeout.tv_nsec = msec * 1000 * 1000;-
327 }
executed 10816 times by 130 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
10816
328-
329 if (t->timeout < currentTime)
t->timeout < currentTimeDescription
TRUEnever evaluated
FALSEevaluated 11638 times by 136 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
0-11638
330 t->timeout += interval;
never executed: t->timeout += interval;
0
331}
executed 11638 times by 136 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
11638
332-
333static void calculateNextTimeout(QTimerInfo *t, timespec currentTime)-
334{-
335 switch (t->timerType) {-
336 case Qt::PreciseTimer:
executed 47701 times by 90 tests: case Qt::PreciseTimer:
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
47701
337 case Qt::CoarseTimer:
executed 2626 times by 67 tests: case Qt::CoarseTimer:
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • ...
2626
338 t->timeout += t->interval;-
339 if (t->timeout < currentTime) {
t->timeout < currentTimeDescription
TRUEevaluated 44828 times by 71 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 5499 times by 86 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • ...
5499-44828
340 t->timeout = currentTime;-
341 t->timeout += t->interval;-
342 }
executed 44828 times by 71 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • ...
44828
343#ifdef QTIMERINFO_DEBUG-
344 t->expected += t->interval;-
345 if (t->expected < currentTime) {-
346 t->expected = currentTime;-
347 t->expected += t->interval;-
348 }-
349#endif-
350 if (t->timerType == Qt::CoarseTimer)
t->timerType =...t::CoarseTimerDescription
TRUEevaluated 2626 times by 67 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • ...
FALSEevaluated 47701 times by 90 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
2626-47701
351 calculateCoarseTimerTimeout(t, currentTime);
executed 2626 times by 67 tests: calculateCoarseTimerTimeout(t, currentTime);
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • ...
2626
352 return;
executed 50327 times by 114 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
50327
353-
354 case Qt::VeryCoarseTimer:
executed 142 times by 6 tests: case Qt::VeryCoarseTimer:
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsView
  • tst_QNetworkReply
  • tst_QWidget
142
355 // we don't need to take care of the microsecond component of t->interval-
356 t->timeout.tv_sec += t->interval;-
357 if (t->timeout.tv_sec <= currentTime.tv_sec)
t->timeout.tv_...entTime.tv_secDescription
TRUEnever evaluated
FALSEevaluated 142 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsView
  • tst_QNetworkReply
  • tst_QWidget
0-142
358 t->timeout.tv_sec = currentTime.tv_sec + t->interval;
never executed: t->timeout.tv_sec = currentTime.tv_sec + t->interval;
0
359#ifdef QTIMERINFO_DEBUG-
360 t->expected.tv_sec += t->interval;-
361 if (t->expected.tv_sec <= currentTime.tv_sec)-
362 t->expected.tv_sec = currentTime.tv_sec + t->interval;-
363#endif-
364 return;
executed 142 times by 6 tests: return;
Executed by:
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsView
  • tst_QNetworkReply
  • tst_QWidget
142
365 }-
366-
367#ifdef QTIMERINFO_DEBUG-
368 if (t->timerType != Qt::PreciseTimer)-
369 qDebug() << "timer" << t->timerType << hex << t->id << dec << "interval" << t->interval-
370 << "originally expected at" << t->expected << "will fire at" << t->timeout-
371 << "or" << (t->timeout - t->expected) << "s late";-
372#endif-
373}
never executed: end of block
0
374-
375/*-
376 Returns the time to wait for the next timer, or null if no timers-
377 are waiting.-
378*/-
379bool QTimerInfoList::timerWait(timespec &tm)-
380{-
381 timespec currentTime = updateCurrentTime();-
382 repairTimersIfNeeded();-
383-
384 // Find first waiting timer not already active-
385 QTimerInfo *t = 0;-
386 for (QTimerInfoList::const_iterator it = constBegin(); it != constEnd(); ++it) {
it != constEnd()Description
TRUEevaluated 322437 times by 191 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 3374121 times by 358 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
322437-3374121
387 if (!(*it)->activateRef) {
!(*it)->activateRefDescription
TRUEevaluated 322405 times by 191 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 32 times by 1 test
Evaluated by:
  • tst_QTimer
32-322405
388 t = *it;-
389 break;
executed 322405 times by 191 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
322405
390 }-
391 }
executed 32 times by 1 test: end of block
Executed by:
  • tst_QTimer
32
392-
393 if (!t)
!tDescription
TRUEevaluated 3374121 times by 358 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 322405 times by 191 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
322405-3374121
394 return false;
executed 3374121 times by 358 tests: return false;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
3374121
395-
396 if (currentTime < t->timeout) {
currentTime < t->timeoutDescription
TRUEevaluated 277796 times by 191 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 44609 times by 94 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
44609-277796
397 // time to wait-
398 tm = roundToMillisecond(t->timeout - currentTime);-
399 } else {
executed 277796 times by 191 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
277796
400 // no time to wait-
401 tm.tv_sec = 0;-
402 tm.tv_nsec = 0;-
403 }
executed 44609 times by 94 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
44609
404-
405 return true;
executed 322405 times by 191 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
322405
406}-
407-
408/*-
409 Returns the timer's remaining time in milliseconds with the given timerId, or-
410 null if there is nothing left. If the timer id is not found in the list, the-
411 returned value will be -1. If the timer is overdue, the returned value will be 0.-
412*/-
413int QTimerInfoList::timerRemainingTime(int timerId)-
414{-
415 timespec currentTime = updateCurrentTime();-
416 repairTimersIfNeeded();-
417 timespec tm = {0, 0};-
418-
419 for (int i = 0; i < count(); ++i) {
i < count()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTimer
FALSEnever evaluated
0-4
420 QTimerInfo *t = at(i);-
421 if (t->id == timerId) {
t->id == timerIdDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTimer
FALSEnever evaluated
0-4
422 if (currentTime < t->timeout) {
currentTime < t->timeoutDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QTimer
FALSEnever evaluated
0-4
423 // time to wait-
424 tm = roundToMillisecond(t->timeout - currentTime);-
425 return tm.tv_sec*1000 + tm.tv_nsec/1000/1000;
executed 4 times by 1 test: return tm.tv_sec*1000 + tm.tv_nsec/1000/1000;
Executed by:
  • tst_QTimer
4
426 } else {-
427 return 0;
never executed: return 0;
0
428 }-
429 }-
430 }
never executed: end of block
0
431-
432#ifndef QT_NO_DEBUG-
433 qWarning("QTimerInfoList::timerRemainingTime: timer id %i not found", timerId);-
434#endif-
435-
436 return -1;
never executed: return -1;
0
437}-
438-
439void QTimerInfoList::registerTimer(int timerId, int interval, Qt::TimerType timerType, QObject *object)-
440{-
441 QTimerInfo *t = new QTimerInfo;-
442 t->id = timerId;-
443 t->interval = interval;-
444 t->timerType = timerType;-
445 t->obj = object;-
446 t->activateRef = 0;-
447-
448 timespec expected = updateCurrentTime() + interval;-
449-
450 switch (timerType) {-
451 case Qt::PreciseTimer:
executed 40735 times by 43 tests: case Qt::PreciseTimer:
Executed by:
  • tst_QAbstractAnimation
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusMarshall
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QPushButton
  • ...
40735
452 // high precision timer is based on millisecond precision-
453 // so no adjustment is necessary-
454 t->timeout = expected;-
455 break;
executed 40735 times by 43 tests: break;
Executed by:
  • tst_QAbstractAnimation
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusMarshall
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QOpenGLWidget
  • tst_QOpenGLWindow
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProgressBar
  • tst_QPropertyAnimation
  • tst_QPushButton
  • ...
40735
456-
457 case Qt::CoarseTimer:
executed 144575 times by 199 tests: case Qt::CoarseTimer:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
144575
458 // this timer has up to 5% coarseness-
459 // so our boundaries are 20 ms and 20 s-
460 // below 20 ms, 5% inaccuracy is below 1 ms, so we convert to high precision-
461 // above 20 s, 5% inaccuracy is above 1 s, so we convert to VeryCoarseTimer-
462 if (interval >= 20000) {
interval >= 20000Description
TRUEevaluated 8179 times by 186 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 136396 times by 155 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • ...
8179-136396
463 t->timerType = Qt::VeryCoarseTimer;-
464 // fall through-
465 } else {
executed 8179 times by 186 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
8179
466 t->timeout = expected;-
467 if (interval <= 20) {
interval <= 20Description
TRUEevaluated 127384 times by 80 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • ...
FALSEevaluated 9012 times by 136 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
9012-127384
468 t->timerType = Qt::PreciseTimer;-
469 // no adjustment is necessary-
470 } else if (interval <= 20000) {
executed 127384 times by 80 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • ...
interval <= 20000Description
TRUEevaluated 9012 times by 136 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
FALSEnever evaluated
0-127384
471 calculateCoarseTimerTimeout(t, currentTime);-
472 }
executed 9012 times by 136 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
9012
473 break;
executed 136396 times by 155 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • ...
136396
474 }-
475 // fall through-
476 case Qt::VeryCoarseTimer:
code before this statement executed 8179 times by 186 tests: case Qt::VeryCoarseTimer:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
executed 2 times by 1 test: case Qt::VeryCoarseTimer:
Executed by:
  • tst_QEventDispatcher
2-8179
477 // the very coarse timer is based on full second precision,-
478 // so we keep the interval in seconds (round to closest second)-
479 t->interval /= 500;-
480 t->interval += 1;-
481 t->interval >>= 1;-
482 t->timeout.tv_sec = currentTime.tv_sec + t->interval;-
483 t->timeout.tv_nsec = 0;-
484-
485 // if we're past the half-second mark, increase the timeout again-
486 if (currentTime.tv_nsec > 500*1000*1000)
currentTime.tv... 500*1000*1000Description
TRUEevaluated 3978 times by 132 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
FALSEevaluated 4203 times by 116 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusThreading
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • ...
3978-4203
487 ++t->timeout.tv_sec;
executed 3978 times by 132 tests: ++t->timeout.tv_sec;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • ...
3978
488 }
executed 8181 times by 187 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
8181
489-
490 timerInsert(t);-
491-
492#ifdef QTIMERINFO_DEBUG-
493 t->expected = expected;-
494 t->cumulativeError = 0;-
495 t->count = 0;-
496 if (t->timerType != Qt::PreciseTimer)-
497 qDebug() << "timer" << t->timerType << hex <<t->id << dec << "interval" << t->interval << "expected at"-
498 << t->expected << "will fire first at" << t->timeout;-
499#endif-
500}
executed 185312 times by 206 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
185312
501-
502bool QTimerInfoList::unregisterTimer(int timerId)-
503{-
504 // set timer inactive-
505 for (int i = 0; i < count(); ++i) {
i < count()Description
TRUEevaluated 62597616 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEnever evaluated
0-62597616
506 QTimerInfo *t = at(i);-
507 if (t->id == timerId) {
t->id == timerIdDescription
TRUEevaluated 161101 times by 217 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 62436515 times by 83 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsProxyWidget
  • ...
161101-62436515
508 // found it-
509 removeAt(i);-
510 if (t == firstTimerInfo)
t == firstTimerInfoDescription
TRUEevaluated 33392 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
FALSEevaluated 127709 times by 215 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
33392-127709
511 firstTimerInfo = 0;
executed 33392 times by 105 tests: firstTimerInfo = 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
33392
512 if (t->activateRef)
t->activateRefDescription
TRUEevaluated 33438 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
FALSEevaluated 127663 times by 215 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
33438-127663
513 *(t->activateRef) = 0;
executed 33438 times by 105 tests: *(t->activateRef) = 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
33438
514 delete t;-
515 return true;
executed 161101 times by 217 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
161101
516 }-
517 }
executed 62436515 times by 83 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsProxyWidget
  • ...
62436515
518 // id not found-
519 return false;
never executed: return false;
0
520}-
521-
522bool QTimerInfoList::unregisterTimers(QObject *object)-
523{-
524 if (isEmpty())
isEmpty()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 22416 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
2-22416
525 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QObject
2
526 for (int i = 0; i < count(); ++i) {
i < count()Description
TRUEevaluated 26376 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 22416 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
22416-26376
527 QTimerInfo *t = at(i);-
528 if (t->obj == object) {
t->obj == objectDescription
TRUEevaluated 22474 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 3902 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGroupBox
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • ...
3902-22474
529 // object found-
530 removeAt(i);-
531 if (t == firstTimerInfo)
t == firstTimerInfoDescription
TRUEnever evaluated
FALSEevaluated 22474 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
0-22474
532 firstTimerInfo = 0;
never executed: firstTimerInfo = 0;
0
533 if (t->activateRef)
t->activateRefDescription
TRUEnever evaluated
FALSEevaluated 22474 times by 65 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
0-22474
534 *(t->activateRef) = 0;
never executed: *(t->activateRef) = 0;
0
535 delete t;-
536 // move back one so that we don't skip the new current item-
537 --i;-
538 }
executed 22474 times by 65 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
22474
539 }
executed 26376 times by 65 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
26376
540 return true;
executed 22416 times by 65 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
22416
541}-
542-
543QList<QAbstractEventDispatcher::TimerInfo> QTimerInfoList::registeredTimers(QObject *object) const-
544{-
545 QList<QAbstractEventDispatcher::TimerInfo> list;-
546 for (int i = 0; i < count(); ++i) {
i < count()Description
TRUEevaluated 44986 times by 51 tests
Evaluated by:
  • tst_ModelTest
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QEventDispatcher
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsSceneIndex
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemView
  • tst_QLayout
  • tst_QMainWindow
  • ...
FALSEevaluated 65826 times by 331 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
44986-65826
547 const QTimerInfo * const t = at(i);-
548 if (t->obj == object) {
t->obj == objectDescription
TRUEevaluated 20024 times by 4 tests
Evaluated by:
  • tst_QEventDispatcher
  • tst_QObject
  • tst_QTcpSocket
  • tst_QTimer
FALSEevaluated 24962 times by 50 tests
Evaluated by:
  • tst_ModelTest
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsSceneIndex
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemView
  • tst_QLayout
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
20024-24962
549 list << QAbstractEventDispatcher::TimerInfo(t->id,-
550 (t->timerType == Qt::VeryCoarseTimer-
551 ? t->interval * 1000-
552 : t->interval),-
553 t->timerType);-
554 }
executed 20024 times by 4 tests: end of block
Executed by:
  • tst_QEventDispatcher
  • tst_QObject
  • tst_QTcpSocket
  • tst_QTimer
20024
555 }
executed 44986 times by 51 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QEventDispatcher
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsSceneIndex
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemView
  • tst_QLayout
  • tst_QMainWindow
  • ...
44986
556 return list;
executed 65826 times by 331 tests: return list;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65826
557}-
558-
559/*-
560 Activate pending timers, returning how many where activated.-
561*/-
562int QTimerInfoList::activateTimers()-
563{-
564 if (qt_disable_lowpriority_timers || isEmpty())
qt_disable_lowpriority_timersDescription
TRUEnever evaluated
FALSEevaluated 46996 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
isEmpty()Description
TRUEevaluated 16 times by 8 tests
Evaluated by:
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsWidget
  • tst_QStateMachine
FALSEevaluated 46980 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
0-46996
565 return 0; // nothing to do
executed 16 times by 8 tests: return 0;
Executed by:
  • tst_QGraphicsEffect
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsWidget
  • tst_QStateMachine
16
566-
567 int n_act = 0, maxCount = 0;-
568 firstTimerInfo = 0;-
569-
570 timespec currentTime = updateCurrentTime();-
571 // qDebug() << "Thread" << QThread::currentThreadId() << "woken up at" << currentTime;-
572 repairTimersIfNeeded();-
573-
574-
575 // Find out how many timer have expired-
576 for (QTimerInfoList::const_iterator it = constBegin(); it != constEnd(); ++it) {
it != constEnd()Description
TRUEevaluated 62399 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 35264 times by 82 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
35264-62399
577 if (currentTime < (*it)->timeout)
currentTime < (*it)->timeoutDescription
TRUEevaluated 11716 times by 78 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
FALSEevaluated 50683 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
11716-50683
578 break;
executed 11716 times by 78 tests: break;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
11716
579 maxCount++;-
580 }
executed 50683 times by 114 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
50683
581-
582 //fire the timers.-
583 while (maxCount--) {
maxCount--Description
TRUEevaluated 50622 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 46826 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
46826-50622
584 if (isEmpty())
isEmpty()Description
TRUEnever evaluated
FALSEevaluated 50622 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
0-50622
585 break;
never executed: break;
0
586-
587 QTimerInfo *currentTimerInfo = first();-
588 if (currentTime < currentTimerInfo->timeout)
currentTime < ...rInfo->timeoutDescription
TRUEevaluated 153 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTimer
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
FALSEevaluated 50469 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
153-50469
589 break; // no timer has expired
executed 153 times by 17 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QListView
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTimer
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_languageChange
153
590-
591 if (!firstTimerInfo) {
!firstTimerInfoDescription
TRUEevaluated 50307 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 162 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QColumnView
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPainter
  • tst_QTimer
  • tst_QTouchEvent
  • tst_QTreeWidget
  • tst_QWidget
  • tst_languageChange
162-50307
592 firstTimerInfo = currentTimerInfo;-
593 } else if (firstTimerInfo == currentTimerInfo) {
executed 50307 times by 114 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
firstTimerInfo...rrentTimerInfoDescription
TRUEnever evaluated
FALSEevaluated 162 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QColumnView
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPainter
  • tst_QTimer
  • tst_QTouchEvent
  • tst_QTreeWidget
  • tst_QWidget
  • tst_languageChange
0-50307
594 // avoid sending the same timer multiple times-
595 break;
never executed: break;
0
596 } else if (currentTimerInfo->interval < firstTimerInfo->interval
currentTimerIn...Info->intervalDescription
TRUEevaluated 41 times by 10 tests
Evaluated by:
  • tst_QColumnView
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QTreeWidget
  • tst_QWidget
  • tst_languageChange
FALSEevaluated 121 times by 12 tests
Evaluated by:
  • tst_QApplication
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QMainWindow
  • tst_QPainter
  • tst_QTimer
  • tst_QTouchEvent
41-121
597 || currentTimerInfo->interval == firstTimerInfo->interval) {
currentTimerIn...Info->intervalDescription
TRUEevaluated 68 times by 9 tests
Evaluated by:
  • tst_QDialog
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QPainter
  • tst_QTimer
  • tst_QTouchEvent
FALSEevaluated 53 times by 4 tests
Evaluated by:
  • tst_QApplication
  • tst_QFileDialog2
  • tst_QMainWindow
  • tst_QTimer
53-68
598 firstTimerInfo = currentTimerInfo;-
599 }
executed 109 times by 19 tests: end of block
Executed by:
  • tst_QColumnView
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QPainter
  • tst_QTimer
  • tst_QTouchEvent
  • tst_QTreeWidget
  • tst_QWidget
  • tst_languageChange
109
600-
601 // remove from list-
602 removeFirst();-
603-
604#ifdef QTIMERINFO_DEBUG-
605 float diff;-
606 if (currentTime < currentTimerInfo->expected) {-
607 // early-
608 timeval early = currentTimerInfo->expected - currentTime;-
609 diff = -(early.tv_sec + early.tv_usec / 1000000.0);-
610 } else {-
611 timeval late = currentTime - currentTimerInfo->expected;-
612 diff = late.tv_sec + late.tv_usec / 1000000.0;-
613 }-
614 currentTimerInfo->cumulativeError += diff;-
615 ++currentTimerInfo->count;-
616 if (currentTimerInfo->timerType != Qt::PreciseTimer)-
617 qDebug() << "timer" << currentTimerInfo->timerType << hex << currentTimerInfo->id << dec << "interval"-
618 << currentTimerInfo->interval << "firing at" << currentTime-
619 << "(orig" << currentTimerInfo->expected << "scheduled at" << currentTimerInfo->timeout-
620 << ") off by" << diff << "activation" << currentTimerInfo->count-
621 << "avg error" << (currentTimerInfo->cumulativeError / currentTimerInfo->count);-
622#endif-
623-
624 // determine next timeout time-
625 calculateNextTimeout(currentTimerInfo, currentTime);-
626-
627 // reinsert timer-
628 timerInsert(currentTimerInfo);-
629 if (currentTimerInfo->interval > 0)
currentTimerInfo->interval > 0Description
TRUEevaluated 5732 times by 91 tests
Evaluated by:
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
FALSEevaluated 44737 times by 59 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • ...
5732-44737
630 n_act++;
executed 5732 times by 91 tests: n_act++;
Executed by:
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
5732
631-
632 if (!currentTimerInfo->activateRef) {
!currentTimerInfo->activateRefDescription
TRUEevaluated 50431 times by 114 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 38 times by 1 test
Evaluated by:
  • tst_QTimer
38-50431
633 // send event, but don't allow it to recurse-
634 currentTimerInfo->activateRef = &currentTimerInfo;-
635-
636 QTimerEvent e(currentTimerInfo->id);-
637 QCoreApplication::sendEvent(currentTimerInfo->obj, &e);-
638-
639 if (currentTimerInfo)
currentTimerInfoDescription
TRUEevaluated 16992 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
FALSEevaluated 33438 times by 105 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • ...
16992-33438
640 currentTimerInfo->activateRef = 0;
executed 16992 times by 58 tests: currentTimerInfo->activateRef = 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDialog
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
16992
641 }
executed 50430 times by 114 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
50430
642 }
executed 50468 times by 114 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
50468
643-
644 firstTimerInfo = 0;-
645 // qDebug() << "Thread" << QThread::currentThreadId() << "activated" << n_act << "timers";-
646 return n_act;
executed 46979 times by 114 tests: return n_act;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
46979
647}-
648-
649QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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