qcoreapplication.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17-
18class QMutexUnlocker-
19{-
20public:-
21 inline explicit QMutexUnlocker(QMutex *m)-
22 : mtx(m)-
23 { }-
24 inline ~QMutexUnlocker() { unlock(); }-
25 inline void unlock() { if (mtx) mtx->unlock(); mtx = 0; }-
26-
27private:-
28 QMutexUnlocker(const QMutexUnlocker &) = delete; QMutexUnlocker &operator=(const QMutexUnlocker &) = delete;-
29-
30 QMutex *mtx;-
31};-
32int QCoreApplicationPrivate::app_compile_version = 0x050000;-
33-
34bool QCoreApplicationPrivate::setuidAllowed = false;-
35QString QCoreApplicationPrivate::appName() const-
36{-
37 QString applicationName;-
38-
39-
40-
41 if (applicationName.isEmpty() && argv[0]) {-
42 char *p = strrchr(argv[0], '/');-
43 applicationName = QString::fromLocal8Bit(p ? p + 1 : argv[0]);-
44 }-
45-
46 return applicationName;-
47}-
48-
49-
50QString *QCoreApplicationPrivate::cachedApplicationFilePath = 0;-
51-
52bool QCoreApplicationPrivate::checkInstance(const char *function)-
53{-
54 bool b = (QCoreApplication::self != 0);-
55 if (!b)-
56 QMessageLogger(__FILE__, 177178, __PRETTY_FUNCTION__).warning("QApplication::%s: Please instantiate the QApplication object first", function);-
57 return b;-
58}-
59-
60void QCoreApplicationPrivate::processCommandLineArguments()-
61{-
62 int j = argc ? 1 : 0;-
63 for (int i = 1; i < argc; ++i) {-
64 if (!argv[i])-
65 continue;-
66 if (*argv[i] != '-') {-
67 argv[j++] = argv[i];-
68 continue;-
69 }-
70 const char *arg = argv[i];-
71 if (arg[1] == '-')-
72 ++arg;-
73 if (strncmp(arg, "-qmljsdebugger=", 15) == 0) {-
74 qmljs_debug_arguments = QString::fromLocal8Bit(arg + 15);-
75 } else if (strcmp(arg, "-qmljsdebugger") == 0 && i < argc - 1) {-
76 ++i;-
77 qmljs_debug_arguments = QString::fromLocal8Bit(argv[i]);-
78 } else {-
79 argv[j++] = argv[i];-
80 }-
81 }-
82-
83 if (j < argc) {-
84 argv[j] = 0;-
85 argc = j;-
86 }-
87}-
88-
89-
90-
91-
92QSignalSpyCallbackSet __attribute__((visibility("default"))) qt_signal_spy_callback_set = { 0, 0, 0, 0 };-
93-
94void qt_register_signal_spy_callbacks(const QSignalSpyCallbackSet &callback_set)-
95{-
96 qt_signal_spy_callback_set = callback_set;-
97}-
98-
99-
100extern "C" void __attribute__((visibility("default"))) qt_startup_hook()-
101{-
102}-
103-
104typedef QList<QtStartUpFunction> QStartUpFuncList;-
105namespace { namespace Q_QGS_preRList { typedef QStartUpFuncList Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized) guard.store(QtGlobalStatic::Destroyed); } }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return &holder.value; } } } static QGlobalStatic<QStartUpFuncList, Q_QGS_preRList::innerFunction, Q_QGS_preRList::guard> preRList;-
106typedef QList<QtCleanUpFunction> QVFuncList;-
107namespace { namespace Q_QGS_postRList { typedef QVFuncList Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized) guard.store(QtGlobalStatic::Destroyed); } }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return &holder.value; } } } static QGlobalStatic<QVFuncList, Q_QGS_postRList::innerFunction, Q_QGS_postRList::guard> postRList;-
108-
109static QBasicMutex globalPreRoutinesMutex;-
110void qAddPreRoutine(QtStartUpFunction p)-
111{-
112 QStartUpFuncList *list = preRList();-
113 if (!list)-
114 return;-
115-
116-
117-
118 QMutexLocker locker(&globalPreRoutinesMutex);-
119-
120 if (QCoreApplication::instance())-
121 p();-
122 list->prepend(p);-
123}-
124-
125void qAddPostRoutine(QtCleanUpFunction p)-
126{-
127 QVFuncList *list = postRList();-
128 if (!list)-
129 return;-
130 list->prepend(p);-
131}-
132-
133void qRemovePostRoutine(QtCleanUpFunction p)-
134{-
135 QVFuncList *list = postRList();-
136 if (!list)-
137 return;-
138 list->removeAll(p);-
139}-
140-
141static void qt_call_pre_routines()-
142{-
143 QStartUpFuncList *list = preRList();-
144 if (!list)-
145 return;-
146-
147 QMutexLocker locker(&globalPreRoutinesMutex);-
148-
149-
150-
151-
152 for (int i = 0; i < list->count(); ++i)-
153 list->at(i)();-
154}-
155-
156void __attribute__((visibility("default"))) qt_call_post_routines()-
157{-
158 QVFuncList *list = 0;-
159 try {-
160 list = postRList();-
161 } catch (const std::bad_alloc &) {-
162-
163-
164-
165 }-
166 if (!list)-
167 return;-
168 while (!list->isEmpty())-
169 (list->takeFirst())();-
170}-
171-
172-
173-
174static bool qt_locale_initialized = false;-
175-
176-
177-
178-
179bool QCoreApplicationPrivate::is_app_running = false;-
180-
181bool QCoreApplicationPrivate::is_app_closing = false;-
182-
183__attribute__((visibility("default"))) uint qGlobalPostedEventsCount()-
184{-
185 QThreadData *currentThreadData = QThreadData::current();-
186 return currentThreadData->postEventList.size() - currentThreadData->postEventList.startOffset;-
187}-
188-
189QAbstractEventDispatcher *QCoreApplicationPrivate::eventDispatcher = 0;-
190-
191-
192Qt::HANDLE qt_application_thread_id = 0;-
193-
194-
195-
196-
197QCoreApplication *QCoreApplication::self = 0;-
198uint QCoreApplicationPrivate::attribs =-
199 (1 << Qt::AA_SynthesizeMouseForUnhandledTouchEvents) |-
200 (1 << Qt::AA_SynthesizeMouseForUnhandledTabletEvents);-
201-
202struct QCoreApplicationData {-
203 QCoreApplicationData() noexcept {-
204 applicationNameSet = false;-
205 }
executed 850 times by 25 tests: end of block
Executed by:
  • tst_LargeFile
  • tst_QAbstractFileEngine
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
850
206 ~QCoreApplicationData() {-
207-
208-
209 if (QCoreApplicationPrivate::theMainThread) {-
210 QThreadData *data = QThreadData::get2(QCoreApplicationPrivate::theMainThread);-
211 data->deref();-
212 }-
213-
214 }-
215-
216 QString orgName, orgDomain;-
217 QString application;-
218 QString applicationVersion;-
219 bool applicationNameSet;-
220-
221-
222 QScopedPointer<QStringList> app_libpaths;-
223 QScopedPointer<QStringList> manual_libpaths;-
224-
225-
226};-
227-
228namespace { namespace Q_QGS_coreappdata { typedef QCoreApplicationData Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized) guard.store(QtGlobalStatic::Destroyed); } }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return &holder.value; } } } static QGlobalStatic<QCoreApplicationData, Q_QGS_coreappdata::innerFunction, Q_QGS_coreappdata::guard> coreappdata;-
229-
230-
231static bool quitLockRefEnabled = true;-
232QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv, uint flags)-
233 :-
234-
235 QObjectPrivate(),-
236-
237 argc(aargc)-
238 , argv(aargv)-
239-
240-
241-
242-
243 , application_type(QCoreApplicationPrivate::Tty)-
244-
245 , in_exec(false)-
246 , aboutToQuitEmitted(false)-
247 , threadData_clean(false)-
248-
249-
250-
251{-
252 app_compile_version = flags & 0xffffff;-
253 static const char *const empty = "";-
254 if (argc == 0
argc == 0Description
TRUEevaluated 98 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDnsLookup_Appless
  • tst_QGuiApplication
FALSEevaluated 980 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnection_Delayed
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
|| argv == 0
argv == 0Description
TRUEnever evaluated
FALSEevaluated 980 times by 20 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnection_Delayed
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
) {
0-980
255 argc = 0;-
256 argv = const_cast<char **>(&empty);-
257 }
executed 98 times by 6 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDnsLookup_Appless
  • tst_QGuiApplication
98
258 QCoreApplicationPrivate::is_app_closing = false;-
259-
260-
261 if (!(__builtin_expect(!!(!
__builtin_expe...id())), false)Description
TRUEnever evaluated
FALSEevaluated 1078 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
setuidAllowed && (geteuid() != getuid()))())), false)
__builtin_expe...id())), false)Description
TRUEnever evaluated
FALSEevaluated 1078 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
)
0-1078
262 QMessageLogger(__FILE__, 456431, __PRETTY_FUNCTION__).fatal("FATAL: The application binary appears to be running setuid, this is a security hole.");
never executed: QMessageLogger(__FILE__, 431, __PRETTY_FUNCTION__).fatal("FATAL: The application binary appears to be running setuid, this is a security hole.");
0
263-
264-
265-
266 qt_application_thread_id = QThread::currentThreadId();-
267-
268-
269 QThread *cur = QThread::currentThread();-
270 if (cur != theMainThread
cur != theMainThreadDescription
TRUEnever evaluated
FALSEevaluated 1078 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
)
0-1078
271 QMessageLogger(__FILE__, 465440, __PRETTY_FUNCTION__).warning("WARNING: QApplication was not created in the main() thread.");
never executed: QMessageLogger(__FILE__, 440, __PRETTY_FUNCTION__).warning("WARNING: QApplication was not created in the main() thread.");
0
272-
273}
executed 1078 times by 23 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
1078
274-
275QCoreApplicationPrivate::~QCoreApplicationPrivate()-
276{-
277-
278 cleanupThreadData();-
279-
280-
281-
282-
283 QCoreApplicationPrivate::clearApplicationFilePath();-
284}-
285-
286-
287-
288void QCoreApplicationPrivate::cleanupThreadData()-
289{-
290 if (threadData && !threadData_clean) {-
291-
292 void *data = &threadData->tls;-
293 QThreadStorageData::finish((void **)data);-
294-
295-
296-
297 QMutexLocker locker(&threadData->postEventList.mutex);-
298 for (int i = 0; i < threadData->postEventList.size(); ++i) {-
299 const QPostEvent &pe = threadData->postEventList.at(i);-
300 if (pe.event) {-
301 --pe.receiver->d_func()->postedEvents;-
302 pe.event->posted = false;-
303 delete pe.event;-
304 }-
305 }-
306 threadData->postEventList.clear();-
307 threadData->postEventList.recursion = 0;-
308 threadData->quitNow = false;-
309 threadData_clean = true;-
310 }-
311}-
312-
313void QCoreApplicationPrivate::createEventDispatcher()-
314{-
315 QCoreApplication * const q = q_func();-
316 if (qEnvironmentVariableIsEmpty("QT_NO_GLIB")
qEnvironmentVa...("QT_NO_GLIB")Description
TRUEevaluated 940 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& QEventDispatcherGlib::versionSupported()
QEventDispatch...ionSupported()Description
TRUEevaluated 940 times by 22 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
)
0-940
317 eventDispatcher = new QEventDispatcherGlib(q);
executed 940 times by 22 tests: eventDispatcher = new QEventDispatcherGlib(q);
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
940
318 else-
319 eventDispatcher = new QEventDispatcherUNIX(q);
never executed: eventDispatcher = new QEventDispatcherUNIX(q);
0
320}-
321-
322void QCoreApplicationPrivate::eventDispatcherReady()-
323{-
324}-
325-
326QBasicAtomicPointer<QThread> QCoreApplicationPrivate::theMainThread = { 0 };-
327QThread *QCoreApplicationPrivate::mainThread()-
328{-
329 ((!(theMainThread.load() != 0)) ? qt_assert("theMainThread.load() != 0",__FILE__,544517) : qt_noop());-
330 return theMainThread.load();-
331}-
332-
333bool QCoreApplicationPrivate::threadRequiresCoreApplication()-
334{-
335 QThreadData *data = QThreadData::current(false);-
336 if (!data)-
337 return true;-
338 return data->requiresCoreApplication;-
339}-
340-
341void QCoreApplicationPrivate::checkReceiverThread(QObject *receiver)-
342{-
343 QThread *currentThread = QThread::currentThread();-
344 QThread *thr = receiver->thread();-
345 ((!(currentThread == thr || !thr)) ? qt_assert_x("QCoreApplication::sendEvent", QString::fromLatin1("Cannot send events to objects owned by a different thread. " "Current thread %1. Receiver '%2' (of type '%3') was created in thread %4") .arg(QString::number((quintptr) currentThread, 16)) .arg(receiver->objectName()) .arg(QLatin1String(receiver->metaObject()->className())) .arg(QString::number((quintptr) thr, 16)) .toLocal8Bit().data(),-
346-
347-
348-
349-
350-
351-
352-
353 __FILE__-
354 ,-
355-
356-
357-
358-
359-
360-
361-
362 568541-
363 ) : qt_noop())-
364-
365-
366-
367-
368-
369-
370-
371 ;-
372 (void)currentThread;;-
373 (void)thr;;-
374}-
375-
376-
377-
378void QCoreApplicationPrivate::appendApplicationPathToLibraryPaths()-
379{-
380-
381 QStringList *app_libpaths = coreappdata()->app_libpaths.data();-
382 if (!app_libpaths)-
383 coreappdata()->app_libpaths.reset(app_libpaths = new QStringList);-
384 QString app_location = QCoreApplication::applicationFilePath();-
385 app_location.truncate(app_location.lastIndexOf(QLatin1Char('/')));-
386-
387-
388-
389-
390 app_location = QDir(app_location).canonicalPath();-
391 if (QFile::exists(app_location) && !app_libpaths->contains(app_location))-
392 app_libpaths->append(app_location);-
393-
394}-
395-
396QString qAppName()-
397{-
398 if (!QCoreApplicationPrivate::checkInstance("qAppName"))-
399 return QString();-
400 return QCoreApplication::instance()->d_func()->appName();-
401}-
402-
403void QCoreApplicationPrivate::initLocale()-
404{-
405 if (qt_locale_initialized
qt_locale_initializedDescription
TRUEevaluated 230 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
FALSEevaluated 848 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
)
230-848
406 return;
executed 230 times by 8 tests: return;
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
230
407 qt_locale_initialized = true;-
408-
409 setlocale(6, "");-
410-
411}
executed 848 times by 23 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
848
412QCoreApplication::QCoreApplication(QCoreApplicationPrivate &p)-
413-
414-
415-
416 : QObject(p, 0)-
417-
418{-
419 d_func()->q_ptr = this;-
420-
421-
422}-
423void QCoreApplication::flush()-
424{-
425 if (self && self->d_func()->eventDispatcher)-
426 self->d_func()->eventDispatcher->flush();-
427}-
428QCoreApplication::QCoreApplication(int &argc, char **argv-
429-
430 , int _internal-
431-
432 )-
433-
434-
435-
436 : QObject(*new QCoreApplicationPrivate(argc, argv, _internal))-
437-
438{-
439 d_func()->q_ptr = this;-
440 d_func()->init();-
441-
442 QCoreApplicationPrivate::eventDispatcher->startingUp();-
443-
444}-
445-
446-
447void QCoreApplicationPrivate::init()-
448{-
449 QCoreApplication * const q = q_func();-
450-
451 initLocale();-
452-
453 ((!(!QCoreApplication::self)) ? qt_assert_x("QCoreApplication", "there should be only one application object",__FILE__,769742) : qt_noop());-
454 QCoreApplication::self = q;-
455-
456-
457 if (!coreappdata()->applicationNameSet)-
458 coreappdata()->application = appName();-
459-
460 QLoggingRegistry::instance()->init();-
461-
462-
463-
464-
465-
466 QStringList *appPaths = coreappdata()->app_libpaths.take();-
467 QStringList *manualPaths = coreappdata()->manual_libpaths.take();-
468 if (appPaths) {-
469 if (manualPaths) {-
470-
471-
472-
473-
474 QStringList newPaths(q->libraryPaths());-
475 for (int i = manualPaths->length(), j = appPaths->length(); i > 0 || j > 0; qt_noop()) {-
476 if (--j < 0) {-
477 newPaths.prepend((*manualPaths)[--i]);-
478 } else if (--i < 0) {-
479 newPaths.removeAll((*appPaths)[j]);-
480 } else if ((*manualPaths)[i] != (*appPaths)[j]) {-
481 newPaths.removeAll((*appPaths)[j]);-
482 ++i;-
483 }-
484 }-
485 delete manualPaths;-
486 coreappdata()->manual_libpaths.reset(new QStringList(newPaths));-
487 }-
488 delete appPaths;-
489 }-
490-
491-
492-
493-
494 if (!eventDispatcher)-
495 eventDispatcher = threadData->eventDispatcher.load();-
496-
497 if (!eventDispatcher)-
498 createEventDispatcher();-
499 ((!(eventDispatcher)) ? qt_assert("eventDispatcher",__FILE__,815788) : qt_noop());-
500-
501 if (!eventDispatcher->parent()) {-
502 eventDispatcher->moveToThread(threadData->thread);-
503 eventDispatcher->setParent(q);-
504 }-
505-
506 threadData->eventDispatcher = eventDispatcher;-
507 eventDispatcherReady();-
508-
509-
510-
511-
512-
513-
514-
515 processCommandLineArguments();-
516-
517 qt_call_pre_routines();-
518 qt_startup_hook();-
519-
520 if (__builtin_expect(!!(qtHookData[QHooks::Startup]), false))-
521 reinterpret_cast<QHooks::StartupCallback>(qtHookData[QHooks::Startup])();-
522-
523-
524-
525 is_app_running = true;-
526-
527}-
528-
529-
530-
531-
532QCoreApplication::~QCoreApplication()-
533{-
534 qt_call_post_routines();-
535-
536 self = 0;-
537-
538 QCoreApplicationPrivate::is_app_closing = true;-
539 QCoreApplicationPrivate::is_app_running = false;-
540-
541-
542-
543-
544 QThreadPool *globalThreadPool = 0;-
545 try {-
546 globalThreadPool = QThreadPool::globalInstance();-
547 } catch (...) {-
548-
549 }-
550 if (globalThreadPool)-
551 globalThreadPool->waitForDone();-
552-
553-
554-
555 d_func()->threadData->eventDispatcher = 0;-
556 if (QCoreApplicationPrivate::eventDispatcher)-
557 QCoreApplicationPrivate::eventDispatcher->closingDown();-
558 QCoreApplicationPrivate::eventDispatcher = 0;-
559-
560-
561-
562 coreappdata()->app_libpaths.reset();-
563 coreappdata()->manual_libpaths.reset();-
564-
565}-
566void QCoreApplication::setSetuidAllowed(bool allow)-
567{-
568 QCoreApplicationPrivate::setuidAllowed = allow;-
569}-
570bool QCoreApplication::isSetuidAllowed()-
571{-
572 return QCoreApplicationPrivate::setuidAllowed;-
573}-
574void QCoreApplication::setAttribute(Qt::ApplicationAttribute attribute, bool on)-
575{-
576 if (on)-
577 QCoreApplicationPrivate::attribs |= 1 << attribute;-
578 else-
579 QCoreApplicationPrivate::attribs &= ~(1 << attribute);-
580}-
581-
582-
583-
584-
585-
586-
587-
588bool QCoreApplication::testAttribute(Qt::ApplicationAttribute attribute)-
589{-
590 return QCoreApplicationPrivate::testAttribute(attribute);-
591}-
592bool QCoreApplication::isQuitLockEnabled()-
593{-
594 return quitLockRefEnabled;-
595}-
596-
597static bool doNotify(QObject *, QEvent *);-
598-
599void QCoreApplication::setQuitLockEnabled(bool enabled)-
600{-
601 quitLockRefEnabled = enabled;-
602}-
603bool QCoreApplication::notifyInternal(QObject *receiver, QEvent *event)-
604{-
605 return notifyInternal2(receiver, event);-
606}-
607bool QCoreApplication::notifyInternal2(QObject *receiver, QEvent *event)-
608{-
609 bool selfRequired = QCoreApplicationPrivate::threadRequiresCoreApplication();-
610 if (!self
!selfDescription
TRUEevaluated 1619 times by 169 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnection_NoApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
FALSEevaluated 1767023 times by 518 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
&& selfRequired
selfRequiredDescription
TRUEevaluated 48 times by 8 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnection_NoApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qcoreapplication - unknown status
  • tst_qfilesystemwatcher - unknown status
  • tst_qguiapplication - unknown status
FALSEevaluated 1571 times by 167 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnection_NoApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
)
48-1767023
611 return
executed 48 times by 8 tests: return false;
Executed by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnection_NoApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qcoreapplication - unknown status
  • tst_qfilesystemwatcher - unknown status
  • tst_qguiapplication - unknown status
false;
executed 48 times by 8 tests: return false;
Executed by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QDBusConnection_NoApplication
  • tst_QGuiApplication
  • tst_qapplication - unknown status
  • tst_qcoreapplication - unknown status
  • tst_qfilesystemwatcher - unknown status
  • tst_qguiapplication - unknown status
48
612-
613-
614-
615 bool result = false;-
616 void *cbdata[] = { receiver, event, &result };-
617 if (QInternal::activateCallbacks(QInternal::EventNotifyCallback, cbdata)
QInternal::act...lback, cbdata)Description
TRUEnever evaluated
FALSEevaluated 1768594 times by 527 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
) {
0-1768594
618 return
never executed: return result;
result;
never executed: return result;
0
619 }-
620-
621-
622-
623-
624-
625 QObjectPrivate *d = receiver->d_func();-
626 QThreadData *threadData = d->threadData;-
627 QScopedLoopLevelCounter loopLevelCounterQScopedScopeLevelCounter scopeLevelCounter(threadData);-
628 if (!selfRequired
!selfRequiredDescription
TRUEevaluated 22367 times by 324 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_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 1746227 times by 495 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
)
22367-1746227
629 return
executed 22367 times by 324 tests: return doNotify(receiver, event);
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_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
doNotify(receiver, event);
executed 22367 times by 324 tests: return doNotify(receiver, event);
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_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
22367
630 return
executed 1746227 times by 495 tests: return self->notify(receiver, event);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
self->notify(receiver, event);
executed 1746227 times by 495 tests: return self->notify(receiver, event);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • ...
1746227
631}-
632bool QCoreApplication::notify(QObject *receiver, QEvent *event)-
633{-
634-
635 if (QCoreApplicationPrivate::is_app_closing)-
636 return true;-
637 return doNotify(receiver, event);-
638}-
639-
640static bool doNotify(QObject *receiver, QEvent *event)-
641{-
642 if (receiver == 0) {-
643 QMessageLogger(__FILE__, 10821055, __PRETTY_FUNCTION__).warning("QCoreApplication::notify: Unexpected null receiver");-
644 return true;-
645 }-
646-
647-
648 QCoreApplicationPrivate::checkReceiverThread(receiver);-
649-
650-
651 return receiver->isWidgetType() ? false : QCoreApplicationPrivate::notify_helper(receiver, event);-
652}-
653-
654bool QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject *receiver, QEvent *event)-
655{-
656-
657 ((!(receiver->d_func()->threadData->thread == mainThread())) ? qt_assert("receiver->d_func()->threadData->thread == mainThread()",__FILE__,10961069) : qt_noop());-
658-
659 if (extraData) {-
660-
661 for (int i = 0; i < extraData->eventFilters.size(); ++i) {-
662 QObject *obj = extraData->eventFilters.at(i);-
663 if (!obj)-
664 continue;-
665 if (obj->d_func()->threadData != threadData) {-
666 QMessageLogger(__FILE__, 11051078, __PRETTY_FUNCTION__).warning("QCoreApplication: Application event filter cannot be in a different thread.");-
667 continue;-
668 }-
669 if (obj->eventFilter(receiver, event))-
670 return true;-
671 }-
672 }-
673 return false;-
674}-
675-
676bool QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject *receiver, QEvent *event)-
677{-
678 if (receiver != QCoreApplication::instance() && receiver->d_func()->extraData) {-
679 for (int i = 0; i < receiver->d_func()->extraData->eventFilters.size(); ++i) {-
680 QObject *obj = receiver->d_func()->extraData->eventFilters.at(i);-
681 if (!obj)-
682 continue;-
683 if (obj->d_func()->threadData != receiver->d_func()->threadData) {-
684 QMessageLogger(__FILE__, 11231096, __PRETTY_FUNCTION__).warning("QCoreApplication: Object event filter cannot be in a different thread.");-
685 continue;-
686 }-
687 if (obj->eventFilter(receiver, event))-
688 return true;-
689 }-
690 }-
691 return false;-
692}-
693-
694-
695-
696-
697-
698-
699bool QCoreApplicationPrivate::notify_helper(QObject *receiver, QEvent * event)-
700{-
701-
702 if (QCoreApplication::self-
703 && receiver->d_func()->threadData->thread == mainThread()-
704 && QCoreApplication::self->d_func()->sendThroughApplicationEventFilters(receiver, event))-
705 return true;-
706-
707 if (sendThroughObjectEventFilters(receiver, event))-
708 return true;-
709-
710 return receiver->event(event);-
711}-
712bool QCoreApplication::startingUp()-
713{-
714 return !QCoreApplicationPrivate::is_app_running;-
715}-
716bool QCoreApplication::closingDown()-
717{-
718 return QCoreApplicationPrivate::is_app_closing;-
719}-
720void QCoreApplication::processEvents(QEventLoop::ProcessEventsFlags flags)-
721{-
722 QThreadData *data = QThreadData::current();-
723 if (!data->hasEventDispatcher())-
724 return;-
725 data->eventDispatcher.load()->processEvents(flags);-
726}-
727void QCoreApplication::processEvents(QEventLoop::ProcessEventsFlags flags, int maxtime)-
728{-
729-
730-
731-
732 QThreadData *data = QThreadData::current();-
733 if (!data->hasEventDispatcher()
!data->hasEventDispatcher()Description
TRUEnever evaluated
FALSEevaluated 1255742 times by 149 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
)
0-1255742
734 return;
never executed: return;
0
735 QElapsedTimer start;-
736 start.start();-
737 while (data->eventDispatcher.load()->processEvents(flags & ~QEventLoop::WaitForMoreEvents)
data->eventDis...ForMoreEvents)Description
TRUEevaluated 40298 times by 149 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
FALSEevaluated 1255473 times by 148 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
) {
40298-1255473
738 if (start.elapsed() > maxtime
start.elapsed() > maxtimeDescription
TRUEevaluated 269 times by 44 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBackingStore
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
FALSEevaluated 40029 times by 148 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
)
269-40029
739 break;
executed 269 times by 44 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QBackingStore
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
269
740 }
executed 40029 times by 148 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
40029
741}
executed 1255742 times by 149 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
1255742
742int QCoreApplication::exec()-
743{-
744 if (!QCoreApplicationPrivate::checkInstance("exec"))-
745 return -1;-
746-
747 QThreadData *threadData = self->d_func()->threadData;-
748 if (threadData != QThreadData::current()) {-
749 QMessageLogger(__FILE__, 12731249, __PRETTY_FUNCTION__).warning("%s::exec: Must be called from the main thread", self->metaObject()->className());-
750 return -1;-
751 }-
752 if (!threadData->eventLoops.isEmpty()) {-
753 QMessageLogger(__FILE__, 12771253, __PRETTY_FUNCTION__).warning("QCoreApplication::exec: The event loop is already running");-
754 return -1;-
755 }-
756-
757 threadData->quitNow = false;-
758 QEventLoop eventLoop;-
759 self->d_func()->in_exec = true;-
760 self->d_func()->aboutToQuitEmitted = false;-
761 int returnCode = eventLoop.exec();-
762 threadData->quitNow = false;-
763 if (self) {-
764 self->d_func()->in_exec = false;-
765 if (!self->d_func()->aboutToQuitEmitted)-
766 self->aboutToQuit(QPrivateSignal());-
767 self->d_func()->aboutToQuitEmitted = true;-
768 sendPostedEvents(0, QEvent::DeferredDelete);-
769 }-
770-
771 return returnCode;-
772}-
773void QCoreApplication::exit(int returnCode)-
774{-
775 if (!self)-
776 return;-
777 QThreadData *data = self->d_func()->threadData;-
778 data->quitNow = true;-
779 for (int i = 0; i < data->eventLoops.size(); ++i) {-
780 QEventLoop *eventLoop = data->eventLoops.at(i);-
781 eventLoop->exit(returnCode);-
782 }-
783}-
784void QCoreApplication::postEvent(QObject *receiver, QEvent *event, int priority)-
785{-
786 if (receiver == 0
receiver == 0Description
TRUEnever evaluated
FALSEevaluated 657414 times by 491 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
) {
0-657414
787 QMessageLogger(__FILE__, 13881364, __PRETTY_FUNCTION__).warning("QCoreApplication::postEvent: Unexpected null receiver");-
788 delete event;-
789 return;
never executed: return;
0
790 }-
791-
792 QThreadData * volatile * pdata = &receiver->d_func()->threadData;-
793 QThreadData *data = *pdata;-
794 if (!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 657414 times by 491 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
) {
0-657414
795-
796 delete event;-
797 return;
never executed: return;
0
798 }-
799-
800-
801 data->postEventList.mutex.lock();-
802-
803-
804 while (data != *pdata
data != *pdataDescription
TRUEnever evaluated
FALSEevaluated 657414 times by 491 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
) {
0-657414
805 data->postEventList.mutex.unlock();-
806-
807 data = *pdata;-
808 if (!data
!dataDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
809-
810 delete event;-
811 return;
never executed: return;
0
812 }-
813-
814 data->postEventList.mutex.lock();-
815 }
never executed: end of block
0
816-
817 QMutexUnlocker locker(&data->postEventList.mutex);-
818-
819-
820 if (receiver->d_func()->postedEvents
receiver->d_fu...->postedEventsDescription
TRUEevaluated 187930 times by 420 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 469484 times by 491 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
187930-469484
821 && self
selfDescription
TRUEevaluated 187137 times by 229 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 793 times by 221 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusConnection_NoApplication
  • tst_QGuiApplication
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • ...
&& self->compressEvent(event, receiver, &data->postEventList)
self->compress...postEventList)Description
TRUEevaluated 10704 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 176433 times by 228 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
  • ...
) {
793-187137
822 return;
executed 10704 times by 106 tests: return;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
10704
823 }-
824-
825 if (event->type() == QEvent::DeferredDelete
event->type() ...DeferredDeleteDescription
TRUEevaluated 11591 times by 213 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 635119 times by 466 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
&& data == QThreadData::current()
data == QThreadData::current()Description
TRUEevaluated 10538 times by 192 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 1053 times by 37 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_Spdy
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qftp - unknown status
  • tst_qhostinfo - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • tst_qnetworkaccessmanager - unknown status
  • ...
) {
1053-635119
826 int loopLevel = data->loopLevel;-
827 int scopeLevel = data->scopeLevel;-
828 if (scopeLevel == 0
scopeLevel == 0Description
TRUEevaluated 7943 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
FALSEevaluated 2595 times by 151 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • ...
&& loopLevel != 0
loopLevel != 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 7941 times by 110 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDockWidget
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
)
2-7943
829 scopeLevel = 1;
executed 2 times by 1 test: scopeLevel = 1;
Executed by:
  • tst_QObject
2
830 static_cast<QDeferredDeleteEvent *>(event)->level = data->loopLevel + scopeLevel;-
831 }
executed 10538 times by 192 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
10538
832-
833-
834-
835 QScopedPointer<QEvent> eventDeleter(event);-
836 data->postEventList.addEvent(QPostEvent(receiver, event, priority));-
837 eventDeleter.take();-
838 event->posted = true;-
839 ++receiver->d_func()->postedEvents;-
840 data->canWait = false;-
841 locker.unlock();-
842-
843 QAbstractEventDispatcher* dispatcher = data->eventDispatcher.loadAcquire();-
844 if (dispatcher
dispatcherDescription
TRUEevaluated 643577 times by 400 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
FALSEevaluated 3133 times by 385 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
  • ...
)
3133-643577
845 dispatcher->wakeUp();
executed 643577 times by 400 tests: dispatcher->wakeUp();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
643577
846}
executed 646710 times by 491 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • ...
646710
847-
848-
849-
850-
851-
852bool QCoreApplication::compressEvent(QEvent *event, QObject *receiver, QPostEventList *postedEvents)-
853{-
854 if ((event->type() == QEvent::DeferredDelete-
855 || event->type() == QEvent::Quit)-
856 && receiver->d_func()->postedEvents > 0) {-
857 for (int i = 0; i < postedEvents->size(); ++i) {-
858 const QPostEvent &cur = postedEvents->at(i);-
859 if (cur.receiver != receiver-
860 || cur.event == 0-
861 || cur.event->type() != event->type())-
862 continue;-
863-
864 delete event;-
865 return true;-
866 }-
867 }-
868 return false;-
869}-
870void QCoreApplication::sendPostedEvents(QObject *receiver, int event_type)-
871{-
872-
873-
874-
875 QThreadData *data = QThreadData::current();-
876-
877 QCoreApplicationPrivate::sendPostedEvents(receiver, event_type, data);-
878}
executed 1066841 times by 738 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_QAtomicInt
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
1066841
879-
880void QCoreApplicationPrivate::sendPostedEvents(QObject *receiver, int event_type,-
881 QThreadData *data)-
882{-
883 if (event_type == -1
event_type == -1Description
TRUEnever evaluated
FALSEevaluated 1066841 times by 740 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_QAtomicInt
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
) {
0-1066841
884-
885 event_type = 0;-
886 }
never executed: end of block
0
887-
888 if (receiver
receiverDescription
TRUEevaluated 1811 times by 30 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • ...
FALSEevaluated 1065030 times by 740 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_QAtomicInt
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
&& receiver->d_func()->threadData != data
receiver->d_fu...adData != dataDescription
TRUEnever evaluated
FALSEevaluated 1811 times by 30 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • ...
) {
0-1065030
889 QMessageLogger(__FILE__, 15201515, __PRETTY_FUNCTION__).warning("QCoreApplication::sendPostedEvents: Cannot send "-
890 "posted events for objects in another thread");-
891 return;
never executed: return;
0
892 }-
893-
894 ++data->postEventList.recursion;-
895-
896 QMutexLocker locker(&data->postEventList.mutex);-
897-
898-
899-
900-
901 data->canWait = (data->postEventList.size() == 0);-
902-
903 if (data->postEventList.size() == 0
data->postEven...st.size() == 0Description
TRUEevaluated 685786 times by 708 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 381055 times by 352 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
  • ...
|| (receiver
receiverDescription
TRUEevaluated 1811 times by 30 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • ...
FALSEevaluated 379244 times by 352 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
  • ...
&& !receiver->d_func()->postedEvents
!receiver->d_f...->postedEventsDescription
TRUEevaluated 52 times by 8 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDBusPendingCall
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QItemDelegate
  • tst_QTableView
  • tst_QTreeWidget
FALSEevaluated 1759 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • ...
)) {
52-685786
904 --data->postEventList.recursion;-
905 return;
executed 685838 times by 708 tests: return;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
685838
906 }-
907-
908 data->canWait = true;-
909-
910-
911-
912 int startOffset = data->postEventList.startOffset;-
913 int &i = (!event_type
!event_typeDescription
TRUEevaluated 376528 times by 351 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
  • ...
FALSEevaluated 4475 times by 116 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
&& !receiver
!receiverDescription
TRUEevaluated 376495 times by 351 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
  • ...
FALSEevaluated 33 times by 6 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QTreeView
) ? data->postEventList.startOffset : startOffset;
33-376528
914 data->postEventList.insertionOffset = data->postEventList.size();-
915-
916-
917 struct CleanUp {-
918 QObject *receiver;-
919 int event_type;-
920 QThreadData *data;-
921 bool exceptionCaught;-
922-
923 inline CleanUp(QObject *receiver, int event_type, QThreadData *data) :-
924 receiver(receiver), event_type(event_type), data(data), exceptionCaught(true)-
925 {}-
926 inline ~CleanUp()-
927 {-
928 if (exceptionCaught) {-
929-
930 data->canWait = false;-
931 }-
932-
933 --data->postEventList.recursion;-
934 if (!data->postEventList.recursion && !data->canWait && data->hasEventDispatcher())-
935 data->eventDispatcher.load()->wakeUp();-
936-
937-
938-
939 if (!event_type && !receiver && data->postEventList.startOffset >= 0) {-
940 const QPostEventList::iterator it = data->postEventList.begin();-
941 data->postEventList.erase(it, it + data->postEventList.startOffset);-
942 data->postEventList.insertionOffset -= data->postEventList.startOffset;-
943 ((!(data->postEventList.insertionOffset >= 0)) ? qt_assert("data->postEventList.insertionOffset >= 0",__FILE__,15741569) : qt_noop());-
944 data->postEventList.startOffset = 0;-
945 }-
946 }-
947 };-
948 CleanUp cleanup(receiver, event_type, data);-
949-
950 while (i < data->postEventList.size()
i < data->postEventList.size()Description
TRUEevaluated 666141 times by 352 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
  • ...
FALSEevaluated 352105 times by 352 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
  • ...
) {
352105-666141
951-
952 if (i >= data->postEventList.insertionOffset
i >= data->pos...nsertionOffsetDescription
TRUEevaluated 28898 times by 204 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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 637243 times by 352 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
  • ...
)
28898-637243
953 break;
executed 28898 times by 204 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_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
28898
954-
955 const QPostEvent &pe = data->postEventList.at(i);-
956 ++i;-
957-
958 if (!pe.event
!pe.eventDescription
TRUEevaluated 45969 times by 131 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • ...
FALSEevaluated 591274 times by 351 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
  • ...
)
45969-591274
959 continue;
executed 45969 times by 131 tests: continue;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • ...
45969
960 if ((receiver
receiverDescription
TRUEevaluated 28700 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • ...
FALSEevaluated 562574 times by 351 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
  • ...
&& receiver != pe.receiver
receiver != pe.receiverDescription
TRUEevaluated 24733 times by 26 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • tst_QTouchEvent
  • tst_QTreeView
  • ...
FALSEevaluated 3967 times by 28 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QMainWindow
  • tst_QObject
  • tst_QOpenGLWidget
  • tst_QPainter
  • tst_QPrinter
  • ...
) || (event_type
event_typeDescription
TRUEevaluated 13239 times by 72 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
FALSEevaluated 553302 times by 351 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
  • ...
&& event_type != pe.event->type()
event_type != pe.event->type()Description
TRUEevaluated 10672 times by 49 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QBackingStore
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 2567 times by 58 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • ...
)) {
2567-562574
961 data->canWait = false;-
962 continue;
executed 35405 times by 53 tests: continue;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QBackingStore
  • tst_QCalendarWidget
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • ...
35405
963 }-
964-
965 if (pe.event->type() == QEvent::DeferredDelete
pe.event->type...DeferredDeleteDescription
TRUEevaluated 5745 times by 173 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
FALSEevaluated 550124 times by 349 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
  • ...
) {
5745-550124
966-
967-
968-
969-
970-
971-
972 int loopLeveleventLevel = static_cast<QDeferredDeleteEvent *>(pe.event)->loopLevel();-
973 int loopLevel = data->loopLevel + data->scopeLevel;-
974 const bool allowDeferredDelete =-
975 (loopLeveleventLevel
eventLevel > loopLevelDescription
TRUEevaluated 2239 times by 150 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • ...
FALSEevaluated 3506 times by 73 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
> data->loopLevel
eventLevel > loopLevelDescription
TRUEevaluated 2239 times by 150 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_SpyHook
  • ...
FALSEevaluated 3506 times by 73 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
2239-3506
976 || (!loopLeveleventLevel
!eventLevelDescription
TRUEevaluated 3374 times by 72 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
FALSEevaluated 132 times by 4 tests
Evaluated by:
  • tst_QApplication
  • tst_QItemDelegate
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QTcpSocket
&& data->loopLevel > 0
loopLevel > 0Description
TRUEevaluated 1207 times by 41 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QSslSocket
  • tst_QToolButton
  • tst_Spdy
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • ...
FALSEevaluated 2167 times by 39 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinter
  • tst_QProcess
  • ...
)
132-3374
977 || (event_type == QEvent::DeferredDelete
event_type == ...DeferredDeleteDescription
TRUEevaluated 808 times by 37 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinter
  • tst_QProcess
  • tst_QShortcut
  • ...
FALSEevaluated 1491 times by 34 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QShortcut
  • ...
808-1491
978 && loopLeveleventLevel
eventLevel == loopLevelDescription
TRUEevaluated 807 times by 37 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinter
  • tst_QProcess
  • tst_QShortcut
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QApplication
== data->loopLevel
eventLevel == loopLevelDescription
TRUEevaluated 807 times by 37 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinter
  • tst_QProcess
  • tst_QShortcut
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QApplication
));
1-807
979 if (!allowDeferredDelete
!allowDeferredDeleteDescription
TRUEevaluated 1492 times by 34 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QShortcut
  • ...
FALSEevaluated 4253 times by 172 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
) {
1492-4253
980-
981 if (!event_type
!event_typeDescription
TRUEevaluated 1491 times by 34 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QShortcut
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QApplication
&& !receiver
!receiverDescription
TRUEevaluated 1491 times by 34 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QShortcut
  • ...
FALSEnever evaluated
) {
0-1491
982-
983-
984-
985-
986 QPostEvent pe_copy = pe;-
987-
988-
989-
990 const_cast<QPostEvent &>(pe).event = 0;-
991-
992-
993 data->postEventList.addEvent(pe_copy);-
994 }
executed 1491 times by 34 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QShortcut
  • ...
1491
995 continue;
executed 1492 times by 34 tests: continue;
Executed by:
  • tst_Gestures
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QLocalSocket
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QPrinter
  • tst_QProcess
  • tst_QProcess_and_GuiEventLoop
  • tst_QShortcut
  • ...
1492
996 }-
997 }
executed 4253 times by 172 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
4253
998-
999-
1000-
1001 pe.event->posted = false;-
1002 QEvent *e = pe.event;-
1003 QObject * r = pe.receiver;-
1004-
1005 --r->d_func()->postedEvents;-
1006 ((!(r->d_func()->postedEvents >= 0)) ? qt_assert("r->d_func()->postedEvents >= 0",__FILE__,16331632) : qt_noop());-
1007-
1008-
1009-
1010 const_cast<QPostEvent &>(pe).event = 0;-
1011-
1012 struct MutexUnlocker-
1013 {-
1014 QMutexLocker &m;-
1015 MutexUnlocker(QMutexLocker &m) : m(m) { m.unlock(); }-
1016 ~MutexUnlocker() { m.relock(); }-
1017 };-
1018 MutexUnlocker unlocker(locker);-
1019-
1020 QScopedPointer<QEvent> event_deleter(e);-
1021-
1022-
1023 QCoreApplication::sendEvent(r, e);-
1024-
1025-
1026-
1027-
1028 }
executed 554376 times by 350 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
554376
1029-
1030 cleanup.exceptionCaught = false;-
1031}
executed 381003 times by 353 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
381003
1032void QCoreApplication::removePostedEvents(QObject *receiver, int eventType)-
1033{-
1034 QThreadData *data = receiver ? receiver->d_func()->threadData : QThreadData::current();-
1035 QMutexLocker locker(&data->postEventList.mutex);-
1036-
1037-
1038-
1039-
1040-
1041 if (receiver && !receiver->d_func()->postedEvents)-
1042 return;-
1043-
1044-
1045-
1046 QVarLengthArray<QEvent*> events;-
1047 int n = data->postEventList.size();-
1048 int j = 0;-
1049-
1050 for (int i = 0; i < n; ++i) {-
1051 const QPostEvent &pe = data->postEventList.at(i);-
1052-
1053 if ((!receiver || pe.receiver == receiver)-
1054 && (pe.event && (eventType == 0 || pe.event->type() == eventType))) {-
1055 --pe.receiver->d_func()->postedEvents;-
1056 pe.event->posted = false;-
1057 events.append(pe.event);-
1058 const_cast<QPostEvent &>(pe).event = 0;-
1059 } else if (!data->postEventList.recursion) {-
1060 if (i != j)-
1061 qSwap(data->postEventList[i], data->postEventList[j]);-
1062 ++j;-
1063 }-
1064 }-
1065-
1066-
1067 if (receiver && eventType == 0) {-
1068 ((!(!receiver->d_func()->postedEvents)) ? qt_assert("!receiver->d_func()->postedEvents",__FILE__,17161715) : qt_noop());-
1069 }-
1070-
1071-
1072 if (!data->postEventList.recursion) {-
1073-
1074 data->postEventList.erase(data->postEventList.begin() + j, data->postEventList.end());-
1075 }-
1076-
1077 locker.unlock();-
1078 for (int i = 0; i < events.count(); ++i) {-
1079 delete events[i];-
1080 }-
1081}-
1082void QCoreApplicationPrivate::removePostedEvent(QEvent * event)-
1083{-
1084 if (!event || !event->posted)-
1085 return;-
1086-
1087 QThreadData *data = QThreadData::current();-
1088-
1089 QMutexLocker locker(&data->postEventList.mutex);-
1090-
1091 if (data->postEventList.size() == 0) {-
1092-
1093 QMessageLogger(__FILE__, 17521751, __PRETTY_FUNCTION__).debug("QCoreApplication::removePostedEvent: Internal error: %p %d is posted",-
1094 (void*)event, event->type());-
1095 return;-
1096-
1097 }-
1098-
1099 for (int i = 0; i < data->postEventList.size(); ++i) {-
1100 const QPostEvent & pe = data->postEventList.at(i);-
1101 if (pe.event == event) {-
1102-
1103 QMessageLogger(__FILE__, 17621761, __PRETTY_FUNCTION__).warning("QCoreApplication::removePostedEvent: Event of type %d deleted while posted to %s %s",-
1104 event->type(),-
1105 pe.receiver->metaObject()->className(),-
1106 pe.receiver->objectName().toLocal8Bit().data());-
1107-
1108 --pe.receiver->d_func()->postedEvents;-
1109 pe.event->posted = false;-
1110 delete pe.event;-
1111 const_cast<QPostEvent &>(pe).event = 0;-
1112 return;-
1113 }-
1114 }-
1115}-
1116-
1117-
1118-
1119-
1120bool QCoreApplication::event(QEvent *e)-
1121{-
1122 if (e->type() == QEvent::Quit) {-
1123 quit();-
1124 return true;-
1125 }-
1126 return QObject::event(e);-
1127}-
1128void QCoreApplicationPrivate::ref()-
1129{-
1130 quitLockRef.ref();-
1131}-
1132-
1133void QCoreApplicationPrivate::deref()-
1134{-
1135 if (!quitLockRef.deref())-
1136 maybeQuit();-
1137}-
1138-
1139void QCoreApplicationPrivate::maybeQuit()-
1140{-
1141 if (quitLockRef.load() == 0 && in_exec && quitLockRefEnabled && shouldQuit())-
1142 QCoreApplication::postEvent(QCoreApplication::instance(), new QEvent(QEvent::Quit));-
1143}-
1144void QCoreApplication::quit()-
1145{-
1146 exit(0);-
1147}-
1148bool QCoreApplication::installTranslator(QTranslator *translationFile)-
1149{-
1150 if (!translationFile)-
1151 return false;-
1152-
1153 if (!QCoreApplicationPrivate::checkInstance("installTranslator"))-
1154 return false;-
1155 QCoreApplicationPrivate *d = self->d_func();-
1156 d->translators.prepend(translationFile);-
1157-
1158-
1159 if (translationFile->isEmpty())-
1160 return false;-
1161-
1162-
1163-
1164 QEvent ev(QEvent::LanguageChange);-
1165 QCoreApplication::sendEvent(self, &ev);-
1166-
1167-
1168 return true;-
1169}-
1170bool QCoreApplication::removeTranslator(QTranslator *translationFile)-
1171{-
1172 if (!translationFile)-
1173 return false;-
1174 if (!QCoreApplicationPrivate::checkInstance("removeTranslator"))-
1175 return false;-
1176 QCoreApplicationPrivate *d = self->d_func();-
1177 if (d->translators.removeAll(translationFile)) {-
1178-
1179 if (!self->closingDown()) {-
1180 QEvent ev(QEvent::LanguageChange);-
1181 QCoreApplication::sendEvent(self, &ev);-
1182 }-
1183-
1184 return true;-
1185 }-
1186 return false;-
1187}-
1188-
1189static void replacePercentN(QString *result, int n)-
1190{-
1191 if (n >= 0) {-
1192 int percentPos = 0;-
1193 int len = 0;-
1194 while ((percentPos = result->indexOf(QLatin1Char('%'), percentPos + len)) != -1) {-
1195 len = 1;-
1196 QString fmt;-
1197 if (result->at(percentPos + len) == QLatin1Char('L')) {-
1198 ++len;-
1199 fmt = QLatin1String("%L1");-
1200 } else {-
1201 fmt = QLatin1String("%1");-
1202 }-
1203 if (result->at(percentPos + len) == QLatin1Char('n')) {-
1204 fmt = fmt.arg(n);-
1205 ++len;-
1206 result->replace(percentPos, len, fmt);-
1207 len = fmt.length();-
1208 }-
1209 }-
1210 }-
1211}-
1212QString QCoreApplication::translate(const char *context, const char *sourceText,-
1213 const char *disambiguation, int n)-
1214{-
1215 QString result;-
1216-
1217 if (!sourceText)-
1218 return result;-
1219-
1220 if (self && !self->d_func()->translators.isEmpty()) {-
1221 QList<QTranslator*>::ConstIterator it;-
1222 QTranslator *translationFile;-
1223 for (it = self->d_func()->translators.constBegin(); it != self->d_func()->translators.constEnd(); ++it) {-
1224 translationFile = *it;-
1225 result = translationFile->translate(context, sourceText, disambiguation, n);-
1226 if (!result.isNull())-
1227 break;-
1228 }-
1229 }-
1230-
1231 if (result.isNull())-
1232 result = QString::fromUtf8(sourceText);-
1233-
1234 replacePercentN(&result, n);-
1235 return result;-
1236}-
1237-
1238-
1239-
1240-
1241-
1242-
1243-
1244QString qtTrId(const char *id, int n)-
1245{-
1246 return QCoreApplication::translate(0, id, 0, n);-
1247}-
1248-
1249bool QCoreApplicationPrivate::isTranslatorInstalled(QTranslator *translator)-
1250{-
1251 return QCoreApplication::self-
1252 && QCoreApplication::self->d_func()->translators.contains(translator);-
1253}-
1254void QCoreApplicationPrivate::setApplicationFilePath(const QString &path)-
1255{-
1256 if (QCoreApplicationPrivate::cachedApplicationFilePath)-
1257 *QCoreApplicationPrivate::cachedApplicationFilePath = path;-
1258 else-
1259 QCoreApplicationPrivate::cachedApplicationFilePath = new QString(path);-
1260}-
1261QString QCoreApplication::applicationDirPath()-
1262{-
1263 if (!self) {-
1264 QMessageLogger(__FILE__, 20912090, __PRETTY_FUNCTION__).warning("QCoreApplication::applicationDirPath: Please instantiate the QApplication object first");-
1265 return QString();-
1266 }-
1267-
1268 QCoreApplicationPrivate *d = self->d_func();-
1269 if (d->cachedApplicationDirPath.isNull())-
1270 d->cachedApplicationDirPath = QFileInfo(applicationFilePath()).path();-
1271 return d->cachedApplicationDirPath;-
1272}-
1273QString QCoreApplication::applicationFilePath()-
1274{-
1275 if (!self
!selfDescription
TRUEnever evaluated
FALSEevaluated 1036 times by 52 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
) {
0-1036
1276 QMessageLogger(__FILE__, 21192118, __PRETTY_FUNCTION__).warning("QCoreApplication::applicationFilePath: Please instantiate the QApplication object first");-
1277 return
never executed: return QString();
QString();
never executed: return QString();
0
1278 }-
1279-
1280 QCoreApplicationPrivate *d = self->d_func();-
1281-
1282 if (d->argc
d->argcDescription
TRUEevaluated 954 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnection_Delayed
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QSql
  • ...
FALSEevaluated 82 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDnsLookup_Appless
  • tst_QGuiApplication
) {
82-954
1283 static const char *procName = d->argv[0];-
1284 if (qstrcmp(procName, d->argv[0]) != 0
qstrcmp(procNa...>argv[0]) != 0Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QApplication
  • tst_QGuiApplication
FALSEevaluated 949 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnection_Delayed
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QSql
  • ...
) {
5-949
1285-
1286 QCoreApplicationPrivate::clearApplicationFilePath();-
1287 procName = d->argv[0];-
1288 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QGuiApplication
5
1289 }
executed 954 times by 49 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnection_Delayed
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QSql
  • ...
954
1290-
1291 if (QCoreApplicationPrivate::cachedApplicationFilePath
QCoreApplicati...cationFilePathDescription
TRUEevaluated 82 times by 36 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • ...
FALSEevaluated 954 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
)
82-954
1292 return
executed 82 times by 36 tests: return *QCoreApplicationPrivate::cachedApplicationFilePath;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • ...
*QCoreApplicationPrivate::cachedApplicationFilePath;
executed 82 times by 36 tests: return *QCoreApplicationPrivate::cachedApplicationFilePath;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QFactoryLoader
  • tst_QFile
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QImage
  • tst_QNetworkAccessManager
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QPluginLoader
  • tst_QSql
  • tst_QSqlDatabase
  • tst_QSqlDriver
  • tst_QSqlQuery
  • tst_QSqlRelationalTableModel
  • ...
82
1293 QFileInfo pfi(QString::fromLatin1("/proc/%1/exe").arg(getpid()));-
1294 if (pfi.exists()
pfi.exists()Description
TRUEevaluated 954 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& pfi.isSymLink()
pfi.isSymLink()Description
TRUEevaluated 954 times by 23 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-954
1295 QCoreApplicationPrivate::setApplicationFilePath(pfi.canonicalFilePath());-
1296 return
executed 954 times by 23 tests: return *QCoreApplicationPrivate::cachedApplicationFilePath;
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
*QCoreApplicationPrivate::cachedApplicationFilePath;
executed 954 times by 23 tests: return *QCoreApplicationPrivate::cachedApplicationFilePath;
Executed by:
  • tst_QApplication
  • tst_QCommandLineParser
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDnsLookup_Appless
  • tst_QGlobal
  • tst_QGuiApplication
  • tst_QNetworkConfigurationManager
  • tst_QSql
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_selftests - unknown status
954
1297 }-
1298-
1299 if (!arguments().isEmpty()
!arguments().isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1300 QString argv0 = QFile::decodeName(arguments().at(0).toLocal8Bit());-
1301 QString absPath;-
1302-
1303 if (!argv0.isEmpty()
!argv0.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
&& argv0.at(0) == QLatin1Char('/')
argv0.at(0) ==...atin1Char('/')Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1304-
1305-
1306-
1307-
1308 absPath = argv0;-
1309 }
never executed: end of block
else if (argv0.contains(QLatin1Char('/'))
argv0.contains...tin1Char('/'))Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1310-
1311-
1312-
1313-
1314 absPath = QDir::current().absoluteFilePath(argv0);-
1315 }
never executed: end of block
else {
0
1316-
1317-
1318-
1319-
1320 absPath = QStandardPaths::findExecutable(argv0);-
1321 }
never executed: end of block
0
1322-
1323 absPath = QDir::cleanPath(absPath);-
1324-
1325 QFileInfo fi(absPath);-
1326 if (fi.exists()
fi.exists()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1327 QCoreApplicationPrivate::setApplicationFilePath(fi.canonicalFilePath());-
1328 return
never executed: return *QCoreApplicationPrivate::cachedApplicationFilePath;
*QCoreApplicationPrivate::cachedApplicationFilePath;
never executed: return *QCoreApplicationPrivate::cachedApplicationFilePath;
0
1329 }-
1330 }
never executed: end of block
0
1331-
1332-
1333 return
never executed: return QString();
QString();
never executed: return QString();
0
do { ((!(false)) ? qt_assert_x("Q_UNREACHABLE()", "Q_UNREACHABLE was reached",__FILE__,2223) : qt_noop()); __builtin_unreachable
never executed: return QString();
never executed: return QString();
();
never executed: return QString();
} while (0);}
1335-
1336-
1337-
1338-
1339-
1340-
1341qint64 QCoreApplication::applicationPid()-
1342{-
1343-
1344-
1345-
1346-
1347-
1348 return getpid();-
1349-
1350}-
1351QStringList QCoreApplication::arguments()-
1352{-
1353 QStringList list;-
1354-
1355 if (!self) {-
1356 QMessageLogger(__FILE__, 22782248, __PRETTY_FUNCTION__).warning("QCoreApplication::arguments: Please instantiate the QApplication object first");-
1357 return list;-
1358 }-
1359 const int ac = self->d_func()->argc;-
1360 char ** const av = self->d_func()->argv;-
1361 list.reserve(ac);-
1362 for (int a = 0; a < ac; ++a) {-
1363 list << QString::fromLocal8Bit(av[a]);-
1364 }-
1365-
1366 return list;-
1367}-
1368void QCoreApplication::setOrganizationName(const QString &orgName)-
1369{-
1370 if (coreappdata()->orgName == orgName)-
1371 return;-
1372 coreappdata()->orgName = orgName;-
1373-
1374 if (QCoreApplication::self)-
1375 QCoreApplication::self->organizationNameChanged();-
1376-
1377}-
1378-
1379QString QCoreApplication::organizationName()-
1380{-
1381 return
executed 46 times by 3 tests: return coreappdata()->orgName;
Executed by:
  • tst_QSettings
  • tst_qdesktopservices
  • tst_qstandardpaths
coreappdata()->orgName;
executed 46 times by 3 tests: return coreappdata()->orgName;
Executed by:
  • tst_QSettings
  • tst_qdesktopservices
  • tst_qstandardpaths
46
1382}-
1383void QCoreApplication::setOrganizationDomain(const QString &orgDomain)-
1384{-
1385 if (coreappdata()->orgDomain == orgDomain)-
1386 return;-
1387 coreappdata()->orgDomain = orgDomain;-
1388-
1389 if (QCoreApplication::self)-
1390 QCoreApplication::self->organizationDomainChanged();-
1391-
1392}-
1393-
1394QString QCoreApplication::organizationDomain()-
1395{-
1396 return coreappdata()->orgDomain;-
1397}-
1398void QCoreApplication::setApplicationName(const QString &application)-
1399{-
1400 coreappdata()->applicationNameSet = !application.isEmpty();-
1401 QString newAppName = application;-
1402 if (newAppName.isEmpty() && QCoreApplication::self)-
1403 newAppName = QCoreApplication::self->d_func()->appName();-
1404 if (coreappdata()->application == newAppName)-
1405 return;-
1406 coreappdata()->application = newAppName;-
1407-
1408 if (QCoreApplication::self)-
1409 QCoreApplication::self->applicationNameChanged();-
1410-
1411}-
1412-
1413QString QCoreApplication::applicationName()-
1414{-
1415 return
executed 9967 times by 157 tests: return coreappdata() ? coreappdata()->application : QString();
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • 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_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • ...
coreappdata() ? coreappdata()->application : QString();
executed 9967 times by 157 tests: return coreappdata() ? coreappdata()->application : QString();
Executed by:
  • tst_Gestures
  • tst_LargeFile
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • 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_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • ...
9967
1416}-
1417-
1418-
1419__attribute__((visibility("default"))) QString qt_applicationName_noFallback()-
1420{-
1421 return coreappdata()->applicationNameSet ? coreappdata()->application : QString();-
1422}-
1423void QCoreApplication::setApplicationVersion(const QString &version)-
1424{-
1425 if (coreappdata()->applicationVersion == version)-
1426 return;-
1427 coreappdata()->applicationVersion = version;-
1428-
1429 if (QCoreApplication::self)-
1430 QCoreApplication::self->applicationVersionChanged();-
1431-
1432}-
1433-
1434QString QCoreApplication::applicationVersion()-
1435{-
1436 return
executed 8 times by 2 tests: return coreappdata()->applicationVersion;
Executed by:
  • tst_QCoreApplication
  • tst_QGuiApplication
coreappdata()->applicationVersion;
executed 8 times by 2 tests: return coreappdata()->applicationVersion;
Executed by:
  • tst_QCoreApplication
  • tst_QGuiApplication
8
1437}-
1438-
1439-
1440-
1441namespace { namespace Q_QGS_libraryPathMutex { typedef QMutex Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized) guard.store(QtGlobalStatic::Destroyed); } }; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type (QMutex::Recursive))) : value (QMutex::Recursive) { guard.store(QtGlobalStatic::Initialized); } } holder; return &holder.value; } } } static QGlobalStatic<QMutex, Q_QGS_libraryPathMutex::innerFunction, Q_QGS_libraryPathMutex::guard> libraryPathMutex;-
1442QStringList QCoreApplication::libraryPaths()-
1443{-
1444 QMutexLocker locker(libraryPathMutex());-
1445-
1446 if (coreappdata()->manual_libpaths)-
1447 return *(coreappdata()->manual_libpaths);-
1448-
1449 if (!coreappdata()->app_libpaths) {-
1450 QStringList *app_libpaths = new QStringList;-
1451 coreappdata()->app_libpaths.reset(app_libpaths);-
1452-
1453 const QByteArray libPathEnv = qgetenv("QT_PLUGIN_PATH");-
1454 if (!libPathEnv.isEmpty()) {-
1455 QStringList paths = QFile::decodeName(libPathEnv).split(QDir::listSeparator(), QString::SkipEmptyParts);-
1456 for (QStringList::const_iterator it = paths.constBegin(); it != paths.constEnd(); ++it) {-
1457 QString canonicalPath = QDir(*it).canonicalPath();-
1458 if (!canonicalPath.isEmpty()-
1459 && !app_libpaths->contains(canonicalPath)) {-
1460 app_libpaths->append(canonicalPath);-
1461 }-
1462 }-
1463 }-
1464-
1465 QString installPathPlugins = QLibraryInfo::location(QLibraryInfo::PluginsPath);-
1466 if (QFile::exists(installPathPlugins)) {-
1467-
1468 installPathPlugins = QDir(installPathPlugins).canonicalPath();-
1469 if (!app_libpaths->contains(installPathPlugins))-
1470 app_libpaths->append(installPathPlugins);-
1471 }-
1472-
1473-
1474-
1475 if (self) self->d_func()->appendApplicationPathToLibraryPaths();-
1476 }-
1477 return *(coreappdata()->app_libpaths);-
1478}-
1479void QCoreApplication::setLibraryPaths(const QStringList &paths)-
1480{-
1481 QMutexLocker locker(libraryPathMutex());-
1482-
1483-
1484-
1485-
1486 if (!coreappdata()->app_libpaths)-
1487 libraryPaths();-
1488-
1489 if (coreappdata()->manual_libpaths)-
1490 *(coreappdata()->manual_libpaths) = paths;-
1491 else-
1492 coreappdata()->manual_libpaths.reset(new QStringList(paths));-
1493-
1494 locker.unlock();-
1495 QFactoryLoader::refreshAll();-
1496}-
1497void QCoreApplication::addLibraryPath(const QString &path)-
1498{-
1499 if (path.isEmpty())-
1500 return;-
1501-
1502 QString canonicalPath = QDir(path).canonicalPath();-
1503 if (canonicalPath.isEmpty())-
1504 return;-
1505-
1506 QMutexLocker locker(libraryPathMutex());-
1507-
1508 QStringList *libpaths = coreappdata()->manual_libpaths.data();-
1509 if (libpaths) {-
1510 if (libpaths->contains(canonicalPath))-
1511 return;-
1512 } else {-
1513-
1514 libraryPaths();-
1515 QStringList *app_libpaths = coreappdata()->app_libpaths.data();-
1516 if (app_libpaths->contains(canonicalPath))-
1517 return;-
1518-
1519 coreappdata()->manual_libpaths.reset(libpaths = new QStringList(*app_libpaths));-
1520 }-
1521-
1522 libpaths->prepend(canonicalPath);-
1523 locker.unlock();-
1524 QFactoryLoader::refreshAll();-
1525}-
1526void QCoreApplication::removeLibraryPath(const QString &path)-
1527{-
1528 if (path.isEmpty())-
1529 return;-
1530-
1531 QString canonicalPath = QDir(path).canonicalPath();-
1532 if (canonicalPath.isEmpty())-
1533 return;-
1534-
1535 QMutexLocker locker(libraryPathMutex());-
1536-
1537 QStringList *libpaths = coreappdata()->manual_libpaths.data();-
1538 if (libpaths) {-
1539 if (libpaths->removeAll(canonicalPath) == 0)-
1540 return;-
1541 } else {-
1542-
1543 libraryPaths();-
1544 QStringList *app_libpaths = coreappdata()->app_libpaths.data();-
1545 if (!app_libpaths->contains(canonicalPath))-
1546 return;-
1547-
1548 coreappdata()->manual_libpaths.reset(libpaths = new QStringList(*app_libpaths));-
1549 libpaths->removeAll(canonicalPath);-
1550 }-
1551-
1552 locker.unlock();-
1553 QFactoryLoader::refreshAll();-
1554}-
1555void QCoreApplication::installNativeEventFilter(QAbstractNativeEventFilter *filterObj)-
1556{-
1557 if (QCoreApplication::testAttribute(Qt::AA_MacPluginApplicationAA_PluginApplication)
QCoreApplicati...inApplication)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget
) {
0-1
1558 QMessageLogger(__FILE__, 27152667, __PRETTY_FUNCTION__).warning("Native event filters are not applied when the Qt::AA_MacPluginApplicationAA_PluginApplication attribute is set");-
1559 return;
never executed: return;
0
1560 }-
1561-
1562 QAbstractEventDispatcher *eventDispatcher = QAbstractEventDispatcher::instance(QCoreApplicationPrivate::theMainThread);-
1563 if (!filterObj
!filterObjDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget
|| !eventDispatcher
!eventDispatcherDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidget
)
0-1
1564 return;
never executed: return;
0
1565 eventDispatcher->installNativeEventFilter(filterObj);-
1566}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QWidget
1
1567void QCoreApplication::removeNativeEventFilter(QAbstractNativeEventFilter *filterObject)-
1568{-
1569 QAbstractEventDispatcher *eventDispatcher = QAbstractEventDispatcher::instance();-
1570 if (!filterObject || !eventDispatcher)-
1571 return;-
1572 eventDispatcher->removeNativeEventFilter(filterObject);-
1573}-
1574bool QCoreApplication::hasPendingEvents()-
1575{-
1576 QAbstractEventDispatcher *eventDispatcher = QAbstractEventDispatcher::instance();-
1577 if (eventDispatcher)-
1578 return eventDispatcher->hasPendingEvents();-
1579 return false;-
1580}-
1581-
1582-
1583-
1584-
1585-
1586-
1587QAbstractEventDispatcher *QCoreApplication::eventDispatcher()-
1588{-
1589 if (QCoreApplicationPrivate::theMainThread)-
1590 return QCoreApplicationPrivate::theMainThread.load()->eventDispatcher();-
1591 return 0;-
1592}-
1593-
1594-
1595-
1596-
1597-
1598-
1599-
1600void QCoreApplication::setEventDispatcher(QAbstractEventDispatcher *eventDispatcher)-
1601{-
1602 QThread *mainThread = QCoreApplicationPrivate::theMainThread;-
1603 if (!mainThread)-
1604 mainThread = QThread::currentThread();-
1605 mainThread->setEventDispatcher(eventDispatcher);-
1606}-
1607-
Switch to Source codePreprocessed file

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