qobject.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qobject.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Copyright (C) 2013 Olivier Goffart <ogoffart@woboq.com>-
5** Contact: http://www.qt.io/licensing/-
6**-
7** This file is part of the QtCore module of the Qt Toolkit.-
8**-
9** $QT_BEGIN_LICENSE:LGPL21$-
10** Commercial License Usage-
11** Licensees holding valid commercial Qt licenses may use this file in-
12** accordance with the commercial license agreement provided with the-
13** Software or, alternatively, in accordance with the terms contained in-
14** a written agreement between you and The Qt Company. For licensing terms-
15** and conditions see http://www.qt.io/terms-conditions. For further-
16** information use the contact form at http://www.qt.io/contact-us.-
17**-
18** GNU Lesser General Public License Usage-
19** Alternatively, this file may be used under the terms of the GNU Lesser-
20** General Public License version 2.1 or version 3 as published by the Free-
21** Software Foundation and appearing in the file LICENSE.LGPLv21 and-
22** LICENSE.LGPLv3 included in the packaging of this file. Please review the-
23** following information to ensure the GNU Lesser General Public License-
24** requirements will be met: https://www.gnu.org/licenses/lgpl.html and-
25** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.-
26**-
27** As a special exception, The Qt Company gives you certain additional-
28** rights. These rights are described in The Qt Company LGPL Exception-
29** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.-
30**-
31** $QT_END_LICENSE$-
32**-
33****************************************************************************/-
34-
35#include "qobject.h"-
36#include "qobject_p.h"-
37#include "qmetaobject_p.h"-
38-
39#include "qabstracteventdispatcher.h"-
40#include "qabstracteventdispatcher_p.h"-
41#include "qcoreapplication.h"-
42#include "qcoreapplication_p.h"-
43#include "qvariant.h"-
44#include "qmetaobject.h"-
45#include <qregexp.h>-
46#include <qregularexpression.h>-
47#include <qthread.h>-
48#include <private/qthread_p.h>-
49#include <qdebug.h>-
50#include <qpair.h>-
51#include <qvarlengtharray.h>-
52#include <qset.h>-
53#include <qsemaphore.h>-
54#include <qsharedpointer.h>-
55-
56#include <private/qorderedmutexlocker_p.h>-
57#include <private/qhooks_p.h>-
58-
59#include <new>-
60-
61#include <ctype.h>-
62#include <limits.h>-
63-
64QT_BEGIN_NAMESPACE-
65-
66static int DIRECT_CONNECTION_ONLY = 0;-
67-
68-
69QDynamicMetaObjectData::~QDynamicMetaObjectData()-
70{-
71}-
72-
73QAbstractDynamicMetaObject::~QAbstractDynamicMetaObject()-
74{-
75}-
76-
77-
78struct QSlotObjectBaseDeleter { // for use with QScopedPointer<QSlotObjectBase,...>-
79 static void cleanup(QtPrivate::QSlotObjectBase *slot) {-
80 if (slot) slot->destroyIfLastRef();
executed 24500 times by 175 tests: slot->destroyIfLastRef();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
slotDescription
TRUEevaluated 24500 times by 175 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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 24498 times by 175 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
24498-24500
81 }
executed 48998 times by 175 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
48998
82};-
83static int *queuedConnectionTypes(const QList<QByteArray> &typeNames)-
84{-
85 int *types = new int [typeNames.count() + 1];-
86 Q_CHECK_PTR(types);
never executed: qBadAlloc();
!(types)Description
TRUEnever evaluated
FALSEevaluated 4172 times by 390 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
  • ...
0-4172
87 for (int i = 0; i < typeNames.count(); ++i) {
i < typeNames.count()Description
TRUEevaluated 3282 times by 163 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 4172 times by 390 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
  • ...
3282-4172
88 const QByteArray typeName = typeNames.at(i);-
89 if (typeName.endsWith('*'))
typeName.endsWith('*')Description
TRUEevaluated 704 times by 158 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 2578 times by 163 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
  • ...
704-2578
90 types[i] = QMetaType::VoidStar;
executed 704 times by 158 tests: types[i] = QMetaType::VoidStar;
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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
704
91 else-
92 types[i] = QMetaType::type(typeName);
executed 2578 times by 163 tests: types[i] = QMetaType::type(typeName);
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
  • ...
2578
93-
94 if (!types[i]) {
!types[i]Description
TRUEnever evaluated
FALSEevaluated 3282 times by 163 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
  • ...
0-3282
95 qWarning("QObject::connect: Cannot queue arguments of type '%s'\n"-
96 "(Make sure '%s' is registered using qRegisterMetaType().)",-
97 typeName.constData(), typeName.constData());-
98 delete [] types;-
99 return 0;
never executed: return 0;
0
100 }-
101 }
executed 3282 times by 163 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
3282
102 types[typeNames.count()] = 0;-
103-
104 return types;
executed 4172 times by 390 tests: return types;
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
  • ...
4172
105}-
106-
107static int *queuedConnectionTypes(const QArgumentType *argumentTypes, int argc)-
108{-
109 QScopedArrayPointer<int> types(new int [argc + 1]);-
110 for (int i = 0; i < argc; ++i) {
i < argcDescription
TRUEevaluated 52627 times by 181 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 32425 times by 184 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
32425-52627
111 const QArgumentType &type = argumentTypes[i];-
112 if (type.type())
type.type()Description
TRUEevaluated 52606 times by 181 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 21 times by 7 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
21-52606
113 types[i] = type.type();
executed 52606 times by 181 tests: types[i] = type.type();
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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
52606
114 else if (type.name().endsWith('*'))
type.name().endsWith('*')Description
TRUEevaluated 21 times by 7 tests
Evaluated by:
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEnever evaluated
0-21
115 types[i] = QMetaType::VoidStar;
executed 21 times by 7 tests: types[i] = QMetaType::VoidStar;
Executed by:
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QNetworkReply
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
21
116 else-
117 types[i] = QMetaType::type(type.name());
never executed: types[i] = QMetaType::type(type.name());
0
118-
119 if (!types[i]) {
!types[i]Description
TRUEnever evaluated
FALSEevaluated 52627 times by 181 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
0-52627
120 qWarning("QObject::connect: Cannot queue arguments of type '%s'\n"-
121 "(Make sure '%s' is registered using qRegisterMetaType().)",-
122 type.name().constData(), type.name().constData());-
123 return 0;
never executed: return 0;
0
124 }-
125 }
executed 52627 times by 181 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
52627
126 types[argc] = 0;-
127-
128 return types.take();
executed 32425 times by 184 tests: return types.take();
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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
32425
129}-
130-
131static QBasicMutex _q_ObjectMutexPool[131];-
132-
133/**-
134 * \internal-
135 * mutex to be locked when accessing the connectionlists or the senders list-
136 */-
137static inline QMutex *signalSlotLock(const QObject *o)-
138{-
139 return static_cast<QMutex *>(&_q_ObjectMutexPool[
executed 10752296 times by 546 tests: return static_cast<QMutex *>(&_q_ObjectMutexPool[ uint(quintptr(o)) % sizeof(_q_ObjectMutexPool)/sizeof(QBasicMutex)]);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
10752296
140 uint(quintptr(o)) % sizeof(_q_ObjectMutexPool)/sizeof(QBasicMutex)]);
executed 10752296 times by 546 tests: return static_cast<QMutex *>(&_q_ObjectMutexPool[ uint(quintptr(o)) % sizeof(_q_ObjectMutexPool)/sizeof(QBasicMutex)]);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
10752296
141}-
142-
143// ### Qt >= 5.6, remove qt_add/removeObject-
144extern "C" Q_CORE_EXPORT void qt_addObject(QObject *)-
145{}-
146-
147extern "C" Q_CORE_EXPORT void qt_removeObject(QObject *)-
148{}-
149-
150struct QConnectionSenderSwitcher {-
151 QObject *receiver;-
152 QObjectPrivate::Sender *previousSender;-
153 QObjectPrivate::Sender currentSender;-
154 bool switched;-
155-
156 inline QConnectionSenderSwitcher() : switched(false) {}
executed 8311157 times by 382 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
8311157
157-
158 inline QConnectionSenderSwitcher(QObject *receiver, QObject *sender, int signal_absolute_id)-
159 {-
160 switchSender(receiver, sender, signal_absolute_id);-
161 }
executed 266608 times by 348 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
  • ...
266608
162-
163 inline void switchSender(QObject *receiver, QObject *sender, int signal_absolute_id)-
164 {-
165 this->receiver = receiver;-
166 currentSender.sender = sender;-
167 currentSender.signal = signal_absolute_id;-
168 currentSender.ref = 1;-
169 previousSender = QObjectPrivate::setCurrentSender(receiver, &currentSender);-
170 switched = true;-
171 }
executed 8577271 times by 397 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
8577271
172-
173 inline ~QConnectionSenderSwitcher()-
174 {-
175 if (switched)
switchedDescription
TRUEevaluated 8577268 times by 397 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 494 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QThread
  • tst_QUdpSocket
  • ...
494-8577268
176 QObjectPrivate::resetCurrentSender(receiver, &currentSender, previousSender);
executed 8577268 times by 397 tests: QObjectPrivate::resetCurrentSender(receiver, &currentSender, previousSender);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
8577268
177 }
executed 8577762 times by 397 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
8577762
178private:-
179 Q_DISABLE_COPY(QConnectionSenderSwitcher)-
180};-
181-
182-
183void (*QAbstractDeclarativeData::destroyed)(QAbstractDeclarativeData *, QObject *) = 0;-
184void (*QAbstractDeclarativeData::destroyed_qml1)(QAbstractDeclarativeData *, QObject *) = 0;-
185void (*QAbstractDeclarativeData::parentChanged)(QAbstractDeclarativeData *, QObject *, QObject *) = 0;-
186void (*QAbstractDeclarativeData::signalEmitted)(QAbstractDeclarativeData *, QObject *, int, void **) = 0;-
187int (*QAbstractDeclarativeData::receivers)(QAbstractDeclarativeData *, const QObject *, int) = 0;-
188bool (*QAbstractDeclarativeData::isSignalConnected)(QAbstractDeclarativeData *, const QObject *, int) = 0;-
189void (*QAbstractDeclarativeData::setWidgetParent)(QObject *, QObject *) = 0;-
190-
191QObjectData::~QObjectData() {}-
192-
193QMetaObject *QObjectData::dynamicMetaObject() const-
194{-
195 return metaObject->toDynamicMetaObject(q_ptr);
never executed: return metaObject->toDynamicMetaObject(q_ptr);
0
196}-
197-
198QObjectPrivate::QObjectPrivate(int version)-
199 : threadData(0), connectionLists(0), senders(0), currentSender(0), currentChildBeingDeleted(0)-
200{-
201#ifdef QT_BUILD_INTERNAL-
202 // Don't check the version parameter in internal builds.-
203 // This allows incompatible versions to be loaded, possibly for testing.-
204 Q_UNUSED(version);-
205#else-
206 if (version != QObjectPrivateVersion)-
207 qFatal("Cannot mix incompatible Qt library (version 0x%x) with this library (version 0x%x)",-
208 version, QObjectPrivateVersion);-
209#endif-
210-
211 // QObjectData initialization-
212 q_ptr = 0;-
213 parent = 0; // no parent yet. It is set by setParent()-
214 isWidget = false; // assume not a widget object-
215 blockSig = false; // not blocking signals-
216 wasDeleted = false; // double-delete catcher-
217 isDeletingChildren = false; // set by deleteChildren()-
218 sendChildEvents = true; // if we should send ChildInsert and ChildRemove events to parent-
219 receiveChildEvents = true;-
220 postedEvents = 0;-
221 extraData = 0;-
222 connectedSignals[0] = connectedSignals[1] = 0;-
223 metaObject = 0;-
224 isWindow = false;-
225}
executed 1940082 times by 941 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1940082
226-
227QObjectPrivate::~QObjectPrivate()-
228{-
229 if (extraData && !extraData->runningTimers.isEmpty()) {
extraDataDescription
TRUEevaluated 104278 times by 423 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 1831979 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
!extraData->ru...mers.isEmpty()Description
TRUEevaluated 2520 times by 153 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
FALSEevaluated 101758 times by 418 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
2520-1831979
230 if (Q_LIKELY(threadData->thread == QThread::currentThread())) {
__builtin_expe...read()), true)Description
TRUEevaluated 2514 times by 152 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QTcpSocket
  • tst_QTimer
6-2514
231 // unregister pending timers-
232 if (threadData->eventDispatcher.load())
threadData->ev...patcher.load()Description
TRUEevaluated 2404 times by 63 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
FALSEevaluated 110 times by 90 tests
Evaluated by:
  • tst_QApplication
  • tst_languagechange - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qaccessibility - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatastream - unknown status
  • tst_qdialog - unknown status
  • tst_qdialogbuttonbox - unknown status
  • tst_qdockwidget - unknown status
  • tst_qdoublespinbox - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfiledialog - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qfileiconprovider - unknown status
  • tst_qfilesystemmodel - unknown status
  • ...
110-2404
233 threadData->eventDispatcher.load()->unregisterTimers(q_ptr);
executed 2404 times by 63 tests: threadData->eventDispatcher.load()->unregisterTimers(q_ptr);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
2404
234-
235 // release the timer ids back to the pool-
236 for (int i = 0; i < extraData->runningTimers.size(); ++i)
i < extraData-...gTimers.size()Description
TRUEevaluated 2572 times by 152 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
FALSEevaluated 2514 times by 152 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
2514-2572
237 QAbstractEventDispatcherPrivate::releaseTimerId(extraData->runningTimers.at(i));
executed 2572 times by 152 tests: QAbstractEventDispatcherPrivate::releaseTimerId(extraData->runningTimers.at(i));
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
2572
238 } else {
executed 2514 times by 152 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
2514
239 qWarning("QObject::~QObject: Timers cannot be stopped from another thread");-
240 }
executed 6 times by 2 tests: end of block
Executed by:
  • tst_QTcpSocket
  • tst_QTimer
6
241 }-
242-
243 if (postedEvents)
postedEventsDescription
TRUEevaluated 11268 times by 382 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 1924989 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
11268-1924989
244 QCoreApplication::removePostedEvents(q_ptr, 0);
executed 11268 times by 382 tests: QCoreApplication::removePostedEvents(q_ptr, 0);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
11268
245-
246 threadData->deref();-
247-
248 if (metaObject) metaObject->objectDestroyed(q_ptr);
never executed: metaObject->objectDestroyed(q_ptr);
metaObjectDescription
TRUEnever evaluated
FALSEevaluated 1935986 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
0-1935986
249-
250#ifndef QT_NO_USERDATA-
251 if (extraData)
extraDataDescription
TRUEevaluated 104278 times by 423 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 1831979 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
104278-1831979
252 qDeleteAll(extraData->userData);
executed 104278 times by 423 tests: qDeleteAll(extraData->userData);
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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
104278
253#endif-
254 delete extraData;-
255}
executed 1935949 times by 929 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
1935949
256-
257/*!-
258 \internal-
259 For a given metaobject, compute the signal offset, and the method offset (including signals)-
260*/-
261static void computeOffsets(const QMetaObject *metaobject, int *signalOffset, int *methodOffset)-
262{-
263 *signalOffset = *methodOffset = 0;-
264 const QMetaObject *m = metaobject->d.superdata;-
265 while (m) {
mDescription
TRUEevaluated 13113 times by 127 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 209759 times by 128 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
13113-209759
266 const QMetaObjectPrivate *d = QMetaObjectPrivate::get(m);-
267 *methodOffset += d->methodCount;-
268 Q_ASSERT(d->revision >= 4);-
269 *signalOffset += d->signalCount;-
270 m = m->d.superdata;-
271 }
executed 13113 times by 127 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
13113
272}
executed 209759 times by 128 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
209759
273-
274/*-
275 This vector contains the all connections from an object.-
276-
277 Each object may have one vector containing the lists of-
278 connections for a given signal. The index in the vector correspond-
279 to the signal index. The signal index is the one returned by-
280 QObjectPrivate::signalIndex (not QMetaObject::indexOfSignal).-
281 Negative index means connections to all signals.-
282-
283 This vector is protected by the object mutex (signalSlotMutexes())-
284-
285 Each Connection is also part of a 'senders' linked list. The mutex-
286 of the receiver must be locked when touching the pointers of this-
287 linked list.-
288*/-
289class QObjectConnectionListVector : public QVector<QObjectPrivate::ConnectionList>-
290{-
291public:-
292 bool orphaned; //the QObject owner of this vector has been destroyed while the vector was inUse-
293 bool dirty; //some Connection have been disconnected (their receiver is 0) but not removed from the list yet-
294 int inUse; //number of functions that are currently accessing this object or its connections-
295 QObjectPrivate::ConnectionList allsignals;-
296-
297 QObjectConnectionListVector()-
298 : QVector<QObjectPrivate::ConnectionList>(), orphaned(false), dirty(false), inUse(0)-
299 { }
executed 287954 times by 276 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
287954
300-
301 QObjectPrivate::ConnectionList &operator[](int at)-
302 {-
303 if (at < 0)
at < 0Description
TRUEevaluated 414626 times by 533 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 3084189 times by 542 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
414626-3084189
304 return allsignals;
executed 414626 times by 533 tests: return allsignals;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
414626
305 return QVector<QObjectPrivate::ConnectionList>::operator[](at);
executed 3084189 times by 542 tests: return QVector<QObjectPrivate::ConnectionList>::operator[](at);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
3084189
306 }-
307};-
308-
309// Used by QAccessibleWidget-
310bool QObjectPrivate::isSender(const QObject *receiver, const char *signal) const-
311{-
312 Q_Q(const QObject);-
313 int signal_index = signalIndex(signal);-
314 if (signal_index < 0)
signal_index < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
315 return false;
never executed: return false;
0
316 QMutexLocker locker(signalSlotLock(q));-
317 if (connectionLists) {
connectionListsDescription
TRUEnever evaluated
FALSEnever evaluated
0
318 if (signal_index < connectionLists->count()) {
signal_index <...Lists->count()Description
TRUEnever evaluated
FALSEnever evaluated
0
319 const QObjectPrivate::Connection *c =-
320 connectionLists->at(signal_index).first;-
321-
322 while (c) {
cDescription
TRUEnever evaluated
FALSEnever evaluated
0
323 if (c->receiver == receiver)
c->receiver == receiverDescription
TRUEnever evaluated
FALSEnever evaluated
0
324 return true;
never executed: return true;
0
325 c = c->nextConnectionList;-
326 }
never executed: end of block
0
327 }
never executed: end of block
0
328 }
never executed: end of block
0
329 return false;
never executed: return false;
0
330}-
331-
332// Used by QAccessibleWidget-
333QObjectList QObjectPrivate::receiverList(const char *signal) const-
334{-
335 Q_Q(const QObject);-
336 QObjectList returnValue;-
337 int signal_index = signalIndex(signal);-
338 if (signal_index < 0)
signal_index < 0Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
0-1
339 return returnValue;
never executed: return returnValue;
0
340 QMutexLocker locker(signalSlotLock(q));-
341 if (connectionLists) {
connectionListsDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
FALSEnever evaluated
0-1
342 if (signal_index < connectionLists->count()) {
signal_index <...Lists->count()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QAccessibility
0-1
343 const QObjectPrivate::Connection *c = connectionLists->at(signal_index).first;-
344-
345 while (c) {
cDescription
TRUEnever evaluated
FALSEnever evaluated
0
346 if (c->receiver)
c->receiverDescription
TRUEnever evaluated
FALSEnever evaluated
0
347 returnValue << c->receiver;
never executed: returnValue << c->receiver;
0
348 c = c->nextConnectionList;-
349 }
never executed: end of block
0
350 }
never executed: end of block
0
351 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QAccessibility
1
352 return returnValue;
executed 1 time by 1 test: return returnValue;
Executed by:
  • tst_QAccessibility
1
353}-
354-
355// Used by QAccessibleWidget-
356QObjectList QObjectPrivate::senderList() const-
357{-
358 QObjectList returnValue;-
359 QMutexLocker locker(signalSlotLock(q_func()));-
360 for (Connection *c = senders; c; c = c->next)
cDescription
TRUEnever evaluated
FALSEnever evaluated
0
361 returnValue << c->sender;
never executed: returnValue << c->sender;
0
362 return returnValue;
never executed: return returnValue;
0
363}-
364-
365/*!-
366 \internal-
367 Add the connection \a c to the list of connections of the sender's object-
368 for the specified \a signal-
369-
370 The signalSlotLock() of the sender and receiver must be locked while calling-
371 this function-
372-
373 Will also add the connection in the sender's list of the receiver.-
374 */-
375void QObjectPrivate::addConnection(int signal, Connection *c)-
376{-
377 Q_ASSERT(c->sender == q_ptr);-
378 if (!connectionLists)
!connectionListsDescription
TRUEevaluated 287954 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
FALSEevaluated 556406 times by 225 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • 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
  • ...
287954-556406
379 connectionLists = new QObjectConnectionListVector();
executed 287954 times by 276 tests: connectionLists = new QObjectConnectionListVector();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
287954
380 if (signal >= connectionLists->count())
signal >= conn...Lists->count()Description
TRUEevaluated 414612 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
FALSEevaluated 429748 times by 211 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
414612-429748
381 connectionLists->resize(signal + 1);
executed 414612 times by 276 tests: connectionLists->resize(signal + 1);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
414612
382-
383 ConnectionList &connectionList = (*connectionLists)[signal];-
384 if (connectionList.last) {
connectionList.lastDescription
TRUEevaluated 319038 times by 178 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 525322 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
319038-525322
385 connectionList.last->nextConnectionList = c;-
386 } else {
executed 319038 times by 178 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
319038
387 connectionList.first = c;-
388 }
executed 525322 times by 276 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
525322
389 connectionList.last = c;-
390-
391 cleanConnectionLists();-
392-
393 c->prev = &(QObjectPrivate::get(c->receiver)->senders);-
394 c->next = *c->prev;-
395 *c->prev = c;-
396 if (c->next)
c->nextDescription
TRUEevaluated 477240 times by 233 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 367120 times by 274 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
367120-477240
397 c->next->prev = &c->next;
executed 477240 times by 233 tests: c->next->prev = &c->next;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
477240
398-
399 if (signal < 0) {
signal < 0Description
TRUEevaluated 360 times by 11 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 844000 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
360-844000
400 connectedSignals[0] = connectedSignals[1] = ~0;-
401 } else if (signal < (int)sizeof(connectedSignals) * 8) {
executed 360 times by 11 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
signal < (int)...edSignals) * 8Description
TRUEevaluated 843998 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
2-843998
402 connectedSignals[signal >> 5] |= (1 << (signal & 0x1f));-
403 }
executed 843998 times by 276 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
843998
404}
executed 844360 times by 276 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
844360
405-
406void QObjectPrivate::cleanConnectionLists()-
407{-
408 if (connectionLists->dirty && !connectionLists->inUse) {
connectionLists->dirtyDescription
TRUEevaluated 126054 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 718306 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
!connectionLists->inUseDescription
TRUEevaluated 125789 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 265 times by 9 tests
Evaluated by:
  • tst_QColumnView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSidebar
  • tst_QStateMachine
  • tst_languageChange
265-718306
409 // remove broken connections-
410 for (int signal = -1; signal < connectionLists->count(); ++signal) {
signal < conne...Lists->count()Description
TRUEevaluated 581966 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 125789 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
125789-581966
411 QObjectPrivate::ConnectionList &connectionList =-
412 (*connectionLists)[signal];-
413-
414 // Set to the last entry in the connection list that was *not*-
415 // deleted. This is needed to update the list's last pointer-
416 // at the end of the cleanup.-
417 QObjectPrivate::Connection *last = 0;-
418-
419 QObjectPrivate::Connection **prev = &connectionList.first;-
420 QObjectPrivate::Connection *c = *prev;-
421 while (c) {
cDescription
TRUEevaluated 382612 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 581966 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
382612-581966
422 if (c->receiver) {
c->receiverDescription
TRUEevaluated 223896 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 158716 times by 121 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
158716-223896
423 last = c;-
424 prev = &c->nextConnectionList;-
425 c = *prev;-
426 } else {
executed 223896 times by 121 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
223896
427 QObjectPrivate::Connection *next = c->nextConnectionList;-
428 *prev = next;-
429 c->deref();-
430 c = next;-
431 }
executed 158716 times by 121 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
158716
432 }-
433-
434 // Correct the connection list's last pointer.-
435 // As conectionList.last could equal last, this could be a noop-
436 connectionList.last = last;-
437 }
executed 581966 times by 121 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
581966
438 connectionLists->dirty = false;-
439 }
executed 125789 times by 121 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • ...
125789
440}
executed 844360 times by 276 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
844360
441-
442/*!-
443 \internal-
444 */-
445QMetaCallEvent::QMetaCallEvent(ushort method_offset, ushort method_relative, QObjectPrivate::StaticMetaCallFunction callFunction,-
446 const QObject *sender, int signalId,-
447 int nargs, int *types, void **args, QSemaphore *semaphore)-
448 : QEvent(MetaCall), slotObj_(0), sender_(sender), signalId_(signalId),-
449 nargs_(nargs), types_(types), args_(args), semaphore_(semaphore),-
450 callFunction_(callFunction), method_offset_(method_offset), method_relative_(method_relative)-
451{
executed 276752 times by 444 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
}
executed 276752 times by 444 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
276752
452-
453/*!-
454 \internal-
455 */-
456QMetaCallEvent::QMetaCallEvent(QtPrivate::QSlotObjectBase *slotO, const QObject *sender, int signalId,-
457 int nargs, int *types, void **args, QSemaphore *semaphore)-
458 : QEvent(MetaCall), slotObj_(slotO), sender_(sender), signalId_(signalId),-
459 nargs_(nargs), types_(types), args_(args), semaphore_(semaphore),-
460 callFunction_(0), method_offset_(0), method_relative_(ushort(-1))-
461{-
462 if (slotObj_)
slotObj_Description
TRUEevaluated 9842 times by 322 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEnever evaluated
0-9842
463 slotObj_->ref();
executed 9842 times by 322 tests: slotObj_->ref();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
9842
464}
executed 9842 times by 322 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
9842
465-
466/*!-
467 \internal-
468 */-
469QMetaCallEvent::~QMetaCallEvent()-
470{-
471 if (types_) {
types_Description
TRUEevaluated 280677 times by 447 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 5906 times by 316 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
5906-280677
472 for (int i = 0; i < nargs_; ++i) {
i < nargs_Description
TRUEevaluated 402580 times by 447 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 280677 times by 447 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
  • ...
280677-402580
473 if (types_[i] && args_[i])
types_[i]Description
TRUEevaluated 121903 times by 185 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 280677 times by 447 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
  • ...
args_[i]Description
TRUEevaluated 121903 times by 185 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
  • ...
FALSEnever evaluated
0-280677
474 QMetaType::destroy(types_[i], args_[i]);
executed 121903 times by 185 tests: QMetaType::destroy(types_[i], args_[i]);
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
  • ...
121903
475 }
executed 402580 times by 447 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
  • ...
402580
476 free(types_);-
477 free(args_);-
478 }
executed 280677 times by 447 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
  • ...
280677
479#ifndef QT_NO_THREAD-
480 if (semaphore_)
semaphore_Description
TRUEevaluated 4497 times by 316 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 282086 times by 447 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
  • ...
4497-282086
481 semaphore_->release();
executed 4497 times by 316 tests: semaphore_->release();
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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
4497
482#endif-
483 if (slotObj_)
slotObj_Description
TRUEevaluated 9813 times by 319 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 276771 times by 445 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
  • ...
9813-276771
484 slotObj_->destroyIfLastRef();
executed 9813 times by 319 tests: slotObj_->destroyIfLastRef();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
9813
485}
executed 286584 times by 451 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
  • ...
286584
486-
487/*!-
488 \internal-
489 */-
490void QMetaCallEvent::placeMetaCall(QObject *object)-
491{-
492 if (slotObj_) {
slotObj_Description
TRUEevaluated 9356 times by 310 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 255925 times by 346 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
  • ...
9356-255925
493 slotObj_->call(object, args_);-
494 } else if (callFunction_ && method_offset_ <= object->metaObject()->methodOffset()) {
executed 9355 times by 310 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
callFunction_Description
TRUEevaluated 255918 times by 346 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 7 times by 1 test
Evaluated by:
  • tst_QStateMachine
method_offset_...methodOffset()Description
TRUEevaluated 255917 times by 346 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 1 time by 1 test
Evaluated by:
  • tst_QObject
1-255918
495 callFunction_(object, QMetaObject::InvokeMetaMethod, method_relative_, args_);-
496 } else {
executed 255917 times by 346 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
  • ...
255917
497 QMetaObject::metacall(object, QMetaObject::InvokeMetaMethod, method_offset_ + method_relative_, args_);-
498 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QObject
  • tst_QStateMachine
8
499}-
500-
501/*!-
502 \class QSignalBlocker-
503 \brief Exception-safe wrapper around QObject::blockSignals()-
504 \since 5.3-
505 \ingroup objectmodel-
506 \inmodule QtCore-
507-
508 \reentrant-
509-
510 QSignalBlocker can be used whereever you would otherwise use a-
511 pair of calls to blockSignals(). It blocks signals in its-
512 constructor and in the destructor it resets the state to what-
513 it was before the constructor ran.-
514-
515 \code-
516 {-
517 const QSignalBlocker blocker(someQObject);-
518 // no signals here-
519 }-
520 \endcode-
521 is thus equivalent to-
522 \code-
523 const bool wasBlocked = someQObject->blockSignals(true);-
524 // no signals here-
525 someQObject->blockSignals(wasBlocked);-
526 \endcode-
527-
528 except the code using QSignalBlocker is safe in the face of-
529 exceptions.-
530-
531 \sa QMutexLocker, QEventLoopLocker-
532*/-
533-
534/*!-
535 \fn QSignalBlocker::QSignalBlocker(QObject *object)-
536-
537 Constructor. Calls \a{object}->blockSignals(true).-
538*/-
539-
540/*!-
541 \fn QSignalBlocker::QSignalBlocker(QObject &object)-
542 \overload-
543-
544 Calls \a{object}.blockSignals(true).-
545*/-
546-
547/*!-
548 \fn QSignalBlocker::QSignalBlocker(QSignalBlocker &&other)-
549-
550 Move-constructs a signal blocker from \a other. \a other will have-
551 a no-op destructor, while repsonsibility for restoring the-
552 QObject::signalsBlocked() state is transferred to the new object.-
553*/-
554-
555/*!-
556 \fn QSignalBlocker &QSignalBlocker::operator=(QSignalBlocker &&other)-
557-
558 Move-assigns this signal blocker from \a other. \a other will have-
559 a no-op destructor, while repsonsibility for restoring the-
560 QObject::signalsBlocked() state is transferred to this object.-
561-
562 The object's signals this signal blocker was blocking prior to-
563 being moved to, if any, are unblocked \e except in the case where-
564 both instances block the same object's signals and \c *this is-
565 unblocked while \a other is not, at the time of the move.-
566*/-
567-
568/*!-
569 \fn QSignalBlocker::~QSignalBlocker()-
570-
571 Destructor. Restores the QObject::signalsBlocked() state to what it-
572 was before the constructor ran, unless unblock() has been called-
573 without a following reblock(), in which case it does nothing.-
574*/-
575-
576/*!-
577 \fn void QSignalBlocker::reblock()-
578-
579 Re-blocks signals after a previous unblock().-
580-
581 The numbers of reblock() and unblock() calls are not counted, so-
582 every reblock() undoes any number of unblock() calls.-
583*/-
584-
585/*!-
586 \fn void QSignalBlocker::unblock()-
587-
588 Temporarily restores the QObject::signalsBlocked() state to what-
589 it was before this QSignaBlocker's constructor ran. To undo, use-
590 reblock().-
591-
592 The numbers of reblock() and unblock() calls are not counted, so-
593 every unblock() undoes any number of reblock() calls.-
594*/-
595-
596/*!-
597 \class QObject-
598 \inmodule QtCore-
599 \brief The QObject class is the base class of all Qt objects.-
600-
601 \ingroup objectmodel-
602-
603 \reentrant-
604-
605 QObject is the heart of the Qt \l{Object Model}. The central-
606 feature in this model is a very powerful mechanism for seamless-
607 object communication called \l{signals and slots}. You can-
608 connect a signal to a slot with connect() and destroy the-
609 connection with disconnect(). To avoid never ending notification-
610 loops you can temporarily block signals with blockSignals(). The-
611 protected functions connectNotify() and disconnectNotify() make-
612 it possible to track connections.-
613-
614 QObjects organize themselves in \l {Object Trees & Ownership}-
615 {object trees}. When you create a QObject with another object as-
616 parent, the object will automatically add itself to the parent's-
617 children() list. The parent takes ownership of the object; i.e.,-
618 it will automatically delete its children in its destructor. You-
619 can look for an object by name and optionally type using-
620 findChild() or findChildren().-
621-
622 Every object has an objectName() and its class name can be found-
623 via the corresponding metaObject() (see QMetaObject::className()).-
624 You can determine whether the object's class inherits another-
625 class in the QObject inheritance hierarchy by using the-
626 inherits() function.-
627-
628 When an object is deleted, it emits a destroyed() signal. You can-
629 catch this signal to avoid dangling references to QObjects.-
630-
631 QObjects can receive events through event() and filter the events-
632 of other objects. See installEventFilter() and eventFilter() for-
633 details. A convenience handler, childEvent(), can be reimplemented-
634 to catch child events.-
635-
636 Last but not least, QObject provides the basic timer support in-
637 Qt; see QTimer for high-level support for timers.-
638-
639 Notice that the Q_OBJECT macro is mandatory for any object that-
640 implements signals, slots or properties. You also need to run the-
641 \l{moc}{Meta Object Compiler} on the source file. We strongly-
642 recommend the use of this macro in all subclasses of QObject-
643 regardless of whether or not they actually use signals, slots and-
644 properties, since failure to do so may lead certain functions to-
645 exhibit strange behavior.-
646-
647 All Qt widgets inherit QObject. The convenience function-
648 isWidgetType() returns whether an object is actually a widget. It-
649 is much faster than-
650 \l{qobject_cast()}{qobject_cast}<QWidget *>(\e{obj}) or-
651 \e{obj}->\l{inherits()}{inherits}("QWidget").-
652-
653 Some QObject functions, e.g. children(), return a QObjectList.-
654 QObjectList is a typedef for QList<QObject *>.-
655-
656 \section1 Thread Affinity-
657-
658 A QObject instance is said to have a \e{thread affinity}, or that-
659 it \e{lives} in a certain thread. When a QObject receives a-
660 \l{Qt::QueuedConnection}{queued signal} or a \l{The Event-
661 System#Sending Events}{posted event}, the slot or event handler-
662 will run in the thread that the object lives in.-
663-
664 \note If a QObject has no thread affinity (that is, if thread()-
665 returns zero), or if it lives in a thread that has no running event-
666 loop, then it cannot receive queued signals or posted events.-
667-
668 By default, a QObject lives in the thread in which it is created.-
669 An object's thread affinity can be queried using thread() and-
670 changed using moveToThread().-
671-
672 All QObjects must live in the same thread as their parent. Consequently:-
673-
674 \list-
675 \li setParent() will fail if the two QObjects involved live in-
676 different threads.-
677 \li When a QObject is moved to another thread, all its children-
678 will be automatically moved too.-
679 \li moveToThread() will fail if the QObject has a parent.-
680 \li If QObjects are created within QThread::run(), they cannot-
681 become children of the QThread object because the QThread does-
682 not live in the thread that calls QThread::run().-
683 \endlist-
684-
685 \note A QObject's member variables \e{do not} automatically become-
686 its children. The parent-child relationship must be set by either-
687 passing a pointer to the child's \l{QObject()}{constructor}, or by-
688 calling setParent(). Without this step, the object's member variables-
689 will remain in the old thread when moveToThread() is called.-
690-
691 \target No copy constructor-
692 \section1 No Copy Constructor or Assignment Operator-
693-
694 QObject has neither a copy constructor nor an assignment operator.-
695 This is by design. Actually, they are declared, but in a-
696 \c{private} section with the macro Q_DISABLE_COPY(). In fact, all-
697 Qt classes derived from QObject (direct or indirect) use this-
698 macro to declare their copy constructor and assignment operator to-
699 be private. The reasoning is found in the discussion on-
700 \l{Identity vs Value} {Identity vs Value} on the Qt \l{Object-
701 Model} page.-
702-
703 The main consequence is that you should use pointers to QObject-
704 (or to your QObject subclass) where you might otherwise be tempted-
705 to use your QObject subclass as a value. For example, without a-
706 copy constructor, you can't use a subclass of QObject as the value-
707 to be stored in one of the container classes. You must store-
708 pointers.-
709-
710 \section1 Auto-Connection-
711-
712 Qt's meta-object system provides a mechanism to automatically connect-
713 signals and slots between QObject subclasses and their children. As long-
714 as objects are defined with suitable object names, and slots follow a-
715 simple naming convention, this connection can be performed at run-time-
716 by the QMetaObject::connectSlotsByName() function.-
717-
718 \l uic generates code that invokes this function to enable-
719 auto-connection to be performed between widgets on forms created-
720 with \e{Qt Designer}. More information about using auto-connection with \e{Qt Designer} is-
721 given in the \l{Using a Designer UI File in Your Application} section of-
722 the \e{Qt Designer} manual.-
723-
724 \section1 Dynamic Properties-
725-
726 From Qt 4.2, dynamic properties can be added to and removed from QObject-
727 instances at run-time. Dynamic properties do not need to be declared at-
728 compile-time, yet they provide the same advantages as static properties-
729 and are manipulated using the same API - using property() to read them-
730 and setProperty() to write them.-
731-
732 From Qt 4.3, dynamic properties are supported by-
733 \l{Qt Designer's Widget Editing Mode#The Property Editor}{Qt Designer},-
734 and both standard Qt widgets and user-created forms can be given dynamic-
735 properties.-
736-
737 \section1 Internationalization (I18n)-
738-
739 All QObject subclasses support Qt's translation features, making it possible-
740 to translate an application's user interface into different languages.-
741-
742 To make user-visible text translatable, it must be wrapped in calls to-
743 the tr() function. This is explained in detail in the-
744 \l{Writing Source Code for Translation} document.-
745-
746 \sa QMetaObject, QPointer, QObjectCleanupHandler, Q_DISABLE_COPY()-
747 \sa {Object Trees & Ownership}-
748*/-
749-
750/*!-
751 \relates QObject-
752-
753 Returns a pointer to the object named \a name that inherits \a-
754 type and with a given \a parent.-
755-
756 Returns 0 if there is no such child.-
757-
758 \snippet code/src_corelib_kernel_qobject.cpp 0-
759*/-
760-
761void *qt_find_obj_child(QObject *parent, const char *type, const QString &name)-
762{-
763 QObjectList list = parent->children();-
764 if (list.size() == 0) return 0;
never executed: return 0;
list.size() == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
765 for (int i = 0; i < list.size(); ++i) {
i < list.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
766 QObject *obj = list.at(i);-
767 if (name == obj->objectName() && obj->inherits(type))
name == obj->objectName()Description
TRUEnever evaluated
FALSEnever evaluated
obj->inherits(type)Description
TRUEnever evaluated
FALSEnever evaluated
0
768 return obj;
never executed: return obj;
0
769 }
never executed: end of block
0
770 return 0;
never executed: return 0;
0
771}-
772-
773-
774/*****************************************************************************-
775 QObject member functions-
776 *****************************************************************************/-
777-
778// check the constructor's parent thread argument-
779static bool check_parent_thread(QObject *parent,-
780 QThreadData *parentThreadData,-
781 QThreadData *currentThreadData)-
782{-
783 if (parent && parentThreadData != currentThreadData) {
parentDescription
TRUEevaluated 100640 times by 247 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEnever evaluated
parentThreadDa...rentThreadDataDescription
TRUEnever evaluated
FALSEevaluated 100640 times by 247 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
0-100640
784 QThread *parentThread = parentThreadData->thread;-
785 QThread *currentThread = currentThreadData->thread;-
786 qWarning("QObject: Cannot create children for a parent that is in a different thread.\n"-
787 "(Parent is %s(%p), parent's thread is %s(%p), current thread is %s(%p)",-
788 parent->metaObject()->className(),-
789 parent,-
790 parentThread ? parentThread->metaObject()->className() : "QThread",-
791 parentThread,-
792 currentThread ? currentThread->metaObject()->className() : "QThread",-
793 currentThread);-
794 return false;
never executed: return false;
0
795 }-
796 return true;
executed 100640 times by 247 tests: return true;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
100640
797}-
798-
799/*!-
800 Constructs an object with parent object \a parent.-
801-
802 The parent of an object may be viewed as the object's owner. For-
803 instance, a \l{QDialog}{dialog box} is the parent of the \uicontrol{OK}-
804 and \uicontrol{Cancel} buttons it contains.-
805-
806 The destructor of a parent object destroys all child objects.-
807-
808 Setting \a parent to 0 constructs an object with no parent. If the-
809 object is a widget, it will become a top-level window.-
810-
811 \sa parent(), findChild(), findChildren()-
812*/-
813-
814QObject::QObject(QObject *parent)-
815 : d_ptr(new QObjectPrivate)-
816{-
817 Q_D(QObject);-
818 d_ptr->q_ptr = this;-
819 d->threadData = (parent && !parent->thread()) ? parent->d_func()->threadData : QThreadData::current();
parentDescription
TRUEevaluated 27393 times by 169 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
FALSEevaluated 330681 times by 322 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
!parent->thread()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 27392 times by 169 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
1-330681
820 d->threadData->ref();-
821 if (parent) {
parentDescription
TRUEevaluated 27393 times by 169 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
FALSEevaluated 330681 times by 322 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
27393-330681
822 QT_TRY {-
823 if (!check_parent_thread(parent, parent ? parent->d_func()->threadData : 0, d->threadData))
!check_parent_...d->threadData)Description
TRUEnever evaluated
FALSEevaluated 27393 times by 169 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
0-27393
824 parent = 0;
never executed: parent = 0;
0
825 setParent(parent);-
826 } QT_CATCH(...) {
executed 27393 times by 169 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
27393
827 d->threadData->deref();-
828 QT_RETHROW;
never executed: throw;
0
829 }-
830 }-
831 qt_addObject(this);-
832 if (Q_UNLIKELY(qtHookData[QHooks::AddQObject]))
__builtin_expe...ject]), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QHooks
FALSEevaluated 357918 times by 322 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
1-357918
833 reinterpret_cast<QHooks::AddQObjectCallback>(qtHookData[QHooks::AddQObject])(this);
executed 1 time by 1 test: reinterpret_cast<QHooks::AddQObjectCallback>(qtHookData[QHooks::AddQObject])(this);
Executed by:
  • tst_QHooks
1
834}
executed 358074 times by 323 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
358074
835-
836/*!-
837 \internal-
838 */-
839QObject::QObject(QObjectPrivate &dd, QObject *parent)-
840 : d_ptr(&dd)-
841{-
842 Q_D(QObject);-
843 d_ptr->q_ptr = this;-
844 d->threadData = (parent && !parent->thread()) ? parent->d_func()->threadData : QThreadData::current();
parentDescription
TRUEevaluated 73247 times by 237 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 1508761 times by 939 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
!parent->thread()Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QTcpSocket
FALSEevaluated 73233 times by 237 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
14-1508761
845 d->threadData->ref();-
846 if (parent) {
parentDescription
TRUEevaluated 73247 times by 237 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 1508761 times by 939 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
73247-1508761
847 QT_TRY {-
848 if (!check_parent_thread(parent, parent ? parent->d_func()->threadData : 0, d->threadData))
!check_parent_...d->threadData)Description
TRUEnever evaluated
FALSEevaluated 73247 times by 237 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
0-73247
849 parent = 0;
never executed: parent = 0;
0
850 if (d->isWidget) {
d->isWidgetDescription
TRUEnever evaluated
FALSEevaluated 73247 times by 237 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
0-73247
851 if (parent) {
parentDescription
TRUEnever evaluated
FALSEnever evaluated
0
852 d->parent = parent;-
853 d->parent->d_func()->children.append(this);-
854 }
never executed: end of block
0
855 // no events sent here, this is done at the end of the QWidget constructor-
856 } else {
never executed: end of block
0
857 setParent(parent);-
858 }
executed 73247 times by 237 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
73247
859 } QT_CATCH(...) {-
860 d->threadData->deref();-
861 QT_RETHROW;
never executed: throw;
0
862 }-
863 }-
864 qt_addObject(this);-
865 if (Q_UNLIKELY(qtHookData[QHooks::AddQObject]))
__builtin_expe...ject]), false)Description
TRUEnever evaluated
FALSEevaluated 1582008 times by 939 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
0-1582008
866 reinterpret_cast<QHooks::AddQObjectCallback>(qtHookData[QHooks::AddQObject])(this);
never executed: reinterpret_cast<QHooks::AddQObjectCallback>(qtHookData[QHooks::AddQObject])(this);
0
867}
executed 1582008 times by 939 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
1582008
868-
869/*!-
870 Destroys the object, deleting all its child objects.-
871-
872 All signals to and from the object are automatically disconnected, and-
873 any pending posted events for the object are removed from the event-
874 queue. However, it is often safer to use deleteLater() rather than-
875 deleting a QObject subclass directly.-
876-
877 \warning All child objects are deleted. If any of these objects-
878 are on the stack or global, sooner or later your program will-
879 crash. We do not recommend holding pointers to child objects from-
880 outside the parent. If you still do, the destroyed() signal gives-
881 you an opportunity to detect when an object is destroyed.-
882-
883 \warning Deleting a QObject while pending events are waiting to-
884 be delivered can cause a crash. You must not delete the QObject-
885 directly if it exists in a different thread than the one currently-
886 executing. Use deleteLater() instead, which will cause the event-
887 loop to delete the object after all pending events have been-
888 delivered to it.-
889-
890 \sa deleteLater()-
891*/-
892-
893QObject::~QObject()-
894{-
895 Q_D(QObject);-
896 d->wasDeleted = true;-
897 d->blockSig = 0; // unblock signals so we always emit destroyed()-
898-
899 QtSharedPointer::ExternalRefCountData *sharedRefcount = d->sharedRefcount.load();-
900 if (sharedRefcount) {
sharedRefcountDescription
TRUEevaluated 66974 times by 475 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 1869283 times by 925 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
66974-1869283
901 if (sharedRefcount->strongref.load() > 0) {
sharedRefcount...ref.load() > 0Description
TRUEnever evaluated
FALSEevaluated 66974 times by 475 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
0-66974
902 qWarning("QObject: shared QObject was deleted directly. The program is malformed and may crash.");-
903 // but continue deleting, it's too late to stop anyway-
904 }
never executed: end of block
0
905-
906 // indicate to all QWeakPointers that this QObject has now been deleted-
907 sharedRefcount->strongref.store(0);-
908 if (!sharedRefcount->weakref.deref())
!sharedRefcoun...eakref.deref()Description
TRUEevaluated 38510 times by 358 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • 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 28464 times by 418 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnection_Delayed
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
28464-38510
909 delete sharedRefcount;
executed 38510 times by 358 tests: delete sharedRefcount;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
38510
910 }
executed 66974 times by 475 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
66974
911-
912 if (!d->isWidget && d->isSignalConnected(0)) {
!d->isWidgetDescription
TRUEevaluated 1875830 times by 925 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
FALSEevaluated 60427 times by 251 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • ...
d->isSignalConnected(0)Description
TRUEevaluated 6887 times by 294 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • ...
FALSEevaluated 1868943 times by 924 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
6887-1875830
913 emit destroyed(this);-
914 }
executed 6887 times by 294 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • ...
6887
915-
916 if (d->declarativeData) {
d->declarativeDataDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1936256 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
1-1936256
917 if (static_cast<QAbstractDeclarativeDataImpl*>(d->declarativeData)->ownedByQml1) {
static_cast<QA...)->ownedByQml1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-1
918 if (QAbstractDeclarativeData::destroyed_qml1)
QAbstractDecla...destroyed_qml1Description
TRUEnever evaluated
FALSEnever evaluated
0
919 QAbstractDeclarativeData::destroyed_qml1(d->declarativeData, this);
never executed: QAbstractDeclarativeData::destroyed_qml1(d->declarativeData, this);
0
920 } else {
never executed: end of block
0
921 if (QAbstractDeclarativeData::destroyed)
QAbstractDecla...ata::destroyedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-1
922 QAbstractDeclarativeData::destroyed(d->declarativeData, this);
never executed: QAbstractDeclarativeData::destroyed(d->declarativeData, this);
0
923 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
924 }-
925-
926 // set ref to zero to indicate that this object has been deleted-
927 if (d->currentSender != 0)
d->currentSender != 0Description
TRUEevaluated 482 times by 14 tests
Evaluated by:
  • tst_QApplication
  • tst_QCommandLinkButton
  • tst_QDialogButtonBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpSocketEngine
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPushButton
  • tst_QScroller
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_qscroller - unknown status
FALSEevaluated 1935775 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
482-1935775
928 d->currentSender->ref = 0;
executed 482 times by 14 tests: d->currentSender->ref = 0;
Executed by:
  • tst_QApplication
  • tst_QCommandLinkButton
  • tst_QDialogButtonBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHttpSocketEngine
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPushButton
  • tst_QScroller
  • tst_QSocks5SocketEngine
  • tst_QTcpSocket
  • tst_qscroller - unknown status
482
929 d->currentSender = 0;-
930-
931 if (d->connectionLists || d->senders) {
d->connectionListsDescription
TRUEevaluated 284809 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 1651448 times by 928 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
d->sendersDescription
TRUEevaluated 73985 times by 352 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 1577463 times by 924 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
73985-1651448
932 QMutex *signalSlotMutex = signalSlotLock(this);-
933 QMutexLocker locker(signalSlotMutex);-
934-
935 // disconnect all receivers-
936 if (d->connectionLists) {
d->connectionListsDescription
TRUEevaluated 284809 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 73985 times by 352 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
73985-284809
937 ++d->connectionLists->inUse;-
938 int connectionListsCount = d->connectionLists->count();-
939 for (int signal = -1; signal < connectionListsCount; ++signal) {
signal < connectionListsCountDescription
TRUEevaluated 1912965 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 284809 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
284809-1912965
940 QObjectPrivate::ConnectionList &connectionList =-
941 (*d->connectionLists)[signal];-
942-
943 while (QObjectPrivate::Connection *c = connectionList.first) {
QObjectPrivate...tionList.firstDescription
TRUEevaluated 668871 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 1912965 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
668871-1912965
944 if (!c->receiver) {
!c->receiverDescription
TRUEevaluated 160627 times by 424 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 508244 times by 501 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
160627-508244
945 connectionList.first = c->nextConnectionList;-
946 c->deref();-
947 continue;
executed 160627 times by 424 tests: continue;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
160627
948 }-
949-
950 QMutex *m = signalSlotLock(c->receiver);-
951 bool needToUnlock = QOrderedMutexLocker::relock(signalSlotMutex, m);-
952-
953 if (c->receiver) {
c->receiverDescription
TRUEevaluated 508233 times by 501 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_Spdy
11-508233
954 *c->prev = c->next;-
955 if (c->next) c->next->prev = c->prev;
executed 194248 times by 451 tests: c->next->prev = c->prev;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
c->nextDescription
TRUEevaluated 194248 times by 451 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 313985 times by 498 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
194248-313985
956 }
executed 508233 times by 501 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
508233
957 c->receiver = 0;-
958 if (needToUnlock)
needToUnlockDescription
TRUEevaluated 326176 times by 493 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 182068 times by 334 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
182068-326176
959 m->unlock();
executed 326176 times by 493 tests: m->unlock();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
326176
960-
961 connectionList.first = c->nextConnectionList;-
962-
963 // The destroy operation must happen outside the lock-
964 if (c->isSlotObject) {
c->isSlotObjectDescription
TRUEevaluated 188245 times by 295 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDataWidgetMapper
  • ...
FALSEevaluated 319999 times by 501 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
188245-319999
965 c->isSlotObject = false;-
966 locker.unlock();-
967 c->slotObj->destroyIfLastRef();-
968 locker.relock();-
969 }
executed 188245 times by 295 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDataWidgetMapper
  • ...
188245
970 c->deref();-
971 }
executed 508244 times by 501 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
508244
972 }
executed 1912965 times by 530 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
1912965
973-
974 if (!--d->connectionLists->inUse) {
!--d->connectionLists->inUseDescription
TRUEevaluated 284560 times by 530 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 249 times by 15 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
249-284560
975 delete d->connectionLists;-
976 } else {
executed 284560 times by 530 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
284560
977 d->connectionLists->orphaned = true;-
978 }
executed 249 times by 15 tests: end of block
Executed by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
249
979 d->connectionLists = 0;-
980 }
executed 284809 times by 530 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
284809
981-
982 /* Disconnect all senders:-
983 * This loop basically just does-
984 * for (node = d->senders; node; node = node->next) { ... }-
985 *-
986 * We need to temporarily unlock the receiver mutex to destroy the functors or to lock the-
987 * sender's mutex. And when the mutex is released, node->next might be destroyed by another-
988 * thread. That's why we set node->prev to &node, that way, if node is destroyed, node will-
989 * be updated.-
990 */-
991 QObjectPrivate::Connection *node = d->senders;-
992 while (node) {
nodeDescription
TRUEevaluated 195138 times by 400 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 358794 times by 535 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
195138-358794
993 QObject *sender = node->sender;-
994 // Send disconnectNotify before removing the connection from sender's connection list.-
995 // This ensures any eventual destructor of sender will block on getting receiver's lock-
996 // and not finish until we release it.-
997 sender->disconnectNotify(QMetaObjectPrivate::signal(sender->metaObject(), node->signal_index));-
998 QMutex *m = signalSlotLock(sender);-
999 node->prev = &node;-
1000 bool needToUnlock = QOrderedMutexLocker::relock(signalSlotMutex, m);-
1001 //the node has maybe been removed while the mutex was unlocked in relock?-
1002 if (!node || node->sender != sender) {
!nodeDescription
TRUEnever evaluated
FALSEevaluated 195138 times by 400 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
node->sender != senderDescription
TRUEnever evaluated
FALSEevaluated 195138 times by 400 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
0-195138
1003 // We hold the wrong mutex-
1004 Q_ASSERT(needToUnlock);-
1005 m->unlock();-
1006 continue;
never executed: continue;
0
1007 }-
1008 node->receiver = 0;-
1009 QObjectConnectionListVector *senderLists = sender->d_func()->connectionLists;-
1010 if (senderLists)
senderListsDescription
TRUEevaluated 195138 times by 400 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEnever evaluated
0-195138
1011 senderLists->dirty = true;
executed 195138 times by 400 tests: senderLists->dirty = true;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
195138
1012-
1013 QtPrivate::QSlotObjectBase *slotObj = Q_NULLPTR;-
1014 if (node->isSlotObject) {
node->isSlotObjectDescription
TRUEevaluated 24276 times by 134 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 170862 times by 382 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
24276-170862
1015 slotObj = node->slotObj;-
1016 node->isSlotObject = false;-
1017 }
executed 24276 times by 134 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
24276
1018-
1019 node = node->next;-
1020 if (needToUnlock)
needToUnlockDescription
TRUEevaluated 193967 times by 400 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 1171 times by 76 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QHttpSocketEngine
  • tst_QImageReader
  • tst_QItemDelegate
  • ...
1171-193967
1021 m->unlock();
executed 193967 times by 400 tests: m->unlock();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
193967
1022-
1023 if (slotObj) {
slotObjDescription
TRUEevaluated 24276 times by 134 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 170862 times by 382 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
24276-170862
1024 if (node)
nodeDescription
TRUEevaluated 184 times by 14 tests
Evaluated by:
  • tst_QDockWidget
  • tst_QMainWindow
  • tst_QObject
  • tst_QThread
  • tst_qdoublespinbox - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qgraphicsgridlayout - unknown status
  • tst_qgraphicslinearlayout - unknown status
  • tst_qgraphicsscene - unknown status
  • tst_qpainter - unknown status
  • tst_qpushbutton - unknown status
  • tst_qsizegrip - unknown status
  • tst_qsplitter - unknown status
  • tst_qtreewidget - unknown status
FALSEevaluated 24092 times by 134 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
184-24092
1025 node->prev = &node;
executed 184 times by 14 tests: node->prev = &node;
Executed by:
  • tst_QDockWidget
  • tst_QMainWindow
  • tst_QObject
  • tst_QThread
  • tst_qdoublespinbox - unknown status
  • tst_qfiledialog2 - unknown status
  • tst_qgraphicsgridlayout - unknown status
  • tst_qgraphicslinearlayout - unknown status
  • tst_qgraphicsscene - unknown status
  • tst_qpainter - unknown status
  • tst_qpushbutton - unknown status
  • tst_qsizegrip - unknown status
  • tst_qsplitter - unknown status
  • tst_qtreewidget - unknown status
184
1026 locker.unlock();-
1027 slotObj->destroyIfLastRef();-
1028 locker.relock();-
1029 }
executed 24276 times by 134 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
24276
1030 }
executed 195138 times by 400 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
195138
1031 }
executed 358794 times by 535 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
358794
1032-
1033 if (!d->children.isEmpty())
!d->children.isEmpty()Description
TRUEevaluated 16362 times by 578 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
FALSEevaluated 1919895 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
16362-1919895
1034 d->deleteChildren();
executed 16362 times by 578 tests: d->deleteChildren();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • ...
16362
1035-
1036 qt_removeObject(this);-
1037 if (Q_UNLIKELY(qtHookData[QHooks::RemoveQObject]))
__builtin_expe...ject]), false)Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QHooks
  • tst_qhooks - unknown status
FALSEevaluated 1936253 times by 927 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
4-1936253
1038 reinterpret_cast<QHooks::RemoveQObjectCallback>(qtHookData[QHooks::RemoveQObject])(this);
executed 4 times by 2 tests: reinterpret_cast<QHooks::RemoveQObjectCallback>(qtHookData[QHooks::RemoveQObject])(this);
Executed by:
  • tst_QHooks
  • tst_qhooks - unknown status
4
1039-
1040 if (d->parent) // remove it from parent object
d->parentDescription
TRUEevaluated 158119 times by 645 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
FALSEevaluated 1778138 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
158119-1778138
1041 d->setParent_helper(0);
executed 158119 times by 645 tests: d->setParent_helper(0);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
158119
1042}
executed 1936257 times by 929 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
1936257
1043-
1044QObjectPrivate::Connection::~Connection()-
1045{-
1046 if (ownArgumentTypes) {
ownArgumentTypesDescription
TRUEevaluated 826743 times by 533 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 844 times by 171 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QObject
  • tst_QProcess
  • 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
  • ...
844-826743
1047 const int *v = argumentTypes.load();-
1048 if (v != &DIRECT_CONNECTION_ONLY)
v != &DIRECT_CONNECTION_ONLYDescription
TRUEevaluated 826743 times by 533 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEnever evaluated
0-826743
1049 delete [] v;
executed 826743 times by 533 tests: delete [] v;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
826743
1050 }
executed 826743 times by 533 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
826743
1051 if (isSlotObject)
isSlotObjectDescription
TRUEnever evaluated
FALSEevaluated 827587 times by 533 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
0-827587
1052 slotObj->destroyIfLastRef();
never executed: slotObj->destroyIfLastRef();
0
1053}
executed 827587 times by 533 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
827587
1054-
1055-
1056/*!-
1057 \fn QMetaObject *QObject::metaObject() const-
1058-
1059 Returns a pointer to the meta-object of this object.-
1060-
1061 A meta-object contains information about a class that inherits-
1062 QObject, e.g. class name, superclass name, properties, signals and-
1063 slots. Every QObject subclass that contains the Q_OBJECT macro will have a-
1064 meta-object.-
1065-
1066 The meta-object information is required by the signal/slot-
1067 connection mechanism and the property system. The inherits()-
1068 function also makes use of the meta-object.-
1069-
1070 If you have no pointer to an actual object instance but still-
1071 want to access the meta-object of a class, you can use \l-
1072 staticMetaObject.-
1073-
1074 Example:-
1075-
1076 \snippet code/src_corelib_kernel_qobject.cpp 1-
1077-
1078 \sa staticMetaObject-
1079*/-
1080-
1081/*!-
1082 \variable QObject::staticMetaObject-
1083-
1084 This variable stores the meta-object for the class.-
1085-
1086 A meta-object contains information about a class that inherits-
1087 QObject, e.g. class name, superclass name, properties, signals and-
1088 slots. Every class that contains the Q_OBJECT macro will also have-
1089 a meta-object.-
1090-
1091 The meta-object information is required by the signal/slot-
1092 connection mechanism and the property system. The inherits()-
1093 function also makes use of the meta-object.-
1094-
1095 If you have a pointer to an object, you can use metaObject() to-
1096 retrieve the meta-object associated with that object.-
1097-
1098 Example:-
1099-
1100 \snippet code/src_corelib_kernel_qobject.cpp 2-
1101-
1102 \sa metaObject()-
1103*/-
1104-
1105/*! \fn T *qobject_cast<T *>(QObject *object)-
1106 \relates QObject-
1107-
1108 Returns the given \a object cast to type T if the object is of type-
1109 T (or of a subclass); otherwise returns 0. If \a object is 0 then-
1110 it will also return 0.-
1111-
1112 The class T must inherit (directly or indirectly) QObject and be-
1113 declared with the \l Q_OBJECT macro.-
1114-
1115 A class is considered to inherit itself.-
1116-
1117 Example:-
1118-
1119 \snippet code/src_corelib_kernel_qobject.cpp 3-
1120-
1121 The qobject_cast() function behaves similarly to the standard C++-
1122 \c dynamic_cast(), with the advantages that it doesn't require-
1123 RTTI support and it works across dynamic library boundaries.-
1124-
1125 qobject_cast() can also be used in conjunction with interfaces;-
1126 see the \l{tools/plugandpaint/app}{Plug & Paint} example for details.-
1127-
1128 \warning If T isn't declared with the Q_OBJECT macro, this-
1129 function's return value is undefined.-
1130-
1131 \sa QObject::inherits()-
1132*/-
1133-
1134/*!-
1135 \fn bool QObject::inherits(const char *className) const-
1136-
1137 Returns \c true if this object is an instance of a class that-
1138 inherits \a className or a QObject subclass that inherits \a-
1139 className; otherwise returns \c false.-
1140-
1141 A class is considered to inherit itself.-
1142-
1143 Example:-
1144-
1145 \snippet code/src_corelib_kernel_qobject.cpp 4-
1146-
1147 If you need to determine whether an object is an instance of a particular-
1148 class for the purpose of casting it, consider using qobject_cast<Type *>(object)-
1149 instead.-
1150-
1151 \sa metaObject(), qobject_cast()-
1152*/-
1153-
1154/*!-
1155 \property QObject::objectName-
1156-
1157 \brief the name of this object-
1158-
1159 You can find an object by name (and type) using findChild().-
1160 You can find a set of objects with findChildren().-
1161-
1162 \snippet code/src_corelib_kernel_qobject.cpp 5-
1163-
1164 By default, this property contains an empty string.-
1165-
1166 \sa metaObject(), QMetaObject::className()-
1167*/-
1168-
1169QString QObject::objectName() const-
1170{-
1171 Q_D(const QObject);-
1172 return d->extraData ? d->extraData->objectName : QString();
executed 694315 times by 546 tests: return d->extraData ? d->extraData->objectName : QString();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
d->extraDataDescription
TRUEevaluated 50664 times by 173 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • ...
FALSEevaluated 643651 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
50664-694315
1173}-
1174-
1175/*-
1176 Sets the object's name to \a name.-
1177*/-
1178void QObject::setObjectName(const QString &name)-
1179{-
1180 Q_D(QObject);-
1181 if (!d->extraData)
!d->extraDataDescription
TRUEevaluated 48712 times by 188 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_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • ...
FALSEevaluated 915 times by 121 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • ...
915-48712
1182 d->extraData = new QObjectPrivate::ExtraData;
executed 48712 times by 188 tests: d->extraData = new QObjectPrivate::ExtraData;
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_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • ...
48712
1183-
1184 if (d->extraData->objectName != name) {
d->extraData->...ctName != nameDescription
TRUEevaluated 49604 times by 188 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_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • ...
FALSEevaluated 23 times by 6 tests
Evaluated by:
  • tst_QLineEdit
  • tst_QObject
  • tst_QShortcut
  • tst_QStateMachine
  • tst_QWidget
  • tst_qmouseevent_modal
23-49604
1185 d->extraData->objectName = name;-
1186 emit objectNameChanged(d->extraData->objectName, QPrivateSignal());-
1187 }
executed 49604 times by 188 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_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • ...
49604
1188}
executed 49627 times by 188 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_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusConnection
  • ...
49627
1189-
1190/*! \fn void QObject::objectNameChanged(const QString &objectName)-
1191-
1192 This signal is emitted after the object's name has been changed. The new object name is passed as \a objectName.-
1193-
1194 \sa QObject::objectName-
1195*/-
1196-
1197/*!-
1198 \fn bool QObject::isWidgetType() const-
1199-
1200 Returns \c true if the object is a widget; otherwise returns \c false.-
1201-
1202 Calling this function is equivalent to calling-
1203 \c{inherits("QWidget")}, except that it is much faster.-
1204*/-
1205-
1206/*!-
1207 \fn bool QObject::isWindowType() const-
1208-
1209 Returns \c true if the object is a window; otherwise returns \c false.-
1210-
1211 Calling this function is equivalent to calling-
1212 \c{inherits("QWindow")}, except that it is much faster.-
1213*/-
1214-
1215/*!-
1216 This virtual function receives events to an object and should-
1217 return true if the event \a e was recognized and processed.-
1218-
1219 The event() function can be reimplemented to customize the-
1220 behavior of an object.-
1221-
1222 Make sure you call the parent event class implementation-
1223 for all the events you did not handle.-
1224-
1225 Example:-
1226-
1227 \snippet code/src_corelib_kernel_qobject.cpp 52-
1228-
1229 \sa installEventFilter(), timerEvent(), QCoreApplication::sendEvent(),-
1230 QCoreApplication::postEvent()-
1231*/-
1232-
1233bool QObject::event(QEvent *e)-
1234{-
1235 switch (e->type()) {-
1236 case QEvent::Timer:
executed 50390 times by 110 tests: case QEvent::Timer:
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
50390
1237 timerEvent((QTimerEvent*)e);-
1238 break;
executed 50389 times by 110 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • ...
50389
1239-
1240 case QEvent::ChildAdded:
executed 185001 times by 255 tests: case QEvent::ChildAdded:
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
185001
1241 case QEvent::ChildPolished:
executed 46278 times by 113 tests: case QEvent::ChildPolished:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
46278
1242 case QEvent::ChildRemoved:
executed 90504 times by 431 tests: case QEvent::ChildRemoved:
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
90504
1243 childEvent((QChildEvent*)e);-
1244 break;
executed 321783 times by 465 tests: break;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
321783
1245-
1246 case QEvent::DeferredDelete:
executed 4273 times by 173 tests: case QEvent::DeferredDelete:
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
  • ...
4273
1247 qDeleteInEventHandler(this);-
1248 break;
executed 4273 times by 173 tests: break;
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
  • ...
4273
1249-
1250 case QEvent::MetaCall:
executed 266608 times by 348 tests: case QEvent::MetaCall:
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
  • ...
266608
1251 {-
1252 QMetaCallEvent *mce = static_cast<QMetaCallEvent*>(e);-
1253-
1254 QConnectionSenderSwitcher sw(this, const_cast<QObject*>(mce->sender()), mce->signalId());-
1255-
1256 mce->placeMetaCall(this);-
1257 break;
executed 266607 times by 348 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
266607
1258 }-
1259-
1260 case QEvent::ThreadChange: {
executed 65821 times by 330 tests: case QEvent::ThreadChange:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65821
1261 Q_D(QObject);-
1262 QThreadData *threadData = d->threadData;-
1263 QAbstractEventDispatcher *eventDispatcher = threadData->eventDispatcher.load();-
1264 if (eventDispatcher) {
eventDispatcherDescription
TRUEevaluated 65818 times by 330 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
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
3-65818
1265 QList<QAbstractEventDispatcher::TimerInfo> timers = eventDispatcher->registeredTimers(this);-
1266 if (!timers.isEmpty()) {
!timers.isEmpty()Description
TRUEevaluated 20012 times by 3 tests
Evaluated by:
  • tst_QObject
  • tst_QTcpSocket
  • tst_QTimer
FALSEevaluated 45806 times by 330 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
  • ...
20012-45806
1267 // do not to release our timer ids back to the pool (since the timer ids are moving to a new thread).-
1268 eventDispatcher->unregisterTimers(this);-
1269 QMetaObject::invokeMethod(this, "_q_reregisterTimers", Qt::QueuedConnection,-
1270 Q_ARG(void*, (new QList<QAbstractEventDispatcher::TimerInfo>(timers))));-
1271 }
executed 20012 times by 3 tests: end of block
Executed by:
  • tst_QObject
  • tst_QTcpSocket
  • tst_QTimer
20012
1272 }
executed 65818 times by 330 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65818
1273 break;
executed 65821 times by 330 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65821
1274 }-
1275-
1276 default:
executed 535192 times by 331 tests: default:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
535192
1277 if (e->type() >= QEvent::User) {
e->type() >= QEvent::UserDescription
TRUEevaluated 229756 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QObject
  • tst_QWidget
  • tst_QWidget_window
FALSEevaluated 305436 times by 327 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
229756-305436
1278 customEvent(e);-
1279 break;
executed 229756 times by 10 tests: break;
Executed by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QEventDispatcher
  • tst_QEventLoop
  • tst_QGraphicsScene
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QObject
  • tst_QWidget
  • tst_QWidget_window
229756
1280 }-
1281 return false;
executed 305436 times by 327 tests: return false;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
305436
1282 }-
1283 return true;
executed 938629 times by 474 tests: return true;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
938629
1284}-
1285-
1286/*!-
1287 \fn void QObject::timerEvent(QTimerEvent *event)-
1288-
1289 This event handler can be reimplemented in a subclass to receive-
1290 timer events for the object.-
1291-
1292 QTimer provides a higher-level interface to the timer-
1293 functionality, and also more general information about timers. The-
1294 timer event is passed in the \a event parameter.-
1295-
1296 \sa startTimer(), killTimer(), event()-
1297*/-
1298-
1299void QObject::timerEvent(QTimerEvent *)-
1300{-
1301}-
1302-
1303-
1304/*!-
1305 This event handler can be reimplemented in a subclass to receive-
1306 child events. The event is passed in the \a event parameter.-
1307-
1308 QEvent::ChildAdded and QEvent::ChildRemoved events are sent to-
1309 objects when children are added or removed. In both cases you can-
1310 only rely on the child being a QObject, or if isWidgetType()-
1311 returns \c true, a QWidget. (This is because, in the-
1312 \l{QEvent::ChildAdded}{ChildAdded} case, the child is not yet-
1313 fully constructed, and in the \l{QEvent::ChildRemoved}{ChildRemoved}-
1314 case it might have been destructed already).-
1315-
1316 QEvent::ChildPolished events are sent to widgets when children-
1317 are polished, or when polished children are added. If you receive-
1318 a child polished event, the child's construction is usually-
1319 completed. However, this is not guaranteed, and multiple polish-
1320 events may be delivered during the execution of a widget's-
1321 constructor.-
1322-
1323 For every child widget, you receive one-
1324 \l{QEvent::ChildAdded}{ChildAdded} event, zero or more-
1325 \l{QEvent::ChildPolished}{ChildPolished} events, and one-
1326 \l{QEvent::ChildRemoved}{ChildRemoved} event.-
1327-
1328 The \l{QEvent::ChildPolished}{ChildPolished} event is omitted if-
1329 a child is removed immediately after it is added. If a child is-
1330 polished several times during construction and destruction, you-
1331 may receive several child polished events for the same child,-
1332 each time with a different virtual table.-
1333-
1334 \sa event()-
1335*/-
1336-
1337void QObject::childEvent(QChildEvent * /* event */)-
1338{-
1339}-
1340-
1341-
1342/*!-
1343 This event handler can be reimplemented in a subclass to receive-
1344 custom events. Custom events are user-defined events with a type-
1345 value at least as large as the QEvent::User item of the-
1346 QEvent::Type enum, and is typically a QEvent subclass. The event-
1347 is passed in the \a event parameter.-
1348-
1349 \sa event(), QEvent-
1350*/-
1351void QObject::customEvent(QEvent * /* event */)-
1352{-
1353}-
1354-
1355-
1356-
1357/*!-
1358 Filters events if this object has been installed as an event-
1359 filter for the \a watched object.-
1360-
1361 In your reimplementation of this function, if you want to filter-
1362 the \a event out, i.e. stop it being handled further, return-
1363 true; otherwise return false.-
1364-
1365 Example:-
1366 \snippet code/src_corelib_kernel_qobject.cpp 6-
1367-
1368 Notice in the example above that unhandled events are passed to-
1369 the base class's eventFilter() function, since the base class-
1370 might have reimplemented eventFilter() for its own internal-
1371 purposes.-
1372-
1373 \warning If you delete the receiver object in this function, be-
1374 sure to return true. Otherwise, Qt will forward the event to the-
1375 deleted object and the program might crash.-
1376-
1377 \sa installEventFilter()-
1378*/-
1379-
1380bool QObject::eventFilter(QObject * /* watched */, QEvent * /* event */)-
1381{-
1382 return false;
executed 275176 times by 85 tests: return false;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
275176
1383}-
1384-
1385/*!-
1386 \fn bool QObject::signalsBlocked() const-
1387-
1388 Returns \c true if signals are blocked; otherwise returns \c false.-
1389-
1390 Signals are not blocked by default.-
1391-
1392 \sa blockSignals(), QSignalBlocker-
1393*/-
1394-
1395/*!-
1396 If \a block is true, signals emitted by this object are blocked-
1397 (i.e., emitting a signal will not invoke anything connected to it).-
1398 If \a block is false, no such blocking will occur.-
1399-
1400 The return value is the previous value of signalsBlocked().-
1401-
1402 Note that the destroyed() signal will be emitted even if the signals-
1403 for this object have been blocked.-
1404-
1405 Signals emitted while being blocked are not buffered.-
1406-
1407 \sa signalsBlocked(), QSignalBlocker-
1408*/-
1409-
1410bool QObject::blockSignals(bool block) Q_DECL_NOTHROW-
1411{-
1412 Q_D(QObject);-
1413 bool previous = d->blockSig;-
1414 d->blockSig = block;-
1415 return previous;
executed 39283 times by 103 tests: return previous;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAsn1Element
  • tst_QAuthenticator
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDate
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
39283
1416}-
1417-
1418/*!-
1419 Returns the thread in which the object lives.-
1420-
1421 \sa moveToThread()-
1422*/-
1423QThread *QObject::thread() const-
1424{-
1425 return d_func()->threadData->thread;
executed 5593290 times by 766 tests: return d_func()->threadData->thread;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
5593290
1426}-
1427-
1428/*!-
1429 Changes the thread affinity for this object and its children. The-
1430 object cannot be moved if it has a parent. Event processing will-
1431 continue in the \a targetThread.-
1432-
1433 To move an object to the main thread, use QApplication::instance()-
1434 to retrieve a pointer to the current application, and then use-
1435 QApplication::thread() to retrieve the thread in which the-
1436 application lives. For example:-
1437-
1438 \snippet code/src_corelib_kernel_qobject.cpp 7-
1439-
1440 If \a targetThread is zero, all event processing for this object-
1441 and its children stops.-
1442-
1443 Note that all active timers for the object will be reset. The-
1444 timers are first stopped in the current thread and restarted (with-
1445 the same interval) in the \a targetThread. As a result, constantly-
1446 moving an object between threads can postpone timer events-
1447 indefinitely.-
1448-
1449 A QEvent::ThreadChange event is sent to this object just before-
1450 the thread affinity is changed. You can handle this event to-
1451 perform any special processing. Note that any new events that are-
1452 posted to this object will be handled in the \a targetThread.-
1453-
1454 \warning This function is \e not thread-safe; the current thread-
1455 must be same as the current thread affinity. In other words, this-
1456 function can only "push" an object from the current thread to-
1457 another thread, it cannot "pull" an object from any arbitrary-
1458 thread to the current thread.-
1459-
1460 \sa thread()-
1461 */-
1462void QObject::moveToThread(QThread *targetThread)-
1463{-
1464 Q_D(QObject);-
1465-
1466 if (d->threadData->thread == targetThread) {
d->threadData-...= targetThreadDescription
TRUEevaluated 39660 times by 199 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 65497 times by 330 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
  • ...
39660-65497
1467 // object is already in this thread-
1468 return;
executed 39660 times by 199 tests: return;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
39660
1469 }-
1470-
1471 if (d->parent != 0) {
d->parent != 0Description
TRUEnever evaluated
FALSEevaluated 65497 times by 330 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
  • ...
0-65497
1472 qWarning("QObject::moveToThread: Cannot move objects with a parent");-
1473 return;
never executed: return;
0
1474 }-
1475 if (d->isWidget) {
d->isWidgetDescription
TRUEnever evaluated
FALSEevaluated 65497 times by 330 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
  • ...
0-65497
1476 qWarning("QObject::moveToThread: Widgets cannot be moved to a new thread");-
1477 return;
never executed: return;
0
1478 }-
1479-
1480 QThreadData *currentData = QThreadData::current();-
1481 QThreadData *targetData = targetThread ? QThreadData::get2(targetThread) : Q_NULLPTR;
targetThreadDescription
TRUEevaluated 65271 times by 173 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
  • ...
FALSEevaluated 226 times by 167 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QObject
  • tst_QTcpSocket
  • 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
  • ...
226-65271
1482 if (d->threadData->thread == 0 && currentData == targetData) {
d->threadData->thread == 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 65495 times by 330 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
  • ...
currentData == targetDataDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-65495
1483 // one exception to the rule: we allow moving objects with no thread affinity to the current thread-
1484 currentData = d->threadData;-
1485 } else if (d->threadData != currentData) {
executed 2 times by 1 test: end of block
Executed by:
  • tst_QObject
d->threadData != currentDataDescription
TRUEnever evaluated
FALSEevaluated 65495 times by 330 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
  • ...
0-65495
1486 qWarning("QObject::moveToThread: Current thread (%p) is not the object's thread (%p).\n"-
1487 "Cannot move to target thread (%p)\n",-
1488 currentData->thread.load(), d->threadData->thread.load(), targetData ? targetData->thread.load() : Q_NULLPTR);-
1489-
1490#ifdef Q_OS_MAC-
1491 qWarning("You might be loading two sets of Qt binaries into the same process. "-
1492 "Check that all plugins are compiled against the right Qt binaries. Export "-
1493 "DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.");-
1494#endif-
1495-
1496 return;
never executed: return;
0
1497 }-
1498-
1499 // prepare to move-
1500 d->moveToThread_helper();-
1501-
1502 if (!targetData)
!targetDataDescription
TRUEevaluated 226 times by 167 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QObject
  • tst_QTcpSocket
  • 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 65271 times by 173 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
  • ...
226-65271
1503 targetData = new QThreadData(0);
executed 226 times by 167 tests: targetData = new QThreadData(0);
Executed by:
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QObject
  • tst_QTcpSocket
  • 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
  • ...
226
1504-
1505 QOrderedMutexLocker locker(&currentData->postEventList.mutex,-
1506 &targetData->postEventList.mutex);-
1507-
1508 // keep currentData alive (since we've got it locked)-
1509 currentData->ref();-
1510-
1511 // move the object-
1512 d_func()->setThreadData_helper(currentData, targetData);-
1513-
1514 locker.unlock();-
1515-
1516 // now currentData can commit suicide if it wants to-
1517 currentData->deref();-
1518}
executed 65497 times by 330 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65497
1519-
1520void QObjectPrivate::moveToThread_helper()-
1521{-
1522 Q_Q(QObject);-
1523 QEvent e(QEvent::ThreadChange);-
1524 QCoreApplication::sendEvent(q, &e);-
1525 for (int i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 327 times by 47 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • ...
FALSEevaluated 65824 times by 330 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
  • ...
327-65824
1526 QObject *child = children.at(i);-
1527 child->d_func()->moveToThread_helper();-
1528 }
executed 327 times by 47 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • ...
327
1529}
executed 65824 times by 330 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65824
1530-
1531void QObjectPrivate::setThreadData_helper(QThreadData *currentData, QThreadData *targetData)-
1532{-
1533 Q_Q(QObject);-
1534-
1535 // move posted events-
1536 int eventsMoved = 0;-
1537 for (int i = 0; i < currentData->postEventList.size(); ++i) {
i < currentDat...entList.size()Description
TRUEevaluated 100336002 times by 175 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • ...
FALSEevaluated 65824 times by 330 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
  • ...
65824-100336002
1538 const QPostEvent &pe = currentData->postEventList.at(i);-
1539 if (!pe.event)
!pe.eventDescription
TRUEevaluated 100136558 times by 55 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMainWindow
  • tst_QMetaObject
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTimer
  • ...
FALSEevaluated 199444 times by 172 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDataWidgetMapper
  • ...
199444-100136558
1540 continue;
executed 100136558 times by 55 tests: continue;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMainWindow
  • tst_QMetaObject
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTimer
  • ...
100136558
1541 if (pe.receiver == q) {
pe.receiver == qDescription
TRUEevaluated 62502 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTimer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
FALSEevaluated 136942 times by 147 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDataWidgetMapper
  • ...
62502-136942
1542 // move this post event to the targetList-
1543 targetData->postEventList.addEvent(pe);-
1544 const_cast<QPostEvent &>(pe).event = 0;-
1545 ++eventsMoved;-
1546 }
executed 62502 times by 54 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTimer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
62502
1547 }
executed 199444 times by 172 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDataWidgetMapper
  • ...
199444
1548 if (eventsMoved > 0 && targetData->eventDispatcher.load()) {
eventsMoved > 0Description
TRUEevaluated 21945 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QTimer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • ...
FALSEevaluated 43879 times by 330 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
  • ...
targetData->ev...patcher.load()Description
TRUEevaluated 21506 times by 25 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QTimer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 439 times by 32 tests
Evaluated by:
  • tst_QDBusConnection_NoApplication
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QNetworkReply
  • tst_QTcpSocket
  • tst_QTimer
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdial - unknown status
  • tst_qdirmodel - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfontcombobox - unknown status
  • tst_qitemmodel - unknown status
  • tst_qnetworkaccessmanager - unknown status
  • tst_qnetworkconfigurationmanagerqappless - unknown status
  • tst_qnetworkinterface - unknown status
  • tst_qprocess - unknown status
  • ...
439-43879
1549 targetData->canWait = false;-
1550 targetData->eventDispatcher.load()->wakeUp();-
1551 }
executed 21506 times by 25 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QTimer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
21506
1552-
1553 // the current emitting thread shouldn't restore currentSender after calling moveToThread()-
1554 if (currentSender)
currentSenderDescription
TRUEevaluated 42001 times by 3 tests
Evaluated by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QMetaObject
FALSEevaluated 23823 times by 330 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
  • ...
23823-42001
1555 currentSender->ref = 0;
executed 42001 times by 3 tests: currentSender->ref = 0;
Executed by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QMetaObject
42001
1556 currentSender = 0;-
1557-
1558 // set new thread data-
1559 targetData->ref();-
1560 threadData->deref();-
1561 threadData = targetData;-
1562-
1563 for (int i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 327 times by 47 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • ...
FALSEevaluated 65824 times by 330 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
  • ...
327-65824
1564 QObject *child = children.at(i);-
1565 child->d_func()->setThreadData_helper(currentData, targetData);-
1566 }
executed 327 times by 47 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • ...
327
1567}
executed 65824 times by 330 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
65824
1568-
1569void QObjectPrivate::_q_reregisterTimers(void *pointer)-
1570{-
1571 Q_Q(QObject);-
1572 QList<QAbstractEventDispatcher::TimerInfo> *timerList = reinterpret_cast<QList<QAbstractEventDispatcher::TimerInfo> *>(pointer);-
1573 QAbstractEventDispatcher *eventDispatcher = threadData->eventDispatcher.load();-
1574 for (int i = 0; i < timerList->size(); ++i) {
i < timerList->size()Description
TRUEevaluated 20010 times by 2 tests
Evaluated by:
  • tst_QObject
  • tst_QTimer
FALSEevaluated 20010 times by 2 tests
Evaluated by:
  • tst_QObject
  • tst_QTimer
20010
1575 const QAbstractEventDispatcher::TimerInfo &ti = timerList->at(i);-
1576 eventDispatcher->registerTimer(ti.timerId, ti.interval, ti.timerType, q);-
1577 }
executed 20010 times by 2 tests: end of block
Executed by:
  • tst_QObject
  • tst_QTimer
20010
1578 delete timerList;-
1579}
executed 20010 times by 2 tests: end of block
Executed by:
  • tst_QObject
  • tst_QTimer
20010
1580-
1581-
1582//-
1583// The timer flag hasTimer is set when startTimer is called.-
1584// It is not reset when killing the timer because more than-
1585// one timer might be active.-
1586//-
1587-
1588/*!-
1589 Starts a timer and returns a timer identifier, or returns zero if-
1590 it could not start a timer.-
1591-
1592 A timer event will occur every \a interval milliseconds until-
1593 killTimer() is called. If \a interval is 0, then the timer event-
1594 occurs once every time there are no more window system events to-
1595 process.-
1596-
1597 The virtual timerEvent() function is called with the QTimerEvent-
1598 event parameter class when a timer event occurs. Reimplement this-
1599 function to get timer events.-
1600-
1601 If multiple timers are running, the QTimerEvent::timerId() can be-
1602 used to find out which timer was activated.-
1603-
1604 Example:-
1605-
1606 \snippet code/src_corelib_kernel_qobject.cpp 8-
1607-
1608 Note that QTimer's accuracy depends on the underlying operating system and-
1609 hardware. The \a timerType argument allows you to customize the accuracy of-
1610 the timer. See Qt::TimerType for information on the different timer types.-
1611 Most platforms support an accuracy of 20 milliseconds; some provide more.-
1612 If Qt is unable to deliver the requested number of timer events, it will-
1613 silently discard some.-
1614-
1615 The QTimer class provides a high-level programming interface with-
1616 single-shot timers and timer signals instead of events. There is-
1617 also a QBasicTimer class that is more lightweight than QTimer and-
1618 less clumsy than using timer IDs directly.-
1619-
1620 \sa timerEvent(), killTimer(), QTimer::singleShot()-
1621*/-
1622-
1623int QObject::startTimer(int interval, Qt::TimerType timerType)-
1624{-
1625 Q_D(QObject);-
1626-
1627 if (Q_UNLIKELY(interval < 0)) {
__builtin_expe...l < 0), false)Description
TRUEnever evaluated
FALSEevaluated 42587 times by 198 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-42587
1628 qWarning("QObject::startTimer: Timers cannot have negative intervals");-
1629 return 0;
never executed: return 0;
0
1630 }-
1631 if (Q_UNLIKELY(!d->threadData->eventDispatcher.load())) {
__builtin_expe...oad()), false)Description
TRUEnever evaluated
FALSEevaluated 42587 times by 198 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-42587
1632 qWarning("QObject::startTimer: Timers can only be used with threads started with QThread");-
1633 return 0;
never executed: return 0;
0
1634 }-
1635 if (Q_UNLIKELY(thread() != QThread::currentThread())) {
__builtin_expe...ead()), false)Description
TRUEnever evaluated
FALSEevaluated 42587 times by 198 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-42587
1636 qWarning("QObject::startTimer: Timers cannot be started from another thread");-
1637 return 0;
never executed: return 0;
0
1638 }-
1639 int timerId = d->threadData->eventDispatcher.load()->registerTimer(interval, timerType, this);-
1640 if (!d->extraData)
!d->extraDataDescription
TRUEevaluated 28823 times by 197 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 13764 times by 179 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
13764-28823
1641 d->extraData = new QObjectPrivate::ExtraData;
executed 28823 times by 197 tests: d->extraData = new QObjectPrivate::ExtraData;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
28823
1642 d->extraData->runningTimers.append(timerId);-
1643 return timerId;
executed 42587 times by 198 tests: return timerId;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
42587
1644}-
1645-
1646/*!-
1647 Kills the timer with timer identifier, \a id.-
1648-
1649 The timer identifier is returned by startTimer() when a timer-
1650 event is started.-
1651-
1652 \sa timerEvent(), startTimer()-
1653*/-
1654-
1655void QObject::killTimer(int id)-
1656{-
1657 Q_D(QObject);-
1658 if (Q_UNLIKELY(thread() != QThread::currentThread())) {
__builtin_expe...ead()), false)Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QTcpSocket
  • tst_QTimer
FALSEevaluated 40001 times by 212 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
6-40001
1659 qWarning("QObject::killTimer: Timers cannot be stopped from another thread");-
1660 return;
executed 6 times by 2 tests: return;
Executed by:
  • tst_QTcpSocket
  • tst_QTimer
6
1661 }-
1662 if (id) {
idDescription
TRUEevaluated 40001 times by 212 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEnever evaluated
0-40001
1663 int at = d->extraData ? d->extraData->runningTimers.indexOf(id) : -1;
d->extraDataDescription
TRUEevaluated 40001 times by 212 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEnever evaluated
0-40001
1664 if (at == -1) {
at == -1Description
TRUEnever evaluated
FALSEevaluated 40001 times by 212 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-40001
1665 // timer isn't owned by this object-
1666 qWarning("QObject::killTimer(): Error: timer id %d is not valid for object %p (%s, %s), timer has not been killed",-
1667 id,-
1668 this,-
1669 metaObject()->className(),-
1670 qPrintable(objectName()));-
1671 return;
never executed: return;
0
1672 }-
1673-
1674 if (d->threadData->eventDispatcher.load())
d->threadData-...patcher.load()Description
TRUEevaluated 39863 times by 206 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
FALSEevaluated 138 times by 10 tests
Evaluated by:
  • tst_QApplication
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QNetworkReply
  • tst_qcolordialog - unknown status
  • tst_qimagereader - unknown status
  • tst_qsslsocket - unknown status
  • tst_qsystemtrayicon - unknown status
  • tst_qthread - unknown status
  • tst_qtoolbutton - unknown status
138-39863
1675 d->threadData->eventDispatcher.load()->unregisterTimer(id);
executed 39863 times by 206 tests: d->threadData->eventDispatcher.load()->unregisterTimer(id);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
39863
1676-
1677 d->extraData->runningTimers.remove(at);-
1678 QAbstractEventDispatcherPrivate::releaseTimerId(id);-
1679 }
executed 40001 times by 212 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
40001
1680}
executed 40001 times by 212 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
40001
1681-
1682-
1683/*!-
1684 \fn QObject *QObject::parent() const-
1685-
1686 Returns a pointer to the parent object.-
1687-
1688 \sa children()-
1689*/-
1690-
1691/*!-
1692 \fn const QObjectList &QObject::children() const-
1693-
1694 Returns a list of child objects.-
1695 The QObjectList class is defined in the \c{<QObject>} header-
1696 file as the following:-
1697-
1698 \quotefromfile kernel/qobject.h-
1699 \skipto /typedef .*QObjectList/-
1700 \printuntil QObjectList-
1701-
1702 The first child added is the \l{QList::first()}{first} object in-
1703 the list and the last child added is the \l{QList::last()}{last}-
1704 object in the list, i.e. new children are appended at the end.-
1705-
1706 Note that the list order changes when QWidget children are-
1707 \l{QWidget::raise()}{raised} or \l{QWidget::lower()}{lowered}. A-
1708 widget that is raised becomes the last object in the list, and a-
1709 widget that is lowered becomes the first object in the list.-
1710-
1711 \sa findChild(), findChildren(), parent(), setParent()-
1712*/-
1713-
1714-
1715/*!-
1716 \fn T *QObject::findChild(const QString &name, Qt::FindChildOptions options) const-
1717-
1718 Returns the child of this object that can be cast into type T and-
1719 that is called \a name, or 0 if there is no such object.-
1720 Omitting the \a name argument causes all object names to be matched.-
1721 The search is performed recursively, unless \a options specifies the-
1722 option FindDirectChildrenOnly.-
1723-
1724 If there is more than one child matching the search, the most-
1725 direct ancestor is returned. If there are several direct-
1726 ancestors, it is undefined which one will be returned. In that-
1727 case, findChildren() should be used.-
1728-
1729 This example returns a child \c{QPushButton} of \c{parentWidget}-
1730 named \c{"button1"}, even if the button isn't a direct child of-
1731 the parent:-
1732-
1733 \snippet code/src_corelib_kernel_qobject.cpp 10-
1734-
1735 This example returns a \c{QListWidget} child of \c{parentWidget}:-
1736-
1737 \snippet code/src_corelib_kernel_qobject.cpp 11-
1738-
1739 This example returns a child \c{QPushButton} of \c{parentWidget}-
1740 (its direct parent) named \c{"button1"}:-
1741-
1742 \snippet code/src_corelib_kernel_qobject.cpp 41-
1743-
1744 This example returns a \c{QListWidget} child of \c{parentWidget},-
1745 its direct parent:-
1746-
1747 \snippet code/src_corelib_kernel_qobject.cpp 42-
1748-
1749 \sa findChildren()-
1750*/-
1751-
1752/*!-
1753 \fn QList<T> QObject::findChildren(const QString &name, Qt::FindChildOptions options) const-
1754-
1755 Returns all children of this object with the given \a name that can be-
1756 cast to type T, or an empty list if there are no such objects.-
1757 Omitting the \a name argument causes all object names to be matched.-
1758 The search is performed recursively, unless \a options specifies the-
1759 option FindDirectChildrenOnly.-
1760-
1761 The following example shows how to find a list of child \c{QWidget}s of-
1762 the specified \c{parentWidget} named \c{widgetname}:-
1763-
1764 \snippet code/src_corelib_kernel_qobject.cpp 12-
1765-
1766 This example returns all \c{QPushButton}s that are children of \c{parentWidget}:-
1767-
1768 \snippet code/src_corelib_kernel_qobject.cpp 13-
1769-
1770 This example returns all \c{QPushButton}s that are immediate children of \c{parentWidget}:-
1771-
1772 \snippet code/src_corelib_kernel_qobject.cpp 43-
1773-
1774 \sa findChild()-
1775*/-
1776-
1777/*!-
1778 \fn QList<T> QObject::findChildren(const QRegExp &regExp, Qt::FindChildOptions options) const-
1779 \overload findChildren()-
1780-
1781 Returns the children of this object that can be cast to type T-
1782 and that have names matching the regular expression \a regExp,-
1783 or an empty list if there are no such objects.-
1784 The search is performed recursively, unless \a options specifies the-
1785 option FindDirectChildrenOnly.-
1786*/-
1787-
1788/*!-
1789 \fn QList<T> QObject::findChildren(const QRegularExpression &re, Qt::FindChildOptions options) const-
1790 \overload findChildren()-
1791-
1792 \since 5.0-
1793-
1794 Returns the children of this object that can be cast to type T-
1795 and that have names matching the regular expression \a re,-
1796 or an empty list if there are no such objects.-
1797 The search is performed recursively, unless \a options specifies the-
1798 option FindDirectChildrenOnly.-
1799*/-
1800-
1801/*!-
1802 \fn T qFindChild(const QObject *obj, const QString &name)-
1803 \relates QObject-
1804 \overload qFindChildren()-
1805 \obsolete-
1806-
1807 This function is equivalent to-
1808 \a{obj}->\l{QObject::findChild()}{findChild}<T>(\a name).-
1809-
1810 \note This function was provided as a workaround for MSVC 6-
1811 which did not support member template functions. It is advised-
1812 to use the other form in new code.-
1813-
1814 \sa QObject::findChild()-
1815*/-
1816-
1817/*!-
1818 \fn QList<T> qFindChildren(const QObject *obj, const QString &name)-
1819 \relates QObject-
1820 \overload qFindChildren()-
1821 \obsolete-
1822-
1823 This function is equivalent to-
1824 \a{obj}->\l{QObject::findChildren()}{findChildren}<T>(\a name).-
1825-
1826 \note This function was provided as a workaround for MSVC 6-
1827 which did not support member template functions. It is advised-
1828 to use the other form in new code.-
1829-
1830 \sa QObject::findChildren()-
1831*/-
1832-
1833/*!-
1834 \fn QList<T> qFindChildren(const QObject *obj, const QRegExp &regExp)-
1835 \relates QObject-
1836 \overload qFindChildren()-
1837-
1838 This function is equivalent to-
1839 \a{obj}->\l{QObject::findChildren()}{findChildren}<T>(\a regExp).-
1840-
1841 \note This function was provided as a workaround for MSVC 6-
1842 which did not support member template functions. It is advised-
1843 to use the other form in new code.-
1844-
1845 \sa QObject::findChildren()-
1846*/-
1847-
1848/*!-
1849 \internal-
1850*/-
1851void qt_qFindChildren_helper(const QObject *parent, const QString &name,-
1852 const QMetaObject &mo, QList<void*> *list, Qt::FindChildOptions options)-
1853{-
1854 if (!parent || !list)
!parentDescription
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QCheckBox
FALSEevaluated 51187 times by 57 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
!listDescription
TRUEnever evaluated
FALSEevaluated 51187 times by 57 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
0-51187
1855 return;
executed 13 times by 2 tests: return;
Executed by:
  • tst_QAbstractButton
  • tst_QCheckBox
13
1856 const QObjectList &children = parent->children();-
1857 QObject *obj;-
1858 for (int i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 51174 times by 54 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
FALSEevaluated 51187 times by 57 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
51174-51187
1859 obj = children.at(i);-
1860 if (mo.cast(obj)) {
mo.cast(obj)Description
TRUEevaluated 19696 times by 42 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • ...
FALSEevaluated 31478 times by 50 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
19696-31478
1861 if (name.isNull() || obj->objectName() == name)
name.isNull()Description
TRUEevaluated 19364 times by 42 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • ...
FALSEevaluated 332 times by 3 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QObject
obj->objectName() == nameDescription
TRUEevaluated 55 times by 3 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QObject
FALSEevaluated 277 times by 3 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QItemDelegate
  • tst_QObject
55-19364
1862 list->append(obj);
executed 19419 times by 42 tests: list->append(obj);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • ...
19419
1863 }
executed 19696 times by 42 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMessageBox
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • ...
19696
1864 if (options & Qt::FindChildrenRecursively)
options & Qt::...renRecursivelyDescription
TRUEevaluated 48391 times by 44 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMetaObject
  • ...
FALSEevaluated 2783 times by 21 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QDockWidget
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QObject
  • tst_QPrinter
  • tst_QShortcut
  • tst_QSizeGrip
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidget_window
  • tst_QWindowContainer
2783-48391
1865 qt_qFindChildren_helper(obj, name, mo, list, options);
executed 48391 times by 44 tests: qt_qFindChildren_helper(obj, name, mo, list, options);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMetaObject
  • ...
48391
1866 }
executed 51174 times by 54 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
51174
1867}
executed 51187 times by 57 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • ...
51187
1868-
1869#ifndef QT_NO_REGEXP-
1870/*!-
1871 \internal-
1872*/-
1873void qt_qFindChildren_helper(const QObject *parent, const QRegExp &re,-
1874 const QMetaObject &mo, QList<void*> *list, Qt::FindChildOptions options)-
1875{-
1876 if (!parent || !list)
!parentDescription
TRUEnever evaluated
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_QObject
!listDescription
TRUEnever evaluated
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_QObject
0-55
1877 return;
never executed: return;
0
1878 const QObjectList &children = parent->children();-
1879 QRegExp reCopy = re;-
1880 QObject *obj;-
1881 for (int i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 55 times by 1 test
Evaluated by:
  • tst_QObject
55-70
1882 obj = children.at(i);-
1883 if (mo.cast(obj) && reCopy.indexIn(obj->objectName()) != -1)
mo.cast(obj)Description
TRUEevaluated 52 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 18 times by 1 test
Evaluated by:
  • tst_QObject
reCopy.indexIn...tName()) != -1Description
TRUEevaluated 15 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 37 times by 1 test
Evaluated by:
  • tst_QObject
15-52
1884 list->append(obj);
executed 15 times by 1 test: list->append(obj);
Executed by:
  • tst_QObject
15
1885-
1886 if (options & Qt::FindChildrenRecursively)
options & Qt::...renRecursivelyDescription
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 25 times by 1 test
Evaluated by:
  • tst_QObject
25-45
1887 qt_qFindChildren_helper(obj, re, mo, list, options);
executed 45 times by 1 test: qt_qFindChildren_helper(obj, re, mo, list, options);
Executed by:
  • tst_QObject
45
1888 }
executed 70 times by 1 test: end of block
Executed by:
  • tst_QObject
70
1889}
executed 55 times by 1 test: end of block
Executed by:
  • tst_QObject
55
1890#endif // QT_NO_REGEXP-
1891-
1892#ifndef QT_NO_REGULAREXPRESSION-
1893/*!-
1894 \internal-
1895*/-
1896void qt_qFindChildren_helper(const QObject *parent, const QRegularExpression &re,-
1897 const QMetaObject &mo, QList<void*> *list, Qt::FindChildOptions options)-
1898{-
1899 if (!parent || !list)
!parentDescription
TRUEnever evaluated
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QObject
!listDescription
TRUEnever evaluated
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QObject
0-50
1900 return;
never executed: return;
0
1901 const QObjectList &children = parent->children();-
1902 QObject *obj;-
1903 for (int i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 50 times by 1 test
Evaluated by:
  • tst_QObject
45-50
1904 obj = children.at(i);-
1905 if (mo.cast(obj)) {
mo.cast(obj)Description
TRUEevaluated 33 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
12-33
1906 QRegularExpressionMatch m = re.match(obj->objectName());-
1907 if (m.hasMatch())
m.hasMatch()Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
10-23
1908 list->append(obj);
executed 10 times by 1 test: list->append(obj);
Executed by:
  • tst_QObject
10
1909 }
executed 33 times by 1 test: end of block
Executed by:
  • tst_QObject
33
1910 if (options & Qt::FindChildrenRecursively)
options & Qt::...renRecursivelyDescription
TRUEevaluated 45 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-45
1911 qt_qFindChildren_helper(obj, re, mo, list, options);
executed 45 times by 1 test: qt_qFindChildren_helper(obj, re, mo, list, options);
Executed by:
  • tst_QObject
45
1912 }
executed 45 times by 1 test: end of block
Executed by:
  • tst_QObject
45
1913}
executed 50 times by 1 test: end of block
Executed by:
  • tst_QObject
50
1914#endif // QT_NO_REGULAREXPRESSION-
1915-
1916/*!-
1917 \internal-
1918 */-
1919QObject *qt_qFindChild_helper(const QObject *parent, const QString &name, const QMetaObject &mo, Qt::FindChildOptions options)-
1920{-
1921 if (!parent)
!parentDescription
TRUEnever evaluated
FALSEevaluated 5822 times by 34 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • ...
0-5822
1922 return 0;
never executed: return 0;
0
1923 const QObjectList &children = parent->children();-
1924 QObject *obj;-
1925 int i;-
1926 for (i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 7442 times by 33 tests
Evaluated by:
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSizeGrip
  • ...
FALSEevaluated 5323 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
5323-7442
1927 obj = children.at(i);-
1928 if (mo.cast(obj) && (name.isNull() || obj->objectName() == name))
mo.cast(obj)Description
TRUEevaluated 810 times by 30 tests
Evaluated by:
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QStackedWidget
  • tst_QStateMachine
  • tst_QStatusBar
  • ...
FALSEevaluated 6632 times by 30 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSizeGrip
  • tst_QStackedWidget
  • tst_QStateMachine
  • ...
name.isNull()Description
TRUEevaluated 308 times by 25 tests
Evaluated by:
  • tst_QComboBox
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QStateMachine
  • tst_QStatusBar
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 502 times by 12 tests
Evaluated by:
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QStackedWidget
  • tst_QStyleSheetStyle
obj->objectName() == nameDescription
TRUEevaluated 191 times by 12 tests
Evaluated by:
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QStackedWidget
  • tst_QStyleSheetStyle
FALSEevaluated 311 times by 9 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QMainWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QStackedWidget
  • tst_QStyleSheetStyle
191-6632
1929 return obj;
executed 499 times by 30 tests: return obj;
Executed by:
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QStackedWidget
  • tst_QStateMachine
  • tst_QStatusBar
  • ...
499
1930 }
executed 6943 times by 30 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QProgressDialog
  • tst_QSizeGrip
  • tst_QStackedWidget
  • tst_QStateMachine
  • ...
6943
1931 if (options & Qt::FindChildrenRecursively) {
options & Qt::...renRecursivelyDescription
TRUEevaluated 5314 times by 22 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QObject
9-5314
1932 for (i = 0; i < children.size(); ++i) {
i < children.size()Description
TRUEevaluated 4841 times by 20 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QItemDelegate
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 5104 times by 20 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • tst_QTreeWidget
4841-5104
1933 obj = qt_qFindChild_helper(children.at(i), name, mo, options);-
1934 if (obj)
objDescription
TRUEevaluated 210 times by 13 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 4631 times by 18 tests
Evaluated by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • tst_QTreeWidget
210-4631
1935 return obj;
executed 210 times by 13 tests: return obj;
Executed by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QItemDelegate
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
210
1936 }
executed 4631 times by 18 tests: end of block
Executed by:
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • tst_QTreeWidget
4631
1937 }
executed 5104 times by 20 tests: end of block
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • tst_QTreeWidget
5104
1938 return 0;
executed 5113 times by 20 tests: return 0;
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsView
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSizeGrip
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTreeView
  • tst_QTreeWidget
5113
1939}-
1940-
1941/*!-
1942 Makes the object a child of \a parent.-
1943-
1944 \sa parent(), children()-
1945*/-
1946void QObject::setParent(QObject *parent)-
1947{-
1948 Q_D(QObject);-
1949 Q_ASSERT(!d->isWidget);-
1950 d->setParent_helper(parent);-
1951}
executed 150854 times by 254 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
150854
1952-
1953void QObjectPrivate::deleteChildren()-
1954{-
1955 Q_ASSERT_X(!isDeletingChildren, "QObjectPrivate::deleteChildren()", "isDeletingChildren already set, did this function recurse?");-
1956 isDeletingChildren = true;-
1957 // delete children objects-
1958 // don't use qDeleteAll as the destructor of the child might-
1959 // delete siblings-
1960 for (int i = 0; i < children.count(); ++i) {
i < children.count()Description
TRUEevaluated 88872 times by 631 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 43884 times by 631 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
43884-88872
1961 currentChildBeingDeleted = children.at(i);-
1962 children[i] = 0;-
1963 delete currentChildBeingDeleted;-
1964 }
executed 88872 times by 631 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
88872
1965 children.clear();-
1966 currentChildBeingDeleted = 0;-
1967 isDeletingChildren = false;-
1968}
executed 43884 times by 631 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
43884
1969-
1970void QObjectPrivate::setParent_helper(QObject *o)-
1971{-
1972 Q_Q(QObject);-
1973 if (o == parent)
o == parentDescription
TRUEevaluated 1586 times by 43 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • ...
FALSEevaluated 363758 times by 659 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
1586-363758
1974 return;
executed 1586 times by 43 tests: return;
Executed by:
  • tst_ModelTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QMainWindow
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPrinter
  • ...
1586
1975 if (parent) {
parentDescription
TRUEevaluated 179807 times by 646 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
FALSEevaluated 183951 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
179807-183951
1976 QObjectPrivate *parentD = parent->d_func();-
1977 if (parentD->isDeletingChildren && wasDeleted
parentD->isDeletingChildrenDescription
TRUEevaluated 88872 times by 631 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 90935 times by 469 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
wasDeletedDescription
TRUEevaluated 88872 times by 631 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEnever evaluated
0-90935
1978 && parentD->currentChildBeingDeleted == q) {
parentD->curre...ngDeleted == qDescription
TRUEevaluated 88870 times by 631 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QObject
  • tst_QWidget
2-88870
1979 // don't do anything since QObjectPrivate::deleteChildren() already-
1980 // cleared our entry in parentD->children.-
1981 } else {
executed 88870 times by 631 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
88870
1982 const int index = parentD->children.indexOf(q);-
1983 if (parentD->isDeletingChildren) {
parentD->isDeletingChildrenDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QObject
  • tst_QWidget
FALSEevaluated 90935 times by 469 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
2-90935
1984 parentD->children[index] = 0;-
1985 } else {
executed 2 times by 2 tests: end of block
Executed by:
  • tst_QObject
  • tst_QWidget
2
1986 parentD->children.removeAt(index);-
1987 if (sendChildEvents && parentD->receiveChildEvents) {
sendChildEventsDescription
TRUEevaluated 90934 times by 468 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFocusFrame
parentD->receiveChildEventsDescription
TRUEevaluated 90934 times by 468 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
FALSEnever evaluated
0-90934
1988 QChildEvent e(QEvent::ChildRemoved, q);-
1989 QCoreApplication::sendEvent(parent, &e);-
1990 }
executed 90934 times by 468 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
90934
1991 }
executed 90935 times by 469 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • ...
90935
1992 }-
1993 }-
1994 parent = o;-
1995 if (parent) {
parentDescription
TRUEevaluated 184981 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
FALSEevaluated 178777 times by 646 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
178777-184981
1996 // object hierarchies are constrained to a single thread-
1997 if (threadData != parent->d_func()->threadData) {
threadData != ...()->threadDataDescription
TRUEnever evaluated
FALSEevaluated 184981 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
0-184981
1998 qWarning("QObject::setParent: Cannot set parent, new parent is in a different thread");-
1999 parent = 0;-
2000 return;
never executed: return;
0
2001 }-
2002 parent->d_func()->children.append(q);-
2003 if(sendChildEvents && parent->d_func()->receiveChildEvents) {
sendChildEventsDescription
TRUEevaluated 184980 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFocusFrame
parent->d_func...iveChildEventsDescription
TRUEevaluated 184980 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
FALSEnever evaluated
0-184980
2004 if (!isWidget) {
!isWidgetDescription
TRUEevaluated 128802 times by 253 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
FALSEevaluated 56178 times by 118 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
56178-128802
2005 QChildEvent e(QEvent::ChildAdded, q);-
2006 QCoreApplication::sendEvent(parent, &e);-
2007 }
executed 128802 times by 253 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
128802
2008 }
executed 184980 times by 255 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
184980
2009 }
executed 184981 times by 255 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
184981
2010 if (!wasDeleted && !isDeletingChildren && declarativeData && QAbstractDeclarativeData::parentChanged)
!wasDeletedDescription
TRUEevaluated 205419 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
FALSEevaluated 158339 times by 645 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • ...
!isDeletingChildrenDescription
TRUEevaluated 205419 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
FALSEnever evaluated
declarativeDataDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 205418 times by 255 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
QAbstractDecla...:parentChangedDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-205419
2011 QAbstractDeclarativeData::parentChanged(declarativeData, q, o);
executed 1 time by 1 test: QAbstractDeclarativeData::parentChanged(declarativeData, q, o);
Executed by:
  • tst_QObject
1
2012}
executed 363758 times by 659 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • ...
363758
2013-
2014/*!-
2015 \fn void QObject::installEventFilter(QObject *filterObj)-
2016-
2017 Installs an event filter \a filterObj on this object. For example:-
2018 \snippet code/src_corelib_kernel_qobject.cpp 14-
2019-
2020 An event filter is an object that receives all events that are-
2021 sent to this object. The filter can either stop the event or-
2022 forward it to this object. The event filter \a filterObj receives-
2023 events via its eventFilter() function. The eventFilter() function-
2024 must return true if the event should be filtered, (i.e. stopped);-
2025 otherwise it must return false.-
2026-
2027 If multiple event filters are installed on a single object, the-
2028 filter that was installed last is activated first.-
2029-
2030 Here's a \c KeyPressEater class that eats the key presses of its-
2031 monitored objects:-
2032-
2033 \snippet code/src_corelib_kernel_qobject.cpp 15-
2034-
2035 And here's how to install it on two widgets:-
2036-
2037 \snippet code/src_corelib_kernel_qobject.cpp 16-
2038-
2039 The QShortcut class, for example, uses this technique to intercept-
2040 shortcut key presses.-
2041-
2042 \warning If you delete the receiver object in your eventFilter()-
2043 function, be sure to return true. If you return false, Qt sends-
2044 the event to the deleted object and the program will crash.-
2045-
2046 Note that the filtering object must be in the same thread as this-
2047 object. If \a filterObj is in a different thread, this function does-
2048 nothing. If either \a filterObj or this object are moved to a different-
2049 thread after calling this function, the event filter will not be-
2050 called until both objects have the same thread affinity again (it-
2051 is \e not removed).-
2052-
2053 \sa removeEventFilter(), eventFilter(), event()-
2054*/-
2055-
2056void QObject::installEventFilter(QObject *obj)-
2057{-
2058 Q_D(QObject);-
2059 if (!obj)
!objDescription
TRUEnever evaluated
FALSEevaluated 26389 times by 93 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
0-26389
2060 return;
never executed: return;
0
2061 if (d->threadData != obj->d_func()->threadData) {
d->threadData ...()->threadDataDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 26388 times by 93 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
1-26388
2062 qWarning("QObject::installEventFilter(): Cannot filter events for objects in a different thread.");-
2063 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_QObject
1
2064 }-
2065-
2066 if (!d->extraData)
!d->extraDataDescription
TRUEevaluated 17706 times by 92 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 8682 times by 82 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • ...
8682-17706
2067 d->extraData = new QObjectPrivate::ExtraData;
executed 17706 times by 92 tests: d->extraData = new QObjectPrivate::ExtraData;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
17706
2068-
2069 // clean up unused items in the list-
2070 d->extraData->eventFilters.removeAll((QObject*)0);-
2071 d->extraData->eventFilters.removeAll(obj);-
2072 d->extraData->eventFilters.prepend(obj);-
2073}
executed 26388 times by 93 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • ...
26388
2074-
2075/*!-
2076 Removes an event filter object \a obj from this object. The-
2077 request is ignored if such an event filter has not been installed.-
2078-
2079 All event filters for this object are automatically removed when-
2080 this object is destroyed.-
2081-
2082 It is always safe to remove an event filter, even during event-
2083 filter activation (i.e. from the eventFilter() function).-
2084-
2085 \sa installEventFilter(), eventFilter(), event()-
2086*/-
2087-
2088void QObject::removeEventFilter(QObject *obj)-
2089{-
2090 Q_D(QObject);-
2091 if (d->extraData) {
d->extraDataDescription
TRUEevaluated 1561 times by 40 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
FALSEevaluated 1017 times by 6 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QGridLayout
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPushButton
  • tst_QSizeGrip
1017-1561
2092 for (int i = 0; i < d->extraData->eventFilters.count(); ++i) {
i < d->extraDa...ilters.count()Description
TRUEevaluated 1849 times by 40 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
FALSEevaluated 1561 times by 40 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
1561-1849
2093 if (d->extraData->eventFilters.at(i) == obj)
d->extraData->...s.at(i) == objDescription
TRUEevaluated 1092 times by 40 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
FALSEevaluated 757 times by 15 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenuBar
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QTreeView
  • tst_QTreeWidget
757-1092
2094 d->extraData->eventFilters[i] = 0;
executed 1092 times by 40 tests: d->extraData->eventFilters[i] = 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
1092
2095 }
executed 1849 times by 40 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
1849
2096 }
executed 1561 times by 40 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • ...
1561
2097}
executed 2578 times by 41 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusFrame
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
2578
2098-
2099-
2100/*!-
2101 \fn QObject::destroyed(QObject *obj)-
2102-
2103 This signal is emitted immediately before the object \a obj is-
2104 destroyed, and can not be blocked.-
2105-
2106 All the objects's children are destroyed immediately after this-
2107 signal is emitted.-
2108-
2109 \sa deleteLater(), QPointer-
2110*/-
2111-
2112/*!-
2113 Schedules this object for deletion.-
2114-
2115 The object will be deleted when control returns to the event-
2116 loop. If the event loop is not running when this function is-
2117 called (e.g. deleteLater() is called on an object before-
2118 QCoreApplication::exec()), the object will be deleted once the-
2119 event loop is started. If deleteLater() is called after the main event loop-
2120 has stopped, the object will not be deleted.-
2121 Since Qt 4.8, if deleteLater() is called on an object that lives in a-
2122 thread with no running event loop, the object will be destroyed when the-
2123 thread finishes.-
2124-
2125 Note that entering and leaving a new event loop (e.g., by opening a modal-
2126 dialog) will \e not perform the deferred deletion; for the object to be-
2127 deleted, the control must return to the event loop from which-
2128 deleteLater() was called.-
2129-
2130 \b{Note:} It is safe to call this function more than once; when the-
2131 first deferred deletion event is delivered, any pending events for the-
2132 object are removed from the event queue.-
2133-
2134 \sa destroyed(), QPointer-
2135*/-
2136void QObject::deleteLater()-
2137{-
2138 QCoreApplication::postEvent(this, new QDeferredDeleteEvent());-
2139}
executed 11211 times by 213 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
  • ...
11211
2140-
2141/*!-
2142 \fn QString QObject::tr(const char *sourceText, const char *disambiguation, int n)-
2143 \reentrant-
2144-
2145 Returns a translated version of \a sourceText, optionally based on a-
2146 \a disambiguation string and value of \a n for strings containing plurals;-
2147 otherwise returns QString::fromUtf8(\a sourceText) if no appropriate-
2148 translated string is available.-
2149-
2150 Example:-
2151 \snippet ../widgets/mainwindows/sdi/mainwindow.cpp implicit tr context-
2152 \dots-
2153-
2154 If the same \a sourceText is used in different roles within the-
2155 same context, an additional identifying string may be passed in-
2156 \a disambiguation (0 by default). In Qt 4.4 and earlier, this was-
2157 the preferred way to pass comments to translators.-
2158-
2159 Example:-
2160-
2161 \snippet code/src_corelib_kernel_qobject.cpp 17-
2162 \dots-
2163-
2164 See \l{Writing Source Code for Translation} for a detailed description of-
2165 Qt's translation mechanisms in general, and the-
2166 \l{Writing Source Code for Translation#Disambiguation}{Disambiguation}-
2167 section for information on disambiguation.-
2168-
2169 \warning This method is reentrant only if all translators are-
2170 installed \e before calling this method. Installing or removing-
2171 translators while performing translations is not supported. Doing-
2172 so will probably result in crashes or other undesirable behavior.-
2173-
2174 \sa QCoreApplication::translate(), {Internationalization with Qt}-
2175*/-
2176-
2177/*!-
2178 \fn QString QObject::trUtf8(const char *sourceText, const char *disambiguation, int n)-
2179 \reentrant-
2180 \obsolete-
2181-
2182 Returns a translated version of \a sourceText, or-
2183 QString::fromUtf8(\a sourceText) if there is no appropriate-
2184 version. It is otherwise identical to tr(\a sourceText, \a-
2185 disambiguation, \a n).-
2186-
2187 \warning This method is reentrant only if all translators are-
2188 installed \e before calling this method. Installing or removing-
2189 translators while performing translations is not supported. Doing-
2190 so will probably result in crashes or other undesirable behavior.-
2191-
2192 \warning For portability reasons, we recommend that you use-
2193 escape sequences for specifying non-ASCII characters in string-
2194 literals to trUtf8(). For example:-
2195-
2196 \snippet code/src_corelib_kernel_qobject.cpp 20-
2197-
2198 \sa tr(), QCoreApplication::translate(), {Internationalization with Qt}-
2199*/-
2200-
2201-
2202-
2203-
2204/*****************************************************************************-
2205 Signals and slots-
2206 *****************************************************************************/-
2207-
2208-
2209const char *qFlagLocation(const char *method)-
2210{-
2211 QThreadData *currentThreadData = QThreadData::current(false);-
2212 if (currentThreadData != 0)
currentThreadData != 0Description
TRUEevaluated 1001350 times by 294 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
FALSEnever evaluated
0-1001350
2213 currentThreadData->flaggedSignatures.store(method);
executed 1001350 times by 294 tests: currentThreadData->flaggedSignatures.store(method);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
1001350
2214 return method;
executed 1001350 times by 294 tests: return method;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
1001350
2215}-
2216-
2217static int extract_code(const char *member)-
2218{-
2219 // extract code, ensure QMETHOD_CODE <= code <= QSIGNAL_CODE-
2220 return (((int)(*member) - '0') & 0x3);
executed 1099123 times by 265 tests: return (((int)(*member) - '0') & 0x3);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
1099123
2221}-
2222-
2223static const char * extract_location(const char *member)-
2224{-
2225 if (QThreadData::current()->flaggedSignatures.contains(member)) {
QThreadData::c...ntains(member)Description
TRUEnever evaluated
FALSEnever evaluated
0
2226 // signature includes location information after the first null-terminator-
2227 const char *location = member + qstrlen(member) + 1;-
2228 if (*location != '\0')
*location != '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
2229 return location;
never executed: return location;
0
2230 }
never executed: end of block
0
2231 return 0;
never executed: return 0;
0
2232}-
2233-
2234static bool check_signal_macro(const QObject *sender, const char *signal,-
2235 const char *func, const char *op)-
2236{-
2237 int sigcode = extract_code(signal);-
2238 if (sigcode != QSIGNAL_CODE) {
sigcode != 2Description
TRUEnever evaluated
FALSEevaluated 550481 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-550481
2239 if (sigcode == QSLOT_CODE)
sigcode == 1Description
TRUEnever evaluated
FALSEnever evaluated
0
2240 qWarning("QObject::%s: Attempt to %s non-signal %s::%s",
never executed: QMessageLogger(__FILE__, 2240, __PRETTY_FUNCTION__).warning("QObject::%s: Attempt to %s non-signal %s::%s", func, op, sender->metaObject()->className(), signal+1);
0
2241 func, op, sender->metaObject()->className(), signal+1);
never executed: QMessageLogger(__FILE__, 2240, __PRETTY_FUNCTION__).warning("QObject::%s: Attempt to %s non-signal %s::%s", func, op, sender->metaObject()->className(), signal+1);
0
2242 else-
2243 qWarning("QObject::%s: Use the SIGNAL macro to %s %s::%s",
never executed: QMessageLogger(__FILE__, 2243, __PRETTY_FUNCTION__).warning("QObject::%s: Use the SIGNAL macro to %s %s::%s", func, op, sender->metaObject()->className(), signal);
0
2244 func, op, sender->metaObject()->className(), signal);
never executed: QMessageLogger(__FILE__, 2243, __PRETTY_FUNCTION__).warning("QObject::%s: Use the SIGNAL macro to %s %s::%s", func, op, sender->metaObject()->className(), signal);
0
2245 return false;
never executed: return false;
0
2246 }-
2247 return true;
executed 550481 times by 264 tests: return true;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
550481
2248}-
2249-
2250static bool check_method_code(int code, const QObject *object,-
2251 const char *method, const char *func)-
2252{-
2253 if (code != QSLOT_CODE && code != QSIGNAL_CODE) {
code != 1Description
TRUEevaluated 25195 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 523447 times by 262 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
code != 2Description
TRUEnever evaluated
FALSEevaluated 25195 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
0-523447
2254 qWarning("QObject::%s: Use the SLOT or SIGNAL macro to "-
2255 "%s %s::%s", func, func, object->metaObject()->className(), method);-
2256 return false;
never executed: return false;
0
2257 }-
2258 return true;
executed 548642 times by 265 tests: return true;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
548642
2259}-
2260-
2261static void err_method_notfound(const QObject *object,-
2262 const char *method, const char *func)-
2263{-
2264 const char *type = "method";-
2265 switch (extract_code(method)) {-
2266 case QSLOT_CODE: type = "slot"; break;
never executed: break;
never executed: case 1:
0
2267 case QSIGNAL_CODE: type = "signal"; break;
never executed: break;
never executed: case 2:
0
2268 }-
2269 const char *loc = extract_location(method);-
2270 if (strchr(method,')') == 0) // common typing mistake
strchr(method,')') == 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2271 qWarning("QObject::%s: Parentheses expected, %s %s::%s%s%s",
never executed: QMessageLogger(__FILE__, 2271, __PRETTY_FUNCTION__).warning("QObject::%s: Parentheses expected, %s %s::%s%s%s", func, type, object->metaObject()->className(), method+1, loc ? " in ": "", loc ? loc : "");
0
2272 func, type, object->metaObject()->className(), method+1,
never executed: QMessageLogger(__FILE__, 2271, __PRETTY_FUNCTION__).warning("QObject::%s: Parentheses expected, %s %s::%s%s%s", func, type, object->metaObject()->className(), method+1, loc ? " in ": "", loc ? loc : "");
0
2273 loc ? " in ": "", loc ? loc : "");
never executed: QMessageLogger(__FILE__, 2271, __PRETTY_FUNCTION__).warning("QObject::%s: Parentheses expected, %s %s::%s%s%s", func, type, object->metaObject()->className(), method+1, loc ? " in ": "", loc ? loc : "");
0
2274 else-
2275 qWarning("QObject::%s: No such %s %s::%s%s%s",
never executed: QMessageLogger(__FILE__, 2275, __PRETTY_FUNCTION__).warning("QObject::%s: No such %s %s::%s%s%s", func, type, object->metaObject()->className(), method+1, loc ? " in ": "", loc ? loc : "");
0
2276 func, type, object->metaObject()->className(), method+1,
never executed: QMessageLogger(__FILE__, 2275, __PRETTY_FUNCTION__).warning("QObject::%s: No such %s %s::%s%s%s", func, type, object->metaObject()->className(), method+1, loc ? " in ": "", loc ? loc : "");
0
2277 loc ? " in ": "", loc ? loc : "");
never executed: QMessageLogger(__FILE__, 2275, __PRETTY_FUNCTION__).warning("QObject::%s: No such %s %s::%s%s%s", func, type, object->metaObject()->className(), method+1, loc ? " in ": "", loc ? loc : "");
0
2278-
2279}-
2280-
2281-
2282static void err_info_about_objects(const char * func,-
2283 const QObject * sender,-
2284 const QObject * receiver)-
2285{-
2286 QString a = sender ? sender->objectName() : QString();
senderDescription
TRUEnever evaluated
FALSEnever evaluated
0
2287 QString b = receiver ? receiver->objectName() : QString();
receiverDescription
TRUEnever evaluated
FALSEnever evaluated
0
2288 if (!a.isEmpty())
!a.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
2289 qWarning("QObject::%s: (sender name: '%s')", func, a.toLocal8Bit().data());
never executed: QMessageLogger(__FILE__, 2289, __PRETTY_FUNCTION__).warning("QObject::%s: (sender name: '%s')", func, a.toLocal8Bit().data());
0
2290 if (!b.isEmpty())
!b.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
2291 qWarning("QObject::%s: (receiver name: '%s')", func, b.toLocal8Bit().data());
never executed: QMessageLogger(__FILE__, 2291, __PRETTY_FUNCTION__).warning("QObject::%s: (receiver name: '%s')", func, b.toLocal8Bit().data());
0
2292}
never executed: end of block
0
2293-
2294/*!-
2295 Returns a pointer to the object that sent the signal, if called in-
2296 a slot activated by a signal; otherwise it returns 0. The pointer-
2297 is valid only during the execution of the slot that calls this-
2298 function from this object's thread context.-
2299-
2300 The pointer returned by this function becomes invalid if the-
2301 sender is destroyed, or if the slot is disconnected from the-
2302 sender's signal.-
2303-
2304 \warning This function violates the object-oriented principle of-
2305 modularity. However, getting access to the sender might be useful-
2306 when many signals are connected to a single slot.-
2307-
2308 \warning As mentioned above, the return value of this function is-
2309 not valid when the slot is called via a Qt::DirectConnection from-
2310 a thread different from this object's thread. Do not use this-
2311 function in this type of scenario.-
2312-
2313 \sa senderSignalIndex(), QSignalMapper-
2314*/-
2315-
2316QObject *QObject::sender() const-
2317{-
2318 Q_D(const QObject);-
2319-
2320 QMutexLocker locker(signalSlotLock(this));-
2321 if (!d->currentSender)
!d->currentSenderDescription
TRUEevaluated 61 times by 18 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
FALSEevaluated 8884 times by 83 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
61-8884
2322 return 0;
executed 61 times by 18 tests: return 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
61
2323-
2324 for (QObjectPrivate::Connection *c = d->senders; c; c = c->next) {
cDescription
TRUEevaluated 44828 times by 83 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
3-44828
2325 if (c->sender == d->currentSender->sender)
c->sender == d...Sender->senderDescription
TRUEevaluated 8881 times by 82 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 35947 times by 49 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
8881-35947
2326 return d->currentSender->sender;
executed 8881 times by 82 tests: return d->currentSender->sender;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
8881
2327 }
executed 35947 times by 49 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QDialogButtonBox
  • tst_QDnsLookup
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMenuBar
  • tst_QMessageBox
  • ...
35947
2328-
2329 return 0;
executed 3 times by 2 tests: return 0;
Executed by:
  • tst_QMetaObject
  • tst_QObject
3
2330}-
2331-
2332/*!-
2333 \since 4.8-
2334-
2335 Returns the meta-method index of the signal that called the currently-
2336 executing slot, which is a member of the class returned by sender().-
2337 If called outside of a slot activated by a signal, -1 is returned.-
2338-
2339 For signals with default parameters, this function will always return-
2340 the index with all parameters, regardless of which was used with-
2341 connect(). For example, the signal \c {destroyed(QObject *obj = 0)}-
2342 will have two different indexes (with and without the parameter), but-
2343 this function will always return the index with a parameter. This does-
2344 not apply when overloading signals with different parameters.-
2345-
2346 \warning This function violates the object-oriented principle of-
2347 modularity. However, getting access to the signal index might be useful-
2348 when many signals are connected to a single slot.-
2349-
2350 \warning The return value of this function is not valid when the slot-
2351 is called via a Qt::DirectConnection from a thread different from this-
2352 object's thread. Do not use this function in this type of scenario.-
2353-
2354 \sa sender(), QMetaObject::indexOfSignal(), QMetaObject::method()-
2355*/-
2356-
2357int QObject::senderSignalIndex() const-
2358{-
2359 Q_D(const QObject);-
2360-
2361 QMutexLocker locker(signalSlotLock(this));-
2362 if (!d->currentSender)
!d->currentSenderDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 396 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QObject
  • tst_QState
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
5-396
2363 return -1;
executed 5 times by 1 test: return -1;
Executed by:
  • tst_QObject
5
2364-
2365 for (QObjectPrivate::Connection *c = d->senders; c; c = c->next) {
cDescription
TRUEevaluated 776 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QObject
  • tst_QState
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
2-776
2366 if (c->sender == d->currentSender->sender) {
c->sender == d...Sender->senderDescription
TRUEevaluated 394 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QObject
  • tst_QState
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
FALSEevaluated 382 times by 4 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
382-394
2367 // Convert from signal range to method range-
2368 return QMetaObjectPrivate::signal(c->sender->metaObject(), d->currentSender->signal).methodIndex();
executed 394 times by 15 tests: return QMetaObjectPrivate::signal(c->sender->metaObject(), d->currentSender->signal).methodIndex();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QObject
  • tst_QState
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
394
2369 }-
2370 }
executed 382 times by 4 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusThreading
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
382
2371-
2372 return -1;
executed 2 times by 1 test: return -1;
Executed by:
  • tst_QObject
2
2373}-
2374-
2375/*!-
2376 Returns the number of receivers connected to the \a signal.-
2377-
2378 Since both slots and signals can be used as receivers for signals,-
2379 and the same connections can be made many times, the number of-
2380 receivers is the same as the number of connections made from this-
2381 signal.-
2382-
2383 When calling this function, you can use the \c SIGNAL() macro to-
2384 pass a specific signal:-
2385-
2386 \snippet code/src_corelib_kernel_qobject.cpp 21-
2387-
2388 \warning This function violates the object-oriented principle of-
2389 modularity. However, it might be useful when you need to perform-
2390 expensive initialization only if something is connected to a-
2391 signal.-
2392-
2393 \sa isSignalConnected()-
2394*/-
2395-
2396int QObject::receivers(const char *signal) const-
2397{-
2398 Q_D(const QObject);-
2399 int receivers = 0;-
2400 if (signal) {
signalDescription
TRUEevaluated 54 times by 5 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QMenu
  • tst_QObject
  • tst_QToolButton
FALSEnever evaluated
0-54
2401 QByteArray signal_name = QMetaObject::normalizedSignature(signal);-
2402 signal = signal_name;-
2403#ifndef QT_NO_DEBUG-
2404 if (!check_signal_macro(this, signal, "receivers", "bind"))
!check_signal_...vers", "bind")Description
TRUEnever evaluated
FALSEevaluated 54 times by 5 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QMenu
  • tst_QObject
  • tst_QToolButton
0-54
2405 return 0;
never executed: return 0;
0
2406#endif-
2407 signal++; // skip code-
2408 int signal_index = d->signalIndex(signal);-
2409 if (signal_index < 0) {
signal_index < 0Description
TRUEnever evaluated
FALSEevaluated 54 times by 5 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QMenu
  • tst_QObject
  • tst_QToolButton
0-54
2410#ifndef QT_NO_DEBUG-
2411 err_method_notfound(this, signal-1, "receivers");-
2412#endif-
2413 return 0;
never executed: return 0;
0
2414 }-
2415-
2416 if (!d->isSignalConnected(signal_index))
!d->isSignalCo...(signal_index)Description
TRUEevaluated 41 times by 4 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QMenu
  • tst_QObject
  • tst_QToolButton
FALSEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
13-41
2417 return receivers;
executed 41 times by 4 tests: return receivers;
Executed by:
  • tst_QMdiArea
  • tst_QMenu
  • tst_QObject
  • tst_QToolButton
41
2418-
2419 if (d->declarativeData && QAbstractDeclarativeData::receivers) {
d->declarativeDataDescription
TRUEnever evaluated
FALSEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
QAbstractDecla...ata::receiversDescription
TRUEnever evaluated
FALSEnever evaluated
0-13
2420 receivers += QAbstractDeclarativeData::receivers(d->declarativeData, this,-
2421 signal_index);-
2422 }
never executed: end of block
0
2423-
2424 QMutexLocker locker(signalSlotLock(this));-
2425 if (d->connectionLists) {
d->connectionListsDescription
TRUEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
FALSEnever evaluated
0-13
2426 if (signal_index < d->connectionLists->count()) {
signal_index <...Lists->count()Description
TRUEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
FALSEnever evaluated
0-13
2427 const QObjectPrivate::Connection *c =-
2428 d->connectionLists->at(signal_index).first;-
2429 while (c) {
cDescription
TRUEevaluated 15 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
FALSEevaluated 13 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
13-15
2430 receivers += c->receiver ? 1 : 0;
c->receiverDescription
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QMdiArea
  • tst_QObject
6-9
2431 c = c->nextConnectionList;-
2432 }
executed 15 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
15
2433 }
executed 13 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
13
2434 }
executed 13 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
13
2435 }
executed 13 times by 3 tests: end of block
Executed by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
13
2436 return receivers;
executed 13 times by 3 tests: return receivers;
Executed by:
  • tst_QGraphicsSceneIndex
  • tst_QMdiArea
  • tst_QObject
13
2437}-
2438-
2439/*!-
2440 \since 5.0-
2441 Returns \c true if the \a signal is connected to at least one receiver,-
2442 otherwise returns \c false.-
2443-
2444 \a signal must be a signal member of this object, otherwise the behaviour-
2445 is undefined.-
2446-
2447 \snippet code/src_corelib_kernel_qobject.cpp 49-
2448-
2449 As the code snippet above illustrates, you can use this function-
2450 to avoid emitting a signal that nobody listens to.-
2451-
2452 \warning This function violates the object-oriented principle of-
2453 modularity. However, it might be useful when you need to perform-
2454 expensive initialization only if something is connected to a-
2455 signal.-
2456*/-
2457bool QObject::isSignalConnected(const QMetaMethod &signal) const-
2458{-
2459 Q_D(const QObject);-
2460 if (!signal.mobj)
!signal.mobjDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 54 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QObject
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusinterface - unknown status
1-54
2461 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QObject
1
2462-
2463 Q_ASSERT_X(signal.mobj->cast(this) && signal.methodType() == QMetaMethod::Signal,-
2464 "QObject::isSignalConnected" , "the parameter must be a signal member of the object");-
2465 uint signalIndex = (signal.handle - QMetaObjectPrivate::get(signal.mobj)->methodData)/5;-
2466-
2467 if (signal.mobj->d.data[signal.handle + 4] & MethodCloned)
signal.mobj->d...& MethodClonedDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 51 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QObject
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusinterface - unknown status
3-51
2468 signalIndex = QMetaObjectPrivate::originalClone(signal.mobj, signalIndex);
executed 3 times by 1 test: signalIndex = QMetaObjectPrivate::originalClone(signal.mobj, signalIndex);
Executed by:
  • tst_QObject
3
2469-
2470 signalIndex += QMetaObjectPrivate::signalOffset(signal.mobj);-
2471-
2472 if (signalIndex < sizeof(d->connectedSignals) * 8)
signalIndex < ...edSignals) * 8Description
TRUEevaluated 50 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QObject
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusinterface - unknown status
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
4-50
2473 return d->isSignalConnected(signalIndex);
executed 50 times by 6 tests: return d->isSignalConnected(signalIndex);
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QObject
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusinterface - unknown status
50
2474-
2475 QMutexLocker locker(signalSlotLock(this));-
2476 if (d->connectionLists) {
d->connectionListsDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1-3
2477 if (signalIndex < uint(d->connectionLists->count())) {
signalIndex < ...ists->count())Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-3
2478 const QObjectPrivate::Connection *c =-
2479 d->connectionLists->at(signalIndex).first;-
2480 while (c) {
cDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-3
2481 if (c->receiver)
c->receiverDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-3
2482 return true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QObject
3
2483 c = c->nextConnectionList;-
2484 }
never executed: end of block
0
2485 }
never executed: end of block
0
2486 }
never executed: end of block
0
2487 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QObject
1
2488}-
2489-
2490/*!-
2491 \internal-
2492-
2493 This helper function calculates signal and method index for the given-
2494 member in the specified class.-
2495-
2496 \list-
2497 \li If member.mobj is 0 then both signalIndex and methodIndex are set to -1.-
2498-
2499 \li If specified member is not a member of obj instance class (or one of-
2500 its parent classes) then both signalIndex and methodIndex are set to -1.-
2501 \endlist-
2502-
2503 This function is used by QObject::connect and QObject::disconnect which-
2504 are working with QMetaMethod.-
2505-
2506 \a signalIndex is set to the signal index of member. If the member-
2507 specified is not signal this variable is set to -1.-
2508-
2509 \a methodIndex is set to the method index of the member. If the-
2510 member is not a method of the object specified by the \a obj argument this-
2511 variable is set to -1.-
2512*/-
2513void QMetaObjectPrivate::memberIndexes(const QObject *obj,-
2514 const QMetaMethod &member,-
2515 int *signalIndex, int *methodIndex)-
2516{-
2517 *signalIndex = -1;-
2518 *methodIndex = -1;-
2519 if (!obj || !member.mobj)
!objDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 80 times by 1 test
Evaluated by:
  • tst_QObject
!member.mobjDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 71 times by 1 test
Evaluated by:
  • tst_QObject
8-80
2520 return;
executed 17 times by 1 test: return;
Executed by:
  • tst_QObject
17
2521 const QMetaObject *m = obj->metaObject();-
2522 // Check that member is member of obj class-
2523 while (m != 0 && m != member.mobj)
m != 0Description
TRUEevaluated 73 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
m != member.mobjDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 71 times by 1 test
Evaluated by:
  • tst_QObject
0-73
2524 m = m->d.superdata;
executed 2 times by 1 test: m = m->d.superdata;
Executed by:
  • tst_QObject
2
2525 if (!m)
!mDescription
TRUEnever evaluated
FALSEevaluated 71 times by 1 test
Evaluated by:
  • tst_QObject
0-71
2526 return;
never executed: return;
0
2527 *signalIndex = *methodIndex = (member.handle - get(member.mobj)->methodData)/5;-
2528-
2529 int signalOffset;-
2530 int methodOffset;-
2531 computeOffsets(m, &signalOffset, &methodOffset);-
2532-
2533 *methodIndex += methodOffset;-
2534 if (member.methodType() == QMetaMethod::Signal) {
member.methodT...Method::SignalDescription
TRUEevaluated 36 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 35 times by 1 test
Evaluated by:
  • tst_QObject
35-36
2535 *signalIndex = originalClone(m, *signalIndex);-
2536 *signalIndex += signalOffset;-
2537 } else {
executed 36 times by 1 test: end of block
Executed by:
  • tst_QObject
36
2538 *signalIndex = -1;-
2539 }
executed 35 times by 1 test: end of block
Executed by:
  • tst_QObject
35
2540}-
2541-
2542#ifndef QT_NO_DEBUG-
2543static inline void check_and_warn_compat(const QMetaObject *sender, const QMetaMethod &signal,-
2544 const QMetaObject *receiver, const QMetaMethod &method)-
2545{-
2546 if (signal.attributes() & QMetaMethod::Compatibility) {
signal.attribu...:CompatibilityDescription
TRUEnever evaluated
FALSEevaluated 521968 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521968
2547 if (!(method.attributes() & QMetaMethod::Compatibility))
!(method.attri...Compatibility)Description
TRUEnever evaluated
FALSEnever evaluated
0
2548 qWarning("QObject::connect: Connecting from COMPAT signal (%s::%s)",
never executed: QMessageLogger(__FILE__, 2548, __PRETTY_FUNCTION__).warning("QObject::connect: Connecting from COMPAT signal (%s::%s)", sender->className(), signal.methodSignature().constData());
0
2549 sender->className(), signal.methodSignature().constData());
never executed: QMessageLogger(__FILE__, 2548, __PRETTY_FUNCTION__).warning("QObject::connect: Connecting from COMPAT signal (%s::%s)", sender->className(), signal.methodSignature().constData());
0
2550 } else if ((method.attributes() & QMetaMethod::Compatibility) &&
never executed: end of block
(method.attrib...Compatibility)Description
TRUEnever evaluated
FALSEevaluated 521968 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521968
2551 method.methodType() == QMetaMethod::Signal) {
method.methodT...Method::SignalDescription
TRUEnever evaluated
FALSEnever evaluated
0
2552 qWarning("QObject::connect: Connecting from %s::%s to COMPAT slot (%s::%s)",-
2553 sender->className(), signal.methodSignature().constData(),-
2554 receiver->className(), method.methodSignature().constData());-
2555 }
never executed: end of block
0
2556}
executed 521968 times by 264 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
521968
2557#endif-
2558-
2559/*!-
2560 \threadsafe-
2561-
2562 Creates a connection of the given \a type from the \a signal in-
2563 the \a sender object to the \a method in the \a receiver object.-
2564 Returns a handle to the connection that can be used to disconnect-
2565 it later.-
2566-
2567 You must use the \c SIGNAL() and \c SLOT() macros when specifying-
2568 the \a signal and the \a method, for example:-
2569-
2570 \snippet code/src_corelib_kernel_qobject.cpp 22-
2571-
2572 This example ensures that the label always displays the current-
2573 scroll bar value. Note that the signal and slots parameters must not-
2574 contain any variable names, only the type. E.g. the following would-
2575 not work and return false:-
2576-
2577 \snippet code/src_corelib_kernel_qobject.cpp 23-
2578-
2579 A signal can also be connected to another signal:-
2580-
2581 \snippet code/src_corelib_kernel_qobject.cpp 24-
2582-
2583 In this example, the \c MyWidget constructor relays a signal from-
2584 a private member variable, and makes it available under a name-
2585 that relates to \c MyWidget.-
2586-
2587 A signal can be connected to many slots and signals. Many signals-
2588 can be connected to one slot.-
2589-
2590 If a signal is connected to several slots, the slots are activated-
2591 in the same order in which the connections were made, when the-
2592 signal is emitted.-
2593-
2594 The function returns a QMetaObject::Connection that represents-
2595 a handle to a connection if it successfully-
2596 connects the signal to the slot. The connection handle will be invalid-
2597 if it cannot create the connection, for example, if QObject is unable-
2598 to verify the existence of either \a signal or \a method, or if their-
2599 signatures aren't compatible.-
2600 You can check if the handle is valid by casting it to a bool.-
2601-
2602 By default, a signal is emitted for every connection you make;-
2603 two signals are emitted for duplicate connections. You can break-
2604 all of these connections with a single disconnect() call.-
2605 If you pass the Qt::UniqueConnection \a type, the connection will only-
2606 be made if it is not a duplicate. If there is already a duplicate-
2607 (exact same signal to the exact same slot on the same objects),-
2608 the connection will fail and connect will return an invalid QMetaObject::Connection.-
2609-
2610 The optional \a type parameter describes the type of connection-
2611 to establish. In particular, it determines whether a particular-
2612 signal is delivered to a slot immediately or queued for delivery-
2613 at a later time. If the signal is queued, the parameters must be-
2614 of types that are known to Qt's meta-object system, because Qt-
2615 needs to copy the arguments to store them in an event behind the-
2616 scenes. If you try to use a queued connection and get the error-
2617 message-
2618-
2619 \snippet code/src_corelib_kernel_qobject.cpp 25-
2620-
2621 call qRegisterMetaType() to register the data type before you-
2622 establish the connection.-
2623-
2624 \sa disconnect(), sender(), qRegisterMetaType(), Q_DECLARE_METATYPE()-
2625*/-
2626QMetaObject::Connection QObject::connect(const QObject *sender, const char *signal,-
2627 const QObject *receiver, const char *method,-
2628 Qt::ConnectionType type)-
2629{-
2630 if (sender == 0 || receiver == 0 || signal == 0 || method == 0) {
sender == 0Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
receiver == 0Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
signal == 0Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
method == 0Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521946
2631 qWarning("QObject::connect: Cannot connect %s::%s to %s::%s",-
2632 sender ? sender->metaObject()->className() : "(null)",-
2633 (signal && *signal) ? signal+1 : "(null)",-
2634 receiver ? receiver->metaObject()->className() : "(null)",-
2635 (method && *method) ? method+1 : "(null)");-
2636 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2637 }-
2638 QByteArray tmp_signal_name;-
2639-
2640 if (!check_signal_macro(sender, signal, "connect", "bind"))
!check_signal_...nect", "bind")Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521946
2641 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2642 const QMetaObject *smeta = sender->metaObject();-
2643 const char *signal_arg = signal;-
2644 ++signal; //skip code-
2645 QArgumentTypeArray signalTypes;-
2646 Q_ASSERT(QMetaObjectPrivate::get(smeta)->revision >= 7);-
2647 QByteArray signalName = QMetaObjectPrivate::decodeMethodSignature(signal, signalTypes);-
2648 int signal_index = QMetaObjectPrivate::indexOfSignalRelative(-
2649 &smeta, signalName, signalTypes.size(), signalTypes.constData());-
2650 if (signal_index < 0) {
signal_index < 0Description
TRUEevaluated 1152 times by 12 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
FALSEevaluated 520794 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
1152-520794
2651 // check for normalized signatures-
2652 tmp_signal_name = QMetaObject::normalizedSignature(signal - 1);-
2653 signal = tmp_signal_name.constData() + 1;-
2654-
2655 signalTypes.clear();-
2656 signalName = QMetaObjectPrivate::decodeMethodSignature(signal, signalTypes);-
2657 smeta = sender->metaObject();-
2658 signal_index = QMetaObjectPrivate::indexOfSignalRelative(-
2659 &smeta, signalName, signalTypes.size(), signalTypes.constData());-
2660 }
executed 1152 times by 12 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
1152
2661 if (signal_index < 0) {
signal_index < 0Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521946
2662 err_method_notfound(sender, signal_arg, "connect");-
2663 err_info_about_objects("connect", sender, receiver);-
2664 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2665 }-
2666 signal_index = QMetaObjectPrivate::originalClone(smeta, signal_index);-
2667 signal_index += QMetaObjectPrivate::signalOffset(smeta);-
2668-
2669 QByteArray tmp_method_name;-
2670 int membcode = extract_code(method);-
2671-
2672 if (!check_method_code(membcode, receiver, method, "connect"))
!check_method_...od, "connect")Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521946
2673 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2674 const char *method_arg = method;-
2675 ++method; // skip code-
2676-
2677 QArgumentTypeArray methodTypes;-
2678 QByteArray methodName = QMetaObjectPrivate::decodeMethodSignature(method, methodTypes);-
2679 const QMetaObject *rmeta = receiver->metaObject();-
2680 int method_index_relative = -1;-
2681 Q_ASSERT(QMetaObjectPrivate::get(rmeta)->revision >= 7);-
2682 switch (membcode) {-
2683 case QSLOT_CODE:
executed 496797 times by 261 tests: case 1:
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
496797
2684 method_index_relative = QMetaObjectPrivate::indexOfSlotRelative(-
2685 &rmeta, methodName, methodTypes.size(), methodTypes.constData());-
2686 break;
executed 496797 times by 261 tests: break;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
496797
2687 case QSIGNAL_CODE:
executed 25149 times by 177 tests: case 2:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
25149
2688 method_index_relative = QMetaObjectPrivate::indexOfSignalRelative(-
2689 &rmeta, methodName, methodTypes.size(), methodTypes.constData());-
2690 break;
executed 25149 times by 177 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
25149
2691 }-
2692 if (method_index_relative < 0) {
method_index_relative < 0Description
TRUEevaluated 991 times by 13 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTextDocument
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
FALSEevaluated 520955 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
991-520955
2693 // check for normalized methods-
2694 tmp_method_name = QMetaObject::normalizedSignature(method);-
2695 method = tmp_method_name.constData();-
2696-
2697 methodTypes.clear();-
2698 methodName = QMetaObjectPrivate::decodeMethodSignature(method, methodTypes);-
2699 // rmeta may have been modified above-
2700 rmeta = receiver->metaObject();-
2701 switch (membcode) {-
2702 case QSLOT_CODE:
executed 991 times by 13 tests: case 1:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTextDocument
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
991
2703 method_index_relative = QMetaObjectPrivate::indexOfSlotRelative(-
2704 &rmeta, methodName, methodTypes.size(), methodTypes.constData());-
2705 break;
executed 991 times by 13 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTextDocument
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
991
2706 case QSIGNAL_CODE:
never executed: case 2:
0
2707 method_index_relative = QMetaObjectPrivate::indexOfSignalRelative(-
2708 &rmeta, methodName, methodTypes.size(), methodTypes.constData());-
2709 break;
never executed: break;
0
2710 }-
2711 }
executed 991 times by 13 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTextDocument
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
991
2712-
2713 if (method_index_relative < 0) {
method_index_relative < 0Description
TRUEnever evaluated
FALSEevaluated 521946 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-521946
2714 err_method_notfound(receiver, method_arg, "connect");-
2715 err_info_about_objects("connect", sender, receiver);-
2716 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2717 }-
2718-
2719 if (!QMetaObjectPrivate::checkConnectArgs(signalTypes.size(), signalTypes.constData(),
!QMetaObjectPr...s.constData())Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 521945 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
1-521945
2720 methodTypes.size(), methodTypes.constData())) {
!QMetaObjectPr...s.constData())Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 521945 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
1-521945
2721 qWarning("QObject::connect: Incompatible sender/receiver arguments"-
2722 "\n %s::%s --> %s::%s",-
2723 sender->metaObject()->className(), signal,-
2724 receiver->metaObject()->className(), method);-
2725 return QMetaObject::Connection(0);
executed 1 time by 1 test: return QMetaObject::Connection(0);
Executed by:
  • tst_QObject
1
2726 }-
2727-
2728 int *types = 0;-
2729 if ((type == Qt::QueuedConnection)
(type == Qt::QueuedConnection)Description
TRUEevaluated 32425 times by 184 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 489520 times by 263 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
32425-489520
2730 && !(types = queuedConnectionTypes(signalTypes.constData(), signalTypes.size()))) {
!(types = queu...Types.size()))Description
TRUEnever evaluated
FALSEevaluated 32425 times by 184 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_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
0-32425
2731 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2732 }-
2733-
2734#ifndef QT_NO_DEBUG-
2735 QMetaMethod smethod = QMetaObjectPrivate::signal(smeta, signal_index);-
2736 QMetaMethod rmethod = rmeta->method(method_index_relative + rmeta->methodOffset());-
2737 check_and_warn_compat(smeta, smethod, rmeta, rmethod);-
2738#endif-
2739 QMetaObject::Connection handle = QMetaObject::Connection(QMetaObjectPrivate::connect(-
2740 sender, signal_index, smeta, receiver, method_index_relative, rmeta ,type, types));-
2741 return handle;
executed 521945 times by 264 tests: return handle;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
521945
2742}-
2743-
2744/*!-
2745 \since 4.8-
2746-
2747 Creates a connection of the given \a type from the \a signal in-
2748 the \a sender object to the \a method in the \a receiver object.-
2749 Returns a handle to the connection that can be used to disconnect-
2750 it later.-
2751-
2752 The Connection handle will be invalid if it cannot create the-
2753 connection, for example, the parameters were invalid.-
2754 You can check if the QMetaObject::Connection is valid by casting it to a bool.-
2755-
2756 This function works in the same way as-
2757 \c {connect(const QObject *sender, const char *signal,-
2758 const QObject *receiver, const char *method,-
2759 Qt::ConnectionType type)}-
2760 but it uses QMetaMethod to specify signal and method.-
2761-
2762 \sa connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)-
2763 */-
2764QMetaObject::Connection QObject::connect(const QObject *sender, const QMetaMethod &signal,-
2765 const QObject *receiver, const QMetaMethod &method,-
2766 Qt::ConnectionType type)-
2767{-
2768 if (sender == 0
sender == 0Description
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QObject
0-27
2769 || receiver == 0
receiver == 0Description
TRUEnever evaluated
FALSEevaluated 27 times by 1 test
Evaluated by:
  • tst_QObject
0-27
2770 || signal.methodType() != QMetaMethod::Signal
signal.methodT...Method::SignalDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QObject
3-24
2771 || method.methodType() == QMetaMethod::Constructor) {
method.methodT...d::ConstructorDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
1-23
2772 qWarning("QObject::connect: Cannot connect %s::%s to %s::%s",-
2773 sender ? sender->metaObject()->className() : "(null)",-
2774 signal.methodSignature().constData(),-
2775 receiver ? receiver->metaObject()->className() : "(null)",-
2776 method.methodSignature().constData() );-
2777 return QMetaObject::Connection(0);
executed 4 times by 1 test: return QMetaObject::Connection(0);
Executed by:
  • tst_QObject
4
2778 }-
2779-
2780 int signal_index;-
2781 int method_index;-
2782 {-
2783 int dummy;-
2784 QMetaObjectPrivate::memberIndexes(sender, signal, &signal_index, &dummy);-
2785 QMetaObjectPrivate::memberIndexes(receiver, method, &dummy, &method_index);-
2786 }-
2787-
2788 const QMetaObject *smeta = sender->metaObject();-
2789 const QMetaObject *rmeta = receiver->metaObject();-
2790 if (signal_index == -1) {
signal_index == -1Description
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
0-23
2791 qWarning("QObject::connect: Can't find signal %s on instance of class %s",-
2792 signal.methodSignature().constData(), smeta->className());-
2793 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2794 }-
2795 if (method_index == -1) {
method_index == -1Description
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
0-23
2796 qWarning("QObject::connect: Can't find method %s on instance of class %s",-
2797 method.methodSignature().constData(), rmeta->className());-
2798 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2799 }-
2800-
2801 if (!QMetaObject::checkConnectArgs(signal.methodSignature().constData(), method.methodSignature().constData())) {
!QMetaObject::...).constData())Description
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
0-23
2802 qWarning("QObject::connect: Incompatible sender/receiver arguments"-
2803 "\n %s::%s --> %s::%s",-
2804 smeta->className(), signal.methodSignature().constData(),-
2805 rmeta->className(), method.methodSignature().constData());-
2806 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2807 }-
2808-
2809 int *types = 0;-
2810 if ((type == Qt::QueuedConnection)
(type == Qt::QueuedConnection)Description
TRUEnever evaluated
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
0-23
2811 && !(types = queuedConnectionTypes(signal.parameterTypes())))
!(types = queu...meterTypes()))Description
TRUEnever evaluated
FALSEnever evaluated
0
2812 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
2813-
2814#ifndef QT_NO_DEBUG-
2815 check_and_warn_compat(smeta, signal, rmeta, method);-
2816#endif-
2817 QMetaObject::Connection handle = QMetaObject::Connection(QMetaObjectPrivate::connect(-
2818 sender, signal_index, signal.enclosingMetaObject(), receiver, method_index, 0, type, types));-
2819 return handle;
executed 23 times by 1 test: return handle;
Executed by:
  • tst_QObject
23
2820}-
2821-
2822/*!-
2823 \fn bool QObject::connect(const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const-
2824 \overload connect()-
2825 \threadsafe-
2826-
2827 Connects \a signal from the \a sender object to this object's \a-
2828 method.-
2829-
2830 Equivalent to connect(\a sender, \a signal, \c this, \a method, \a type).-
2831-
2832 Every connection you make emits a signal, so duplicate connections emit-
2833 two signals. You can break a connection using disconnect().-
2834-
2835 \sa disconnect()-
2836*/-
2837-
2838/*!-
2839 \threadsafe-
2840-
2841 Disconnects \a signal in object \a sender from \a method in object-
2842 \a receiver. Returns \c true if the connection is successfully broken;-
2843 otherwise returns \c false.-
2844-
2845 A signal-slot connection is removed when either of the objects-
2846 involved are destroyed.-
2847-
2848 disconnect() is typically used in three ways, as the following-
2849 examples demonstrate.-
2850 \list 1-
2851 \li Disconnect everything connected to an object's signals:-
2852-
2853 \snippet code/src_corelib_kernel_qobject.cpp 26-
2854-
2855 equivalent to the non-static overloaded function-
2856-
2857 \snippet code/src_corelib_kernel_qobject.cpp 27-
2858-
2859 \li Disconnect everything connected to a specific signal:-
2860-
2861 \snippet code/src_corelib_kernel_qobject.cpp 28-
2862-
2863 equivalent to the non-static overloaded function-
2864-
2865 \snippet code/src_corelib_kernel_qobject.cpp 29-
2866-
2867 \li Disconnect a specific receiver:-
2868-
2869 \snippet code/src_corelib_kernel_qobject.cpp 30-
2870-
2871 equivalent to the non-static overloaded function-
2872-
2873 \snippet code/src_corelib_kernel_qobject.cpp 31-
2874-
2875 \endlist-
2876-
2877 0 may be used as a wildcard, meaning "any signal", "any receiving-
2878 object", or "any slot in the receiving object", respectively.-
2879-
2880 The \a sender may never be 0. (You cannot disconnect signals from-
2881 more than one object in a single call.)-
2882-
2883 If \a signal is 0, it disconnects \a receiver and \a method from-
2884 any signal. If not, only the specified signal is disconnected.-
2885-
2886 If \a receiver is 0, it disconnects anything connected to \a-
2887 signal. If not, slots in objects other than \a receiver are not-
2888 disconnected.-
2889-
2890 If \a method is 0, it disconnects anything that is connected to \a-
2891 receiver. If not, only slots named \a method will be disconnected,-
2892 and all other slots are left alone. The \a method must be 0 if \a-
2893 receiver is left out, so you cannot disconnect a-
2894 specifically-named slot on all objects.-
2895-
2896 \sa connect()-
2897*/-
2898bool QObject::disconnect(const QObject *sender, const char *signal,-
2899 const QObject *receiver, const char *method)-
2900{-
2901 if (sender == 0 || (receiver == 0 && method != 0)) {
sender == 0Description
TRUEnever evaluated
FALSEevaluated 41943 times by 333 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
receiver == 0Description
TRUEevaluated 11699 times by 57 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
FALSEevaluated 30244 times by 301 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
method != 0Description
TRUEnever evaluated
FALSEevaluated 11699 times by 57 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • ...
0-41943
2902 qWarning("QObject::disconnect: Unexpected null parameter");-
2903 return false;
never executed: return false;
0
2904 }-
2905-
2906 const char *signal_arg = signal;-
2907 QByteArray signal_name;-
2908 bool signal_found = false;-
2909 if (signal) {
signalDescription
TRUEevaluated 28481 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 13462 times by 268 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
13462-28481
2910 QT_TRY {-
2911 signal_name = QMetaObject::normalizedSignature(signal);-
2912 signal = signal_name.constData();-
2913 } QT_CATCH (const std::bad_alloc &) {
executed 28481 times by 108 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
28481
2914 // if the signal is already normalized, we can continue.-
2915 if (sender->metaObject()->indexOfSignal(signal + 1) == -1)
sender->metaOb...nal + 1) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
2916 QT_RETHROW;
never executed: throw;
0
2917 }
never executed: end of block
0
2918-
2919 if (!check_signal_macro(sender, signal, "disconnect", "unbind"))
!check_signal_...ct", "unbind")Description
TRUEnever evaluated
FALSEevaluated 28481 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
0-28481
2920 return false;
never executed: return false;
0
2921 signal++; // skip code-
2922 }
executed 28481 times by 108 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
28481
2923-
2924 QByteArray method_name;-
2925 const char *method_arg = method;-
2926 int membcode = -1;-
2927 bool method_found = false;-
2928 if (method) {
methodDescription
TRUEevaluated 26696 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 15247 times by 265 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
15247-26696
2929 QT_TRY {-
2930 method_name = QMetaObject::normalizedSignature(method);-
2931 method = method_name.constData();-
2932 } QT_CATCH(const std::bad_alloc &) {
executed 26696 times by 110 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26696
2933 // if the method is already normalized, we can continue.-
2934 if (receiver->metaObject()->indexOfMethod(method + 1) == -1)
receiver->meta...hod + 1) == -1Description
TRUEnever evaluated
FALSEnever evaluated
0
2935 QT_RETHROW;
never executed: throw;
0
2936 }
never executed: end of block
0
2937-
2938 membcode = extract_code(method);-
2939 if (!check_method_code(membcode, receiver, method, "disconnect"))
!check_method_... "disconnect")Description
TRUEnever evaluated
FALSEevaluated 26696 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-26696
2940 return false;
never executed: return false;
0
2941 method++; // skip code-
2942 }
executed 26696 times by 110 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26696
2943-
2944 /* We now iterate through all the sender's and receiver's meta-
2945 * objects in order to also disconnect possibly shadowed signals-
2946 * and slots with the same signature.-
2947 */-
2948 bool res = false;-
2949 const QMetaObject *smeta = sender->metaObject();-
2950 QByteArray signalName;-
2951 QArgumentTypeArray signalTypes;-
2952 Q_ASSERT(QMetaObjectPrivate::get(smeta)->revision >= 7);-
2953 if (signal)
signalDescription
TRUEevaluated 28481 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 13462 times by 268 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
13462-28481
2954 signalName = QMetaObjectPrivate::decodeMethodSignature(signal, signalTypes);
executed 28481 times by 108 tests: signalName = QMetaObjectPrivate::decodeMethodSignature(signal, signalTypes);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
28481
2955 QByteArray methodName;-
2956 QArgumentTypeArray methodTypes;-
2957 Q_ASSERT(!receiver || QMetaObjectPrivate::get(receiver->metaObject())->revision >= 7);-
2958 if (method)
methodDescription
TRUEevaluated 26696 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 15247 times by 265 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
15247-26696
2959 methodName = QMetaObjectPrivate::decodeMethodSignature(method, methodTypes);
executed 26696 times by 110 tests: methodName = QMetaObjectPrivate::decodeMethodSignature(method, methodTypes);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26696
2960 do {-
2961 int signal_index = -1;-
2962 if (signal) {
signalDescription
TRUEevaluated 54115 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 13462 times by 268 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
13462-54115
2963 signal_index = QMetaObjectPrivate::indexOfSignalRelative(-
2964 &smeta, signalName, signalTypes.size(), signalTypes.constData());-
2965 if (signal_index < 0)
signal_index < 0Description
TRUEevaluated 25633 times by 102 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
FALSEevaluated 28482 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
25633-28482
2966 break;
executed 25633 times by 102 tests: break;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
25633
2967 signal_index = QMetaObjectPrivate::originalClone(smeta, signal_index);-
2968 signal_index += QMetaObjectPrivate::signalOffset(smeta);-
2969 signal_found = true;-
2970 }
executed 28482 times by 108 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
28482
2971-
2972 if (!method) {
!methodDescription
TRUEevaluated 15247 times by 265 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
FALSEevaluated 26697 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
15247-26697
2973 res |= QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, -1, 0);-
2974 } else {
executed 15247 times by 265 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
15247
2975 const QMetaObject *rmeta = receiver->metaObject();-
2976 do {-
2977 int method_index = QMetaObjectPrivate::indexOfMethod(-
2978 rmeta, methodName, methodTypes.size(), methodTypes.constData());-
2979 if (method_index >= 0)
method_index >= 0Description
TRUEevaluated 27254 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 26690 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26690-27254
2980 while (method_index < rmeta->methodOffset())
method_index <...methodOffset()Description
TRUEevaluated 14149 times by 74 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
FALSEevaluated 27254 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
14149-27254
2981 rmeta = rmeta->superClass();
executed 14149 times by 74 tests: rmeta = rmeta->superClass();
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • ...
14149
2982 if (method_index < 0)
method_index < 0Description
TRUEevaluated 26690 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 27254 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26690-27254
2983 break;
executed 26690 times by 110 tests: break;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26690
2984 res |= QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, method_index, 0);-
2985 method_found = true;-
2986 } while ((rmeta = rmeta->superClass()));
executed 27254 times by 110 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
(rmeta = rmeta->superClass())Description
TRUEevaluated 27247 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QObject
7-27254
2987 }
executed 26697 times by 110 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
26697
2988 } while (signal && (smeta = smeta->superClass()));
signalDescription
TRUEevaluated 28482 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 13462 times by 268 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
(smeta = smeta->superClass())Description
TRUEevaluated 25634 times by 102 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
FALSEevaluated 2848 times by 51 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGridLayout
  • tst_QHeaderView
  • tst_QIdentityProxyModel
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
2848-28482
2989-
2990 if (signal && !signal_found) {
signalDescription
TRUEevaluated 28481 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 13462 times by 268 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • ...
!signal_foundDescription
TRUEnever evaluated
FALSEevaluated 28481 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
0-28481
2991 err_method_notfound(sender, signal_arg, "disconnect");-
2992 err_info_about_objects("disconnect", sender, receiver);-
2993 } else if (method && !method_found) {
never executed: end of block
methodDescription
TRUEevaluated 26696 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 15247 times by 265 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • ...
!method_foundDescription
TRUEnever evaluated
FALSEevaluated 26696 times by 110 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
0-26696
2994 err_method_notfound(receiver, method_arg, "disconnect");-
2995 err_info_about_objects("disconnect", sender, receiver);-
2996 }
never executed: end of block
0
2997 if (res) {
resDescription
TRUEevaluated 22533 times by 301 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 19410 times by 111 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • ...
19410-22533
2998 if (!signal)
!signalDescription
TRUEevaluated 3301 times by 228 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QFutureWatcher
  • ...
FALSEevaluated 19232 times by 108 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
3301-19232
2999 const_cast<QObject*>(sender)->disconnectNotify(QMetaMethod());
executed 3301 times by 228 tests: const_cast<QObject*>(sender)->disconnectNotify(QMetaMethod());
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QFutureWatcher
  • ...
3301
3000 }
executed 22533 times by 301 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
22533
3001 return res;
executed 41943 times by 333 tests: return res;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
41943
3002}-
3003-
3004/*!-
3005 \since 4.8-
3006-
3007 Disconnects \a signal in object \a sender from \a method in object-
3008 \a receiver. Returns \c true if the connection is successfully broken;-
3009 otherwise returns \c false.-
3010-
3011 This function provides the same possibilities like-
3012 \c {disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method) }-
3013 but uses QMetaMethod to represent the signal and the method to be disconnected.-
3014-
3015 Additionally this function returnsfalse and no signals and slots disconnected-
3016 if:-
3017 \list 1-
3018-
3019 \li \a signal is not a member of sender class or one of its parent classes.-
3020-
3021 \li \a method is not a member of receiver class or one of its parent classes.-
3022-
3023 \li \a signal instance represents not a signal.-
3024-
3025 \endlist-
3026-
3027 QMetaMethod() may be used as wildcard in the meaning "any signal" or "any slot in receiving object".-
3028 In the same way 0 can be used for \a receiver in the meaning "any receiving object". In this case-
3029 method should also be QMetaMethod(). \a sender parameter should be never 0.-
3030-
3031 \sa disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)-
3032 */-
3033bool QObject::disconnect(const QObject *sender, const QMetaMethod &signal,-
3034 const QObject *receiver, const QMetaMethod &method)-
3035{-
3036 if (sender == 0 || (receiver == 0 && method.mobj != 0)) {
sender == 0Description
TRUEnever evaluated
FALSEevaluated 22 times by 1 test
Evaluated by:
  • tst_QObject
receiver == 0Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QObject
method.mobj != 0Description
TRUEnever evaluated
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
0-22
3037 qWarning("QObject::disconnect: Unexpected null parameter");-
3038 return false;
never executed: return false;
0
3039 }-
3040 if (signal.mobj) {
signal.mobjDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
8-14
3041 if(signal.methodType() != QMetaMethod::Signal) {
signal.methodT...Method::SignalDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QObject
1-13
3042 qWarning("QObject::%s: Attempt to %s non-signal %s::%s",-
3043 "disconnect","unbind",-
3044 sender->metaObject()->className(), signal.methodSignature().constData());-
3045 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QObject
1
3046 }-
3047 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_QObject
13
3048 if (method.mobj) {
method.mobjDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QObject
9-12
3049 if(method.methodType() == QMetaMethod::Constructor) {
method.methodT...d::ConstructorDescription
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
0-12
3050 qWarning("QObject::disconect: cannot use constructor as argument %s::%s",-
3051 receiver->metaObject()->className(), method.methodSignature().constData());-
3052 return false;
never executed: return false;
0
3053 }-
3054 }
executed 12 times by 1 test: end of block
Executed by:
  • tst_QObject
12
3055-
3056 // Reconstructing SIGNAL() macro result for signal.methodSignature() string-
3057 QByteArray signalSignature;-
3058 if (signal.mobj) {
signal.mobjDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
8-13
3059 signalSignature.reserve(signal.methodSignature().size()+1);-
3060 signalSignature.append((char)(QSIGNAL_CODE + '0'));-
3061 signalSignature.append(signal.methodSignature());-
3062 }
executed 13 times by 1 test: end of block
Executed by:
  • tst_QObject
13
3063-
3064 int signal_index;-
3065 int method_index;-
3066 {-
3067 int dummy;-
3068 QMetaObjectPrivate::memberIndexes(sender, signal, &signal_index, &dummy);-
3069 QMetaObjectPrivate::memberIndexes(receiver, method, &dummy, &method_index);-
3070 }-
3071 // If we are here sender is not null. If signal is not null while signal_index-
3072 // is -1 then this signal is not a member of sender.-
3073 if (signal.mobj && signal_index == -1) {
signal.mobjDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
signal_index == -1Description
TRUEnever evaluated
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QObject
0-13
3074 qWarning("QObject::disconect: signal %s not found on class %s",-
3075 signal.methodSignature().constData(), sender->metaObject()->className());-
3076 return false;
never executed: return false;
0
3077 }-
3078 // If this condition is true then method is not a member of receeiver.-
3079 if (receiver && method.mobj && method_index == -1) {
receiverDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
method.mobjDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
method_index == -1Description
TRUEnever evaluated
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
0-13
3080 qWarning("QObject::disconect: method %s not found on class %s",-
3081 method.methodSignature().constData(), receiver->metaObject()->className());-
3082 return false;
never executed: return false;
0
3083 }-
3084-
3085 if (!QMetaObjectPrivate::disconnect(sender, signal_index, signal.mobj, receiver, method_index, 0))
!QMetaObjectPr...thod_index, 0)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QObject
1-20
3086 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QObject
1
3087-
3088 if (!signal.isValid()) {
!signal.isValid()Description
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
8-12
3089 // The signal is a wildcard, meaning all signals were disconnected.-
3090 // QMetaObjectPrivate::disconnect() doesn't call disconnectNotify()-
3091 // per connection in this case. Call it once now, with an invalid-
3092 // QMetaMethod as argument, as documented.-
3093 const_cast<QObject*>(sender)->disconnectNotify(signal);-
3094 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QObject
8
3095 return true;
executed 20 times by 1 test: return true;
Executed by:
  • tst_QObject
20
3096}-
3097-
3098/*!-
3099 \threadsafe-
3100-
3101 \fn bool QObject::disconnect(const char *signal, const QObject *receiver, const char *method) const-
3102 \overload disconnect()-
3103-
3104 Disconnects \a signal from \a method of \a receiver.-
3105-
3106 A signal-slot connection is removed when either of the objects-
3107 involved are destroyed.-
3108*/-
3109-
3110/*!-
3111 \fn bool QObject::disconnect(const QObject *receiver, const char *method) const-
3112 \overload disconnect()-
3113-
3114 Disconnects all signals in this object from \a receiver's \a-
3115 method.-
3116-
3117 A signal-slot connection is removed when either of the objects-
3118 involved are destroyed.-
3119*/-
3120-
3121-
3122/*!-
3123 \since 5.0-
3124-
3125 This virtual function is called when something has been connected-
3126 to \a signal in this object.-
3127-
3128 If you want to compare \a signal with a specific signal, you can-
3129 use QMetaMethod::fromSignal() as follows:-
3130-
3131 \snippet code/src_corelib_kernel_qobject.cpp 32-
3132-
3133 \warning This function violates the object-oriented principle of-
3134 modularity. However, it might be useful when you need to perform-
3135 expensive initialization only if something is connected to a-
3136 signal.-
3137-
3138 \warning This function is called from the thread which performs the-
3139 connection, which may be a different thread from the thread in-
3140 which this object lives.-
3141-
3142 \sa connect(), disconnectNotify()-
3143*/-
3144-
3145void QObject::connectNotify(const QMetaMethod &signal)-
3146{-
3147 Q_UNUSED(signal);-
3148}
executed 841154 times by 272 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
841154
3149-
3150/*!-
3151 \since 5.0-
3152-
3153 This virtual function is called when something has been-
3154 disconnected from \a signal in this object.-
3155-
3156 See connectNotify() for an example of how to compare-
3157 \a signal with a specific signal.-
3158-
3159 If all signals were disconnected from this object (e.g., the-
3160 signal argument to disconnect() was 0), disconnectNotify()-
3161 is only called once, and the \a signal will be an invalid-
3162 QMetaMethod (QMetaMethod::isValid() returns \c false).-
3163-
3164 \warning This function violates the object-oriented principle of-
3165 modularity. However, it might be useful for optimizing access to-
3166 expensive resources.-
3167-
3168 \warning This function is called from the thread which performs the-
3169 disconnection, which may be a different thread from the thread in-
3170 which this object lives. This function may also be called with a QObject-
3171 internal mutex locked. It is therefore not allowed to re-enter any-
3172 of any QObject functions from your reimplementation and if you lock-
3173 a mutex in your reimplementation, make sure that you don't call QObject-
3174 functions with that mutex held in other places or it will result in-
3175 a deadlock.-
3176-
3177 \sa disconnect(), connectNotify()-
3178*/-
3179-
3180void QObject::disconnectNotify(const QMetaMethod &signal)-
3181{-
3182 Q_UNUSED(signal);-
3183}
executed 317603 times by 415 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
317603
3184-
3185/*-
3186 \internal-
3187 convert a signal index from the method range to the signal range-
3188 */-
3189static int methodIndexToSignalIndex(const QMetaObject **base, int signal_index)-
3190{-
3191 if (signal_index < 0)
signal_index < 0Description
TRUEevaluated 521 times by 11 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 209688 times by 128 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
521-209688
3192 return signal_index;
executed 521 times by 11 tests: return signal_index;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
521
3193 const QMetaObject *metaObject = *base;-
3194 while (metaObject && metaObject->methodOffset() > signal_index)
metaObjectDescription
TRUEevaluated 418313 times by 128 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEnever evaluated
metaObject->me...> signal_indexDescription
TRUEevaluated 208625 times by 58 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QIdentityProxyModel
  • tst_QIntValidator
  • ...
FALSEevaluated 209688 times by 128 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
0-418313
3195 metaObject = metaObject->superClass();
executed 208625 times by 58 tests: metaObject = metaObject->superClass();
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QIdentityProxyModel
  • tst_QIntValidator
  • ...
208625
3196-
3197 if (metaObject) {
metaObjectDescription
TRUEevaluated 209688 times by 128 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEnever evaluated
0-209688
3198 int signalOffset, methodOffset;-
3199 computeOffsets(metaObject, &signalOffset, &methodOffset);-
3200 if (signal_index < metaObject->methodCount())
signal_index <...>methodCount()Description
TRUEevaluated 209686 times by 128 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
2-209686
3201 signal_index = QMetaObjectPrivate::originalClone(metaObject, signal_index - methodOffset) + signalOffset;
executed 209686 times by 128 tests: signal_index = QMetaObjectPrivate::originalClone(metaObject, signal_index - methodOffset) + signalOffset;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
209686
3202 else-
3203 signal_index = signal_index - methodOffset + signalOffset;
executed 2 times by 1 test: signal_index = signal_index - methodOffset + signalOffset;
Executed by:
  • tst_QObject
2
3204 *base = metaObject;-
3205 }
executed 209688 times by 128 tests: end of block
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
209688
3206 return signal_index;
executed 209688 times by 128 tests: return signal_index;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
209688
3207}-
3208-
3209/*!-
3210 \internal-
3211 \a types is a 0-terminated vector of meta types for queued-
3212 connections.-
3213-
3214 if \a signal_index is -1, then we effectively connect *all* signals-
3215 from the sender to the receiver's slot-
3216 */-
3217QMetaObject::Connection QMetaObject::connect(const QObject *sender, int signal_index,-
3218 const QObject *receiver, int method_index, int type, int *types)-
3219{-
3220 const QMetaObject *smeta = sender->metaObject();-
3221 signal_index = methodIndexToSignalIndex(&smeta, signal_index);-
3222 return Connection(QMetaObjectPrivate::connect(sender, signal_index, smeta,
executed 108772 times by 137 tests: return Connection(QMetaObjectPrivate::connect(sender, signal_index, smeta, receiver, method_index, 0, type, types));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
108772
3223 receiver, method_index,
executed 108772 times by 137 tests: return Connection(QMetaObjectPrivate::connect(sender, signal_index, smeta, receiver, method_index, 0, type, types));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
108772
3224 0, //FIXME, we could speed this connection up by computing the relative index
executed 108772 times by 137 tests: return Connection(QMetaObjectPrivate::connect(sender, signal_index, smeta, receiver, method_index, 0, type, types));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
108772
3225 type, types));
executed 108772 times by 137 tests: return Connection(QMetaObjectPrivate::connect(sender, signal_index, smeta, receiver, method_index, 0, type, types));
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
108772
3226}-
3227-
3228/*!-
3229 \internal-
3230 Same as the QMetaObject::connect, but \a signal_index must be the result of QObjectPrivate::signalIndex-
3231-
3232 method_index is relative to the rmeta metaobject, if rmeta is null, then it is absolute index-
3233-
3234 the QObjectPrivate::Connection* has a refcount of 2, so it must be passed to a QMetaObject::Connection-
3235 */-
3236QObjectPrivate::Connection *QMetaObjectPrivate::connect(const QObject *sender,-
3237 int signal_index, const QMetaObject *smeta,-
3238 const QObject *receiver, int method_index,-
3239 const QMetaObject *rmeta, int type, int *types)-
3240{-
3241 QObject *s = const_cast<QObject *>(sender);-
3242 QObject *r = const_cast<QObject *>(receiver);-
3243-
3244 int method_offset = rmeta ? rmeta->methodOffset() : 0;
rmetaDescription
TRUEevaluated 521945 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 108813 times by 137 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
108813-521945
3245 Q_ASSERT(!rmeta || QMetaObjectPrivate::get(rmeta)->revision >= 6);-
3246 QObjectPrivate::StaticMetaCallFunction callFunction =-
3247 rmeta ? rmeta->d.static_metacall : 0;
rmetaDescription
TRUEevaluated 521945 times by 264 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 108813 times by 137 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
108813-521945
3248-
3249 QOrderedMutexLocker locker(signalSlotLock(sender),-
3250 signalSlotLock(receiver));-
3251-
3252 if (type & Qt::UniqueConnection) {
type & Qt::UniqueConnectionDescription
TRUEevaluated 9960 times by 166 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 620798 times by 275 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
9960-620798
3253 QObjectConnectionListVector *connectionLists = QObjectPrivate::get(s)->connectionLists;-
3254 if (connectionLists && connectionLists->count() > signal_index) {
connectionListsDescription
TRUEevaluated 5492 times by 88 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
FALSEevaluated 4468 times by 161 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
connectionList...> signal_indexDescription
TRUEevaluated 5046 times by 80 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 446 times by 23 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QMainWindow
  • tst_QMenu
  • tst_QObject
  • tst_QPrinter
  • tst_QPushButton
  • tst_QSortFilterProxyModel
  • tst_QTableView
  • tst_QTableWidget
  • tst_QToolBar
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QTreeWidgetItemIterator
  • tst_QWidget
  • tst_QWidget_window
  • tst_languageChange
446-5492
3255 const QObjectPrivate::Connection *c2 =-
3256 (*connectionLists)[signal_index].first;-
3257-
3258 int method_index_absolute = method_index + method_offset;-
3259-
3260 while (c2) {
c2Description
TRUEevaluated 16633 times by 66 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
FALSEevaluated 2937 times by 65 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
2937-16633
3261 if (!c2->isSlotObject && c2->receiver == receiver && c2->method() == method_index_absolute)
!c2->isSlotObjectDescription
TRUEevaluated 16480 times by 66 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • ...
FALSEevaluated 153 times by 5 tests
Evaluated by:
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QStyleSheetStyle
  • tst_QTabBar
c2->receiver == receiverDescription
TRUEevaluated 2111 times by 62 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • ...
FALSEevaluated 14369 times by 18 tests
Evaluated by:
  • tst_QComboBox
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QFontComboBox
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QNetworkSession
  • tst_QObject
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QWidget
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
c2->method() =...index_absoluteDescription
TRUEevaluated 2109 times by 62 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
2-16480
3262 return 0;
executed 2109 times by 62 tests: return 0;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMarshall
  • tst_QDBusServiceWatcher
  • tst_QDateTimeEdit
  • tst_QErrorMessage
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • ...
2109
3263 c2 = c2->nextConnectionList;-
3264 }
executed 14524 times by 19 tests: end of block
Executed by:
  • tst_QComboBox
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QMainWindow
  • tst_QNetworkSession
  • tst_QObject
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QTabBar
  • tst_QTableView
  • tst_QTextEdit
  • tst_QTreeWidget
  • tst_QWidget
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
14524
3265 }
executed 2937 times by 65 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
2937
3266 type &= Qt::UniqueConnection - 1;-
3267 }
executed 7851 times by 166 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
7851
3268-
3269 QScopedPointer<QObjectPrivate::Connection> c(new QObjectPrivate::Connection);-
3270 c->sender = s;-
3271 c->signal_index = signal_index;-
3272 c->receiver = r;-
3273 c->method_relative = method_index;-
3274 c->method_offset = method_offset;-
3275 c->connectionType = type;-
3276 c->isSlotObject = false;-
3277 c->argumentTypes.store(types);-
3278 c->nextConnectionList = 0;-
3279 c->callFunction = callFunction;-
3280-
3281 QObjectPrivate::get(s)->addConnection(signal_index, c.data());-
3282-
3283 locker.unlock();-
3284 QMetaMethod smethod = QMetaObjectPrivate::signal(smeta, signal_index);-
3285 if (smethod.isValid())
smethod.isValid()Description
TRUEevaluated 628287 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
FALSEevaluated 362 times by 11 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
362-628287
3286 s->connectNotify(smethod);
executed 628287 times by 276 tests: s->connectNotify(smethod);
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
628287
3287-
3288 return c.take();
executed 628649 times by 276 tests: return c.take();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
628649
3289}-
3290-
3291/*!-
3292 \internal-
3293 */-
3294bool QMetaObject::disconnect(const QObject *sender, int signal_index,-
3295 const QObject *receiver, int method_index)-
3296{-
3297 const QMetaObject *smeta = sender->metaObject();-
3298 signal_index = methodIndexToSignalIndex(&smeta, signal_index);-
3299 return QMetaObjectPrivate::disconnect(sender, signal_index, smeta,
executed 101429 times by 40 tests: return QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, method_index, 0);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
101429
3300 receiver, method_index, 0);
executed 101429 times by 40 tests: return QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, method_index, 0);
Executed by:
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
101429
3301}-
3302-
3303/*!-
3304 \internal-
3305-
3306Disconnect a single signal connection. If QMetaObject::connect() has been called-
3307multiple times for the same sender, signal_index, receiver and method_index only-
3308one of these connections will be removed.-
3309 */-
3310bool QMetaObject::disconnectOne(const QObject *sender, int signal_index,-
3311 const QObject *receiver, int method_index)-
3312{-
3313 const QMetaObject *smeta = sender->metaObject();-
3314 signal_index = methodIndexToSignalIndex(&smeta, signal_index);-
3315 return QMetaObjectPrivate::disconnect(sender, signal_index, smeta,
executed 6 times by 1 test: return QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, method_index, 0, QMetaObjectPrivate::DisconnectOne);
Executed by:
  • tst_QObject
6
3316 receiver, method_index, 0,
executed 6 times by 1 test: return QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, method_index, 0, QMetaObjectPrivate::DisconnectOne);
Executed by:
  • tst_QObject
6
3317 QMetaObjectPrivate::DisconnectOne);
executed 6 times by 1 test: return QMetaObjectPrivate::disconnect(sender, signal_index, smeta, receiver, method_index, 0, QMetaObjectPrivate::DisconnectOne);
Executed by:
  • tst_QObject
6
3318}-
3319-
3320/*!-
3321 \internal-
3322 Helper function to remove the connection from the senders list and setting the receivers to 0-
3323 */-
3324bool QMetaObjectPrivate::disconnectHelper(QObjectPrivate::Connection *c,-
3325 const QObject *receiver, int method_index, void **slot,-
3326 QMutex *senderMutex, DisconnectType disconnectType)-
3327{-
3328 bool success = false;-
3329 while (c) {
cDescription
TRUEevaluated 183126 times by 305 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 154465 times by 305 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
154465-183126
3330 if (c->receiver
c->receiverDescription
TRUEevaluated 169744 times by 305 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 13382 times by 214 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
13382-169744
3331 && (receiver == 0 || (c->receiver == receiver
receiver == 0Description
TRUEevaluated 127 times by 10 tests
Evaluated by:
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QSocks5SocketEngine
  • tst_QTcpServer
  • tst_QThread
  • tst_Spdy
FALSEevaluated 169617 times by 301 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
c->receiver == receiverDescription
TRUEevaluated 131236 times by 300 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 38381 times by 235 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
127-169617
3332 && (method_index < 0 || (!c->isSlotObject && c->method() == method_index))
method_index < 0Description
TRUEevaluated 8856 times by 226 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 122380 times by 115 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
!c->isSlotObjectDescription
TRUEevaluated 122380 times by 115 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEnever evaluated
c->method() == method_indexDescription
TRUEevaluated 119796 times by 113 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • ...
FALSEevaluated 2584 times by 42 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QListView
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QObject
  • tst_QPlainTextEdit
  • ...
0-122380
3333 && (slot == 0 || (c->isSlotObject && c->slotObj->compare(slot)))))) {
slot == 0Description
TRUEevaluated 128642 times by 299 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QScrollBar
c->isSlotObjectDescription
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QScrollBar
FALSEnever evaluated
c->slotObj->compare(slot)Description
TRUEevaluated 10 times by 3 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QScrollBar
FALSEnever evaluated
0-128642
3334 bool needToUnlock = false;-
3335 QMutex *receiverMutex = 0;-
3336 if (c->receiver) {
c->receiverDescription
TRUEevaluated 128779 times by 303 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEnever evaluated
0-128779
3337 receiverMutex = signalSlotLock(c->receiver);-
3338 // need to relock this receiver and sender in the correct order-
3339 needToUnlock = QOrderedMutexLocker::relock(senderMutex, receiverMutex);-
3340 }
executed 128779 times by 303 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
128779
3341 if (c->receiver) {
c->receiverDescription
TRUEevaluated 128779 times by 303 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEnever evaluated
0-128779
3342 *c->prev = c->next;-
3343 if (c->next)
c->nextDescription
TRUEevaluated 50017 times by 266 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
FALSEevaluated 78762 times by 263 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
50017-78762
3344 c->next->prev = c->prev;
executed 50017 times by 266 tests: c->next->prev = c->prev;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • ...
50017
3345 }
executed 128779 times by 303 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
128779
3346-
3347 if (needToUnlock)
needToUnlockDescription
TRUEevaluated 125441 times by 293 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 3338 times by 200 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMetaObjectBuilder
  • tst_QNetworkConfigurationManager
  • tst_QNetworkProxyFactory
  • ...
3338-125441
3348 receiverMutex->unlock();
executed 125441 times by 293 tests: receiverMutex->unlock();
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
125441
3349-
3350 c->receiver = 0;-
3351-
3352 if (c->isSlotObject) {
c->isSlotObjectDescription
TRUEevaluated 3203 times by 172 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QScrollBar
  • 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
  • ...
FALSEevaluated 125576 times by 297 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
3203-125576
3353 c->isSlotObject = false;-
3354 senderMutex->unlock();-
3355 c->slotObj->destroyIfLastRef();-
3356 senderMutex->lock();-
3357 }
executed 3203 times by 172 tests: end of block
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QProcess
  • tst_QScrollBar
  • 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
  • ...
3203
3358-
3359 success = true;-
3360-
3361 if (disconnectType == DisconnectOne)
disconnectType... DisconnectOneDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 128775 times by 303 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
4-128775
3362 return success;
executed 4 times by 1 test: return success;
Executed by:
  • tst_QObject
4
3363 }
executed 128775 times by 303 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
128775
3364 c = c->nextConnectionList;-
3365 }
executed 183122 times by 305 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
183122
3366 return success;
executed 154465 times by 305 tests: return success;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
154465
3367}-
3368-
3369/*!-
3370 \internal-
3371 Same as the QMetaObject::disconnect, but \a signal_index must be the result of QObjectPrivate::signalIndex-
3372 */-
3373bool QMetaObjectPrivate::disconnect(const QObject *sender,-
3374 int signal_index, const QMetaObject *smeta,-
3375 const QObject *receiver, int method_index, void **slot,-
3376 DisconnectType disconnectType)-
3377{-
3378 if (!sender)
!senderDescription
TRUEnever evaluated
FALSEevaluated 143976 times by 336 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • ...
0-143976
3379 return false;
never executed: return false;
0
3380-
3381 QObject *s = const_cast<QObject *>(sender);-
3382-
3383 QMutex *senderMutex = signalSlotLock(sender);-
3384 QMutexLocker locker(senderMutex);-
3385-
3386 QObjectConnectionListVector *connectionLists = QObjectPrivate::get(s)->connectionLists;-
3387 if (!connectionLists)
!connectionListsDescription
TRUEevaluated 10048 times by 69 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QDataWidgetMapper
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • ...
FALSEevaluated 133928 times by 305 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
10048-133928
3388 return false;
executed 10048 times by 69 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QDataWidgetMapper
  • tst_QEventLoop
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGuiEventLoop
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QKeyEvent
  • tst_QLayout
  • tst_QLineEdit
  • tst_QLocalSocket
  • tst_QLoggingRegistry
  • tst_QMainWindow
  • ...
10048
3389-
3390 // prevent incoming connections changing the connectionLists while unlocked-
3391 ++connectionLists->inUse;-
3392-
3393 bool success = false;-
3394 if (signal_index < 0) {
signal_index < 0Description
TRUEevaluated 3668 times by 231 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
FALSEevaluated 130260 times by 113 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
3668-130260
3395 // remove from all connection lists-
3396 for (int sig_index = -1; sig_index < connectionLists->count(); ++sig_index) {
sig_index < co...Lists->count()Description
TRUEevaluated 30263 times by 231 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
FALSEevaluated 3668 times by 231 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
3668-30263
3397 QObjectPrivate::Connection *c =-
3398 (*connectionLists)[sig_index].first;-
3399 if (disconnectHelper(c, receiver, method_index, slot, senderMutex, disconnectType)) {
disconnectHelp...isconnectType)Description
TRUEevaluated 8633 times by 228 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QFutureWatcher
  • ...
FALSEevaluated 21630 times by 231 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
8633-21630
3400 success = true;-
3401 connectionLists->dirty = true;-
3402 }
executed 8633 times by 228 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QFutureWatcher
  • ...
8633
3403 }
executed 30263 times by 231 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
30263
3404 } else if (signal_index < connectionLists->count()) {
executed 3668 times by 231 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
signal_index <...Lists->count()Description
TRUEevaluated 124206 times by 113 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 6054 times by 37 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QItemView
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMenu
  • tst_QSortFilterProxyModel
  • tst_QSplitter
  • tst_QSqlQueryModel
  • tst_QStandardItemModel
  • ...
3668-124206
3405 QObjectPrivate::Connection *c =-
3406 (*connectionLists)[signal_index].first;-
3407 if (disconnectHelper(c, receiver, method_index, slot, senderMutex, disconnectType)) {
disconnectHelp...isconnectType)Description
TRUEevaluated 119799 times by 111 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 4407 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QIdentityProxyModel
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMainWindow
  • ...
4407-119799
3408 success = true;-
3409 connectionLists->dirty = true;-
3410 }
executed 119799 times by 111 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
119799
3411 }
executed 124206 times by 113 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
124206
3412-
3413 --connectionLists->inUse;-
3414 Q_ASSERT(connectionLists->inUse >= 0);-
3415 if (connectionLists->orphaned && !connectionLists->inUse)
connectionLists->orphanedDescription
TRUEnever evaluated
FALSEevaluated 133928 times by 305 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
!connectionLists->inUseDescription
TRUEnever evaluated
FALSEnever evaluated
0-133928
3416 delete connectionLists;
never executed: delete connectionLists;
0
3417-
3418 locker.unlock();-
3419 if (success) {
successDescription
TRUEevaluated 123231 times by 303 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
FALSEevaluated 10697 times by 82 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • ...
10697-123231
3420 QMetaMethod smethod = QMetaObjectPrivate::signal(smeta, signal_index);-
3421 if (smethod.isValid())
smethod.isValid()Description
TRUEevaluated 119799 times by 111 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 3432 times by 228 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFtp
  • tst_QFutureWatcher
  • ...
3432-119799
3422 s->disconnectNotify(smethod);
executed 119799 times by 111 tests: s->disconnectNotify(smethod);
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
119799
3423 }
executed 123231 times by 303 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
123231
3424-
3425 return success;
executed 133928 times by 305 tests: return success;
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • ...
133928
3426}-
3427-
3428/*!-
3429 \fn void QMetaObject::connectSlotsByName(QObject *object)-
3430-
3431 Searches recursively for all child objects of the given \a object, and connects-
3432 matching signals from them to slots of \a object that follow the following form:-
3433-
3434 \snippet code/src_corelib_kernel_qobject.cpp 33-
3435-
3436 Let's assume our object has a child object of type \c{QPushButton} with-
3437 the \l{QObject::objectName}{object name} \c{button1}. The slot to catch the-
3438 button's \c{clicked()} signal would be:-
3439-
3440 \snippet code/src_corelib_kernel_qobject.cpp 34-
3441-
3442 If \a object itself has a properly set object name, its own signals are also-
3443 connected to its respective slots.-
3444-
3445 \sa QObject::setObjectName()-
3446 */-
3447void QMetaObject::connectSlotsByName(QObject *o)-
3448{-
3449 if (!o)
!oDescription
TRUEnever evaluated
FALSEevaluated 247 times by 8 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
0-247
3450 return;
never executed: return;
0
3451 const QMetaObject *mo = o->metaObject();-
3452 Q_ASSERT(mo);-
3453 const QObjectList list = // list of all objects to look for matching signals including...-
3454 o->findChildren<QObject *>(QString()) // all children of 'o'...-
3455 << o; // and the object 'o' itself-
3456-
3457 // for each method/slot of o ...-
3458 for (int i = 0; i < mo->methodCount(); ++i) {
i < mo->methodCount()Description
TRUEevaluated 18214 times by 8 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 247 times by 8 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
247-18214
3459 const QByteArray slotSignature = mo->method(i).methodSignature();-
3460 const char *slot = slotSignature.constData();-
3461 Q_ASSERT(slot);-
3462-
3463 // ...that starts with "on_", ...-
3464 if (slot[0] != 'o' || slot[1] != 'n' || slot[2] != '_')
slot[0] != 'o'Description
TRUEevaluated 17704 times by 8 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 510 times by 8 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
slot[1] != 'n'Description
TRUEevaluated 481 times by 8 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
slot[2] != '_'Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
1-17704
3465 continue;
executed 18186 times by 8 tests: continue;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
18186
3466-
3467 // ...we check each object in our list, ...-
3468 bool foundIt = false;-
3469 for(int j = 0; j < list.count(); ++j) {
j < list.count()Description
TRUEevaluated 43 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
10-43
3470 const QObject *co = list.at(j);-
3471 const QByteArray coName = co->objectName().toLatin1();-
3472-
3473 // ...discarding those whose objectName is not fitting the pattern "on_<objectName>_...", ...-
3474 if (coName.isEmpty() || qstrncmp(slot + 3, coName.constData(), coName.size()) || slot[coName.size()+3] != '_')
coName.isEmpty()Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
qstrncmp(slot ...coName.size())Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
slot[coName.size()+3] != '_'Description
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
0-36
3475 continue;
executed 25 times by 2 tests: continue;
Executed by:
  • tst_QMetaObject
  • tst_QObject
25
3476-
3477 const char *signal = slot + coName.size() + 4; // the 'signal' part of the slot name-
3478-
3479 // ...for the presence of a matching signal "on_<objectName>_<signal>".-
3480 const QMetaObject *smeta;-
3481 int sigIndex = co->d_func()->signalIndex(signal, &smeta);-
3482 if (sigIndex < 0) {
sigIndex < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
1-17
3483 // if no exactly fitting signal (name + complete parameter type list) could be found-
3484 // look for just any signal with the correct name and at least the slot's parameter list.-
3485 // Note: if more than one of thoses signals exist, the one that gets connected is-
3486 // chosen 'at random' (order of declaration in source file)-
3487 QList<QByteArray> compatibleSignals;-
3488 const QMetaObject *smo = co->metaObject();-
3489 int sigLen = qstrlen(signal) - 1; // ignore the trailing ')'-
3490 for (int k = QMetaObjectPrivate::absoluteSignalCount(smo)-1; k >= 0; --k) {
k >= 0Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1-10
3491 const QMetaMethod method = QMetaObjectPrivate::signal(smo, k);-
3492 if (!qstrncmp(method.methodSignature().constData(), signal, sigLen)) {
!qstrncmp(meth...ignal, sigLen)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QObject
2-8
3493 smeta = method.enclosingMetaObject();-
3494 sigIndex = k;-
3495 compatibleSignals.prepend(method.methodSignature());-
3496 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QObject
2
3497 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_QObject
10
3498 if (compatibleSignals.size() > 1)
compatibleSignals.size() > 1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-1
3499 qWarning() << "QMetaObject::connectSlotsByName: Connecting slot" << slot
executed 1 time by 1 test: QMessageLogger(__FILE__, 3499, __PRETTY_FUNCTION__).warning() << "QMetaObject::connectSlotsByName: Connecting slot" << slot << "with the first of the following compatible signals:" << compatibleSignals;
Executed by:
  • tst_QObject
1
3500 << "with the first of the following compatible signals:" << compatibleSignals;
executed 1 time by 1 test: QMessageLogger(__FILE__, 3499, __PRETTY_FUNCTION__).warning() << "QMetaObject::connectSlotsByName: Connecting slot" << slot << "with the first of the following compatible signals:" << compatibleSignals;
Executed by:
  • tst_QObject
1
3501 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
3502-
3503 if (sigIndex < 0)
sigIndex < 0Description
TRUEnever evaluated
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
0-18
3504 continue;
never executed: continue;
0
3505-
3506 // we connect it...-
3507 if (Connection(QMetaObjectPrivate::connect(co, sigIndex, smeta, o, i))) {
Connection(QMe... smeta, o, i))Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEnever evaluated
0-18
3508 foundIt = true;-
3509 // ...and stop looking for further objects with the same name.-
3510 // Note: the Designer will make sure each object name is unique in the above-
3511 // 'list' but other code may create two child objects with the same name. In-
3512 // this case one is chosen 'at random'.-
3513 break;
executed 18 times by 2 tests: break;
Executed by:
  • tst_QMetaObject
  • tst_QObject
18
3514 }-
3515 }
never executed: end of block
0
3516 if (foundIt) {
foundItDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
10-18
3517 // we found our slot, now skip all overloads-
3518 while (mo->method(i + 1).attributes() & QMetaMethod::Cloned)
mo->method(i +...Method::ClonedDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
3-18
3519 ++i;
executed 3 times by 2 tests: ++i;
Executed by:
  • tst_QMetaObject
  • tst_QObject
3
3520 } else if (!(mo->method(i).attributes() & QMetaMethod::Cloned)) {
executed 18 times by 2 tests: end of block
Executed by:
  • tst_QMetaObject
  • tst_QObject
!(mo->method(i...ethod::Cloned)Description
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
2-18
3521 // check if the slot has the following signature: "on_..._...(..."-
3522 int iParen = slotSignature.indexOf('(');-
3523 int iLastUnderscore = slotSignature.lastIndexOf('_', iParen-1);-
3524 if (iLastUnderscore > 3)
iLastUnderscore > 3Description
TRUEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
2-6
3525 qWarning("QMetaObject::connectSlotsByName: No matching signal for %s", slot);
executed 6 times by 2 tests: QMessageLogger(__FILE__, 3525, __PRETTY_FUNCTION__).warning("QMetaObject::connectSlotsByName: No matching signal for %s", slot);
Executed by:
  • tst_QMetaObject
  • tst_QObject
6
3526 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QMetaObject
  • tst_QObject
8
3527 }
executed 28 times by 2 tests: end of block
Executed by:
  • tst_QMetaObject
  • tst_QObject
28
3528}
executed 247 times by 8 tests: end of block
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMetaObject
  • tst_QObject
  • tst_QPrinter
  • tst_languageChange
247
3529-
3530/*!-
3531 \internal-
3532-
3533 \a signal must be in the signal index range (see QObjectPrivate::signalIndex()).-
3534*/-
3535static void queued_activate(QObject *sender, int signal, QObjectPrivate::Connection *c, void **argv,-
3536 QMutexLocker &locker)-
3537{-
3538 const int *argumentTypes = c->argumentTypes.load();-
3539 if (!argumentTypes) {
!argumentTypesDescription
TRUEevaluated 4172 times by 390 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 156930 times by 429 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
4172-156930
3540 QMetaMethod m = QMetaObjectPrivate::signal(sender->metaObject(), signal);-
3541 argumentTypes = queuedConnectionTypes(m.parameterTypes());-
3542 if (!argumentTypes) // cannot queue arguments
!argumentTypesDescription
TRUEnever evaluated
FALSEevaluated 4172 times by 390 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
  • ...
0-4172
3543 argumentTypes = &DIRECT_CONNECTION_ONLY;
never executed: argumentTypes = &DIRECT_CONNECTION_ONLY;
0
3544 if (!c->argumentTypes.testAndSetOrdered(0, argumentTypes)) {
!c->argumentTy...argumentTypes)Description
TRUEnever evaluated
FALSEevaluated 4172 times by 390 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
  • ...
0-4172
3545 if (argumentTypes != &DIRECT_CONNECTION_ONLY)
argumentTypes ...ONNECTION_ONLYDescription
TRUEnever evaluated
FALSEnever evaluated
0
3546 delete [] argumentTypes;
never executed: delete [] argumentTypes;
0
3547 argumentTypes = c->argumentTypes.load();-
3548 }
never executed: end of block
0
3549 }
executed 4172 times by 390 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
4172
3550 if (argumentTypes == &DIRECT_CONNECTION_ONLY) // cannot activate
argumentTypes ...ONNECTION_ONLYDescription
TRUEnever evaluated
FALSEevaluated 161102 times by 433 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-161102
3551 return;
never executed: return;
0
3552 int nargs = 1; // include return type-
3553 while (argumentTypes[nargs-1])
argumentTypes[nargs-1]Description
TRUEevaluated 59663 times by 176 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 161102 times by 433 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
59663-161102
3554 ++nargs;
executed 59663 times by 176 tests: ++nargs;
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
  • ...
59663
3555 int *types = (int *) malloc(nargs*sizeof(int));-
3556 Q_CHECK_PTR(types);
never executed: qBadAlloc();
!(types)Description
TRUEnever evaluated
FALSEevaluated 161102 times by 433 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-161102
3557 void **args = (void **) malloc(nargs*sizeof(void *));-
3558 Q_CHECK_PTR(args);
never executed: qBadAlloc();
!(args)Description
TRUEnever evaluated
FALSEevaluated 161102 times by 433 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
0-161102
3559 types[0] = 0; // return type-
3560 args[0] = 0; // return value-
3561-
3562 if (nargs > 1) {
nargs > 1Description
TRUEevaluated 28423 times by 176 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 132679 times by 426 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
28423-132679
3563 for (int n = 1; n < nargs; ++n)
n < nargsDescription
TRUEevaluated 59663 times by 176 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 28423 times by 176 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
  • ...
28423-59663
3564 types[n] = argumentTypes[n-1];
executed 59663 times by 176 tests: types[n] = argumentTypes[n-1];
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
  • ...
59663
3565-
3566 locker.unlock();-
3567 for (int n = 1; n < nargs; ++n)
n < nargsDescription
TRUEevaluated 59663 times by 176 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 28423 times by 176 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
  • ...
28423-59663
3568 args[n] = QMetaType::create(types[n], argv[n]);
executed 59663 times by 176 tests: args[n] = QMetaType::create(types[n], argv[n]);
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
  • ...
59663
3569 locker.relock();-
3570-
3571 if (!c->receiver) {
!c->receiverDescription
TRUEnever evaluated
FALSEevaluated 28423 times by 176 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
  • ...
0-28423
3572 locker.unlock();-
3573 // we have been disconnected while the mutex was unlocked-
3574 for (int n = 1; n < nargs; ++n)
n < nargsDescription
TRUEnever evaluated
FALSEnever evaluated
0
3575 QMetaType::destroy(types[n], args[n]);
never executed: QMetaType::destroy(types[n], args[n]);
0
3576 free(types);-
3577 free(args);-
3578 locker.relock();-
3579 return;
never executed: return;
0
3580 }-
3581 }
executed 28423 times by 176 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
28423
3582-
3583 QMetaCallEvent *ev = c->isSlotObject ?
c->isSlotObjectDescription
TRUEevaluated 7525 times by 320 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 153577 times by 397 tests
Evaluated by:
  • tst_Gestures
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
7525-153577
3584 new QMetaCallEvent(c->slotObj, sender, signal, nargs, types, args) :-
3585 new QMetaCallEvent(c->method_offset, c->method_relative, c->callFunction, sender, signal, nargs, types, args);-
3586 QCoreApplication::postEvent(c->receiver, ev);-
3587}
executed 161102 times by 433 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
161102
3588-
3589/*!-
3590 \internal-
3591 */-
3592void QMetaObject::activate(QObject *sender, const QMetaObject *m, int local_signal_index,-
3593 void **argv)-
3594{-
3595 activate(sender, QMetaObjectPrivate::signalOffset(m), local_signal_index, argv);-
3596}
executed 21585615 times by 1079 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
21585615
3597-
3598/*!-
3599 \internal-
3600 */-
3601void QMetaObject::activate(QObject *sender, int signalOffset, int local_signal_index, void **argv)-
3602{-
3603 int signal_index = signalOffset + local_signal_index;-
3604-
3605 if (!sender->d_func()->isSignalConnected(signal_index)
!sender->d_fun...(signal_index)Description
TRUEevaluated 13826942 times by 1079 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 7758679 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7758679-13826942
3606 && !qt_signal_spy_callback_set.signal_begin_callback
!qt_signal_spy...begin_callbackDescription
TRUEevaluated 13826942 times by 1079 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEnever evaluated
0-13826942
3607 && !qt_signal_spy_callback_set.signal_end_callback) {
!qt_signal_spy...l_end_callbackDescription
TRUEevaluated 13826942 times by 1079 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEnever evaluated
0-13826942
3608 return; // nothing connected to these signals, and no spy
executed 13826942 times by 1079 tests: return;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
13826942
3609 }-
3610-
3611 if (sender->d_func()->blockSig)
sender->d_func()->blockSigDescription
TRUEevaluated 43647 times by 33 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSocks5SocketEngine
  • tst_QSortFilterProxyModel
  • tst_QSpinBox
  • tst_QSslSocket
  • ...
FALSEevaluated 7715032 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
43647-7715032
3612 return;
executed 43647 times by 33 tests: return;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPrinter
  • tst_QSocks5SocketEngine
  • tst_QSortFilterProxyModel
  • tst_QSpinBox
  • tst_QSslSocket
  • ...
43647
3613-
3614 if (sender->d_func()->declarativeData && QAbstractDeclarativeData::signalEmitted)
sender->d_func...eclarativeDataDescription
TRUEnever evaluated
FALSEevaluated 7715032 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
QAbstractDecla...:signalEmittedDescription
TRUEnever evaluated
FALSEnever evaluated
0-7715032
3615 QAbstractDeclarativeData::signalEmitted(sender->d_func()->declarativeData, sender,
never executed: QAbstractDeclarativeData::signalEmitted(sender->d_func()->declarativeData, sender, signal_index, argv);
0
3616 signal_index, argv);
never executed: QAbstractDeclarativeData::signalEmitted(sender->d_func()->declarativeData, sender, signal_index, argv);
0
3617-
3618 void *empty_argv[] = { 0 };-
3619 if (qt_signal_spy_callback_set.signal_begin_callback != 0) {
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEevaluated 7715032 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
0-7715032
3620 qt_signal_spy_callback_set.signal_begin_callback(sender, signal_index,-
3621 argv ? argv : empty_argv);-
3622 }
never executed: end of block
0
3623-
3624 Qt::HANDLE currentThreadId = QThread::currentThreadId();-
3625-
3626 {-
3627 QMutexLocker locker(signalSlotLock(sender));-
3628 struct ConnectionListsRef {-
3629 QObjectConnectionListVector *connectionLists;-
3630 ConnectionListsRef(QObjectConnectionListVector *connectionLists) : connectionLists(connectionLists)-
3631 {-
3632 if (connectionLists)
connectionListsDescription
TRUEevaluated 7715032 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEnever evaluated
0-7715032
3633 ++connectionLists->inUse;
executed 7715032 times by 509 tests: ++connectionLists->inUse;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7715032
3634 }
executed 7715032 times by 509 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7715032
3635 ~ConnectionListsRef()-
3636 {-
3637 if (!connectionLists)
!connectionListsDescription
TRUEnever evaluated
FALSEevaluated 7715029 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
0-7715029
3638 return;
never executed: return;
0
3639-
3640 --connectionLists->inUse;-
3641 Q_ASSERT(connectionLists->inUse >= 0);-
3642 if (connectionLists->orphaned) {
connectionLists->orphanedDescription
TRUEevaluated 250 times by 15 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 7714779 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
250-7714779
3643 if (!connectionLists->inUse)
!connectionLists->inUseDescription
TRUEevaluated 249 times by 15 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1-249
3644 delete connectionLists;
executed 249 times by 15 tests: delete connectionLists;
Executed by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
249
3645 }
executed 250 times by 15 tests: end of block
Executed by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
250
3646 }
executed 7715029 times by 509 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7715029
3647-
3648 QObjectConnectionListVector *operator->() const { return connectionLists; }
executed 54599651 times by 509 tests: return connectionLists;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
54599651
3649 };-
3650 ConnectionListsRef connectionLists = sender->d_func()->connectionLists;-
3651 if (!connectionLists.connectionLists) {
!connectionLis...onnectionListsDescription
TRUEnever evaluated
FALSEevaluated 7715032 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
0-7715032
3652 locker.unlock();-
3653 if (qt_signal_spy_callback_set.signal_end_callback != 0)
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
3654 qt_signal_spy_callback_set.signal_end_callback(sender, signal_index);
never executed: qt_signal_spy_callback_set.signal_end_callback(sender, signal_index);
0
3655 return;
never executed: return;
0
3656 }-
3657-
3658 const QObjectPrivate::ConnectionList *list;-
3659 if (signal_index < connectionLists->count())
signal_index <...Lists->count()Description
TRUEevaluated 7714626 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 406 times by 9 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
406-7714626
3660 list = &connectionLists->at(signal_index);
executed 7714626 times by 509 tests: list = &connectionLists->at(signal_index);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7714626
3661 else-
3662 list = &connectionLists->allsignals;
executed 406 times by 9 tests: list = &connectionLists->allsignals;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
406
3663-
3664 do {-
3665 QObjectPrivate::Connection *c = list->first;-
3666 if (!c) continue;
executed 7714477 times by 509 tests: continue;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
!cDescription
TRUEevaluated 7714477 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 7714925 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7714477-7714925
3667 // We need to check against last here to ensure that signals added-
3668 // during the signal emission are not emitted in this emission.-
3669 QObjectPrivate::Connection *last = list->last;-
3670-
3671 do {-
3672 if (!c->receiver)
!c->receiverDescription
TRUEevaluated 22152 times by 274 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 8476691 times by 495 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
22152-8476691
3673 continue;
executed 22152 times by 274 tests: continue;
Executed by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDnsLookup_Appless
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
22152
3674-
3675 QObject * const receiver = c->receiver;-
3676 const bool receiverInSameThread = currentThreadId == receiver->d_func()->threadData->threadId;-
3677-
3678 // determine if this connection should be sent immediately or-
3679 // put into the event queue-
3680 if ((c->connectionType == Qt::AutoConnection && !receiverInSameThread)
c->connectionT...AutoConnectionDescription
TRUEevaluated 8254889 times by 436 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 221802 times by 477 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
!receiverInSameThreadDescription
TRUEevaluated 13135 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_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 8241754 times by 345 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
13135-8254889
3681 || (c->connectionType == Qt::QueuedConnection)) {
(c->connection...uedConnection)Description
TRUEevaluated 147967 times by 429 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 8315589 times by 393 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
147967-8315589
3682 queued_activate(sender, signal_index, c, argv ? argv : empty_argv, locker);-
3683 continue;
executed 161102 times by 433 tests: continue;
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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • ...
161102
3684#ifndef QT_NO_THREAD-
3685 } else if (c->connectionType == Qt::BlockingQueuedConnection) {
c->connectionT...euedConnectionDescription
TRUEevaluated 4432 times by 315 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 8311157 times by 382 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
4432-8311157
3686 if (receiverInSameThread) {
receiverInSameThreadDescription
TRUEnever evaluated
FALSEevaluated 4432 times by 315 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
0-4432
3687 qWarning("Qt: Dead lock detected while activating a BlockingQueuedConnection: "-
3688 "Sender is %s(%p), receiver is %s(%p)",-
3689 sender->metaObject()->className(), sender,-
3690 receiver->metaObject()->className(), receiver);-
3691 }
never executed: end of block
0
3692 QSemaphore semaphore;-
3693 QMetaCallEvent *ev = c->isSlotObject ?
c->isSlotObjectDescription
TRUEevaluated 2317 times by 180 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 2115 times by 191 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDnsLookup
  • tst_QDnsLookup_Appless
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • ...
2115-2317
3694 new QMetaCallEvent(c->slotObj, sender, signal_index, 0, 0, argv ? argv : empty_argv, &semaphore) :-
3695 new QMetaCallEvent(c->method_offset, c->method_relative, c->callFunction, sender, signal_index, 0, 0, argv ? argv : empty_argv, &semaphore);-
3696 QCoreApplication::postEvent(receiver, ev);-
3697 locker.unlock();-
3698 semaphore.acquire();-
3699 locker.relock();-
3700 continue;
executed 4431 times by 315 tests: continue;
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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
4431
3701#endif-
3702 }-
3703-
3704 QConnectionSenderSwitcher sw;-
3705-
3706 if (receiverInSameThread) {
receiverInSameThreadDescription
TRUEevaluated 8310663 times by 382 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 494 times by 27 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFtp
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QTcpSocket
  • tst_QThread
  • tst_QUdpSocket
  • ...
494-8310663
3707 sw.switchSender(receiver, sender, signal_index);-
3708 }
executed 8310663 times by 382 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
8310663
3709 const QObjectPrivate::StaticMetaCallFunction callFunction = c->callFunction;-
3710 const int method_relative = c->method_relative;-
3711 if (c->isSlotObject) {
c->isSlotObjectDescription
TRUEevaluated 24500 times by 175 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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 8286657 times by 379 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
24500-8286657
3712 c->slotObj->ref();-
3713 QScopedPointer<QtPrivate::QSlotObjectBase, QSlotObjectBaseDeleter> obj(c->slotObj);-
3714 locker.unlock();-
3715 obj->call(receiver, argv ? argv : empty_argv);-
3716-
3717 // Make sure the slot object gets destroyed before the mutex is locked again, as the-
3718 // destructor of the slot object might also lock a mutex from the signalSlotLock() mutex pool,-
3719 // and that would deadlock if the pool happens to return the same mutex.-
3720 obj.reset();-
3721-
3722 locker.relock();-
3723 } else if (callFunction && c->method_offset <= receiver->metaObject()->methodOffset()) {
executed 24498 times by 175 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
callFunctionDescription
TRUEevaluated 8272795 times by 365 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 13862 times by 134 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
c->method_offs...methodOffset()Description
TRUEevaluated 8269472 times by 365 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
FALSEevaluated 3323 times by 45 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QHeaderView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLineEdit
  • tst_QListView
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • ...
3323-8272795
3724 //we compare the vtable to make sure we are not in the destructor of the object.-
3725 locker.unlock();-
3726 const int methodIndex = c->method();-
3727 if (qt_signal_spy_callback_set.slot_begin_callback != 0)
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEevaluated 8269472 times by 365 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
0-8269472
3728 qt_signal_spy_callback_set.slot_begin_callback(receiver, methodIndex, argv ? argv : empty_argv);
never executed: qt_signal_spy_callback_set.slot_begin_callback(receiver, methodIndex, argv ? argv : empty_argv);
0
3729-
3730 callFunction(receiver, QMetaObject::InvokeMetaMethod, method_relative, argv ? argv : empty_argv);-
3731-
3732 if (qt_signal_spy_callback_set.slot_end_callback != 0)
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEevaluated 8269469 times by 365 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
0-8269469
3733 qt_signal_spy_callback_set.slot_end_callback(receiver, methodIndex);
never executed: qt_signal_spy_callback_set.slot_end_callback(receiver, methodIndex);
0
3734 locker.relock();-
3735 } else {
executed 8269469 times by 365 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
8269469
3736 const int method = method_relative + c->method_offset;-
3737 locker.unlock();-
3738-
3739 if (qt_signal_spy_callback_set.slot_begin_callback != 0) {
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEevaluated 17185 times by 148 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • ...
0-17185
3740 qt_signal_spy_callback_set.slot_begin_callback(receiver,-
3741 method,-
3742 argv ? argv : empty_argv);-
3743 }
never executed: end of block
0
3744-
3745 metacall(receiver, QMetaObject::InvokeMetaMethod, method, argv ? argv : empty_argv);-
3746-
3747 if (qt_signal_spy_callback_set.slot_end_callback != 0)
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEevaluated 17185 times by 148 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • ...
0-17185
3748 qt_signal_spy_callback_set.slot_end_callback(receiver, method);
never executed: qt_signal_spy_callback_set.slot_end_callback(receiver, method);
0
3749-
3750 locker.relock();-
3751 }
executed 17185 times by 148 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusServiceWatcher
  • ...
17185
3752-
3753 if (connectionLists->orphaned)
connectionLists->orphanedDescription
TRUEevaluated 249 times by 15 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 8310903 times by 382 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
249-8310903
3754 break;
executed 249 times by 15 tests: break;
Executed by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
249
3755 } while (c != last && (c = c->nextConnectionList) != 0);
executed 8310903 times by 382 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
c != lastDescription
TRUEevaluated 783918 times by 151 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 7714670 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
(c = c->nextCo...tionList) != 0Description
TRUEevaluated 783918 times by 151 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_SpyHook
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEnever evaluated
0-8310903
3756-
3757 if (connectionLists->orphaned)
connectionLists->orphanedDescription
TRUEevaluated 250 times by 15 tests
Evaluated by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
FALSEevaluated 7714669 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
250-7714669
3758 break;
executed 250 times by 15 tests: break;
Executed by:
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDialogButtonBox
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QProcess
  • tst_QPushButton
  • tst_QSequentialAnimationGroup
  • tst_QStatusBar
  • tst_qdbusabstractinterface - unknown status
250
3759 } while (list != &connectionLists->allsignals &&
executed 7714669 times by 509 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
list != &conne...ts->allsignalsDescription
TRUEevaluated 7714370 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 7714776 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7714370-7714776
3760 //start over for all signals;-
3761 ((list = &connectionLists->allsignals), true));-
3762-
3763 }-
3764-
3765 if (qt_signal_spy_callback_set.signal_end_callback != 0)
qt_signal_spy_..._callback != 0Description
TRUEnever evaluated
FALSEevaluated 7715026 times by 509 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
0-7715026
3766 qt_signal_spy_callback_set.signal_end_callback(sender, signal_index);
never executed: qt_signal_spy_callback_set.signal_end_callback(sender, signal_index);
0
3767-
3768}
executed 7715026 times by 509 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • tst_QCheckBox
  • tst_QClipboard
  • ...
7715026
3769-
3770/*!-
3771 \internal-
3772 signal_index comes from indexOfMethod()-
3773*/-
3774void QMetaObject::activate(QObject *sender, int signal_index, void **argv)-
3775{-
3776 const QMetaObject *mo = sender->metaObject();-
3777 while (mo->methodOffset() > signal_index)
mo->methodOffs...> signal_indexDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
0-3
3778 mo = mo->superClass();
never executed: mo = mo->superClass();
0
3779 activate(sender, mo, signal_index - mo->methodOffset(), argv);-
3780}
executed 3 times by 1 test: end of block
Executed by:
  • tst_QObject
3
3781-
3782/*!-
3783 \internal-
3784 Returns the signal index used in the internal connectionLists vector.-
3785-
3786 It is different from QMetaObject::indexOfSignal(): indexOfSignal is the same as indexOfMethod-
3787 while QObjectPrivate::signalIndex is smaller because it doesn't give index to slots.-
3788-
3789 If \a meta is not 0, it is set to the meta-object where the signal was found.-
3790*/-
3791int QObjectPrivate::signalIndex(const char *signalName,-
3792 const QMetaObject **meta) const-
3793{-
3794 Q_Q(const QObject);-
3795 const QMetaObject *base = q->metaObject();-
3796 Q_ASSERT(QMetaObjectPrivate::get(base)->revision >= 7);-
3797 QArgumentTypeArray types;-
3798 QByteArray name = QMetaObjectPrivate::decodeMethodSignature(signalName, types);-
3799 int relative_index = QMetaObjectPrivate::indexOfSignalRelative(-
3800 &base, name, types.size(), types.constData());-
3801 if (relative_index < 0)
relative_index < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1862 times by 45 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • ...
1-1862
3802 return relative_index;
executed 1 time by 1 test: return relative_index;
Executed by:
  • tst_QObject
1
3803 relative_index = QMetaObjectPrivate::originalClone(base, relative_index);-
3804 if (meta)
metaDescription
TRUEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 1845 times by 44 tests
Evaluated by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QObject
  • ...
17-1845
3805 *meta = base;
executed 17 times by 2 tests: *meta = base;
Executed by:
  • tst_QMetaObject
  • tst_QObject
17
3806 return relative_index + QMetaObjectPrivate::signalOffset(base);
executed 1862 times by 45 tests: return relative_index + QMetaObjectPrivate::signalOffset(base);
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QColumnView
  • tst_QDialog
  • tst_QDockWidget
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QLineEdit
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObject
  • ...
1862
3807}-
3808-
3809/*****************************************************************************-
3810 Properties-
3811 *****************************************************************************/-
3812-
3813#ifndef QT_NO_PROPERTIES-
3814-
3815/*!-
3816 Sets the value of the object's \a name property to \a value.-
3817-
3818 If the property is defined in the class using Q_PROPERTY then-
3819 true is returned on success and false otherwise. If the property-
3820 is not defined using Q_PROPERTY, and therefore not listed in the-
3821 meta-object, it is added as a dynamic property and false is returned.-
3822-
3823 Information about all available properties is provided through the-
3824 metaObject() and dynamicPropertyNames().-
3825-
3826 Dynamic properties can be queried again using property() and can be-
3827 removed by setting the property value to an invalid QVariant.-
3828 Changing the value of a dynamic property causes a QDynamicPropertyChangeEvent-
3829 to be sent to the object.-
3830-
3831 \b{Note:} Dynamic properties starting with "_q_" are reserved for internal-
3832 purposes.-
3833-
3834 \sa property(), metaObject(), dynamicPropertyNames(), QMetaProperty::write()-
3835*/-
3836bool QObject::setProperty(const char *name, const QVariant &value)-
3837{-
3838 Q_D(QObject);-
3839 const QMetaObject* meta = metaObject();-
3840 if (!name || !meta)
!nameDescription
TRUEnever evaluated
FALSEevaluated 20356 times by 120 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
!metaDescription
TRUEnever evaluated
FALSEevaluated 20356 times by 120 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
0-20356
3841 return false;
never executed: return false;
0
3842-
3843 int id = meta->indexOfProperty(name);-
3844 if (id < 0) {
id < 0Description
TRUEevaluated 19328 times by 88 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFiledialog
  • ...
FALSEevaluated 1028 times by 50 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMatrixNxN
  • tst_QMdiArea
  • ...
1028-19328
3845 if (!d->extraData)
!d->extraDataDescription
TRUEevaluated 12977 times by 74 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • ...
FALSEevaluated 6351 times by 53 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHttpNetworkConnection
  • tst_QLabel
  • ...
6351-12977
3846 d->extraData = new QObjectPrivate::ExtraData;
executed 12977 times by 74 tests: d->extraData = new QObjectPrivate::ExtraData;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • ...
12977
3847-
3848 const int idx = d->extraData->propertyNames.indexOf(name);-
3849-
3850 if (!value.isValid()) {
!value.isValid()Description
TRUEevaluated 8413 times by 35 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QComboBox
  • tst_QEventLoop
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStateMachine
  • ...
FALSEevaluated 10915 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
8413-10915
3851 if (idx == -1)
idx == -1Description
TRUEevaluated 8374 times by 33 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QComboBox
  • tst_QEventLoop
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • ...
FALSEevaluated 39 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QObject
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QWidget
39-8374
3852 return false;
executed 8374 times by 33 tests: return false;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QApplication
  • tst_QComboBox
  • tst_QEventLoop
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QHttpSocketEngine
  • tst_QIODevice
  • tst_QImageReader
  • tst_QLocalSocket
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkReply
  • tst_QNetworkSession
  • tst_QObject
  • tst_QSocketNotifier
  • tst_QSocks5SocketEngine
  • tst_QSslSocket
  • tst_QSslSocket_onDemandCertificates_member
  • tst_QSslSocket_onDemandCertificates_static
  • tst_QStyleSheetStyle
  • ...
8374
3853 d->extraData->propertyNames.removeAt(idx);-
3854 d->extraData->propertyValues.removeAt(idx);-
3855 } else {
executed 39 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QObject
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_QWidget
39
3856 if (idx == -1) {
idx == -1Description
TRUEevaluated 9290 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
FALSEevaluated 1625 times by 27 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QHttpNetworkConnection
  • tst_QMainWindow
  • tst_QMenu
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QState
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • ...
1625-9290
3857 d->extraData->propertyNames.append(name);-
3858 d->extraData->propertyValues.append(value);-
3859 } else {
executed 9290 times by 69 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
9290
3860 if (value == d->extraData->propertyValues.at(idx))
value == d->ex...Values.at(idx)Description
TRUEevaluated 523 times by 11 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QFtp
  • tst_QMainWindow
  • tst_QMenu
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QStyleSheetStyle
FALSEevaluated 1102 times by 23 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QHttpNetworkConnection
  • tst_QMenu
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QState
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
523-1102
3861 return false;
executed 523 times by 11 tests: return false;
Executed by:
  • tst_QAnimationGroup
  • tst_QFtp
  • tst_QMainWindow
  • tst_QMenu
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QStateMachine
  • tst_QStyleSheetStyle
523
3862 d->extraData->propertyValues[idx] = value;-
3863 }
executed 1102 times by 23 tests: end of block
Executed by:
  • tst_QAnimationGroup
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QHttpNetworkConnection
  • tst_QMenu
  • tst_QPauseAnimation
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QState
  • tst_QStateMachine
  • tst_QStyleSheetStyle
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
1102
3864 }-
3865-
3866 QDynamicPropertyChangeEvent ev(name);-
3867 QCoreApplication::sendEvent(this, &ev);-
3868-
3869 return false;
executed 10431 times by 69 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
10431
3870 }-
3871 QMetaProperty p = meta->property(id);-
3872#ifndef QT_NO_DEBUG-
3873 if (!p.isWritable())
!p.isWritable()Description
TRUEnever evaluated
FALSEevaluated 1028 times by 50 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMatrixNxN
  • tst_QMdiArea
  • ...
0-1028
3874 qWarning("%s::setProperty: Property \"%s\" invalid,"
never executed: QMessageLogger(__FILE__, 3874, __PRETTY_FUNCTION__).warning("%s::setProperty: Property \"%s\" invalid," " read-only or does not exist", metaObject()->className(), name);
0
3875 " read-only or does not exist", metaObject()->className(), name);
never executed: QMessageLogger(__FILE__, 3874, __PRETTY_FUNCTION__).warning("%s::setProperty: Property \"%s\" invalid," " read-only or does not exist", metaObject()->className(), name);
0
3876#endif-
3877 return p.write(this, value);
executed 1028 times by 50 tests: return p.write(this, value);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QLabel
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMatrixNxN
  • tst_QMdiArea
  • ...
1028
3878}-
3879-
3880/*!-
3881 Returns the value of the object's \a name property.-
3882-
3883 If no such property exists, the returned variant is invalid.-
3884-
3885 Information about all available properties is provided through the-
3886 metaObject() and dynamicPropertyNames().-
3887-
3888 \sa setProperty(), QVariant::isValid(), metaObject(), dynamicPropertyNames()-
3889*/-
3890QVariant QObject::property(const char *name) const-
3891{-
3892 Q_D(const QObject);-
3893 const QMetaObject* meta = metaObject();-
3894 if (!name || !meta)
!nameDescription
TRUEnever evaluated
FALSEevaluated 64817 times by 199 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
!metaDescription
TRUEnever evaluated
FALSEevaluated 64817 times by 199 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
0-64817
3895 return QVariant();
never executed: return QVariant();
0
3896-
3897 int id = meta->indexOfProperty(name);-
3898 if (id < 0) {
id < 0Description
TRUEevaluated 43928 times by 180 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • ...
FALSEevaluated 20889 times by 150 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • 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
  • ...
20889-43928
3899 if (!d->extraData)
!d->extraDataDescription
TRUEevaluated 9799 times by 79 tests
Evaluated by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
FALSEevaluated 34129 times by 153 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
9799-34129
3900 return QVariant();
executed 9799 times by 79 tests: return QVariant();
Executed by:
  • tst_Lancelot
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBackingStore
  • tst_QComboBox
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
9799
3901 const int i = d->extraData->propertyNames.indexOf(name);-
3902 return d->extraData->propertyValues.value(i);
executed 34129 times by 153 tests: return d->extraData->propertyValues.value(i);
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
34129
3903 }-
3904 QMetaProperty p = meta->property(id);-
3905#ifndef QT_NO_DEBUG-
3906 if (!p.isReadable())
!p.isReadable()Description
TRUEnever evaluated
FALSEevaluated 20889 times by 150 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • 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
  • ...
0-20889
3907 qWarning("%s::property: Property \"%s\" invalid or does not exist",
never executed: QMessageLogger(__FILE__, 3907, __PRETTY_FUNCTION__).warning("%s::property: Property \"%s\" invalid or does not exist", metaObject()->className(), name);
0
3908 metaObject()->className(), name);
never executed: QMessageLogger(__FILE__, 3907, __PRETTY_FUNCTION__).warning("%s::property: Property \"%s\" invalid or does not exist", metaObject()->className(), name);
0
3909#endif-
3910 return p.read(this);
executed 20889 times by 150 tests: return p.read(this);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • 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
  • ...
20889
3911}-
3912-
3913/*!-
3914 \since 4.2-
3915-
3916 Returns the names of all properties that were dynamically added to-
3917 the object using setProperty().-
3918*/-
3919QList<QByteArray> QObject::dynamicPropertyNames() const-
3920{-
3921 Q_D(const QObject);-
3922 if (d->extraData)
d->extraDataDescription
TRUEevaluated 9566 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
FALSEevaluated 3349 times by 127 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
3349-9566
3923 return d->extraData->propertyNames;
executed 9566 times by 124 tests: return d->extraData->propertyNames;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • 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_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
9566
3924 return QList<QByteArray>();
executed 3349 times by 127 tests: return QList<QByteArray>();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • tst_QDialog
  • ...
3349
3925}-
3926-
3927#endif // QT_NO_PROPERTIES-
3928-
3929-
3930/*****************************************************************************-
3931 QObject debugging output routines.-
3932 *****************************************************************************/-
3933-
3934static void dumpRecursive(int level, QObject *object)-
3935{-
3936#if defined(QT_DEBUG)-
3937 if (object) {
objectDescription
TRUEnever evaluated
FALSEnever evaluated
0
3938 QByteArray buf;-
3939 buf.fill(' ', level / 2 * 8);-
3940 if (level % 2)
level % 2Description
TRUEnever evaluated
FALSEnever evaluated
0
3941 buf += " ";
never executed: buf += " ";
0
3942 QString name = object->objectName();-
3943 QString flags = QLatin1String("");-
3944#if 0-
3945 if (qApp->focusWidget() == object)-
3946 flags += 'F';-
3947 if (object->isWidgetType()) {-
3948 QWidget * w = (QWidget *)object;-
3949 if (w->isVisible()) {-
3950 QString t("<%1,%2,%3,%4>");-
3951 flags += t.arg(w->x()).arg(w->y()).arg(w->width()).arg(w->height());-
3952 } else {-
3953 flags += 'I';-
3954 }-
3955 }-
3956#endif-
3957 qDebug("%s%s::%s %s", (const char*)buf, object->metaObject()->className(), name.toLocal8Bit().data(),-
3958 flags.toLatin1().data());-
3959 QObjectList children = object->children();-
3960 if (!children.isEmpty()) {
!children.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
0
3961 for (int i = 0; i < children.size(); ++i)
i < children.size()Description
TRUEnever evaluated
FALSEnever evaluated
0
3962 dumpRecursive(level+1, children.at(i));
never executed: dumpRecursive(level+1, children.at(i));
0
3963 }
never executed: end of block
0
3964 }
never executed: end of block
0
3965#else-
3966 Q_UNUSED(level)-
3967 Q_UNUSED(object)-
3968#endif-
3969}
never executed: end of block
0
3970-
3971/*!-
3972 Dumps a tree of children to the debug output.-
3973-
3974 This function is useful for debugging, but does nothing if the-
3975 library has been compiled in release mode (i.e. without debugging-
3976 information).-
3977-
3978 \sa dumpObjectInfo()-
3979*/-
3980-
3981void QObject::dumpObjectTree()-
3982{-
3983 dumpRecursive(0, this);-
3984}
never executed: end of block
0
3985-
3986/*!-
3987 Dumps information about signal connections, etc. for this object-
3988 to the debug output.-
3989-
3990 This function is useful for debugging, but does nothing if the-
3991 library has been compiled in release mode (i.e. without debugging-
3992 information).-
3993-
3994 \sa dumpObjectTree()-
3995*/-
3996-
3997void QObject::dumpObjectInfo()-
3998{-
3999#if defined(QT_DEBUG)-
4000 qDebug("OBJECT %s::%s", metaObject()->className(),-
4001 objectName().isEmpty() ? "unnamed" : objectName().toLocal8Bit().data());-
4002-
4003 Q_D(QObject);-
4004 QMutexLocker locker(signalSlotLock(this));-
4005-
4006 // first, look for connections where this object is the sender-
4007 qDebug(" SIGNALS OUT");-
4008-
4009 if (d->connectionLists) {
d->connectionListsDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-1
4010 for (int signal_index = 0; signal_index < d->connectionLists->count(); ++signal_index) {
signal_index <...Lists->count()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1
4011 const QMetaMethod signal = QMetaObjectPrivate::signal(metaObject(), signal_index);-
4012 qDebug(" signal: %s", signal.methodSignature().constData());-
4013-
4014 // receivers-
4015 const QObjectPrivate::Connection *c =-
4016 d->connectionLists->at(signal_index).first;-
4017 while (c) {
cDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1
4018 if (!c->receiver) {
!c->receiverDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-1
4019 qDebug(" <Disconnected receiver>");-
4020 c = c->nextConnectionList;-
4021 continue;
executed 1 time by 1 test: continue;
Executed by:
  • tst_QObject
1
4022 }-
4023 if (c->isSlotObject) {
c->isSlotObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0
4024 qDebug(" <functor or function pointer>");-
4025 c = c->nextConnectionList;-
4026 continue;
never executed: continue;
0
4027 }-
4028 const QMetaObject *receiverMetaObject = c->receiver->metaObject();-
4029 const QMetaMethod method = receiverMetaObject->method(c->method());-
4030 qDebug(" --> %s::%s %s",-
4031 receiverMetaObject->className(),-
4032 c->receiver->objectName().isEmpty() ? "unnamed" : qPrintable(c->receiver->objectName()),-
4033 method.methodSignature().constData());-
4034 c = c->nextConnectionList;-
4035 }
never executed: end of block
0
4036 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
4037 } else {
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
4038 qDebug( " <None>" );-
4039 }
never executed: end of block
0
4040-
4041 // now look for connections where this object is the receiver-
4042 qDebug(" SIGNALS IN");-
4043-
4044 if (d->senders) {
d->sendersDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-1
4045 for (QObjectPrivate::Connection *s = d->senders; s; s = s->next) {
sDescription
TRUEnever evaluated
FALSEnever evaluated
0
4046 QByteArray slotName = QByteArrayLiteral("<unknown>");
never executed: return ba;
0
4047 if (!s->isSlotObject) {
!s->isSlotObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0
4048 const QMetaMethod slot = metaObject()->method(s->method());-
4049 slotName = slot.methodSignature();-
4050 }
never executed: end of block
0
4051 qDebug(" <-- %s::%s %s",-
4052 s->sender->metaObject()->className(),-
4053 s->sender->objectName().isEmpty() ? "unnamed" : qPrintable(s->sender->objectName()),-
4054 slotName.constData());-
4055 }
never executed: end of block
0
4056 } else {
never executed: end of block
0
4057 qDebug(" <None>");-
4058 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
4059#endif-
4060}-
4061-
4062#ifndef QT_NO_USERDATA-
4063/*!-
4064 \internal-
4065 */-
4066uint QObject::registerUserData()-
4067{-
4068 static int user_data_registration = 0;-
4069 return user_data_registration++;
executed 100 times by 1 test: return user_data_registration++;
Executed by:
  • tst_QObject
100
4070}-
4071-
4072/*!-
4073 \internal-
4074 */-
4075QObjectUserData::~QObjectUserData()-
4076{-
4077}-
4078-
4079/*!-
4080 \internal-
4081 */-
4082void QObject::setUserData(uint id, QObjectUserData* data)-
4083{-
4084 Q_D(QObject);-
4085 if (!d->extraData)
!d->extraDataDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 99 times by 1 test
Evaluated by:
  • tst_QObject
1-99
4086 d->extraData = new QObjectPrivate::ExtraData;
executed 1 time by 1 test: d->extraData = new QObjectPrivate::ExtraData;
Executed by:
  • tst_QObject
1
4087-
4088 if (d->extraData->userData.size() <= (int) id)
d->extraData->...() <= (int) idDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 96 times by 1 test
Evaluated by:
  • tst_QObject
4-96
4089 d->extraData->userData.resize((int) id + 1);
executed 4 times by 1 test: d->extraData->userData.resize((int) id + 1);
Executed by:
  • tst_QObject
4
4090 d->extraData->userData[id] = data;-
4091}
executed 100 times by 1 test: end of block
Executed by:
  • tst_QObject
100
4092-
4093/*!-
4094 \internal-
4095 */-
4096QObjectUserData* QObject::userData(uint id) const-
4097{-
4098 Q_D(const QObject);-
4099 if (!d->extraData)
!d->extraDataDescription
TRUEnever evaluated
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_QObject
0-100
4100 return 0;
never executed: return 0;
0
4101 if ((int)id < d->extraData->userData.size())
(int)id < d->e...serData.size()Description
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-100
4102 return d->extraData->userData.at(id);
executed 100 times by 1 test: return d->extraData->userData.at(id);
Executed by:
  • tst_QObject
100
4103 return 0;
never executed: return 0;
0
4104}-
4105-
4106#endif // QT_NO_USERDATA-
4107-
4108-
4109#ifndef QT_NO_DEBUG_STREAM-
4110QDebug operator<<(QDebug dbg, const QObject *o)-
4111{-
4112 QDebugStateSaver saver(dbg);-
4113 if (!o)
!oDescription
TRUEevaluated 15 times by 4 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QNetworkDiskCache
  • tst_QVariant
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QVariant
4-15
4114 return dbg << "QObject(0x0)";
executed 15 times by 4 tests: return dbg << "QObject(0x0)";
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QNetworkDiskCache
  • tst_QVariant
15
4115 dbg.nospace() << o->metaObject()->className() << '(' << (const void *)o;-
4116 if (!o->objectName().isEmpty())
!o->objectName().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QVariant
0-4
4117 dbg << ", name = " << o->objectName();
never executed: dbg << ", name = " << o->objectName();
0
4118 dbg << ')';-
4119 return dbg;
executed 4 times by 3 tests: return dbg;
Executed by:
  • tst_ModelTest
  • tst_QAccessibility
  • tst_QVariant
4
4120}-
4121#endif-
4122-
4123/*!-
4124 \macro Q_CLASSINFO(Name, Value)-
4125 \relates QObject-
4126-
4127 This macro associates extra information to the class, which is available-
4128 using QObject::metaObject(). Qt makes only limited use of this feature, in-
4129 the \l{Active Qt}, \l{Qt D-Bus} and \l{Qt QML module}{Qt QML}.-
4130-
4131 The extra information takes the form of a \a Name string and a \a Value-
4132 literal string.-
4133-
4134 Example:-
4135-
4136 \snippet code/src_corelib_kernel_qobject.cpp 35-
4137-
4138 \sa QMetaObject::classInfo()-
4139 \sa QAxFactory-
4140 \sa {Using Qt D-Bus Adaptors}-
4141 \sa {Extending QML}-
4142*/-
4143-
4144/*!-
4145 \macro Q_INTERFACES(...)-
4146 \relates QObject-
4147-
4148 This macro tells Qt which interfaces the class implements. This-
4149 is used when implementing plugins.-
4150-
4151 Example:-
4152-
4153 \snippet ../widgets/tools/plugandpaint/plugins/basictools/basictoolsplugin.h 1-
4154 \dots-
4155 \snippet ../widgets/tools/plugandpaint/plugins/basictools/basictoolsplugin.h 3-
4156-
4157 See the \l{tools/plugandpaint/plugins/basictools}{Plug & Paint-
4158 Basic Tools} example for details.-
4159-
4160 \sa Q_DECLARE_INTERFACE(), Q_PLUGIN_METADATA(), {How to Create Qt Plugins}-
4161*/-
4162-
4163/*!-
4164 \macro Q_PROPERTY(...)-
4165 \relates QObject-
4166-
4167 This macro is used for declaring properties in classes that-
4168 inherit QObject. Properties behave like class data members, but-
4169 they have additional features accessible through the \l-
4170 {Meta-Object System}.-
4171-
4172 \snippet code/doc_src_properties.cpp 0-
4173-
4174 The property name and type and the \c READ function are required.-
4175 The type can be any type supported by QVariant, or it can be a-
4176 user-defined type. The other items are optional, but a \c WRITE-
4177 function is common. The attributes default to true except \c USER,-
4178 which defaults to false.-
4179-
4180 For example:-
4181-
4182 \snippet code/src_corelib_kernel_qobject.cpp 37-
4183-
4184 For more details about how to use this macro, and a more detailed-
4185 example of its use, see the discussion on \l {Qt's Property System}.-
4186-
4187 \sa {Qt's Property System}-
4188*/-
4189-
4190/*!-
4191 \macro Q_ENUMS(...)-
4192 \relates QObject-
4193 \obsolete-
4194-
4195 This macro registers one or several enum types to the meta-object-
4196 system.-
4197-
4198 For example:-
4199-
4200 \snippet code/src_corelib_kernel_qobject.cpp 38-
4201-
4202 If you want to register an enum that is declared in another class,-
4203 the enum must be fully qualified with the name of the class-
4204 defining it. In addition, the class \e defining the enum has to-
4205 inherit QObject as well as declare the enum using Q_ENUMS().-
4206-
4207 In new code, you should prefer the use of the Q_ENUM() macro, which makes the-
4208 type available also to the meta type system.-
4209 For instance, QMetaEnum::fromType() will not work with types declared with Q_ENUMS().-
4210-
4211 \sa {Qt's Property System}-
4212*/-
4213-
4214/*!-
4215 \macro Q_FLAGS(...)-
4216 \relates QObject-
4217 \obsolete-
4218-
4219 This macro registers one or several \l{QFlags}{flags types} with the-
4220 meta-object system. It is typically used in a class definition to declare-
4221 that values of a given enum can be used as flags and combined using the-
4222 bitwise OR operator.-
4223-
4224 \note This macro takes care of registering individual flag values-
4225 with the meta-object system, so it is unnecessary to use Q_ENUMS()-
4226 in addition to this macro.-
4227-
4228 In new code, you should prefer the use of the Q_FLAG() macro, which makes the-
4229 type available also to the meta type system.-
4230-
4231 \sa {Qt's Property System}-
4232*/-
4233-
4234/*!-
4235 \macro Q_ENUM(...)-
4236 \relates QObject-
4237 \since 5.5-
4238-
4239 This macro registers an enum type with the meta-object system.-
4240 It must be placed after the enum declaration in a class that has the Q_OBJECT or the-
4241 Q_GADGET macro.-
4242-
4243 For example:-
4244-
4245 \snippet code/src_corelib_kernel_qobject.cpp 38-
4246-
4247 Enumerations that are declared with Q_ENUM have their QMetaEnum registered in the-
4248 enclosing QMetaObject. You can also use QMetaEnum::fromType() to get the QMetaEnum.-
4249-
4250 Registered enumerations are automatically registered also to the Qt meta-
4251 type system, making them known to QMetaType without the need to use-
4252 Q_DECLARE_METATYPE(). This will enable useful features; for example, if used-
4253 in a QVariant, you can convert them to strings. Likewise, passing them to-
4254 QDebug will print out their names.-
4255-
4256 \sa {Qt's Property System}-
4257*/-
4258-
4259-
4260/*!-
4261 \macro Q_FLAG(...)-
4262 \relates QObject-
4263 \since 5.5-
4264-
4265 This macro registers a single \l{QFlags}{flags type} with the-
4266 meta-object system. It is typically used in a class definition to declare-
4267 that values of a given enum can be used as flags and combined using the-
4268 bitwise OR operator.-
4269-
4270 The macro must be placed after the enum declaration.-
4271-
4272 For example, in QLibrary, the \l{QLibrary::LoadHints}{LoadHints} flag is-
4273 declared in the following way:-
4274-
4275 \snippet code/src_corelib_kernel_qobject.cpp 39-
4276-
4277 The declaration of the flags themselves is performed in the public section-
4278 of the QLibrary class itself, using the \l Q_DECLARE_FLAGS() macro.-
4279-
4280 \note The Q_FLAG macro takes care of registering individual flag values-
4281 with the meta-object system, so it is unnecessary to use Q_ENUM()-
4282 in addition to this macro.-
4283-
4284 \sa {Qt's Property System}-
4285*/-
4286-
4287-
4288/*!-
4289 \macro Q_OBJECT-
4290 \relates QObject-
4291-
4292 The Q_OBJECT macro must appear in the private section of a class-
4293 definition that declares its own signals and slots or that uses-
4294 other services provided by Qt's meta-object system.-
4295-
4296 For example:-
4297-
4298 \snippet signalsandslots/signalsandslots.h 1-
4299 \codeline-
4300 \snippet signalsandslots/signalsandslots.h 2-
4301 \snippet signalsandslots/signalsandslots.h 3-
4302-
4303 \note This macro requires the class to be a subclass of QObject. Use-
4304 Q_GADGET instead of Q_OBJECT to enable the meta object system's support-
4305 for enums in a class that is not a QObject subclass.-
4306-
4307 \sa {Meta-Object System}, {Signals and Slots}, {Qt's Property System}-
4308*/-
4309-
4310/*!-
4311 \macro Q_GADGET-
4312 \relates QObject-
4313-
4314 The Q_GADGET macro is a lighter version of the Q_OBJECT macro for classes-
4315 that do not inherit from QObject but still want to use some of the-
4316 reflection capabilities offered by QMetaObject. Just like the Q_OBJECT-
4317 macro, it must appear in the private section of a class definition.-
4318-
4319 Q_GADGETs can have Q_ENUM, Q_PROPERTY and Q_INVOKABLE, but they cannot have-
4320 signals or slots-
4321-
4322 Q_GADGET makes a class member, \c{staticMetaObject}, available.-
4323 \c{staticMetaObject} is of type QMetaObject and provides access to the-
4324 enums declared with Q_ENUMS.-
4325*/-
4326-
4327/*!-
4328 \macro Q_SIGNALS-
4329 \relates QObject-
4330-
4331 Use this macro to replace the \c signals keyword in class-
4332 declarations, when you want to use Qt Signals and Slots with a-
4333 \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.-
4334-
4335 The macro is normally used when \c no_keywords is specified with-
4336 the \c CONFIG variable in the \c .pro file, but it can be used-
4337 even when \c no_keywords is \e not specified.-
4338*/-
4339-
4340/*!-
4341 \macro Q_SIGNAL-
4342 \relates QObject-
4343-
4344 This is an additional macro that allows you to mark a single-
4345 function as a signal. It can be quite useful, especially when you-
4346 use a 3rd-party source code parser which doesn't understand a \c-
4347 signals or \c Q_SIGNALS groups.-
4348-
4349 Use this macro to replace the \c signals keyword in class-
4350 declarations, when you want to use Qt Signals and Slots with a-
4351 \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.-
4352-
4353 The macro is normally used when \c no_keywords is specified with-
4354 the \c CONFIG variable in the \c .pro file, but it can be used-
4355 even when \c no_keywords is \e not specified.-
4356*/-
4357-
4358/*!-
4359 \macro Q_SLOTS-
4360 \relates QObject-
4361-
4362 Use this macro to replace the \c slots keyword in class-
4363 declarations, when you want to use Qt Signals and Slots with a-
4364 \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.-
4365-
4366 The macro is normally used when \c no_keywords is specified with-
4367 the \c CONFIG variable in the \c .pro file, but it can be used-
4368 even when \c no_keywords is \e not specified.-
4369*/-
4370-
4371/*!-
4372 \macro Q_SLOT-
4373 \relates QObject-
4374-
4375 This is an additional macro that allows you to mark a single-
4376 function as a slot. It can be quite useful, especially when you-
4377 use a 3rd-party source code parser which doesn't understand a \c-
4378 slots or \c Q_SLOTS groups.-
4379-
4380 Use this macro to replace the \c slots keyword in class-
4381 declarations, when you want to use Qt Signals and Slots with a-
4382 \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.-
4383-
4384 The macro is normally used when \c no_keywords is specified with-
4385 the \c CONFIG variable in the \c .pro file, but it can be used-
4386 even when \c no_keywords is \e not specified.-
4387*/-
4388-
4389/*!-
4390 \macro Q_EMIT-
4391 \relates QObject-
4392-
4393 Use this macro to replace the \c emit keyword for emitting-
4394 signals, when you want to use Qt Signals and Slots with a-
4395 \l{3rd Party Signals and Slots} {3rd party signal/slot mechanism}.-
4396-
4397 The macro is normally used when \c no_keywords is specified with-
4398 the \c CONFIG variable in the \c .pro file, but it can be used-
4399 even when \c no_keywords is \e not specified.-
4400*/-
4401-
4402/*!-
4403 \macro Q_INVOKABLE-
4404 \relates QObject-
4405-
4406 Apply this macro to declarations of member functions to allow them to-
4407 be invoked via the meta-object system. The macro is written before-
4408 the return type, as shown in the following example:-
4409-
4410 \snippet qmetaobject-invokable/window.h Window class with invokable method-
4411-
4412 The \c invokableMethod() function is marked up using Q_INVOKABLE, causing-
4413 it to be registered with the meta-object system and enabling it to be-
4414 invoked using QMetaObject::invokeMethod().-
4415 Since \c normalMethod() function is not registered in this way, it cannot-
4416 be invoked using QMetaObject::invokeMethod().-
4417*/-
4418-
4419/*!-
4420 \macro Q_REVISION-
4421 \relates QObject-
4422-
4423 Apply this macro to declarations of member functions to tag them with a-
4424 revision number in the meta-object system. The macro is written before-
4425 the return type, as shown in the following example:-
4426-
4427 \snippet qmetaobject-revision/window.h Window class with revision-
4428-
4429 This is useful when using the meta-object system to dynamically expose-
4430 objects to another API, as you can match the version expected by multiple-
4431 versions of the other API. Consider the following simplified example:-
4432-
4433 \snippet qmetaobject-revision/main.cpp Window class using revision-
4434-
4435 Using the same Window class as the previous example, the newProperty and-
4436 newMethod would only be exposed in this code when the expected version is-
4437 1 or greater.-
4438-
4439 Since all methods are considered to be in revision 0 if untagged, a tag-
4440 of Q_REVISION(0) is invalid and ignored.-
4441-
4442 This tag is not used by the meta-object system itself. Currently this is only-
4443 used by the QtQml module.-
4444-
4445 For a more generic string tag, see \l QMetaMethod::tag()-
4446-
4447 \sa QMetaMethod::revision()-
4448*/-
4449-
4450/*!-
4451 \macro Q_SET_OBJECT_NAME(Object)-
4452 \relates QObject-
4453 \since 5.0-
4454-
4455 This macro assigns \a Object the objectName "Object".-
4456-
4457 It doesn't matter whether \a Object is a pointer or not, the-
4458 macro figures that out by itself.-
4459-
4460 \sa QObject::objectName()-
4461*/-
4462-
4463/*!-
4464 \typedef QObjectList-
4465 \relates QObject-
4466-
4467 Synonym for QList<QObject *>.-
4468*/-
4469-
4470void qDeleteInEventHandler(QObject *o)-
4471{-
4472 delete o;-
4473}
executed 34998 times by 186 tests: end of block
Executed by:
  • tst_Gestures
  • 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_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • ...
34998
4474-
4475/*!-
4476 \fn QMetaObject::Connection QObject::connect(const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)-
4477 \overload connect()-
4478 \threadsafe-
4479-
4480 Creates a connection of the given \a type from the \a signal in-
4481 the \a sender object to the \a method in the \a receiver object.-
4482 Returns a handle to the connection that can be used to disconnect-
4483 it later.-
4484-
4485 The signal must be a function declared as a signal in the header.-
4486 The slot function can be any member function that can be connected-
4487 to the signal.-
4488 A slot can be connected to a given signal if the signal has at-
4489 least as many arguments as the slot, and there is an implicit-
4490 conversion between the types of the corresponding arguments in the-
4491 signal and the slot.-
4492-
4493 Example:-
4494-
4495 \snippet code/src_corelib_kernel_qobject.cpp 44-
4496-
4497 This example ensures that the label always displays the current-
4498 line edit text.-
4499-
4500 A signal can be connected to many slots and signals. Many signals-
4501 can be connected to one slot.-
4502-
4503 If a signal is connected to several slots, the slots are activated-
4504 in the same order as the order the connection was made, when the-
4505 signal is emitted-
4506-
4507 The function returns an handle to a connection if it successfully-
4508 connects the signal to the slot. The Connection handle will be invalid-
4509 if it cannot create the connection, for example, if QObject is unable-
4510 to verify the existence of \a signal (if it was not declared as a signal)-
4511 You can check if the QMetaObject::Connection is valid by casting it to a bool.-
4512-
4513 By default, a signal is emitted for every connection you make;-
4514 two signals are emitted for duplicate connections. You can break-
4515 all of these connections with a single disconnect() call.-
4516 If you pass the Qt::UniqueConnection \a type, the connection will only-
4517 be made if it is not a duplicate. If there is already a duplicate-
4518 (exact same signal to the exact same slot on the same objects),-
4519 the connection will fail and connect will return an invalid QMetaObject::Connection.-
4520-
4521 The optional \a type parameter describes the type of connection-
4522 to establish. In particular, it determines whether a particular-
4523 signal is delivered to a slot immediately or queued for delivery-
4524 at a later time. If the signal is queued, the parameters must be-
4525 of types that are known to Qt's meta-object system, because Qt-
4526 needs to copy the arguments to store them in an event behind the-
4527 scenes. If you try to use a queued connection and get the error-
4528 message-
4529-
4530 \snippet code/src_corelib_kernel_qobject.cpp 25-
4531-
4532 make sure to declare the argument type with Q_DECLARE_METATYPE-
4533-
4534 \note The number of arguments in the signal or slot are limited to 6 if-
4535 the compiler does not support C++11 variadic templates.-
4536 */-
4537-
4538-
4539/*!-
4540 \fn QMetaObject::Connection QObject::connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)-
4541-
4542 \threadsafe-
4543 \overload connect()-
4544-
4545 Creates a connection from \a signal in-
4546 \a sender object to \a functor, and returns a handle to the connection-
4547-
4548 The signal must be a function declared as a signal in the header.-
4549 The slot function can be any function or functor that can be connected-
4550 to the signal.-
4551 A function can be connected to a given signal if the signal as at-
4552 least as many argument as the slot. A functor can be connected to a signal-
4553 if they have exactly the same number of arguments. There must exist implicit-
4554 conversion between the types of the corresponding arguments in the-
4555 signal and the slot.-
4556-
4557 Example:-
4558-
4559 \snippet code/src_corelib_kernel_qobject.cpp 45-
4560-
4561 If your compiler support C++11 lambda expressions, you can use them:-
4562-
4563 \snippet code/src_corelib_kernel_qobject.cpp 46-
4564-
4565 The connection will automatically disconnect if the sender is destroyed.-
4566 However, you should take care that any objects used within the functor-
4567 are still alive when the signal is emitted.-
4568-
4569 \note If the compiler does not support C++11 variadic templates, the number-
4570 of arguments in the signal or slot are limited to 6, and the functor object-
4571 must not have an overloaded or templated operator().-
4572 */-
4573-
4574/*!-
4575 \fn QMetaObject::Connection QObject::connect(const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)-
4576-
4577 \threadsafe-
4578 \overload connect()-
4579-
4580 \since 5.2-
4581-
4582 Creates a connection of a given \a type from \a signal in-
4583 \a sender object to \a functor to be placed in a specific event-
4584 loop of \a context, and returns a handle to the connection-
4585-
4586 The signal must be a function declared as a signal in the header.-
4587 The slot function can be any function or functor that can be connected-
4588 to the signal.-
4589 A function can be connected to a given signal if the signal as at-
4590 least as many argument as the slot. A functor can be connected to a signal-
4591 if they have exactly the same number of arguments. There must exist implicit-
4592 conversion between the types of the corresponding arguments in the-
4593 signal and the slot.-
4594-
4595 Example:-
4596-
4597 \snippet code/src_corelib_kernel_qobject.cpp 50-
4598-
4599 If your compiler support C++11 lambda expressions, you can use them:-
4600-
4601 \snippet code/src_corelib_kernel_qobject.cpp 51-
4602-
4603 The connection will automatically disconnect if the sender or the context-
4604 is destroyed.-
4605 However, you should take care that any objects used within the functor-
4606 are still alive when the signal is emitted.-
4607-
4608 \note If the compiler does not support C++11 variadic templates, the number-
4609 of arguments in the signal or slot are limited to 6, and the functor object-
4610 must not have an overloaded or templated operator().-
4611 */-
4612-
4613/*!-
4614 \internal-
4615-
4616 Implementation of the template version of connect-
4617-
4618 \a sender is the sender object-
4619 \a signal is a pointer to a pointer to a member signal of the sender-
4620 \a receiver is the receiver object, may not be null, will be equal to sender when-
4621 connecting to a static function or a functor-
4622 \a slot a pointer only used when using Qt::UniqueConnection-
4623 \a type the Qt::ConnctionType passed as argument to connect-
4624 \a types an array of integer with the metatype id of the parameter of the signal-
4625 to be used with queued connection-
4626 must stay valid at least for the whole time of the connection, this function-
4627 do not take ownership. typically static data.-
4628 If null, then the types will be computed when the signal is emit in a queued-
4629 connection from the types from the signature.-
4630 \a senderMetaObject is the metaobject used to lookup the signal, the signal must be in-
4631 this metaobject-
4632 */-
4633QMetaObject::Connection QObject::connectImpl(const QObject *sender, void **signal,-
4634 const QObject *receiver, void **slot,-
4635 QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type,-
4636 const int *types, const QMetaObject *senderMetaObject)-
4637{-
4638 if (!signal) {
!signalDescription
TRUEnever evaluated
FALSEevaluated 215716 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
0-215716
4639 qWarning("QObject::connect: invalid null parameter");-
4640 if (slotObj)
slotObjDescription
TRUEnever evaluated
FALSEnever evaluated
0
4641 slotObj->destroyIfLastRef();
never executed: slotObj->destroyIfLastRef();
0
4642 return QMetaObject::Connection();
never executed: return QMetaObject::Connection();
0
4643 }-
4644-
4645 int signal_index = -1;-
4646 void *args[] = { &signal_index, signal };-
4647 for (; senderMetaObject && signal_index < 0; senderMetaObject = senderMetaObject->superClass()) {
senderMetaObjectDescription
TRUEevaluated 215719 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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 2 times by 2 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
signal_index < 0Description
TRUEevaluated 215719 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEnever evaluated
0-215719
4648 senderMetaObject->static_metacall(QMetaObject::IndexOfMethod, 0, args);-
4649 if (signal_index >= 0 && signal_index < QMetaObjectPrivate::get(senderMetaObject)->signalCount)
signal_index >= 0Description
TRUEevaluated 215714 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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 5 times by 2 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
signal_index <...)->signalCountDescription
TRUEevaluated 215714 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
FALSEnever evaluated
0-215714
4650 break;
executed 215714 times by 177 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
215714
4651 }
executed 5 times by 2 tests: end of block
Executed by:
  • tst_QMetaObjectBuilder
  • tst_QObject
5
4652 if (!senderMetaObject) {
!senderMetaObjectDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEevaluated 215714 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
2-215714
4653 qWarning("QObject::connect: signal not found in %s", sender->metaObject()->className());-
4654 slotObj->destroyIfLastRef();-
4655 return QMetaObject::Connection(0);
executed 2 times by 2 tests: return QMetaObject::Connection(0);
Executed by:
  • tst_QMetaObjectBuilder
  • tst_QObject
2
4656 }-
4657 signal_index += QMetaObjectPrivate::signalOffset(senderMetaObject);-
4658 return QObjectPrivate::connectImpl(sender, signal_index, receiver, slot, slotObj, type, types, senderMetaObject);
executed 215714 times by 177 tests: return QObjectPrivate::connectImpl(sender, signal_index, receiver, slot, slotObj, type, types, senderMetaObject);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
215714
4659}-
4660-
4661/*!-
4662 \internal-
4663-
4664 Internal version of connect used by the template version of QObject::connect (called via connectImpl) and-
4665 also used by the QObjectPrivate::connect version used by QML. The signal_index is expected to be relative-
4666 to the number of signals.-
4667 */-
4668QMetaObject::Connection QObjectPrivate::connectImpl(const QObject *sender, int signal_index,-
4669 const QObject *receiver, void **slot,-
4670 QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type,-
4671 const int *types, const QMetaObject *senderMetaObject)-
4672{-
4673 if (!sender || !slotObj || !senderMetaObject) {
!senderDescription
TRUEnever evaluated
FALSEevaluated 215715 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
!slotObjDescription
TRUEnever evaluated
FALSEevaluated 215715 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
!senderMetaObjectDescription
TRUEnever evaluated
FALSEevaluated 215715 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
0-215715
4674 qWarning("QObject::connect: invalid null parameter");-
4675 if (slotObj)
slotObjDescription
TRUEnever evaluated
FALSEnever evaluated
0
4676 slotObj->destroyIfLastRef();
never executed: slotObj->destroyIfLastRef();
0
4677 return QMetaObject::Connection();
never executed: return QMetaObject::Connection();
0
4678 }-
4679-
4680 QObject *s = const_cast<QObject *>(sender);-
4681 QObject *r = const_cast<QObject *>(receiver);-
4682-
4683 QOrderedMutexLocker locker(signalSlotLock(sender),-
4684 signalSlotLock(receiver));-
4685-
4686 if (type & Qt::UniqueConnection && slot) {
type & Qt::UniqueConnectionDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 215701 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
slotDescription
TRUEevaluated 13 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1-215701
4687 QObjectConnectionListVector *connectionLists = QObjectPrivate::get(s)->connectionLists;-
4688 if (connectionLists && connectionLists->count() > signal_index) {
connectionListsDescription
TRUEevaluated 11 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
connectionList...> signal_indexDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
2-11
4689 const QObjectPrivate::Connection *c2 =-
4690 (*connectionLists)[signal_index].first;-
4691-
4692 while (c2) {
c2Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 5 times by 1 test
Evaluated by:
  • tst_QObject
5-12
4693 if (c2->receiver == receiver && c2->isSlotObject && c2->slotObj->compare(slot)) {
c2->receiver == receiverDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QObject
c2->isSlotObjectDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
c2->slotObj->compare(slot)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
0-6
4694 slotObj->destroyIfLastRef();-
4695 return QMetaObject::Connection();
executed 4 times by 1 test: return QMetaObject::Connection();
Executed by:
  • tst_QObject
4
4696 }-
4697 c2 = c2->nextConnectionList;-
4698 }
executed 8 times by 1 test: end of block
Executed by:
  • tst_QObject
8
4699 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QObject
5
4700 type = static_cast<Qt::ConnectionType>(type ^ Qt::UniqueConnection);-
4701 }
executed 9 times by 1 test: end of block
Executed by:
  • tst_QObject
9
4702-
4703 QScopedPointer<QObjectPrivate::Connection> c(new QObjectPrivate::Connection);-
4704 c->sender = s;-
4705 c->signal_index = signal_index;-
4706 c->receiver = r;-
4707 c->slotObj = slotObj;-
4708 c->connectionType = type;-
4709 c->isSlotObject = true;-
4710 if (types) {
typesDescription
TRUEevaluated 864 times by 162 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
FALSEevaluated 214847 times by 177 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
864-214847
4711 c->argumentTypes.store(types);-
4712 c->ownArgumentTypes = false;-
4713 }
executed 864 times by 162 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
864
4714-
4715 QObjectPrivate::get(s)->addConnection(signal_index, c.data());-
4716 QMetaObject::Connection ret(c.take());-
4717 locker.unlock();-
4718-
4719 QMetaMethod method = QMetaObjectPrivate::signal(senderMetaObject, signal_index);-
4720 Q_ASSERT(method.isValid());-
4721 s->connectNotify(method);-
4722-
4723 return ret;
executed 215711 times by 177 tests: return ret;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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
  • ...
215711
4724}-
4725-
4726/*!-
4727 Disconnect a connection.-
4728-
4729 If the \a connection is invalid or has already been disconnected, do nothing-
4730 and return false.-
4731-
4732 \sa connect()-
4733 */-
4734bool QObject::disconnect(const QMetaObject::Connection &connection)-
4735{-
4736 QObjectPrivate::Connection *c = static_cast<QObjectPrivate::Connection *>(connection.d_ptr);-
4737-
4738 if (!c || !c->receiver)
!cDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QObject
!c->receiverDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 11 times by 1 test
Evaluated by:
  • tst_QObject
1-12
4739 return false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QObject
4
4740-
4741 QMutex *senderMutex = signalSlotLock(c->sender);-
4742 QMutex *receiverMutex = signalSlotLock(c->receiver);-
4743-
4744 {-
4745 QOrderedMutexLocker locker(senderMutex, receiverMutex);-
4746-
4747 QObjectConnectionListVector *connectionLists = QObjectPrivate::get(c->sender)->connectionLists;-
4748 Q_ASSERT(connectionLists);-
4749 connectionLists->dirty = true;-
4750-
4751 *c->prev = c->next;-
4752 if (c->next)
c->nextDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QObject
1-10
4753 c->next->prev = c->prev;
executed 1 time by 1 test: c->next->prev = c->prev;
Executed by:
  • tst_QObject
1
4754 c->receiver = 0;-
4755 }-
4756-
4757 // destroy the QSlotObject, if possible-
4758 if (c->isSlotObject) {
c->isSlotObjectDescription
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1-10
4759 c->slotObj->destroyIfLastRef();-
4760 c->isSlotObject = false;-
4761 }
executed 10 times by 1 test: end of block
Executed by:
  • tst_QObject
10
4762-
4763 c->sender->disconnectNotify(QMetaObjectPrivate::signal(c->sender->metaObject(),-
4764 c->signal_index));-
4765-
4766 const_cast<QMetaObject::Connection &>(connection).d_ptr = 0;-
4767 c->deref(); // has been removed from the QMetaObject::Connection object-
4768-
4769 return true;
executed 11 times by 1 test: return true;
Executed by:
  • tst_QObject
11
4770}-
4771-
4772/*! \fn bool QObject::disconnect(const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)-
4773 \overload diconnect()-
4774 \threadsafe-
4775-
4776 Disconnects \a signal in object \a sender from \a method in object-
4777 \a receiver. Returns \c true if the connection is successfully broken;-
4778 otherwise returns \c false.-
4779-
4780 A signal-slot connection is removed when either of the objects-
4781 involved are destroyed.-
4782-
4783 disconnect() is typically used in three ways, as the following-
4784 examples demonstrate.-
4785 \list 1-
4786 \li Disconnect everything connected to an object's signals:-
4787-
4788 \snippet code/src_corelib_kernel_qobject.cpp 26-
4789-
4790 \li Disconnect everything connected to a specific signal:-
4791-
4792 \snippet code/src_corelib_kernel_qobject.cpp 47-
4793-
4794 \li Disconnect a specific receiver:-
4795-
4796 \snippet code/src_corelib_kernel_qobject.cpp 30-
4797-
4798 \li Disconnect a connection from one specific signal to a specific slot:-
4799-
4800 \snippet code/src_corelib_kernel_qobject.cpp 48-
4801-
4802-
4803 \endlist-
4804-
4805 0 may be used as a wildcard, meaning "any signal", "any receiving-
4806 object", or "any slot in the receiving object", respectively.-
4807-
4808 The \a sender may never be 0. (You cannot disconnect signals from-
4809 more than one object in a single call.)-
4810-
4811 If \a signal is 0, it disconnects \a receiver and \a method from-
4812 any signal. If not, only the specified signal is disconnected.-
4813-
4814 If \a receiver is 0, it disconnects anything connected to \a-
4815 signal. If not, slots in objects other than \a receiver are not-
4816 disconnected.-
4817-
4818 If \a method is 0, it disconnects anything that is connected to \a-
4819 receiver. If not, only slots named \a method will be disconnected,-
4820 and all other slots are left alone. The \a method must be 0 if \a-
4821 receiver is left out, so you cannot disconnect a-
4822 specifically-named slot on all objects.-
4823-
4824 \note It is not possible to use this overload to diconnect signals-
4825 connected to functors or lambda expressions. That is because it is not-
4826 possible to compare them. Instead, use the overload that takes a-
4827 QMetaObject::Connection-
4828-
4829 \sa connect()-
4830*/-
4831-
4832bool QObject::disconnectImpl(const QObject *sender, void **signal, const QObject *receiver, void **slot, const QMetaObject *senderMetaObject)-
4833{-
4834 if (sender == 0 || (receiver == 0 && slot != 0)) {
sender == 0Description
TRUEnever evaluated
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
receiver == 0Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QObject
  • tst_QProcess
FALSEevaluated 14 times by 3 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QScrollBar
slot != 0Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QObject
  • tst_QProcess
0-18
4835 qWarning("QObject::disconnect: Unexpected null parameter");-
4836 return false;
never executed: return false;
0
4837 }-
4838-
4839 int signal_index = -1;-
4840 if (signal) {
signalDescription
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
FALSEnever evaluated
0-18
4841 void *args[] = { &signal_index, signal };-
4842 for (; senderMetaObject && signal_index < 0; senderMetaObject = senderMetaObject->superClass()) {
senderMetaObjectDescription
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
FALSEnever evaluated
signal_index < 0Description
TRUEevaluated 19 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
FALSEnever evaluated
0-19
4843 senderMetaObject->static_metacall(QMetaObject::IndexOfMethod, 0, args);-
4844 if (signal_index >= 0 && signal_index < QMetaObjectPrivate::get(senderMetaObject)->signalCount)
signal_index >= 0Description
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
signal_index <...)->signalCountDescription
TRUEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
FALSEnever evaluated
0-18
4845 break;
executed 18 times by 4 tests: break;
Executed by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
18
4846 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
4847 if (!senderMetaObject) {
!senderMetaObjectDescription
TRUEnever evaluated
FALSEevaluated 18 times by 4 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
0-18
4848 qWarning("QObject::disconnect: signal not found in %s", sender->metaObject()->className());-
4849 return QMetaObject::Connection(0);
never executed: return QMetaObject::Connection(0);
0
4850 }-
4851 signal_index += QMetaObjectPrivate::signalOffset(senderMetaObject);-
4852 }
executed 18 times by 4 tests: end of block
Executed by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
18
4853-
4854 return QMetaObjectPrivate::disconnect(sender, signal_index, senderMetaObject, receiver, -1, slot);
executed 18 times by 4 tests: return QMetaObjectPrivate::disconnect(sender, signal_index, senderMetaObject, receiver, -1, slot);
Executed by:
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QProcess
  • tst_QScrollBar
18
4855}-
4856-
4857/*!-
4858 \internal-
4859 Used by QML to connect a signal by index to a slot implemented in JavaScript (wrapped in a custom QSlotOBjectBase subclass).-
4860-
4861 The signal_index is an index relative to the number of methods.-
4862 */-
4863QMetaObject::Connection QObjectPrivate::connect(const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)-
4864{-
4865 if (!sender) {
!senderDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-1
4866 qWarning("QObject::connect: invalid null parameter");-
4867 if (slotObj)
slotObjDescription
TRUEnever evaluated
FALSEnever evaluated
0
4868 slotObj->destroyIfLastRef();
never executed: slotObj->destroyIfLastRef();
0
4869 return QMetaObject::Connection();
never executed: return QMetaObject::Connection();
0
4870 }-
4871 const QMetaObject *senderMetaObject = sender->metaObject();-
4872 signal_index = methodIndexToSignalIndex(&senderMetaObject, signal_index);-
4873-
4874 return QObjectPrivate::connectImpl(sender, signal_index, sender, /*slot*/0, slotObj, type, /*types*/0, senderMetaObject);
executed 1 time by 1 test: return QObjectPrivate::connectImpl(sender, signal_index, sender, 0, slotObj, type, 0, senderMetaObject);
Executed by:
  • tst_QObject
1
4875}-
4876-
4877/*!-
4878 \internal-
4879 Used by QML to disconnect a signal by index that's connected to a slot implemented in JavaScript (wrapped in a custom QSlotObjectBase subclass)-
4880 In the QML case the slot is not a pointer to a pointer to the function to disconnect, but instead it is a pointer to an array of internal values-
4881 required for the disconnect.-
4882 */-
4883bool QObjectPrivate::disconnect(const QObject *sender, int signal_index, void **slot)-
4884{-
4885 const QMetaObject *senderMetaObject = sender->metaObject();-
4886 signal_index = methodIndexToSignalIndex(&senderMetaObject, signal_index);-
4887-
4888 return QMetaObjectPrivate::disconnect(sender, signal_index, senderMetaObject, sender, -1, slot);
executed 1 time by 1 test: return QMetaObjectPrivate::disconnect(sender, signal_index, senderMetaObject, sender, -1, slot);
Executed by:
  • tst_QObject
1
4889}-
4890-
4891/*! \class QMetaObject::Connection-
4892 \inmodule QtCore-
4893 Represents a handle to a signal-slot connection.-
4894 It can be used to disconnect that connection, or check if-
4895 the connection was successful-
4896-
4897 \sa QObject::disconnect()-
4898 */-
4899-
4900/*!-
4901 Create a copy of the handle to the connection-
4902 */-
4903QMetaObject::Connection::Connection(const QMetaObject::Connection &other) : d_ptr(other.d_ptr)-
4904{-
4905 if (d_ptr)
d_ptrDescription
TRUEnever evaluated
FALSEnever evaluated
0
4906 static_cast<QObjectPrivate::Connection *>(d_ptr)->ref();
never executed: static_cast<QObjectPrivate::Connection *>(d_ptr)->ref();
0
4907}
never executed: end of block
0
4908-
4909QMetaObject::Connection& QMetaObject::Connection::operator=(const QMetaObject::Connection& other)-
4910{-
4911 if (other.d_ptr != d_ptr) {
other.d_ptr != d_ptrDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-1
4912 if (d_ptr)
d_ptrDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-1
4913 static_cast<QObjectPrivate::Connection *>(d_ptr)->deref();
never executed: static_cast<QObjectPrivate::Connection *>(d_ptr)->deref();
0
4914 d_ptr = other.d_ptr;-
4915 if (other.d_ptr)
other.d_ptrDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-1
4916 static_cast<QObjectPrivate::Connection *>(other.d_ptr)->ref();
executed 1 time by 1 test: static_cast<QObjectPrivate::Connection *>(other.d_ptr)->ref();
Executed by:
  • tst_QObject
1
4917 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
4918 return *this;
executed 1 time by 1 test: return *this;
Executed by:
  • tst_QObject
1
4919}-
4920-
4921/*!-
4922 Creates a Connection instance.-
4923*/-
4924-
4925QMetaObject::Connection::Connection() : d_ptr(0) {}
executed 11 times by 1 test: end of block
Executed by:
  • tst_QObject
11
4926-
4927/*!-
4928 Destructor for QMetaObject::Connection.-
4929*/-
4930QMetaObject::Connection::~Connection()-
4931{-
4932 if (d_ptr)
d_ptrDescription
TRUEevaluated 844350 times by 276 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
FALSEevaluated 739816 times by 265 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
739816-844350
4933 static_cast<QObjectPrivate::Connection *>(d_ptr)->deref();
executed 844350 times by 276 tests: static_cast<QObjectPrivate::Connection *>(d_ptr)->deref();
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
844350
4934}
executed 1584166 times by 276 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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
  • ...
1584166
4935-
4936/*! \internal Returns true if the object is still connected */-
4937bool QMetaObject::Connection::isConnected_helper() const-
4938{-
4939 Q_ASSERT(d_ptr); // we're only called from operator RestrictedBool() const-
4940 QObjectPrivate::Connection *c = static_cast<QObjectPrivate::Connection *>(d_ptr);-
4941-
4942 return c->receiver;
executed 108758 times by 117 tests: return c->receiver;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QDoubleValidator
  • ...
108758
4943}-
4944-
4945-
4946/*!-
4947 \fn QMetaObject::Connection::operator bool() const-
4948-
4949 Returns \c true if the connection is valid.-
4950-
4951 The connection is valid if the call to QObject::connect succeeded.-
4952 The connection is invalid if QObject::connect was not able to find-
4953 the signal or the slot, or if the arguments do not match.-
4954 */-
4955-
4956QT_END_NAMESPACE-
4957-
4958#include "moc_qobject.cpp"-
Source codeSwitch to Preprocessed file

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