qmetaobject.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qmetaobject.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2015 The Qt Company Ltd.-
4** Copyright (C) 2015 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 "qmetaobject.h"-
36#include "qmetatype.h"-
37#include "qobject.h"-
38#include "qmetaobject_p.h"-
39-
40#include <qcoreapplication.h>-
41#include <qcoreevent.h>-
42#include <qdatastream.h>-
43#include <qstringlist.h>-
44#include <qthread.h>-
45#include <qvariant.h>-
46#include <qdebug.h>-
47#include <qsemaphore.h>-
48-
49#include "private/qobject_p.h"-
50#include "private/qmetaobject_p.h"-
51-
52// for normalizeTypeInternal-
53#include "private/qmetaobject_moc_p.h"-
54-
55#include <ctype.h>-
56-
57QT_BEGIN_NAMESPACE-
58-
59/*!-
60 \class QMetaObject-
61 \inmodule QtCore-
62-
63 \brief The QMetaObject class contains meta-information about Qt-
64 objects.-
65-
66 \ingroup objectmodel-
67-
68 The Qt \l{Meta-Object System} in Qt is responsible for the-
69 signals and slots inter-object communication mechanism, runtime-
70 type information, and the Qt property system. A single-
71 QMetaObject instance is created for each QObject subclass that is-
72 used in an application, and this instance stores all the-
73 meta-information for the QObject subclass. This object is-
74 available as QObject::metaObject().-
75-
76 This class is not normally required for application programming,-
77 but it is useful if you write meta-applications, such as scripting-
78 engines or GUI builders.-
79-
80 The functions you are most likely to find useful are these:-
81 \list-
82 \li className() returns the name of a class.-
83 \li superClass() returns the superclass's meta-object.-
84 \li method() and methodCount() provide information-
85 about a class's meta-methods (signals, slots and other-
86 \l{Q_INVOKABLE}{invokable} member functions).-
87 \li enumerator() and enumeratorCount() and provide information about-
88 a class's enumerators.-
89 \li propertyCount() and property() provide information about a-
90 class's properties.-
91 \li constructor() and constructorCount() provide information-
92 about a class's meta-constructors.-
93 \endlist-
94-
95 The index functions indexOfConstructor(), indexOfMethod(),-
96 indexOfEnumerator(), and indexOfProperty() map names of constructors,-
97 member functions, enumerators, or properties to indexes in the-
98 meta-object. For example, Qt uses indexOfMethod() internally when you-
99 connect a signal to a slot.-
100-
101 Classes can also have a list of \e{name}--\e{value} pairs of-
102 additional class information, stored in QMetaClassInfo objects.-
103 The number of pairs is returned by classInfoCount(), single pairs-
104 are returned by classInfo(), and you can search for pairs with-
105 indexOfClassInfo().-
106-
107 \sa QMetaClassInfo, QMetaEnum, QMetaMethod, QMetaProperty, QMetaType,-
108 {Meta-Object System}-
109*/-
110-
111/*!-
112 \enum QMetaObject::Call-
113-
114 \internal-
115-
116 \value InvokeSlot-
117 \value EmitSignal-
118 \value ReadProperty-
119 \value WriteProperty-
120 \value ResetProperty-
121 \value QueryPropertyDesignable-
122 \value QueryPropertyScriptable-
123 \value QueryPropertyStored-
124 \value QueryPropertyEditable-
125 \value QueryPropertyUser-
126 \value CreateInstance-
127*/-
128-
129/*!-
130 \enum QMetaMethod::Access-
131-
132 This enum describes the access level of a method, following the conventions used in C++.-
133-
134 \value Private-
135 \value Protected-
136 \value Public-
137*/-
138-
139static inline const QMetaObjectPrivate *priv(const uint* data)-
140{
executed 179832581 times by 1080 tests: return reinterpret_cast<const QMetaObjectPrivate*>(data);
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
  • ...
return reinterpret_cast<const QMetaObjectPrivate*>(data); }
executed 179832581 times by 1080 tests: return reinterpret_cast<const QMetaObjectPrivate*>(data);
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
  • ...
179832581
141-
142static inline const QByteArray stringData(const QMetaObject *mo, int index)-
143{-
144 Q_ASSERT(priv(mo->d.data)->revision >= 7);-
145 const QByteArrayDataPtr data = { const_cast<QByteArrayData*>(&mo->d.stringdata[index]) };-
146 Q_ASSERT(data.ptr->ref.isStatic());-
147 Q_ASSERT(data.ptr->alloc == 0);-
148 Q_ASSERT(data.ptr->capacityReserved == 0);-
149 Q_ASSERT(data.ptr->size >= 0);-
150 return data;
executed 27356636 times by 573 tests: return data;
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
  • ...
27356636
151}-
152-
153static inline const char *rawStringData(const QMetaObject *mo, int index)-
154{-
155 return stringData(mo, index).data();
executed 5267157 times by 550 tests: return stringData(mo, index).data();
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
  • ...
5267157
156}-
157-
158static inline QByteArray typeNameFromTypeInfo(const QMetaObject *mo, uint typeInfo)-
159{-
160 if (typeInfo & IsUnresolvedType) {
typeInfo & IsUnresolvedTypeDescription
TRUEevaluated 149985 times by 218 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 28538 times by 202 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
  • ...
28538-149985
161 return stringData(mo, typeInfo & TypeNameIndexMask);
executed 149985 times by 218 tests: return stringData(mo, typeInfo & TypeNameIndexMask);
Executed 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
149985
162 } else {-
163 // ### Use the QMetaType::typeName() that returns QByteArray-
164 const char *t = QMetaType::typeName(typeInfo);-
165 return QByteArray::fromRawData(t, qstrlen(t));
executed 28538 times by 202 tests: return QByteArray::fromRawData(t, qstrlen(t));
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
  • ...
28538
166 }-
167}-
168-
169static inline const char *rawTypeNameFromTypeInfo(const QMetaObject *mo, uint typeInfo)-
170{-
171 return typeNameFromTypeInfo(mo, typeInfo).constData();
executed 1126 times by 23 tests: return typeNameFromTypeInfo(mo, typeInfo).constData();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
1126
172}-
173-
174static inline int typeFromTypeInfo(const QMetaObject *mo, uint typeInfo)-
175{-
176 if (!(typeInfo & IsUnresolvedType))
!(typeInfo & IsUnresolvedType)Description
TRUEevaluated 1335861 times by 561 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 157274 times by 219 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
157274-1335861
177 return typeInfo;
executed 1335861 times by 561 tests: return typeInfo;
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
  • ...
1335861
178 return QMetaType::type(stringData(mo, typeInfo & TypeNameIndexMask));
executed 157274 times by 219 tests: return QMetaType::type(stringData(mo, typeInfo & TypeNameIndexMask));
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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
157274
179}-
180-
181class QMetaMethodPrivate : public QMetaMethod-
182{-
183public:-
184 static const QMetaMethodPrivate *get(const QMetaMethod *q)-
185 { return static_cast<const QMetaMethodPrivate *>(q); }
executed 924818 times by 785 tests: return static_cast<const QMetaMethodPrivate *>(q);
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
  • ...
924818
186-
187 inline QByteArray signature() const;-
188 inline QByteArray name() const;-
189 inline int typesDataIndex() const;-
190 inline const char *rawReturnTypeName() const;-
191 inline int returnType() const;-
192 inline int parameterCount() const;-
193 inline int parametersDataIndex() const;-
194 inline uint parameterTypeInfo(int index) const;-
195 inline int parameterType(int index) const;-
196 inline void getParameterTypes(int *types) const;-
197 inline QList<QByteArray> parameterTypes() const;-
198 inline QList<QByteArray> parameterNames() const;-
199 inline QByteArray tag() const;-
200 inline int ownMethodIndex() const;-
201-
202private:-
203 QMetaMethodPrivate();-
204};-
205-
206/*!-
207 \since 4.5-
208-
209 Constructs a new instance of this class. You can pass up to ten arguments-
210 (\a val0, \a val1, \a val2, \a val3, \a val4, \a val5, \a val6, \a val7,-
211 \a val8, and \a val9) to the constructor. Returns the new object, or 0 if-
212 no suitable constructor is available.-
213-
214 Note that only constructors that are declared with the Q_INVOKABLE-
215 modifier are made available through the meta-object system.-
216-
217 \sa Q_ARG(), constructor()-
218*/-
219QObject *QMetaObject::newInstance(QGenericArgument val0,-
220 QGenericArgument val1,-
221 QGenericArgument val2,-
222 QGenericArgument val3,-
223 QGenericArgument val4,-
224 QGenericArgument val5,-
225 QGenericArgument val6,-
226 QGenericArgument val7,-
227 QGenericArgument val8,-
228 QGenericArgument val9) const-
229{-
230 QByteArray constructorName = className();-
231 {-
232 int idx = constructorName.lastIndexOf(':');-
233 if (idx != -1)
idx != -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
1-4
234 constructorName.remove(0, idx+1); // remove qualified part
executed 1 time by 1 test: constructorName.remove(0, idx+1);
Executed by:
  • tst_QMetaObject
1
235 }-
236 QVarLengthArray<char, 512> sig;-
237 sig.append(constructorName.constData(), constructorName.length());-
238 sig.append('(');-
239-
240 enum { MaximumParamCount = 10 };-
241 const char *typeNames[] = {val0.name(), val1.name(), val2.name(), val3.name(), val4.name(),-
242 val5.name(), val6.name(), val7.name(), val8.name(), val9.name()};-
243-
244 int paramCount;-
245 for (paramCount = 0; paramCount < MaximumParamCount; ++paramCount) {
paramCount < MaximumParamCountDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-8
246 int len = qstrlen(typeNames[paramCount]);-
247 if (len <= 0)
len <= 0Description
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
3-5
248 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
5
249 sig.append(typeNames[paramCount], len);-
250 sig.append(',');-
251 }
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
3
252 if (paramCount == 0)
paramCount == 0Description
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
2-3
253 sig.append(')'); // no parameters
executed 2 times by 2 tests: sig.append(')');
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
2
254 else-
255 sig[sig.size() - 1] = ')';
executed 3 times by 2 tests: sig[sig.size() - 1] = ')';
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
3
256 sig.append('\0');-
257-
258 int idx = indexOfConstructor(sig.constData());-
259 if (idx < 0) {
idx < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
1-4
260 QByteArray norm = QMetaObject::normalizedSignature(sig.constData());-
261 idx = indexOfConstructor(norm.constData());-
262 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QMetaObject
1
263 if (idx < 0)
idx < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
1-4
264 return 0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QMetaObject
1
265-
266 QObject *returnValue = 0;-
267 void *param[] = {&returnValue, val0.data(), val1.data(), val2.data(), val3.data(), val4.data(),-
268 val5.data(), val6.data(), val7.data(), val8.data(), val9.data()};-
269-
270 if (static_metacall(CreateInstance, idx, param) >= 0)
static_metacal...x, param) >= 0Description
TRUEnever evaluated
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
0-4
271 return 0;
never executed: return 0;
0
272 return returnValue;
executed 4 times by 2 tests: return returnValue;
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
4
273}-
274-
275/*!-
276 \internal-
277*/-
278int QMetaObject::static_metacall(Call cl, int idx, void **argv) const-
279{-
280 Q_ASSERT(priv(d.data)->revision >= 6);-
281 if (!d.static_metacall)
!d.static_metacallDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QDBusMetaObject
FALSEevaluated 221269 times by 204 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_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
3-221269
282 return 0;
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QDBusMetaObject
3
283 d.static_metacall(0, cl, idx, argv);-
284 return -1;
executed 221269 times by 204 tests: return -1;
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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
221269
285}-
286-
287/*!-
288 \internal-
289*/-
290int QMetaObject::metacall(QObject *object, Call cl, int idx, void **argv)-
291{-
292 if (object->d_ptr->metaObject)
object->d_ptr->metaObjectDescription
TRUEnever evaluated
FALSEevaluated 42141 times by 202 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
0-42141
293 return object->d_ptr->metaObject->metaCall(object, cl, idx, argv);
never executed: return object->d_ptr->metaObject->metaCall(object, cl, idx, argv);
0
294 else-
295 return object->qt_metacall(cl, idx, argv);
executed 42141 times by 202 tests: return object->qt_metacall(cl, idx, argv);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
42141
296}-
297-
298static inline const char *objectClassName(const QMetaObject *m)-
299{-
300 return rawStringData(m, priv(m->d.data)->className);
executed 885959 times by 548 tests: return rawStringData(m, priv(m->d.data)->className);
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
  • ...
885959
301}-
302-
303/*!-
304 Returns the class name.-
305-
306 \sa superClass()-
307*/-
308const char *QMetaObject::className() const-
309{-
310 return objectClassName(this);-
311}-
312-
313/*!-
314 \fn QMetaObject *QMetaObject::superClass() const-
315-
316 Returns the meta-object of the superclass, or 0 if there is no-
317 such object.-
318-
319 \sa className()-
320*/-
321-
322/*!-
323 \internal-
324-
325 Returns \a obj if object \a obj inherits from this-
326 meta-object; otherwise returns 0.-
327*/-
328QObject *QMetaObject::cast(QObject *obj) const-
329{-
330 if (obj) {
objDescription
TRUEevaluated 11884777 times by 710 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 280544 times by 295 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
280544-11884777
331 const QMetaObject *m = obj->metaObject();-
332 do {-
333 if (m == this)
m == thisDescription
TRUEevaluated 11057149 times by 709 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 10706005 times by 266 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
10706005-11057149
334 return obj;
executed 11057149 times by 709 tests: return obj;
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
  • ...
11057149
335 } while ((m = m->d.superdata));
executed 10706005 times by 266 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
(m = m->d.superdata)Description
TRUEevaluated 9878377 times by 266 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 827628 times by 213 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
827628-10706005
336 }
executed 827628 times by 213 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_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
827628
337 return 0;
executed 1108172 times by 339 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • ...
1108172
338}-
339-
340/*!-
341 \internal-
342-
343 Returns \a obj if object \a obj inherits from this-
344 meta-object; otherwise returns 0.-
345*/-
346const QObject *QMetaObject::cast(const QObject *obj) const-
347{-
348 if (obj) {
objDescription
TRUEevaluated 263086 times by 115 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • ...
FALSEevaluated 23734 times by 44 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMessageBox
  • tst_QPlainTextEdit
  • tst_QPushButton
  • ...
23734-263086
349 const QMetaObject *m = obj->metaObject();-
350 do {-
351 if (m == this)
m == thisDescription
TRUEevaluated 43935 times by 87 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • ...
FALSEevaluated 859818 times by 83 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
43935-859818
352 return obj;
executed 43935 times by 87 tests: return obj;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • ...
43935
353 } while ((m = m->d.superdata));
executed 859818 times by 83 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
(m = m->d.superdata)Description
TRUEevaluated 640667 times by 83 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
FALSEevaluated 219151 times by 77 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
219151-859818
354 }
executed 219151 times by 77 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
219151
355 return 0;
executed 242885 times by 94 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • ...
242885
356}-
357-
358#ifndef QT_NO_TRANSLATION-
359/*!-
360 \internal-
361*/-
362QString QMetaObject::tr(const char *s, const char *c, int n) const-
363{-
364 return QCoreApplication::translate(objectClassName(this), s, c, n);-
365}-
366#endif // QT_NO_TRANSLATION-
367-
368/*!-
369 Returns the method offset for this class; i.e. the index position-
370 of this class's first member function.-
371-
372 The offset is the sum of all the methods in the class's-
373 superclasses (which is always positive since QObject has the-
374 deleteLater() slot and a destroyed() signal).-
375-
376 \sa method(), methodCount(), indexOfMethod()-
377*/-
378int QMetaObject::methodOffset() const-
379{-
380 int offset = 0;-
381 const QMetaObject *m = d.superdata;-
382 while (m) {
mDescription
TRUEevaluated 31730026 times by 711 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 12164975 times by 711 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
  • ...
12164975-31730026
383 offset += priv(m->d.data)->methodCount;-
384 m = m->d.superdata;-
385 }
executed 31730026 times by 711 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
  • ...
31730026
386 return offset;
executed 12164975 times by 711 tests: return offset;
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
  • ...
12164975
387}-
388-
389-
390/*!-
391 Returns the enumerator offset for this class; i.e. the index-
392 position of this class's first enumerator.-
393-
394 If the class has no superclasses with enumerators, the offset is-
395 0; otherwise the offset is the sum of all the enumerators in the-
396 class's superclasses.-
397-
398 \sa enumerator(), enumeratorCount(), indexOfEnumerator()-
399*/-
400int QMetaObject::enumeratorOffset() const-
401{-
402 int offset = 0;-
403 const QMetaObject *m = d.superdata;-
404 while (m) {
mDescription
TRUEevaluated 44117 times by 82 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • ...
FALSEevaluated 139492 times by 139 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
44117-139492
405 offset += priv(m->d.data)->enumeratorCount;-
406 m = m->d.superdata;-
407 }
executed 44117 times by 82 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFormLayout
  • tst_QFrame
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QHeaderView
  • ...
44117
408 return offset;
executed 139492 times by 139 tests: return offset;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
139492
409}-
410-
411/*!-
412 Returns the property offset for this class; i.e. the index-
413 position of this class's first property.-
414-
415 The offset is the sum of all the properties in the class's-
416 superclasses (which is always positive since QObject has the-
417 name() property).-
418-
419 \sa property(), propertyCount(), indexOfProperty()-
420*/-
421int QMetaObject::propertyOffset() const-
422{-
423 int offset = 0;-
424 const QMetaObject *m = d.superdata;-
425 while (m) {
mDescription
TRUEevaluated 191732 times by 156 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
  • ...
FALSEevaluated 106237 times by 156 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
  • ...
106237-191732
426 offset += priv(m->d.data)->propertyCount;-
427 m = m->d.superdata;-
428 }
executed 191732 times by 156 tests: end of block
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
  • ...
191732
429 return offset;
executed 106237 times by 156 tests: return offset;
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
  • ...
106237
430}-
431-
432/*!-
433 Returns the class information offset for this class; i.e. the-
434 index position of this class's first class information item.-
435-
436 If the class has no superclasses with class information, the-
437 offset is 0; otherwise the offset is the sum of all the class-
438 information items in the class's superclasses.-
439-
440 \sa classInfo(), classInfoCount(), indexOfClassInfo()-
441*/-
442int QMetaObject::classInfoOffset() const-
443{-
444 int offset = 0;-
445 const QMetaObject *m = d.superdata;-
446 while (m) {
mDescription
TRUEevaluated 9796 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 7001 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
7001-9796
447 offset += priv(m->d.data)->classInfoCount;-
448 m = m->d.superdata;-
449 }
executed 9796 times by 16 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
9796
450 return offset;
executed 7001 times by 16 tests: return offset;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
7001
451}-
452-
453/*!-
454 \since 4.5-
455-
456 Returns the number of constructors in this class.-
457-
458 \sa constructor(), indexOfConstructor()-
459*/-
460int QMetaObject::constructorCount() const-
461{-
462 Q_ASSERT(priv(d.data)->revision >= 2);-
463 return priv(d.data)->constructorCount;
executed 40 times by 2 tests: return priv(d.data)->constructorCount;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
40
464}-
465-
466/*!-
467 Returns the number of methods in this class, including the number of-
468 methods provided by each base class. These include signals and slots-
469 as well as normal member functions.-
470-
471 Use code like the following to obtain a QStringList containing the methods-
472 specific to a given class:-
473-
474 \snippet code/src_corelib_kernel_qmetaobject.cpp methodCount-
475-
476 \sa method(), methodOffset(), indexOfMethod()-
477*/-
478int QMetaObject::methodCount() const-
479{-
480 int n = priv(d.data)->methodCount;-
481 const QMetaObject *m = d.superdata;-
482 while (m) {
mDescription
TRUEevaluated 414357 times by 548 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
FALSEevaluated 504274 times by 551 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
414357-504274
483 n += priv(m->d.data)->methodCount;-
484 m = m->d.superdata;-
485 }
executed 414357 times by 548 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
414357
486 return n;
executed 504274 times by 551 tests: return n;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
504274
487}-
488-
489/*!-
490 Returns the number of enumerators in this class.-
491-
492 \sa enumerator(), enumeratorOffset(), indexOfEnumerator()-
493*/-
494int QMetaObject::enumeratorCount() const-
495{-
496 int n = priv(d.data)->enumeratorCount;-
497 const QMetaObject *m = d.superdata;-
498 while (m) {
mDescription
TRUEevaluated 140 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 87 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
87-140
499 n += priv(m->d.data)->enumeratorCount;-
500 m = m->d.superdata;-
501 }
executed 140 times by 2 tests: end of block
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
140
502 return n;
executed 87 times by 2 tests: return n;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
87
503}-
504-
505/*!-
506 Returns the number of properties in this class, including the number of-
507 properties provided by each base class.-
508-
509 Use code like the following to obtain a QStringList containing the properties-
510 specific to a given class:-
511-
512 \snippet code/src_corelib_kernel_qmetaobject.cpp propertyCount-
513-
514 \sa property(), propertyOffset(), indexOfProperty()-
515*/-
516int QMetaObject::propertyCount() const-
517{-
518 int n = priv(d.data)->propertyCount;-
519 const QMetaObject *m = d.superdata;-
520 while (m) {
mDescription
TRUEevaluated 1944 times by 22 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
FALSEevaluated 1188 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
1188-1944
521 n += priv(m->d.data)->propertyCount;-
522 m = m->d.superdata;-
523 }
executed 1944 times by 22 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
1944
524 return n;
executed 1188 times by 23 tests: return n;
Executed by:
  • tst_QAbstractItemView
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
1188
525}-
526-
527/*!-
528 Returns the number of items of class information in this class.-
529-
530 \sa classInfo(), classInfoOffset(), indexOfClassInfo()-
531*/-
532int QMetaObject::classInfoCount() const-
533{-
534 int n = priv(d.data)->classInfoCount;-
535 const QMetaObject *m = d.superdata;-
536 while (m) {
mDescription
TRUEevaluated 140 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 87 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
87-140
537 n += priv(m->d.data)->classInfoCount;-
538 m = m->d.superdata;-
539 }
executed 140 times by 2 tests: end of block
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
140
540 return n;
executed 87 times by 2 tests: return n;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
87
541}-
542-
543// Returns \c true if the method defined by the given meta-object&handle-
544// matches the given name, argument count and argument types, otherwise-
545// returns \c false.-
546static bool methodMatch(const QMetaObject *m, int handle,-
547 const QByteArray &name, int argc,-
548 const QArgumentType *types)-
549{-
550 Q_ASSERT(priv(m->d.data)->revision >= 7);-
551 if (int(m->d.data[handle + 1]) != argc)
int(m->d.data[... + 1]) != argcDescription
TRUEevaluated 13239455 times by 569 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 21692073 times by 571 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
  • ...
13239455-21692073
552 return false;
executed 13239455 times by 569 tests: return false;
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
  • ...
13239455
553-
554 if (stringData(m, m->d.data[handle]) != name)
stringData(m, ...ndle]) != nameDescription
TRUEevaluated 20096891 times by 570 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 1595182 times by 570 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
  • ...
1595182-20096891
555 return false;
executed 20096891 times by 570 tests: return false;
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
  • ...
20096891
556-
557 int paramsIndex = m->d.data[handle + 2] + 1;-
558 for (int i = 0; i < argc; ++i) {
i < argcDescription
TRUEevaluated 1604236 times by 272 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 1591671 times by 570 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
  • ...
1591671-1604236
559 uint typeInfo = m->d.data[paramsIndex + i];-
560 if (types[i].type()) {
types[i].type()Description
TRUEevaluated 1458460 times by 271 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 145776 times by 172 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_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
145776-1458460
561 if (types[i].type() != typeFromTypeInfo(m, typeInfo))
types[i].type(...o(m, typeInfo)Description
TRUEevaluated 1367 times by 28 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaMethod
  • tst_QObject
  • tst_QPrinter
  • tst_QSignalMapper
  • tst_QSpinBox
  • ...
FALSEevaluated 1457093 times by 271 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
  • ...
1367-1457093
562 return false;
executed 1367 times by 28 tests: return false;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QLineEdit
  • tst_QListWidget
  • tst_QMetaMethod
  • tst_QObject
  • tst_QPrinter
  • tst_QSignalMapper
  • tst_QSpinBox
  • ...
1367
563 } else {
executed 1456709 times by 271 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
  • ...
1456709
564 if (types[i].name() != typeNameFromTypeInfo(m, typeInfo))
types[i].name(...o(m, typeInfo)Description
TRUEevaluated 2144 times by 21 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_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTextDocument
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
FALSEevaluated 143632 times by 172 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_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
2144-143632
565 return false;
executed 2144 times by 21 tests: return false;
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_QNetworkReply
  • tst_QObject
  • tst_QTcpServer
  • tst_QTextDocument
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_Spdy
2144
566 }
executed 143632 times by 172 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_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
143632
567 }-
568-
569 return true;
executed 1591671 times by 570 tests: return true;
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
  • ...
1591671
570}-
571-
572/**-
573* \internal-
574* helper function for indexOf{Method,Slot,Signal}, returns the relative index of the method within-
575* the baseObject-
576* \a MethodType might be MethodSignal or MethodSlot, or 0 to match everything.-
577*/-
578template<int MethodType>-
579static inline int indexOfMethodRelative(const QMetaObject **baseObject,-
580 const QByteArray &name, int argc,-
581 const QArgumentType *types)-
582{-
583 for (const QMetaObject *m = *baseObject; m; m = m->d.superdata) {
mDescription
TRUEevaluated 3626702 times by 571 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 782175 times by 550 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
  • ...
782175-3626702
584 Q_ASSERT(priv(m->d.data)->revision >= 7);-
585 int i = (MethodType == MethodSignal)
(MethodType == MethodSignal)Description
TRUEevaluated 1282032 times by 268 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 2344670 times by 571 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
  • ...
1282032-2344670
586 ? (priv(m->d.data)->signalCount - 1) : (priv(m->d.data)->methodCount - 1);-
587 const int end = (MethodType == MethodSlot)-
588 ? (priv(m->d.data)->signalCount) : 0;-
589-
590 for (; i >= end; --i) {
i >= endDescription
TRUEevaluated 34931477 times by 571 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 2035045 times by 552 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
  • ...
2035045-34931477
591 int handle = priv(m->d.data)->methodData + 5*i;-
592 if (methodMatch(m, handle, name, argc, types)) {
methodMatch(m,..., argc, types)Description
TRUEevaluated 1591657 times by 570 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 33339820 times by 570 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
  • ...
1591657-33339820
593 *baseObject = m;-
594 return i;
executed 1591657 times by 570 tests: return i;
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
  • ...
1591657
595 }-
596 }
executed 33339820 times by 570 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
  • ...
33339820
597 }
executed 2035045 times by 552 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
  • ...
2035045
598 return -1;
executed 782175 times by 550 tests: return -1;
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
  • ...
782175
599}-
600-
601-
602/*!-
603 \since 4.5-
604-
605 Finds \a constructor and returns its index; otherwise returns -1.-
606-
607 Note that the \a constructor has to be in normalized form, as returned-
608 by normalizedSignature().-
609-
610 \sa constructor(), constructorCount(), normalizedSignature()-
611*/-
612int QMetaObject::indexOfConstructor(const char *constructor) const-
613{-
614 Q_ASSERT(priv(d.data)->revision >= 7);-
615 QArgumentTypeArray types;-
616 QByteArray name = QMetaObjectPrivate::decodeMethodSignature(constructor, types);-
617 return QMetaObjectPrivate::indexOfConstructor(this, name, types.size(), types.constData());
executed 16 times by 4 tests: return QMetaObjectPrivate::indexOfConstructor(this, name, types.size(), types.constData());
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
16
618}-
619-
620/*!-
621 Finds \a method and returns its index; otherwise returns -1.-
622-
623 Note that the \a method has to be in normalized form, as returned-
624 by normalizedSignature().-
625-
626 \sa method(), methodCount(), methodOffset(), normalizedSignature()-
627*/-
628int QMetaObject::indexOfMethod(const char *method) const-
629{-
630 const QMetaObject *m = this;-
631 int i;-
632 Q_ASSERT(priv(m->d.data)->revision >= 7);-
633 QArgumentTypeArray types;-
634 QByteArray name = QMetaObjectPrivate::decodeMethodSignature(method, types);-
635 i = indexOfMethodRelative<0>(&m, name, types.size(), types.constData());-
636 if (i >= 0)
i >= 0Description
TRUEevaluated 375093 times by 567 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 166608 times by 540 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
  • ...
166608-375093
637 i += m->methodOffset();
executed 375093 times by 567 tests: i += m->methodOffset();
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
  • ...
375093
638 return i;
executed 541701 times by 568 tests: return i;
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
  • ...
541701
639}-
640-
641// Parses a string of comma-separated types into QArgumentTypes.-
642// No normalization of the type names is performed.-
643static void argumentTypesFromString(const char *str, const char *end,-
644 QArgumentTypeArray &types)-
645{-
646 Q_ASSERT(str <= end);-
647 while (str != end) {
str != endDescription
TRUEevaluated 1610441 times by 272 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 1760142 times by 571 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
  • ...
1610441-1760142
648 if (!types.isEmpty())
!types.isEmpty()Description
TRUEevaluated 753590 times by 187 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 856467 times by 272 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
  • ...
753590-856467
649 ++str; // Skip comma
executed 753590 times by 187 tests: ++str;
Executed 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
753590
650 const char *begin = str;-
651 int level = 0;-
652 while (str != end && (level > 0 || *str != ',')) {
str != endDescription
TRUEevaluated 13902482 times by 272 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 856851 times by 272 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
  • ...
level > 0Description
TRUEevaluated 764572 times by 102 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
FALSEevaluated 13137910 times by 272 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
  • ...
*str != ','Description
TRUEevaluated 12384320 times by 272 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 753590 times by 187 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
753590-13902482
653 if (*str == '<')
*str == '<'Description
TRUEevaluated 54700 times by 102 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
FALSEevaluated 13094192 times by 272 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
  • ...
54700-13094192
654 ++level;
executed 54700 times by 102 tests: ++level;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
54700
655 else if (*str == '>')
*str == '>'Description
TRUEevaluated 54700 times by 102 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
FALSEevaluated 13039492 times by 272 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
  • ...
54700-13039492
656 --level;
executed 54700 times by 102 tests: --level;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirModel
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
54700
657 ++str;-
658 }
executed 13148892 times by 272 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
  • ...
13148892
659 types += QArgumentType(QByteArray(begin, str - begin));-
660 }
executed 1610441 times by 272 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
  • ...
1610441
661}
executed 1760142 times by 571 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
  • ...
1760142
662-
663// Given a method \a signature (e.g. "foo(int,double)"), this function-
664// populates the argument \a types array and returns the method name.-
665QByteArray QMetaObjectPrivate::decodeMethodSignature(-
666 const char *signature, QArgumentTypeArray &types)-
667{-
668 Q_ASSERT(signature != 0);-
669 const char *lparens = strchr(signature, '(');-
670 if (!lparens)
!lparensDescription
TRUEnever evaluated
FALSEevaluated 1760142 times by 571 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-1760142
671 return QByteArray();
never executed: return QByteArray();
0
672 const char *rparens = strrchr(lparens + 1, ')');-
673 if (!rparens || *(rparens+1))
!rparensDescription
TRUEnever evaluated
FALSEevaluated 1760142 times by 571 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
  • ...
*(rparens+1)Description
TRUEnever evaluated
FALSEevaluated 1760142 times by 571 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-1760142
674 return QByteArray();
never executed: return QByteArray();
0
675 int nameLength = lparens - signature;-
676 argumentTypesFromString(lparens + 1, rparens, types);-
677 return QByteArray::fromRawData(signature, nameLength);
executed 1760142 times by 571 tests: return QByteArray::fromRawData(signature, nameLength);
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
  • ...
1760142
678}-
679-
680/*!-
681 Finds \a signal and returns its index; otherwise returns -1.-
682-
683 This is the same as indexOfMethod(), except that it will return-
684 -1 if the method exists but isn't a signal.-
685-
686 Note that the \a signal has to be in normalized form, as returned-
687 by normalizedSignature().-
688-
689 \sa indexOfMethod(), normalizedSignature(), method(), methodCount(), methodOffset()-
690*/-
691int QMetaObject::indexOfSignal(const char *signal) const-
692{-
693 const QMetaObject *m = this;-
694 int i;-
695 Q_ASSERT(priv(m->d.data)->revision >= 7);-
696 QArgumentTypeArray types;-
697 QByteArray name = QMetaObjectPrivate::decodeMethodSignature(signal, types);-
698 i = QMetaObjectPrivate::indexOfSignalRelative(&m, name, types.size(), types.constData());-
699 if (i >= 0)
i >= 0Description
TRUEevaluated 109934 times by 106 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
FALSEevaluated 276 times by 5 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QStateMachine
  • tst_qdbusabstractadaptor - unknown status
276-109934
700 i += m->methodOffset();
executed 109934 times by 106 tests: i += m->methodOffset();
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • ...
109934
701 return i;
executed 110210 times by 108 tests: return i;
Executed by:
  • tst_Gestures
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
110210
702}-
703-
704/*!-
705 \internal-
706 Same as QMetaObject::indexOfSignal, but the result is the local offset to the base object.-
707-
708 \a baseObject will be adjusted to the enclosing QMetaObject, or 0 if the signal is not found-
709*/-
710int QMetaObjectPrivate::indexOfSignalRelative(const QMetaObject **baseObject,-
711 const QByteArray &name, int argc,-
712 const QArgumentType *types)-
713{-
714 int i = indexOfMethodRelative<MethodSignal>(baseObject, name, argc, types);-
715#ifndef QT_NO_DEBUG-
716 const QMetaObject *m = *baseObject;-
717 if (i >= 0 && m && m->d.superdata) {
i >= 0Description
TRUEevaluated 687373 times by 268 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 27062 times by 112 tests
Evaluated by:
  • tst_ModelTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • 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_QFileDialog2
  • tst_QFileSystemModel
  • ...
mDescription
TRUEevaluated 687373 times by 268 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
m->d.superdataDescription
TRUEevaluated 560824 times by 260 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 126549 times by 200 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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
  • ...
0-687373
718 int conflict = indexOfMethod(m->d.superdata, name, argc, types);-
719 if (conflict >= 0) {
conflict >= 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 560820 times by 260 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
  • ...
4-560820
720 QMetaMethod conflictMethod = m->d.superdata->method(conflict);-
721 qWarning("QMetaObject::indexOfSignal: signal %s from %s redefined in %s",-
722 conflictMethod.methodSignature().constData(),-
723 objectClassName(m->d.superdata), objectClassName(m));-
724 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QObject
4
725 }
executed 560824 times by 260 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
  • ...
560824
726 #endif-
727 return i;
executed 714435 times by 268 tests: return i;
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
  • ...
714435
728}-
729-
730/*!-
731 Finds \a slot and returns its index; otherwise returns -1.-
732-
733 This is the same as indexOfMethod(), except that it will return-
734 -1 if the method exists but isn't a slot.-
735-
736 \sa indexOfMethod(), method(), methodCount(), methodOffset()-
737*/-
738int QMetaObject::indexOfSlot(const char *slot) const-
739{-
740 const QMetaObject *m = this;-
741 int i;-
742 Q_ASSERT(priv(m->d.data)->revision >= 7);-
743 QArgumentTypeArray types;-
744 QByteArray name = QMetaObjectPrivate::decodeMethodSignature(slot, types);-
745 i = QMetaObjectPrivate::indexOfSlotRelative(&m, name, types.size(), types.constData());-
746 if (i >= 0)
i >= 0Description
TRUEevaluated 5136 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
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObject
4-5136
747 i += m->methodOffset();
executed 5136 times by 161 tests: i += m->methodOffset();
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
  • ...
5136
748 return i;
executed 5140 times by 161 tests: return 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
5140
749}-
750-
751// same as indexOfSignalRelative but for slots.-
752int QMetaObjectPrivate::indexOfSlotRelative(const QMetaObject **m,-
753 const QByteArray &name, int argc,-
754 const QArgumentType *types)-
755{-
756 return indexOfMethodRelative<MethodSlot>(m, name, argc, types);
executed 502928 times by 261 tests: return indexOfMethodRelative<MethodSlot>(m, name, argc, types);
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
  • ...
502928
757}-
758-
759int QMetaObjectPrivate::indexOfSignal(const QMetaObject *m, const QByteArray &name,-
760 int argc, const QArgumentType *types)-
761{-
762 int i = indexOfSignalRelative(&m, name, argc, types);-
763 if (i >= 0)
i >= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
764 i += m->methodOffset();
never executed: i += m->methodOffset();
0
765 return i;
never executed: return i;
0
766}-
767-
768int QMetaObjectPrivate::indexOfSlot(const QMetaObject *m, const QByteArray &name,-
769 int argc, const QArgumentType *types)-
770{-
771 int i = indexOfSlotRelative(&m, name, argc, types);-
772 if (i >= 0)
i >= 0Description
TRUEnever evaluated
FALSEnever evaluated
0
773 i += m->methodOffset();
never executed: i += m->methodOffset();
0
774 return i;
never executed: return i;
0
775}-
776-
777int QMetaObjectPrivate::indexOfMethod(const QMetaObject *m, const QByteArray &name,-
778 int argc, const QArgumentType *types)-
779{-
780 int i = indexOfMethodRelative<0>(&m, name, argc, types);-
781 if (i >= 0)
i >= 0Description
TRUEevaluated 27258 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 587510 times by 260 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
  • ...
27258-587510
782 i += m->methodOffset();
executed 27258 times by 110 tests: i += m->methodOffset();
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
  • ...
27258
783 return i;
executed 614768 times by 260 tests: return i;
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
  • ...
614768
784}-
785-
786int QMetaObjectPrivate::indexOfConstructor(const QMetaObject *m, const QByteArray &name,-
787 int argc, const QArgumentType *types)-
788{-
789 for (int i = priv(m->d.data)->constructorCount-1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 51 times by 4 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
2-51
790 int handle = priv(m->d.data)->constructorData + 5*i;-
791 if (methodMatch(m, handle, name, argc, types))
methodMatch(m,..., argc, types)Description
TRUEevaluated 14 times by 4 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEevaluated 37 times by 3 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
14-37
792 return i;
executed 14 times by 4 tests: return i;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
14
793 }
executed 37 times by 3 tests: end of block
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
37
794 return -1;
executed 2 times by 1 test: return -1;
Executed by:
  • tst_QMetaObject
2
795}-
796-
797/*!-
798 \internal-
799 \since 5.0-
800-
801 Returns the signal offset for the class \a m; i.e., the index position-
802 of the class's first signal.-
803-
804 Similar to QMetaObject::methodOffset(), but non-signal methods are-
805 excluded.-
806*/-
807int QMetaObjectPrivate::signalOffset(const QMetaObject *m)-
808{-
809 Q_ASSERT(m != 0);-
810 int offset = 0;-
811 for (m = m->d.superdata; m; m = m->d.superdata)
mDescription
TRUEevaluated 32531552 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 24186326 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
  • ...
24186326-32531552
812 offset += priv(m->d.data)->signalCount;
executed 32531552 times by 1079 tests: offset += priv(m->d.data)->signalCount;
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
  • ...
32531552
813 return offset;
executed 24186326 times by 1079 tests: return offset;
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
  • ...
24186326
814}-
815-
816/*!-
817 \internal-
818 \since 5.0-
819-
820 Returns the number of signals for the class \a m, including the signals-
821 for the base class.-
822-
823 Similar to QMetaObject::methodCount(), but non-signal methods are-
824 excluded.-
825*/-
826int QMetaObjectPrivate::absoluteSignalCount(const QMetaObject *m)-
827{-
828 Q_ASSERT(m != 0);-
829 int n = priv(m->d.data)->signalCount;-
830 for (m = m->d.superdata; m; m = m->d.superdata)
mDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
3-4
831 n += priv(m->d.data)->signalCount;
executed 3 times by 2 tests: n += priv(m->d.data)->signalCount;
Executed by:
  • tst_QMetaObject
  • tst_QObject
3
832 return n;
executed 4 times by 2 tests: return n;
Executed by:
  • tst_QMetaObject
  • tst_QObject
4
833}-
834-
835/*!-
836 \internal-
837 \since 5.0-
838-
839 Returns the index of the signal method \a m.-
840-
841 Similar to QMetaMethod::methodIndex(), but non-signal methods are-
842 excluded.-
843*/-
844int QMetaObjectPrivate::signalIndex(const QMetaMethod &m)-
845{-
846 if (!m.mobj)
!m.mobjDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMetaObject
0-14
847 return -1;
never executed: return -1;
0
848 return QMetaMethodPrivate::get(&m)->ownMethodIndex() + signalOffset(m.mobj);
executed 14 times by 1 test: return QMetaMethodPrivate::get(&m)->ownMethodIndex() + signalOffset(m.mobj);
Executed by:
  • tst_QMetaObject
14
849}-
850-
851/*!-
852 \internal-
853 \since 5.0-
854-
855 Returns the signal for the given meta-object \a m at \a signal_index.-
856-
857 It it different from QMetaObject::method(); the index should not include-
858 non-signal methods.-
859*/-
860QMetaMethod QMetaObjectPrivate::signal(const QMetaObject *m, int signal_index)-
861{-
862 QMetaMethod result;-
863 if (signal_index < 0)
signal_index < 0Description
TRUEevaluated 3792 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 1832610 times by 516 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
  • ...
3792-1832610
864 return result;
executed 3792 times by 228 tests: return result;
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
  • ...
3792
865 Q_ASSERT(m != 0);-
866 int i = signal_index;-
867 i -= signalOffset(m);-
868 if (i < 0 && m->d.superdata)
i < 0Description
TRUEevaluated 147126 times by 415 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 1685484 times by 516 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
  • ...
m->d.superdataDescription
TRUEevaluated 147126 times by 415 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEnever evaluated
0-1685484
869 return signal(m->d.superdata, signal_index);
executed 147126 times by 415 tests: return signal(m->d.superdata, signal_index);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
147126
870-
871 if (i >= 0 && i < priv(m->d.data)->signalCount) {
i >= 0Description
TRUEevaluated 1685484 times by 516 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
i < priv(m->d....)->signalCountDescription
TRUEevaluated 1685018 times by 516 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 466 times by 13 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QMainWindow
  • tst_QMenu
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPrinter
  • tst_QStyle
  • tst_QToolBar
  • tst_QWidget
  • tst_QWidgetAction
  • tst_QWidget_window
  • tst_Spdy
  • tst_qdbusabstractadaptor - unknown status
0-1685484
872 result.mobj = m;-
873 result.handle = priv(m->d.data)->methodData + 5*i;-
874 }
executed 1685018 times by 516 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
  • ...
1685018
875 return result;
executed 1685484 times by 516 tests: return result;
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
  • ...
1685484
876}-
877-
878/*!-
879 \internal-
880-
881 Returns \c true if the \a signalTypes and \a methodTypes are-
882 compatible; otherwise returns \c false.-
883*/-
884bool QMetaObjectPrivate::checkConnectArgs(int signalArgc, const QArgumentType *signalTypes,-
885 int methodArgc, const QArgumentType *methodTypes)-
886{-
887 if (signalArgc < methodArgc)
signalArgc < methodArgcDescription
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
888 return false;
never executed: return false;
0
889 for (int i = 0; i < methodArgc; ++i) {
i < methodArgcDescription
TRUEevaluated 549937 times by 209 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
  • ...
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
  • ...
521945-549937
890 if (signalTypes[i] != methodTypes[i])
signalTypes[i]...methodTypes[i]Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 549936 times by 209 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
  • ...
1-549936
891 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QObject
1
892 }
executed 549936 times by 209 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_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • ...
549936
893 return true;
executed 521945 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
  • ...
521945
894}-
895-
896/*!-
897 \internal-
898-
899 Returns \c true if the \a signal and \a method arguments are-
900 compatible; otherwise returns \c false.-
901*/-
902bool QMetaObjectPrivate::checkConnectArgs(const QMetaMethodPrivate *signal,-
903 const QMetaMethodPrivate *method)-
904{-
905 if (signal->methodType() != QMetaMethod::Signal)
signal->method...Method::SignalDescription
TRUEnever evaluated
FALSEnever evaluated
0
906 return false;
never executed: return false;
0
907 if (signal->parameterCount() < method->parameterCount())
signal->parame...rameterCount()Description
TRUEnever evaluated
FALSEnever evaluated
0
908 return false;
never executed: return false;
0
909 const QMetaObject *smeta = signal->enclosingMetaObject();-
910 const QMetaObject *rmeta = method->enclosingMetaObject();-
911 for (int i = 0; i < method->parameterCount(); ++i) {
i < method->parameterCount()Description
TRUEnever evaluated
FALSEnever evaluated
0
912 uint sourceTypeInfo = signal->parameterTypeInfo(i);-
913 uint targetTypeInfo = method->parameterTypeInfo(i);-
914 if ((sourceTypeInfo & IsUnresolvedType)
(sourceTypeInf...nresolvedType)Description
TRUEnever evaluated
FALSEnever evaluated
0
915 || (targetTypeInfo & IsUnresolvedType)) {
(targetTypeInf...nresolvedType)Description
TRUEnever evaluated
FALSEnever evaluated
0
916 QByteArray sourceName = typeNameFromTypeInfo(smeta, sourceTypeInfo);-
917 QByteArray targetName = typeNameFromTypeInfo(rmeta, targetTypeInfo);-
918 if (sourceName != targetName)
sourceName != targetNameDescription
TRUEnever evaluated
FALSEnever evaluated
0
919 return false;
never executed: return false;
0
920 } else {
never executed: end of block
0
921 int sourceType = typeFromTypeInfo(smeta, sourceTypeInfo);-
922 int targetType = typeFromTypeInfo(rmeta, targetTypeInfo);-
923 if (sourceType != targetType)
sourceType != targetTypeDescription
TRUEnever evaluated
FALSEnever evaluated
0
924 return false;
never executed: return false;
0
925 }
never executed: end of block
0
926 }-
927 return true;
never executed: return true;
0
928}-
929-
930static const QMetaObject *QMetaObject_findMetaObject(const QMetaObject *self, const char *name)-
931{-
932 while (self) {
selfDescription
TRUEevaluated 108 times by 13 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEnever evaluated
0-108
933 if (strcmp(objectClassName(self), name) == 0)
strcmp(objectC...f), name) == 0Description
TRUEevaluated 101 times by 13 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
7-101
934 return self;
executed 101 times by 13 tests: return self;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
101
935 if (self->d.relatedMetaObjects) {
self->d.relatedMetaObjectsDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-7
936 Q_ASSERT(priv(self->d.data)->revision >= 2);-
937 const QMetaObject * const *e = self->d.relatedMetaObjects;-
938 if (e) {
eDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-7
939 while (*e) {
*eDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-7
940 if (const QMetaObject *m =QMetaObject_findMetaObject((*e), name))
const QMetaObj...ct((*e), name)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-7
941 return m;
executed 7 times by 1 test: return m;
Executed by:
  • tst_QMetaObjectBuilder
7
942 ++e;-
943 }
never executed: end of block
0
944 }
never executed: end of block
0
945 }
never executed: end of block
0
946 self = self->d.superdata;-
947 }
never executed: end of block
0
948 return self;
never executed: return self;
0
949}-
950-
951/*!-
952 Finds enumerator \a name and returns its index; otherwise returns-
953 -1.-
954-
955 \sa enumerator(), enumeratorCount(), enumeratorOffset()-
956*/-
957int QMetaObject::indexOfEnumerator(const char *name) const-
958{-
959 const QMetaObject *m = this;-
960 while (m) {
mDescription
TRUEevaluated 70889 times by 139 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
FALSEevaluated 786 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
786-70889
961 const QMetaObjectPrivate *d = priv(m->d.data);-
962 for (int i = d->enumeratorCount - 1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 1598989 times by 132 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 2297 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
2297-1598989
963 const char *prop = rawStringData(m, m->d.data[d->enumeratorData + 4*i]);-
964 if (name[0] == prop[0] && strcmp(name + 1, prop + 1) == 0) {
name[0] == prop[0]Description
TRUEevaluated 94345 times by 131 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 1504644 times by 96 tests
Evaluated by:
  • tst_Gestures
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDrag
  • tst_QEventDispatcher
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFormLayout
  • ...
strcmp(name + ...prop + 1) == 0Description
TRUEevaluated 68592 times by 131 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 25753 times by 79 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDrag
  • tst_QFrame
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGridLayout
  • ...
25753-1504644
965 i += m->enumeratorOffset();-
966 return i;
executed 68592 times by 131 tests: return i;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
68592
967 }-
968 }
executed 1530397 times by 102 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDrag
  • tst_QEventDispatcher
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontComboBox
  • ...
1530397
969 m = m->d.superdata;-
970 }
executed 2297 times by 23 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
2297
971 return -1;
executed 786 times by 23 tests: return -1;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
786
972}-
973-
974/*!-
975 Finds property \a name and returns its index; otherwise returns-
976 -1.-
977-
978 \sa property(), propertyCount(), propertyOffset()-
979*/-
980int QMetaObject::indexOfProperty(const char *name) const-
981{-
982 const QMetaObject *m = this;-
983 while (m) {
mDescription
TRUEevaluated 256450 times by 203 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
  • ...
FALSEevaluated 63467 times by 182 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
  • ...
63467-256450
984 const QMetaObjectPrivate *d = priv(m->d.data);-
985 for (int i = d->propertyCount-1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 2690138 times by 203 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
  • ...
FALSEevaluated 232485 times by 182 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
  • ...
232485-2690138
986 const char *prop = rawStringData(m, m->d.data[d->propertyData + 3*i]);-
987 if (name[0] == prop[0] && strcmp(name + 1, prop + 1) == 0) {
name[0] == prop[0]Description
TRUEevaluated 48027 times by 155 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
  • ...
FALSEevaluated 2642111 times by 185 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
strcmp(name + ...prop + 1) == 0Description
TRUEevaluated 23965 times by 154 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
  • ...
FALSEevaluated 24062 times by 52 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QLabel
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • ...
23965-2642111
988 i += m->propertyOffset();-
989 return i;
executed 23965 times by 154 tests: return i;
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
  • ...
23965
990 }-
991 }
executed 2666173 times by 190 tests: end of block
Executed 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_QCoreApplication
  • ...
2666173
992 m = m->d.superdata;-
993 }
executed 232485 times by 182 tests: end of block
Executed 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
  • ...
232485
994-
995 Q_ASSERT(priv(this->d.data)->revision >= 3);-
996 if (priv(this->d.data)->flags & DynamicMetaObject) {
priv(this->d.d...amicMetaObjectDescription
TRUEnever evaluated
FALSEevaluated 63467 times by 182 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
  • ...
0-63467
997 QAbstractDynamicMetaObject *me =-
998 const_cast<QAbstractDynamicMetaObject *>(static_cast<const QAbstractDynamicMetaObject *>(this));-
999-
1000 return me->createProperty(name, 0);
never executed: return me->createProperty(name, 0);
0
1001 }-
1002-
1003 return -1;
executed 63467 times by 182 tests: return -1;
Executed 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
  • ...
63467
1004}-
1005-
1006/*!-
1007 Finds class information item \a name and returns its index;-
1008 otherwise returns -1.-
1009-
1010 \sa classInfo(), classInfoCount(), classInfoOffset()-
1011*/-
1012int QMetaObject::indexOfClassInfo(const char *name) const-
1013{-
1014 int i = -1;-
1015 const QMetaObject *m = this;-
1016 while (m && i < 0) {
mDescription
TRUEevaluated 5507 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 301 times by 10 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
i < 0Description
TRUEevaluated 3100 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 2407 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
301-5507
1017 for (i = priv(m->d.data)->classInfoCount-1; i >= 0; --i)
i >= 0Description
TRUEevaluated 2610 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 693 times by 11 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
693-2610
1018 if (strcmp(name, rawStringData(m, m->d.data[priv(m->d.data)->classInfoData + 2*i])) == 0) {
strcmp(name, r... + 2*i])) == 0Description
TRUEevaluated 2407 times by 15 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEevaluated 203 times by 9 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
203-2407
1019 i += m->classInfoOffset();-
1020 break;
executed 2407 times by 15 tests: break;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2407
1021 }-
1022 m = m->d.superdata;-
1023 }
executed 3100 times by 15 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
3100
1024 return i;
executed 2708 times by 15 tests: return i;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2708
1025}-
1026-
1027/*!-
1028 \since 4.5-
1029-
1030 Returns the meta-data for the constructor with the given \a index.-
1031-
1032 \sa constructorCount(), newInstance()-
1033*/-
1034QMetaMethod QMetaObject::constructor(int index) const-
1035{-
1036 int i = index;-
1037 QMetaMethod result;-
1038 Q_ASSERT(priv(d.data)->revision >= 2);-
1039 if (i >= 0 && i < priv(d.data)->constructorCount) {
i >= 0Description
TRUEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEnever evaluated
i < priv(d.dat...nstructorCountDescription
TRUEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEnever evaluated
0-103
1040 result.mobj = this;-
1041 result.handle = priv(d.data)->constructorData + 5*i;-
1042 }
executed 103 times by 3 tests: end of block
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
103
1043 return result;
executed 103 times by 3 tests: return result;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
103
1044}-
1045-
1046/*!-
1047 Returns the meta-data for the method with the given \a index.-
1048-
1049 \sa methodCount(), methodOffset(), indexOfMethod()-
1050*/-
1051QMetaMethod QMetaObject::method(int index) const-
1052{-
1053 int i = index;-
1054 i -= methodOffset();-
1055 if (i < 0 && d.superdata)
i < 0Description
TRUEevaluated 172801 times by 541 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
FALSEevaluated 1064014 times by 571 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
  • ...
d.superdataDescription
TRUEevaluated 172798 times by 541 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
3-1064014
1056 return d.superdata->method(index);
executed 172798 times by 541 tests: return d.superdata->method(index);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
172798
1057-
1058 QMetaMethod result;-
1059 if (i >= 0 && i < priv(d.data)->methodCount) {
i >= 0Description
TRUEevaluated 1063928 times by 571 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 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
i < priv(d.data)->methodCountDescription
TRUEevaluated 1064010 times by 571 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 4 times by 3 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QObject
3-1064010
1060 result.mobj = this;-
1061 result.handle = priv(d.data)->methodData + 5*i;-
1062 }
executed 1064010 times by 571 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
  • ...
1064010
1063 return result;
executed 1064017 times by 571 tests: return result;
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
  • ...
1064017
1064}-
1065-
1066/*!-
1067 Returns the meta-data for the enumerator with the given \a index.-
1068-
1069 \sa enumeratorCount(), enumeratorOffset(), indexOfEnumerator()-
1070*/-
1071QMetaEnum QMetaObject::enumerator(int index) const-
1072{-
1073 int i = index;-
1074 i -= enumeratorOffset();-
1075 if (i < 0 && d.superdata)
i < 0Description
TRUEevaluated 2289 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 68606 times by 131 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
d.superdataDescription
TRUEevaluated 1505 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 784 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
784-68606
1076 return d.superdata->enumerator(index);
executed 1505 times by 23 tests: return d.superdata->enumerator(index);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
1505
1077-
1078 QMetaEnum result;-
1079 if (i >= 0 && i < priv(d.data)->enumeratorCount) {
i >= 0Description
TRUEevaluated 68606 times by 131 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
FALSEevaluated 784 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
i < priv(d.dat...numeratorCountDescription
TRUEevaluated 68606 times by 131 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
FALSEnever evaluated
0-68606
1080 result.mobj = this;-
1081 result.handle = priv(d.data)->enumeratorData + 4*i;-
1082 }
executed 68606 times by 131 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • ...
68606
1083 return result;
executed 69390 times by 139 tests: return result;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataStream
  • tst_QDataWidgetMapper
  • ...
69390
1084}-
1085-
1086/*!-
1087 Returns the meta-data for the property with the given \a index.-
1088 If no such property exists, a null QMetaProperty is returned.-
1089-
1090 \sa propertyCount(), propertyOffset(), indexOfProperty()-
1091*/-
1092QMetaProperty QMetaObject::property(int index) const-
1093{-
1094 int i = index;-
1095 i -= propertyOffset();-
1096 if (i < 0 && d.superdata)
i < 0Description
TRUEevaluated 30197 times by 36 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObjectBuilder
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QShortcut
  • tst_QStateMachine
  • ...
FALSEevaluated 29875 times by 156 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
  • ...
d.superdataDescription
TRUEevaluated 30197 times by 36 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObjectBuilder
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QShortcut
  • tst_QStateMachine
  • ...
FALSEnever evaluated
0-30197
1097 return d.superdata->property(index);
executed 30197 times by 36 tests: return d.superdata->property(index);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QDockWidget
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMainWindow
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMenu
  • tst_QMetaObjectBuilder
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QShortcut
  • tst_QStateMachine
  • ...
30197
1098-
1099 QMetaProperty result;-
1100 if (i >= 0 && i < priv(d.data)->propertyCount) {
i >= 0Description
TRUEevaluated 29875 times by 156 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
  • ...
FALSEnever evaluated
i < priv(d.dat...>propertyCountDescription
TRUEevaluated 29875 times by 156 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
  • ...
FALSEnever evaluated
0-29875
1101 int handle = priv(d.data)->propertyData + 3*i;-
1102 int flags = d.data[handle + 2];-
1103 result.mobj = this;-
1104 result.handle = handle;-
1105 result.idx = i;-
1106-
1107 if (flags & EnumOrFlag) {
flags & EnumOrFlagDescription
TRUEevaluated 1018 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 28857 times by 155 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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
  • tst_QDBusAbstractInterface
  • ...
1018-28857
1108 const char *type = rawTypeNameFromTypeInfo(this, d.data[handle + 1]);-
1109 result.menum = enumerator(indexOfEnumerator(type));-
1110 if (!result.menum.isValid()) {
!result.menum.isValid()Description
TRUEevaluated 690 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 328 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
328-690
1111 const char *enum_name = type;-
1112 const char *scope_name = objectClassName(this);-
1113 char *scope_buffer = 0;-
1114-
1115 const char *colon = strrchr(enum_name, ':');-
1116 // ':' will always appear in pairs-
1117 Q_ASSERT(colon <= enum_name || *(colon-1) == ':');-
1118 if (colon > enum_name) {
colon > enum_nameDescription
TRUEevaluated 596 times by 13 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 94 times by 12 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
94-596
1119 int len = colon-enum_name-1;-
1120 scope_buffer = (char *)malloc(len+1);-
1121 memcpy(scope_buffer, enum_name, len);-
1122 scope_buffer[len] = '\0';-
1123 scope_name = scope_buffer;-
1124 enum_name = colon+1;-
1125 }
executed 596 times by 13 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
596
1126-
1127 const QMetaObject *scope = 0;-
1128 if (qstrcmp(scope_name, "Qt") == 0)
qstrcmp(scope_name, "Qt") == 0Description
TRUEevaluated 589 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 101 times by 13 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
101-589
1129 scope = &QObject::staticQtMetaObject;
executed 589 times by 12 tests: scope = &QObject::staticQtMetaObject;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
589
1130 else-
1131 scope = QMetaObject_findMetaObject(this, scope_name);
executed 101 times by 13 tests: scope = QMetaObject_findMetaObject(this, scope_name);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
101
1132 if (scope)
scopeDescription
TRUEevaluated 690 times by 23 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEnever evaluated
0-690
1133 result.menum = scope->enumerator(scope->indexOfEnumerator(enum_name));
executed 690 times by 23 tests: result.menum = scope->enumerator(scope->indexOfEnumerator(enum_name));
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
690
1134 if (scope_buffer)
scope_bufferDescription
TRUEevaluated 596 times by 13 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 94 times by 12 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
94-596
1135 free(scope_buffer);
executed 596 times by 13 tests: free(scope_buffer);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
596
1136 }
executed 690 times by 23 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
690
1137 }
executed 1018 times by 23 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
1018
1138 }
executed 29875 times by 156 tests: end of block
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
  • ...
29875
1139 return result;
executed 29875 times by 156 tests: return result;
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
  • ...
29875
1140}-
1141-
1142/*!-
1143 \since 4.2-
1144-
1145 Returns the property that has the \c USER flag set to true.-
1146-
1147 \sa QMetaProperty::isUser()-
1148*/-
1149QMetaProperty QMetaObject::userProperty() const-
1150{-
1151 const int propCount = propertyCount();-
1152 for (int i = propCount - 1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 5363 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
3-5363
1153 const QMetaProperty prop = property(i);-
1154 if (prop.isUser())
prop.isUser()Description
TRUEevaluated 325 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
FALSEevaluated 5038 times by 10 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
325-5038
1155 return prop;
executed 325 times by 10 tests: return prop;
Executed by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
325
1156 }
executed 5038 times by 10 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
5038
1157 return QMetaProperty();
executed 3 times by 1 test: return QMetaProperty();
Executed by:
  • tst_QAbstractItemView
3
1158}-
1159-
1160/*!-
1161 Returns the meta-data for the item of class information with the-
1162 given \a index.-
1163-
1164 Example:-
1165-
1166 \snippet code/src_corelib_kernel_qmetaobject.cpp 0-
1167-
1168 \sa classInfoCount(), classInfoOffset(), indexOfClassInfo()-
1169 */-
1170QMetaClassInfo QMetaObject::classInfo(int index) const-
1171{-
1172 int i = index;-
1173 i -= classInfoOffset();-
1174 if (i < 0 && d.superdata)
i < 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 2426 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
d.superdataDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-2426
1175 return d.superdata->classInfo(index);
executed 1 time by 1 test: return d.superdata->classInfo(index);
Executed by:
  • tst_QMetaObject
1
1176-
1177 QMetaClassInfo result;-
1178 if (i >= 0 && i < priv(d.data)->classInfoCount) {
i >= 0Description
TRUEevaluated 2426 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
i < priv(d.dat...classInfoCountDescription
TRUEevaluated 2426 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
FALSEnever evaluated
0-2426
1179 result.mobj = this;-
1180 result.handle = priv(d.data)->classInfoData + 2*i;-
1181 }
executed 2426 times by 16 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2426
1182 return result;
executed 2426 times by 16 tests: return result;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2426
1183}-
1184-
1185/*!-
1186 Returns \c true if the \a signal and \a method arguments are-
1187 compatible; otherwise returns \c false.-
1188-
1189 Both \a signal and \a method are expected to be normalized.-
1190-
1191 \sa normalizedSignature()-
1192*/-
1193bool QMetaObject::checkConnectArgs(const char *signal, const char *method)-
1194{-
1195 const char *s1 = signal;-
1196 const char *s2 = method;-
1197 while (*s1++ != '(') { } // scan to first '('
executed 161 times by 1 test: end of block
Executed by:
  • tst_QObject
*s1++ != '('Description
TRUEevaluated 161 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
23-161
1198 while (*s2++ != '(') { }
executed 115 times by 1 test: end of block
Executed by:
  • tst_QObject
*s2++ != '('Description
TRUEevaluated 115 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
23-115
1199 if (*s2 == ')' || qstrcmp(s1,s2) == 0) // method has no args or
*s2 == ')'Description
TRUEevaluated 23 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
qstrcmp(s1,s2) == 0Description
TRUEnever evaluated
FALSEnever evaluated
0-23
1200 return true; // exact match
executed 23 times by 1 test: return true;
Executed by:
  • tst_QObject
23
1201 int s1len = qstrlen(s1);-
1202 int s2len = qstrlen(s2);-
1203 if (s2len < s1len && strncmp(s1,s2,s2len-1)==0 && s1[s2len-1]==',')
s2len < s1lenDescription
TRUEnever evaluated
FALSEnever evaluated
strncmp(s1,s2,s2len-1)==0Description
TRUEnever evaluated
FALSEnever evaluated
s1[s2len-1]==','Description
TRUEnever evaluated
FALSEnever evaluated
0
1204 return true; // method has less args
never executed: return true;
0
1205 return false;
never executed: return false;
0
1206}-
1207-
1208/*!-
1209 \since 5.0-
1210 \overload-
1211-
1212 Returns \c true if the \a signal and \a method arguments are-
1213 compatible; otherwise returns \c false.-
1214*/-
1215bool QMetaObject::checkConnectArgs(const QMetaMethod &signal,-
1216 const QMetaMethod &method)-
1217{-
1218 return QMetaObjectPrivate::checkConnectArgs(
never executed: return QMetaObjectPrivate::checkConnectArgs( QMetaMethodPrivate::get(&signal), QMetaMethodPrivate::get(&method));
0
1219 QMetaMethodPrivate::get(&signal),
never executed: return QMetaObjectPrivate::checkConnectArgs( QMetaMethodPrivate::get(&signal), QMetaMethodPrivate::get(&method));
0
1220 QMetaMethodPrivate::get(&method));
never executed: return QMetaObjectPrivate::checkConnectArgs( QMetaMethodPrivate::get(&signal), QMetaMethodPrivate::get(&method));
0
1221}-
1222-
1223static void qRemoveWhitespace(const char *s, char *d)-
1224{-
1225 char last = 0;-
1226 while (*s && is_space(*s))
*sDescription
TRUEevaluated 117726 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEnever evaluated
is_space(*s)Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaType
FALSEevaluated 117716 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
0-117726
1227 s++;
executed 10 times by 2 tests: s++;
Executed by:
  • tst_QMetaObject
  • tst_QMetaType
10
1228 while (*s) {
*sDescription
TRUEevaluated 131625 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 117716 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
117716-131625
1229 while (*s && !is_space(*s))
*sDescription
TRUEevaluated 3000157 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 117705 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
!is_space(*s)Description
TRUEevaluated 2986237 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 13920 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
13920-3000157
1230 last = *d++ = *s++;
executed 2986237 times by 325 tests: last = *d++ = *s++;
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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
2986237
1231 while (*s && is_space(*s))
*sDescription
TRUEevaluated 27836 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 117716 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
is_space(*s)Description
TRUEevaluated 13927 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 13909 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
13909-117716
1232 s++;
executed 13927 times by 98 tests: s++;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
13927
1233 if (*s && ((is_ident_char(*s) && is_ident_char(last))
*sDescription
TRUEevaluated 13909 times by 98 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 117716 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
is_ident_char(*s)Description
TRUEevaluated 11623 times by 78 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • ...
FALSEevaluated 2286 times by 53 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QButtonGroup
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • ...
is_ident_char(last)Description
TRUEevaluated 1748 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
FALSEevaluated 9875 times by 28 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QButtonGroup
  • tst_QFtp
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QTcpServer
  • tst_QTextDocument
  • tst_QUdpSocket
  • tst_QVariant
  • ...
1748-117716
1234 || ((*s == ':') && (last == '<')))) {
(*s == ':')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 12160 times by 62 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QButtonGroup
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • ...
(last == '<')Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-12160
1235 last = *d++ = ' ';-
1236 }
executed 1749 times by 68 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QColorDialog
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFormLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • ...
1749
1237 }
executed 131625 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
131625
1238 *d = '\0';-
1239}
executed 117716 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
117716
1240-
1241static char *qNormalizeType(char *d, int &templdepth, QByteArray &result)-
1242{-
1243 const char *t = d;-
1244 while (*d && (templdepth
*dDescription
TRUEevaluated 1746800 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 46012 times by 318 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
templdepthDescription
TRUEevaluated 141587 times by 236 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 1605213 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
46012-1746800
1245 || (*d != ',' && *d != ')'))) {
*d != ','Description
TRUEevaluated 1537339 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 67874 times by 82 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
*d != ')'Description
TRUEevaluated 1465629 times by 321 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 71710 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
67874-1537339
1246 if (*d == '<')
*d == '<'Description
TRUEevaluated 12446 times by 236 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 1594770 times by 321 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
12446-1594770
1247 ++templdepth;
executed 12446 times by 236 tests: ++templdepth;
Executed 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
12446
1248 if (*d == '>')
*d == '>'Description
TRUEevaluated 12446 times by 236 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
FALSEevaluated 1594770 times by 321 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
12446-1594770
1249 --templdepth;
executed 12446 times by 236 tests: --templdepth;
Executed 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
12446
1250 ++d;-
1251 }
executed 1607216 times by 321 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
1607216
1252 // "void" should only be removed if this is part of a signature that has-
1253 // an explicit void argument; e.g., "void foo(void)" --> "void foo()"-
1254 if (strncmp("void)", t, d - t + 1) != 0)
strncmp("void)... - t + 1) != 0Description
TRUEevaluated 185567 times by 325 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 29 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
29-185567
1255 result += normalizeTypeInternal(t, d);
executed 185567 times by 325 tests: result += normalizeTypeInternal(t, d);
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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
185567
1256-
1257 return d;
executed 185596 times by 325 tests: return d;
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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
185596
1258}-
1259-
1260-
1261/*!-
1262 \since 4.2-
1263-
1264 Normalizes a \a type.-
1265-
1266 See QMetaObject::normalizedSignature() for a description on how-
1267 Qt normalizes.-
1268-
1269 Example:-
1270-
1271 \snippet code/src_corelib_kernel_qmetaobject.cpp 1-
1272-
1273 \sa normalizedSignature()-
1274 */-
1275QByteArray QMetaObject::normalizedType(const char *type)-
1276{-
1277 QByteArray result;-
1278-
1279 if (!type || !*type)
!typeDescription
TRUEnever evaluated
FALSEevaluated 46048 times by 318 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
!*typeDescription
TRUEevaluated 37 times by 2 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QMetaType
FALSEevaluated 46011 times by 318 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
0-46048
1280 return result;
executed 37 times by 2 tests: return result;
Executed by:
  • tst_QMetaObjectBuilder
  • tst_QMetaType
37
1281-
1282 QVarLengthArray<char> stackbuf(qstrlen(type) + 1);-
1283 qRemoveWhitespace(type, stackbuf.data());-
1284 int templdepth = 0;-
1285 qNormalizeType(stackbuf.data(), templdepth, result);-
1286-
1287 return result;
executed 46011 times by 318 tests: return result;
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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
46011
1288}-
1289-
1290/*!-
1291 Normalizes the signature of the given \a method.-
1292-
1293 Qt uses normalized signatures to decide whether two given signals-
1294 and slots are compatible. Normalization reduces whitespace to a-
1295 minimum, moves 'const' to the front where appropriate, removes-
1296 'const' from value types and replaces const references with-
1297 values.-
1298-
1299 \sa checkConnectArgs(), normalizedType()-
1300 */-
1301QByteArray QMetaObject::normalizedSignature(const char *method)-
1302{-
1303 QByteArray result;-
1304 if (!method || !*method)
!methodDescription
TRUEnever evaluated
FALSEevaluated 71705 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
!*methodDescription
TRUEnever evaluated
FALSEevaluated 71705 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
0-71705
1305 return result;
never executed: return result;
0
1306 int len = int(strlen(method));-
1307 QVarLengthArray<char> stackbuf(len + 1);-
1308 char *d = stackbuf.data();-
1309 qRemoveWhitespace(method, d);-
1310-
1311 result.reserve(len);-
1312-
1313 int argdepth = 0;-
1314 int templdepth = 0;-
1315 while (*d) {
*dDescription
TRUEevaluated 1380771 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 71704 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
71704-1380771
1316 if (argdepth == 1) {
argdepth == 1Description
TRUEevaluated 139585 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1241186 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
139585-1241186
1317 d = qNormalizeType(d, templdepth, result);-
1318 if (!*d) //most likely an invalid signature.
!*dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 139584 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
1-139584
1319 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QMetaObject
1
1320 }
executed 139584 times by 181 tests: end of block
Executed 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
139584
1321 if (*d == '(')
*d == '('Description
TRUEevaluated 71711 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1309059 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
71711-1309059
1322 ++argdepth;
executed 71711 times by 181 tests: ++argdepth;
Executed 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
71711
1323 if (*d == ')')
*d == ')'Description
TRUEevaluated 71714 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 1309056 times by 181 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
71714-1309056
1324 --argdepth;
executed 71714 times by 181 tests: --argdepth;
Executed 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
71714
1325 result += *d++;-
1326 }
executed 1380770 times by 181 tests: end of block
Executed 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
1380770
1327-
1328 return result;
executed 71705 times by 181 tests: return result;
Executed 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_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
71705
1329}-
1330-
1331enum { MaximumParamCount = 11 }; // up to 10 arguments + 1 return value-
1332-
1333/*!-
1334 Returns the signatures of all methods whose name matches \a nonExistentMember,-
1335 or an empty QByteArray if there are no matches.-
1336*/-
1337static inline QByteArray findMethodCandidates(const QMetaObject *metaObject, const char *nonExistentMember)-
1338{-
1339 QByteArray candidateMessage;-
1340 // Prevent full string comparison in every iteration.-
1341 const QByteArray memberByteArray = nonExistentMember;-
1342 for (int i = 0; i < metaObject->methodCount(); ++i) {
i < metaObject->methodCount()Description
TRUEevaluated 244 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMetaObject
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMetaObject
10-244
1343 const QMetaMethod method = metaObject->method(i);-
1344 if (method.name() == memberByteArray)
method.name() ...emberByteArrayDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 240 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMetaObject
4-240
1345 candidateMessage.append(" " + method.methodSignature() + '\n');
executed 4 times by 1 test: candidateMessage.append(" " + method.methodSignature() + '\n');
Executed by:
  • tst_QMetaObject
4
1346 }
executed 244 times by 2 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QMetaObject
244
1347 if (!candidateMessage.isEmpty()) {
!candidateMessage.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMetaObject
4-6
1348 candidateMessage.prepend("\nCandidates are:\n");-
1349 candidateMessage.chop(1);-
1350 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QMetaObject
4
1351 return candidateMessage;
executed 10 times by 2 tests: return candidateMessage;
Executed by:
  • tst_QDBusInterface
  • tst_QMetaObject
10
1352}-
1353-
1354/*!-
1355 Invokes the \a member (a signal or a slot name) on the object \a-
1356 obj. Returns \c true if the member could be invoked. Returns \c false-
1357 if there is no such member or the parameters did not match.-
1358-
1359 The invocation can be either synchronous or asynchronous,-
1360 depending on \a type:-
1361-
1362 \list-
1363 \li If \a type is Qt::DirectConnection, the member will be invoked immediately.-
1364-
1365 \li If \a type is Qt::QueuedConnection,-
1366 a QEvent will be sent and the member is invoked as soon as the application-
1367 enters the main event loop.-
1368-
1369 \li If \a type is Qt::BlockingQueuedConnection, the method will be invoked in-
1370 the same way as for Qt::QueuedConnection, except that the current thread-
1371 will block until the event is delivered. Using this connection type to-
1372 communicate between objects in the same thread will lead to deadlocks.-
1373-
1374 \li If \a type is Qt::AutoConnection, the member is invoked-
1375 synchronously if \a obj lives in the same thread as the-
1376 caller; otherwise it will invoke the member asynchronously.-
1377 \endlist-
1378-
1379 The return value of the \a member function call is placed in \a-
1380 ret. If the invocation is asynchronous, the return value cannot-
1381 be evaluated. You can pass up to ten arguments (\a val0, \a val1,-
1382 \a val2, \a val3, \a val4, \a val5, \a val6, \a val7, \a val8,-
1383 and \a val9) to the \a member function.-
1384-
1385 QGenericArgument and QGenericReturnArgument are internal-
1386 helper classes. Because signals and slots can be dynamically-
1387 invoked, you must enclose the arguments using the Q_ARG() and-
1388 Q_RETURN_ARG() macros. Q_ARG() takes a type name and a-
1389 const reference of that type; Q_RETURN_ARG() takes a type name-
1390 and a non-const reference.-
1391-
1392 You only need to pass the name of the signal or slot to this function,-
1393 not the entire signature. For example, to asynchronously invoke-
1394 the \l{QThread::quit()}{quit()} slot on a-
1395 QThread, use the following code:-
1396-
1397 \snippet code/src_corelib_kernel_qmetaobject.cpp 2-
1398-
1399 With asynchronous method invocations, the parameters must be of-
1400 types that are known to Qt's meta-object system, because Qt needs-
1401 to copy the arguments to store them in an event behind the-
1402 scenes. If you try to use a queued connection and get the error-
1403 message-
1404-
1405 \snippet code/src_corelib_kernel_qmetaobject.cpp 3-
1406-
1407 call qRegisterMetaType() to register the data type before you-
1408 call invokeMethod().-
1409-
1410 To synchronously invoke the \c compute(QString, int, double) slot on-
1411 some arbitrary object \c obj retrieve its return value:-
1412-
1413 \snippet code/src_corelib_kernel_qmetaobject.cpp 4-
1414-
1415 If the "compute" slot does not take exactly one QString, one int-
1416 and one double in the specified order, the call will fail.-
1417-
1418 \sa Q_ARG(), Q_RETURN_ARG(), qRegisterMetaType(), QMetaMethod::invoke()-
1419*/-
1420bool QMetaObject::invokeMethod(QObject *obj,-
1421 const char *member,-
1422 Qt::ConnectionType type,-
1423 QGenericReturnArgument ret,-
1424 QGenericArgument val0,-
1425 QGenericArgument val1,-
1426 QGenericArgument val2,-
1427 QGenericArgument val3,-
1428 QGenericArgument val4,-
1429 QGenericArgument val5,-
1430 QGenericArgument val6,-
1431 QGenericArgument val7,-
1432 QGenericArgument val8,-
1433 QGenericArgument val9)-
1434{-
1435 if (!obj)
!objDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 259137 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
2-259137
1436 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaObject
2
1437-
1438 QVarLengthArray<char, 512> sig;-
1439 int len = qstrlen(member);-
1440 if (len <= 0)
len <= 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 259136 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
1-259136
1441 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaObject
1
1442 sig.append(member, len);-
1443 sig.append('(');-
1444-
1445 const char *typeNames[] = {ret.name(), val0.name(), val1.name(), val2.name(), val3.name(),-
1446 val4.name(), val5.name(), val6.name(), val7.name(), val8.name(),-
1447 val9.name()};-
1448-
1449 int paramCount;-
1450 for (paramCount = 1; paramCount < MaximumParamCount; ++paramCount) {
paramCount < MaximumParamCountDescription
TRUEevaluated 321548 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
FALSEnever evaluated
0-321548
1451 len = qstrlen(typeNames[paramCount]);-
1452 if (len <= 0)
len <= 0Description
TRUEevaluated 259136 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
FALSEevaluated 62412 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QDBusInterface
  • tst_QEventLoop
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdesktopservices
62412-259136
1453 break;
executed 259136 times by 546 tests: break;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
259136
1454 sig.append(typeNames[paramCount], len);-
1455 sig.append(',');-
1456 }
executed 62412 times by 21 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QDBusInterface
  • tst_QEventLoop
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdesktopservices
62412
1457 if (paramCount == 1)
paramCount == 1Description
TRUEevaluated 196904 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
FALSEevaluated 62232 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QDBusInterface
  • tst_QEventLoop
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdesktopservices
62232-196904
1458 sig.append(')'); // no parameters
executed 196904 times by 546 tests: sig.append(')');
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
196904
1459 else-
1460 sig[sig.size() - 1] = ')';
executed 62232 times by 21 tests: sig[sig.size() - 1] = ')';
Executed by:
  • tst_QAbstractItemModel
  • tst_QDBusInterface
  • tst_QEventLoop
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdesktopservices
62232
1461 sig.append('\0');-
1462-
1463 const QMetaObject *meta = obj->metaObject();-
1464 int idx = meta->indexOfMethod(sig.constData());-
1465 if (idx < 0) {
idx < 0Description
TRUEevaluated 12 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMetaObject
FALSEevaluated 259124 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
12-259124
1466 QByteArray norm = QMetaObject::normalizedSignature(sig.constData());-
1467 idx = meta->indexOfMethod(norm.constData());-
1468 }
executed 12 times by 2 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QMetaObject
12
1469-
1470 if (idx < 0 || idx >= meta->methodCount()) {
idx < 0Description
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QMetaObject
FALSEevaluated 259126 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
idx >= meta->methodCount()Description
TRUEnever evaluated
FALSEevaluated 259126 times by 546 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
0-259126
1471 // This method doesn't belong to us; print out a nice warning with candidates.-
1472 qWarning("QMetaObject::invokeMethod: No such method %s::%s%s",-
1473 meta->className(), sig.constData(), findMethodCandidates(meta, member).constData());-
1474 return false;
executed 10 times by 2 tests: return false;
Executed by:
  • tst_QDBusInterface
  • tst_QMetaObject
10
1475 }-
1476 QMetaMethod method = meta->method(idx);-
1477 return method.invoke(obj, type, ret,
executed 259126 times by 546 tests: return method.invoke(obj, type, ret, val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
259126
1478 val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
executed 259126 times by 546 tests: return method.invoke(obj, type, ret, val0, val1, val2, val3, val4, val5, val6, val7, val8, val9);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
259126
1479}-
1480-
1481/*! \fn bool QMetaObject::invokeMethod(QObject *obj, const char *member,-
1482 QGenericReturnArgument ret,-
1483 QGenericArgument val0 = QGenericArgument(0),-
1484 QGenericArgument val1 = QGenericArgument(),-
1485 QGenericArgument val2 = QGenericArgument(),-
1486 QGenericArgument val3 = QGenericArgument(),-
1487 QGenericArgument val4 = QGenericArgument(),-
1488 QGenericArgument val5 = QGenericArgument(),-
1489 QGenericArgument val6 = QGenericArgument(),-
1490 QGenericArgument val7 = QGenericArgument(),-
1491 QGenericArgument val8 = QGenericArgument(),-
1492 QGenericArgument val9 = QGenericArgument());-
1493 \overload invokeMethod()-
1494-
1495 This overload always invokes the member using the connection type Qt::AutoConnection.-
1496*/-
1497-
1498/*! \fn bool QMetaObject::invokeMethod(QObject *obj, const char *member,-
1499 Qt::ConnectionType type,-
1500 QGenericArgument val0 = QGenericArgument(0),-
1501 QGenericArgument val1 = QGenericArgument(),-
1502 QGenericArgument val2 = QGenericArgument(),-
1503 QGenericArgument val3 = QGenericArgument(),-
1504 QGenericArgument val4 = QGenericArgument(),-
1505 QGenericArgument val5 = QGenericArgument(),-
1506 QGenericArgument val6 = QGenericArgument(),-
1507 QGenericArgument val7 = QGenericArgument(),-
1508 QGenericArgument val8 = QGenericArgument(),-
1509 QGenericArgument val9 = QGenericArgument())-
1510-
1511 \overload invokeMethod()-
1512-
1513 This overload can be used if the return value of the member is of no interest.-
1514*/-
1515-
1516/*!-
1517 \fn bool QMetaObject::invokeMethod(QObject *obj, const char *member,-
1518 QGenericArgument val0 = QGenericArgument(0),-
1519 QGenericArgument val1 = QGenericArgument(),-
1520 QGenericArgument val2 = QGenericArgument(),-
1521 QGenericArgument val3 = QGenericArgument(),-
1522 QGenericArgument val4 = QGenericArgument(),-
1523 QGenericArgument val5 = QGenericArgument(),-
1524 QGenericArgument val6 = QGenericArgument(),-
1525 QGenericArgument val7 = QGenericArgument(),-
1526 QGenericArgument val8 = QGenericArgument(),-
1527 QGenericArgument val9 = QGenericArgument())-
1528-
1529 \overload invokeMethod()-
1530-
1531 This overload invokes the member using the connection type Qt::AutoConnection and-
1532 ignores return values.-
1533*/-
1534-
1535/*!-
1536 \fn QMetaObject::Connection::Connection(const Connection &other)-
1537-
1538 Constructs a copy of \a other.-
1539*/-
1540-
1541/*!-
1542 \fn QMetaObject::Connection::Connection &operator=(const Connection &other)-
1543-
1544 Assigns \a other to this connection and returns a reference to this connection.-
1545*/-
1546-
1547/*!-
1548 \fn QMetaObject::Connection &QMetaObject::Connection::operator=(Connection &&other)-
1549-
1550 Move-assigns \a other to this object, and returns a reference.-
1551*/-
1552/*!-
1553 \fn QMetaObject::Connection::Connection(Connection &&o)-
1554-
1555 Move-constructs a Connection instance, making it point to the same object-
1556 that \a o was pointing to.-
1557*/-
1558-
1559/*!-
1560 \class QMetaMethod-
1561 \inmodule QtCore-
1562-
1563 \brief The QMetaMethod class provides meta-data about a member-
1564 function.-
1565-
1566 \ingroup objectmodel-
1567-
1568 A QMetaMethod has a methodType(), a methodSignature(), a list of-
1569 parameterTypes() and parameterNames(), a return typeName(), a-
1570 tag(), and an access() specifier. You can use invoke() to invoke-
1571 the method on an arbitrary QObject.-
1572-
1573 \sa QMetaObject, QMetaEnum, QMetaProperty, {Qt's Property System}-
1574*/-
1575-
1576/*!-
1577 \enum QMetaMethod::Attributes-
1578-
1579 \internal-
1580-
1581 \value Compatibility-
1582 \value Cloned-
1583 \value Scriptable-
1584*/-
1585-
1586/*!-
1587 \fn bool QMetaMethod::isValid() const-
1588 \since 5.0-
1589-
1590 Returns \c true if this method is valid (can be introspected and-
1591 invoked), otherwise returns \c false.-
1592*/-
1593-
1594/*! \fn bool operator==(const QMetaMethod &m1, const QMetaMethod &m2)-
1595 \since 5.0-
1596 \relates QMetaMethod-
1597 \overload-
1598-
1599 Returns \c true if method \a m1 is equal to method \a m2,-
1600 otherwise returns \c false.-
1601*/-
1602-
1603/*! \fn bool operator!=(const QMetaMethod &m1, const QMetaMethod &m2)-
1604 \since 5.0-
1605 \relates QMetaMethod-
1606 \overload-
1607-
1608 Returns \c true if method \a m1 is not equal to method \a m2,-
1609 otherwise returns \c false.-
1610*/-
1611-
1612/*!-
1613 \fn const QMetaObject *QMetaMethod::enclosingMetaObject() const-
1614 \internal-
1615*/-
1616-
1617/*!-
1618 \enum QMetaMethod::MethodType-
1619-
1620 \value Method The function is a plain member function.-
1621 \value Signal The function is a signal.-
1622 \value Slot The function is a slot.-
1623 \value Constructor The function is a constructor.-
1624*/-
1625-
1626/*!-
1627 \fn QMetaMethod::QMetaMethod()-
1628 \internal-
1629*/-
1630-
1631/*!-
1632 \macro Q_METAMETHOD_INVOKE_MAX_ARGS-
1633 \relates QMetaMethod-
1634-
1635 Equals maximum number of arguments available for-
1636 execution of the method via QMetaMethod::invoke()-
1637 */-
1638-
1639QByteArray QMetaMethodPrivate::signature() const-
1640{-
1641 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1642 QByteArray result;-
1643 result.reserve(256);-
1644 result += name();-
1645 result += '(';-
1646 QList<QByteArray> argTypes = parameterTypes();-
1647 for (int i = 0; i < argTypes.size(); ++i) {
i < argTypes.size()Description
TRUEevaluated 20319 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaMethod
  • ...
FALSEevaluated 36437 times by 536 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
20319-36437
1648 if (i)
iDescription
TRUEevaluated 6483 times by 23 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAnimationGroup
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiArea
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QProcess
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSignalSpy
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_languageChange
FALSEevaluated 13836 times by 54 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaMethod
  • ...
6483-13836
1649 result += ',';
executed 6483 times by 23 tests: result += ',';
Executed by:
  • tst_QAbstractItemModel
  • tst_QAnimationGroup
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiArea
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QProcess
  • tst_QPropertyAnimation
  • tst_QSequentialAnimationGroup
  • tst_QSignalSpy
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_languageChange
6483
1650 result += argTypes.at(i);-
1651 }
executed 20319 times by 54 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDialogButtonBox
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFiledialog
  • tst_QFtp
  • tst_QFutureWatcher
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMetaMethod
  • ...
20319
1652 result += ')';-
1653 return result;
executed 36437 times by 536 tests: return result;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
36437
1654}-
1655-
1656QByteArray QMetaMethodPrivate::name() const-
1657{-
1658 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1659 return stringData(mobj, mobj->d.data[handle]);
executed 65268 times by 542 tests: return stringData(mobj, mobj->d.data[handle]);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
65268
1660}-
1661-
1662int QMetaMethodPrivate::typesDataIndex() const-
1663{-
1664 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1665 return mobj->d.data[handle + 2];
executed 82071 times by 778 tests: return mobj->d.data[handle + 2];
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
82071
1666}-
1667-
1668const char *QMetaMethodPrivate::rawReturnTypeName() const-
1669{-
1670 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1671 uint typeInfo = mobj->d.data[typesDataIndex()];-
1672 if (typeInfo & IsUnresolvedType)
typeInfo & IsUnresolvedTypeDescription
TRUEevaluated 35 times by 4 tests
Evaluated by:
  • tst_QGraphicsProxyWidget
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 466 times by 8 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
35-466
1673 return rawStringData(mobj, typeInfo & TypeNameIndexMask);
executed 35 times by 4 tests: return rawStringData(mobj, typeInfo & TypeNameIndexMask);
Executed by:
  • tst_QGraphicsProxyWidget
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
35
1674 else-
1675 return QMetaType::typeName(typeInfo);
executed 466 times by 8 tests: return QMetaType::typeName(typeInfo);
Executed by:
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
466
1676}-
1677-
1678int QMetaMethodPrivate::returnType() const-
1679{-
1680 return parameterType(-1);
executed 20884 times by 540 tests: return parameterType(-1);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
20884
1681}-
1682-
1683int QMetaMethodPrivate::parameterCount() const-
1684{-
1685 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1686 return mobj->d.data[handle + 1];
executed 480713 times by 784 tests: return mobj->d.data[handle + 1];
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
  • ...
480713
1687}-
1688-
1689int QMetaMethodPrivate::parametersDataIndex() const-
1690{-
1691 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1692 return typesDataIndex() + 1;
executed 81570 times by 778 tests: return typesDataIndex() + 1;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
81570
1693}-
1694-
1695uint QMetaMethodPrivate::parameterTypeInfo(int index) const-
1696{-
1697 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1698 return mobj->d.data[parametersDataIndex() + index];
executed 33755 times by 540 tests: return mobj->d.data[parametersDataIndex() + index];
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
33755
1699}-
1700-
1701int QMetaMethodPrivate::parameterType(int index) const-
1702{-
1703 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1704 return typeFromTypeInfo(mobj, parameterTypeInfo(index));
executed 33755 times by 540 tests: return typeFromTypeInfo(mobj, parameterTypeInfo(index));
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
33755
1705}-
1706-
1707void QMetaMethodPrivate::getParameterTypes(int *types) const-
1708{-
1709 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1710 int dataIndex = parametersDataIndex();-
1711 int argc = parameterCount();-
1712 for (int i = 0; i < argc; ++i) {
i < argcDescription
TRUEevaluated 80 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QMetaMethod
42-80
1713 int id = typeFromTypeInfo(mobj, mobj->d.data[dataIndex++]);-
1714 *(types++) = id;-
1715 }
executed 80 times by 1 test: end of block
Executed by:
  • tst_QMetaMethod
80
1716}
executed 42 times by 1 test: end of block
Executed by:
  • tst_QMetaMethod
42
1717-
1718QList<QByteArray> QMetaMethodPrivate::parameterTypes() const-
1719{-
1720 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1721 int argc = parameterCount();-
1722 QList<QByteArray> list;-
1723 list.reserve(argc);-
1724 int paramsIndex = parametersDataIndex();-
1725 for (int i = 0; i < argc; ++i)
i < argcDescription
TRUEevaluated 31621 times by 206 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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
FALSEevaluated 45375 times by 777 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
31621-45375
1726 list += typeNameFromTypeInfo(mobj, mobj->d.data[paramsIndex + i]);
executed 31621 times by 206 tests: list += typeNameFromTypeInfo(mobj, mobj->d.data[paramsIndex + i]);
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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
31621
1727 return list;
executed 45375 times by 777 tests: return list;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
45375
1728}-
1729-
1730QList<QByteArray> QMetaMethodPrivate::parameterNames() const-
1731{-
1732 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1733 int argc = parameterCount();-
1734 QList<QByteArray> list;-
1735 list.reserve(argc);-
1736 int namesIndex = parametersDataIndex() + argc;-
1737 for (int i = 0; i < argc; ++i)
i < argcDescription
TRUEevaluated 4316 times by 12 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
FALSEevaluated 2398 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
2398-4316
1738 list += stringData(mobj, mobj->d.data[namesIndex + i]);
executed 4316 times by 12 tests: list += stringData(mobj, mobj->d.data[namesIndex + i]);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
4316
1739 return list;
executed 2398 times by 14 tests: return list;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
2398
1740}-
1741-
1742QByteArray QMetaMethodPrivate::tag() const-
1743{-
1744 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
1745 return stringData(mobj, mobj->d.data[handle + 3]);
executed 2806 times by 22 tests: return stringData(mobj, mobj->d.data[handle + 3]);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2806
1746}-
1747-
1748int QMetaMethodPrivate::ownMethodIndex() const-
1749{-
1750 // recompute the methodIndex by reversing the arithmetic in QMetaObject::property()-
1751 return (handle - priv(mobj->d.data)->methodData) / 5;
executed 378212 times by 570 tests: return (handle - priv(mobj->d.data)->methodData) / 5;
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
  • ...
378212
1752}-
1753-
1754/*!-
1755 \since 5.0-
1756-
1757 Returns the signature of this method (e.g.,-
1758 \c{setValue(double)}).-
1759-
1760 \sa parameterTypes(), parameterNames()-
1761*/-
1762QByteArray QMetaMethod::methodSignature() const-
1763{-
1764 if (!mobj)
!mobjDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 36437 times by 536 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
2-36437
1765 return QByteArray();
executed 2 times by 1 test: return QByteArray();
Executed by:
  • tst_QMetaObject
2
1766 return QMetaMethodPrivate::get(this)->signature();
executed 36437 times by 536 tests: return QMetaMethodPrivate::get(this)->signature();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
36437
1767}-
1768-
1769/*!-
1770 \since 5.0-
1771-
1772 Returns the name of this method.-
1773-
1774 \sa methodSignature(), parameterCount()-
1775*/-
1776QByteArray QMetaMethod::name() const-
1777{-
1778 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 28831 times by 542 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
0-28831
1779 return QByteArray();
never executed: return QByteArray();
0
1780 return QMetaMethodPrivate::get(this)->name();
executed 28831 times by 542 tests: return QMetaMethodPrivate::get(this)->name();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
28831
1781}-
1782-
1783/*!-
1784 \since 5.0-
1785-
1786 Returns the return type of this method.-
1787-
1788 The return value is one of the types that are registered-
1789 with QMetaType, or QMetaType::UnknownType if the type is not registered.-
1790-
1791 \sa parameterType(), QMetaType, typeName()-
1792*/-
1793int QMetaMethod::returnType() const-
1794 {-
1795 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 20884 times by 540 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
0-20884
1796 return QMetaType::UnknownType;
never executed: return QMetaType::UnknownType;
0
1797 return QMetaMethodPrivate::get(this)->returnType();
executed 20884 times by 540 tests: return QMetaMethodPrivate::get(this)->returnType();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
20884
1798}-
1799-
1800/*!-
1801 \since 5.0-
1802-
1803 Returns the number of parameters of this method.-
1804-
1805 \sa parameterType(), parameterNames()-
1806*/-
1807int QMetaMethod::parameterCount() const-
1808{-
1809 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 46519 times by 537 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
0-46519
1810 return 0;
never executed: return 0;
0
1811 return QMetaMethodPrivate::get(this)->parameterCount();
executed 46519 times by 537 tests: return QMetaMethodPrivate::get(this)->parameterCount();
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
46519
1812}-
1813-
1814/*!-
1815 \since 5.0-
1816-
1817 Returns the type of the parameter at the given \a index.-
1818-
1819 The return value is one of the types that are registered-
1820 with QMetaType, or QMetaType::UnknownType if the type is not registered.-
1821-
1822 \sa parameterCount(), returnType(), QMetaType-
1823*/-
1824int QMetaMethod::parameterType(int index) const-
1825{-
1826 if (!mobj || index < 0)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 12955 times by 97 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMetaObject
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
index < 0Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEevaluated 12913 times by 97 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMetaObject
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
0-12955
1827 return QMetaType::UnknownType;
executed 42 times by 1 test: return QMetaType::UnknownType;
Executed by:
  • tst_QMetaMethod
42
1828 if (index >= QMetaMethodPrivate::get(this)->parameterCount())
index >= QMeta...rameterCount()Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEevaluated 12871 times by 97 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMetaObject
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
42-12871
1829 return QMetaType::UnknownType;
executed 42 times by 1 test: return QMetaType::UnknownType;
Executed by:
  • tst_QMetaMethod
42
1830-
1831 int type = QMetaMethodPrivate::get(this)->parameterType(index);-
1832 if (type != QMetaType::UnknownType)
type != QMetaType::UnknownTypeDescription
TRUEevaluated 12851 times by 96 tests
Evaluated by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMetaObject
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
FALSEevaluated 20 times by 11 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAction
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QMetaMethod
  • tst_QSequentialAnimationGroup
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
20-12851
1833 return type;
executed 12851 times by 96 tests: return type;
Executed by:
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractSlider
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusMetaObject
  • tst_QDBusServiceWatcher
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDial
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFileSystemWatcher
  • ...
12851
1834-
1835 void *argv[] = { &type, &index };-
1836 mobj->static_metacall(QMetaObject::RegisterMethodArgumentMetaType, QMetaMethodPrivate::get(this)->ownMethodIndex(), argv);-
1837 if (type != -1)
type != -1Description
TRUEevaluated 16 times by 10 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAction
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QSequentialAnimationGroup
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaMethod
4-16
1838 return type;
executed 16 times by 10 tests: return type;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAction
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QSequentialAnimationGroup
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
16
1839 return QMetaType::UnknownType;
executed 4 times by 1 test: return QMetaType::UnknownType;
Executed by:
  • tst_QMetaMethod
4
1840}-
1841-
1842/*!-
1843 \since 5.0-
1844 \internal-
1845-
1846 Gets the parameter \a types of this method. The storage-
1847 for \a types must be able to hold parameterCount() items.-
1848-
1849 \sa parameterCount(), returnType(), parameterType()-
1850*/-
1851void QMetaMethod::getParameterTypes(int *types) const-
1852{-
1853 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 42 times by 1 test
Evaluated by:
  • tst_QMetaMethod
0-42
1854 return;
never executed: return;
0
1855 QMetaMethodPrivate::get(this)->getParameterTypes(types);-
1856}
executed 42 times by 1 test: end of block
Executed by:
  • tst_QMetaMethod
42
1857-
1858/*!-
1859 Returns a list of parameter types.-
1860-
1861 \sa parameterNames(), methodSignature()-
1862*/-
1863QList<QByteArray> QMetaMethod::parameterTypes() const-
1864{-
1865 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 8938 times by 414 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-8938
1866 return QList<QByteArray>();
never executed: return QList<QByteArray>();
0
1867 return QMetaMethodPrivate::get(this)->parameterTypes();
executed 8938 times by 414 tests: return QMetaMethodPrivate::get(this)->parameterTypes();
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
  • ...
8938
1868}-
1869-
1870/*!-
1871 Returns a list of parameter names.-
1872-
1873 \sa parameterTypes(), methodSignature()-
1874*/-
1875QList<QByteArray> QMetaMethod::parameterNames() const-
1876{-
1877 QList<QByteArray> list;-
1878 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 2398 times by 14 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
0-2398
1879 return list;
never executed: return list;
0
1880 return QMetaMethodPrivate::get(this)->parameterNames();
executed 2398 times by 14 tests: return QMetaMethodPrivate::get(this)->parameterNames();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbuscpp2xml
2398
1881}-
1882-
1883-
1884/*!-
1885 Returns the return type name of this method.-
1886-
1887 \sa returnType(), QMetaType::type()-
1888*/-
1889const char *QMetaMethod::typeName() const-
1890{-
1891 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 501 times by 9 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QGraphicsProxyWidget
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
0-501
1892 return 0;
never executed: return 0;
0
1893 return QMetaMethodPrivate::get(this)->rawReturnTypeName();
executed 501 times by 9 tests: return QMetaMethodPrivate::get(this)->rawReturnTypeName();
Executed by:
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QGraphicsProxyWidget
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
501
1894}-
1895-
1896/*!-
1897 Returns the tag associated with this method.-
1898-
1899 Tags are special macros recognized by \c moc that make it-
1900 possible to add extra information about a method.-
1901-
1902 Tag information can be added in the following-
1903 way in the function declaration:-
1904-
1905 \code-
1906 // In the class MainWindow declaration-
1907 #ifndef Q_MOC_RUN-
1908 // define the tag text as empty, so the compiler doesn't see it-
1909 # define MY_CUSTOM_TAG-
1910 #endif-
1911 ...-
1912 private slots:-
1913 MY_CUSTOM_TAG void testFunc();-
1914 \endcode-
1915-
1916 and the information can be accessed by using:-
1917-
1918 \code-
1919 MainWindow win;-
1920 win.show();-
1921-
1922 int functionIndex = win.metaObject()->indexOfSlot("testFunc()");-
1923 QMetaMethod mm = win.metaObject()->method(functionIndex);-
1924 qDebug() << mm.tag(); // prints MY_CUSTOM_TAG-
1925 \endcode-
1926-
1927 For the moment, \c moc will extract and record all tags, but it will not-
1928 handle any of them specially. You can use the tags to annotate your methods-
1929 differently, and treat them according to the specific needs of your-
1930 application.-
1931-
1932 \note Since Qt 5.0, \c moc expands preprocessor macros, so it is necessary-
1933 to surround the definition with \c #ifndef \c Q_MOC_RUN, as shown in the-
1934 example above. This was not required in Qt 4. The code as shown above works-
1935 with Qt 4 too.-
1936*/-
1937const char *QMetaMethod::tag() const-
1938{-
1939 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 2806 times by 22 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-2806
1940 return 0;
never executed: return 0;
0
1941 return QMetaMethodPrivate::get(this)->tag().constData();
executed 2806 times by 22 tests: return QMetaMethodPrivate::get(this)->tag().constData();
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2806
1942}-
1943-
1944-
1945/*!-
1946 \internal-
1947 */-
1948int QMetaMethod::attributes() const-
1949{-
1950 if (!mobj)
!mobjDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
FALSEevaluated 1148936 times by 268 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
  • ...
3-1148936
1951 return false;
executed 3 times by 2 tests: return false;
Executed by:
  • tst_QMetaObject
  • tst_QObject
3
1952 return ((mobj->d.data[handle + 4])>>4);
executed 1148936 times by 268 tests: return ((mobj->d.data[handle + 4])>>4);
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
  • ...
1148936
1953}-
1954-
1955/*!-
1956 \since 4.6-
1957-
1958 Returns this method's index.-
1959*/-
1960int QMetaMethod::methodIndex() const-
1961{-
1962 if (!mobj)
!mobjDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QDBusAbstractInterface
FALSEevaluated 4706 times by 89 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFutureWatcher
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • ...
4-4706
1963 return -1;
executed 4 times by 1 test: return -1;
Executed by:
  • tst_QDBusAbstractInterface
4
1964 return QMetaMethodPrivate::get(this)->ownMethodIndex() + mobj->methodOffset();
executed 4706 times by 89 tests: return QMetaMethodPrivate::get(this)->ownMethodIndex() + mobj->methodOffset();
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDialogButtonBox
  • tst_QErrorMessage
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemWatcher
  • tst_QFutureWatcher
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiEventLoop
  • ...
4706
1965}-
1966-
1967// This method has been around for a while, but the documentation was marked \internal until 5.1-
1968/*!-
1969 \since 5.1-
1970 Returns the method revision if one was-
1971 specified by Q_REVISION, otherwise returns 0.-
1972 */-
1973int QMetaMethod::revision() const-
1974{-
1975 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 222 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-222
1976 return 0;
never executed: return 0;
0
1977 if ((QMetaMethod::Access)(mobj->d.data[handle + 4] & MethodRevisioned)) {
(QMetaMethod::...hodRevisioned)Description
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 215 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
7-215
1978 int offset = priv(mobj->d.data)->methodData-
1979 + priv(mobj->d.data)->methodCount * 5-
1980 + QMetaMethodPrivate::get(this)->ownMethodIndex();-
1981 return mobj->d.data[offset];
executed 7 times by 1 test: return mobj->d.data[offset];
Executed by:
  • tst_QMetaObjectBuilder
7
1982 }-
1983 return 0;
executed 215 times by 1 test: return 0;
Executed by:
  • tst_QMetaObjectBuilder
215
1984}-
1985-
1986/*!-
1987 Returns the access specification of this method (private,-
1988 protected, or public).-
1989-
1990 \note Signals are always public, but you should regard that as an-
1991 implementation detail. It is almost always a bad idea to emit a signal from-
1992 outside its class.-
1993-
1994 \sa methodType()-
1995*/-
1996QMetaMethod::Access QMetaMethod::access() const-
1997{-
1998 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 29674 times by 541 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
0-29674
1999 return Private;
never executed: return Private;
0
2000 return (QMetaMethod::Access)(mobj->d.data[handle + 4] & AccessMask);
executed 29674 times by 541 tests: return (QMetaMethod::Access)(mobj->d.data[handle + 4] & AccessMask);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
29674
2001}-
2002-
2003/*!-
2004 Returns the type of this method (signal, slot, or method).-
2005-
2006 \sa access()-
2007*/-
2008QMetaMethod::MethodType QMetaMethod::methodType() const-
2009{-
2010 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 32413 times by 540 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
0-32413
2011 return QMetaMethod::Method;
never executed: return QMetaMethod::Method;
0
2012 return (QMetaMethod::MethodType)((mobj->d.data[handle + 4] & MethodTypeMask)>>2);
executed 32413 times by 540 tests: return (QMetaMethod::MethodType)((mobj->d.data[handle + 4] & MethodTypeMask)>>2);
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • 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
  • tst_QAnimationGroup
  • ...
32413
2013}-
2014-
2015/*!-
2016 \fn QMetaMethod QMetaMethod::fromSignal(PointerToMemberFunction signal)-
2017 \since 5.0-
2018-
2019 Returns the meta-method that corresponds to the given \a signal, or an-
2020 invalid QMetaMethod if \a signal is not a signal of the class.-
2021-
2022 Example:-
2023-
2024 \snippet code/src_corelib_kernel_qmetaobject.cpp 9-
2025*/-
2026-
2027/*!-
2028 \internal-
2029-
2030 Implementation of the fromSignal() function.-
2031-
2032 \a metaObject is the class's meta-object-
2033 \a signal is a pointer to a pointer to a member signal of the class-
2034*/-
2035QMetaMethod QMetaMethod::fromSignalImpl(const QMetaObject *metaObject, void **signal)-
2036{-
2037 int i = -1;-
2038 void *args[] = { &i, signal };-
2039 QMetaMethod result;-
2040 for (const QMetaObject *m = metaObject; m; m = m->d.superdata) {
mDescription
TRUEevaluated 5507 times by 194 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_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaMethod
2-5507
2041 m->static_metacall(QMetaObject::IndexOfMethod, 0, args);-
2042 if (i >= 0) {
i >= 0Description
TRUEevaluated 5504 times by 194 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_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
3-5504
2043 result.mobj = m;-
2044 result.handle = priv(m->d.data)->methodData + 5*i;-
2045 break;
executed 5504 times by 194 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
5504
2046 }-
2047 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QMetaMethod
3
2048 return result;
executed 5506 times by 194 tests: return result;
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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
5506
2049}-
2050-
2051/*!-
2052 Invokes this method on the object \a object. Returns \c true if the member could be invoked.-
2053 Returns \c false if there is no such member or the parameters did not match.-
2054-
2055 The invocation can be either synchronous or asynchronous, depending on the-
2056 \a connectionType:-
2057-
2058 \list-
2059 \li If \a connectionType is Qt::DirectConnection, the member will be invoked immediately.-
2060-
2061 \li If \a connectionType is Qt::QueuedConnection,-
2062 a QEvent will be posted and the member is invoked as soon as the application-
2063 enters the main event loop.-
2064-
2065 \li If \a connectionType is Qt::AutoConnection, the member is invoked-
2066 synchronously if \a object lives in the same thread as the-
2067 caller; otherwise it will invoke the member asynchronously.-
2068 \endlist-
2069-
2070 The return value of this method call is placed in \a-
2071 returnValue. If the invocation is asynchronous, the return value cannot-
2072 be evaluated. You can pass up to ten arguments (\a val0, \a val1,-
2073 \a val2, \a val3, \a val4, \a val5, \a val6, \a val7, \a val8,-
2074 and \a val9) to this method call.-
2075-
2076 QGenericArgument and QGenericReturnArgument are internal-
2077 helper classes. Because signals and slots can be dynamically-
2078 invoked, you must enclose the arguments using the Q_ARG() and-
2079 Q_RETURN_ARG() macros. Q_ARG() takes a type name and a-
2080 const reference of that type; Q_RETURN_ARG() takes a type name-
2081 and a non-const reference.-
2082-
2083 To asynchronously invoke the-
2084 \l{QPushButton::animateClick()}{animateClick()} slot on a-
2085 QPushButton:-
2086-
2087 \snippet code/src_corelib_kernel_qmetaobject.cpp 6-
2088-
2089 With asynchronous method invocations, the parameters must be of-
2090 types that are known to Qt's meta-object system, because Qt needs-
2091 to copy the arguments to store them in an event behind the-
2092 scenes. If you try to use a queued connection and get the error-
2093 message-
2094-
2095 \snippet code/src_corelib_kernel_qmetaobject.cpp 7-
2096-
2097 call qRegisterMetaType() to register the data type before you-
2098 call QMetaMethod::invoke().-
2099-
2100 To synchronously invoke the \c compute(QString, int, double) slot on-
2101 some arbitrary object \c obj retrieve its return value:-
2102-
2103 \snippet code/src_corelib_kernel_qmetaobject.cpp 8-
2104-
2105 QMetaObject::normalizedSignature() is used here to ensure that the format-
2106 of the signature is what invoke() expects. E.g. extra whitespace is-
2107 removed.-
2108-
2109 If the "compute" slot does not take exactly one QString, one int-
2110 and one double in the specified order, the call will fail.-
2111-
2112 \warning this method will not test the validity of the arguments: \a object-
2113 must be an instance of the class of the QMetaObject of which this QMetaMethod-
2114 has been constructed with. The arguments must have the same type as the ones-
2115 expected by the method, else, the behaviour is undefined.-
2116-
2117 \sa Q_ARG(), Q_RETURN_ARG(), qRegisterMetaType(), QMetaObject::invokeMethod()-
2118*/-
2119bool QMetaMethod::invoke(QObject *object,-
2120 Qt::ConnectionType connectionType,-
2121 QGenericReturnArgument returnValue,-
2122 QGenericArgument val0,-
2123 QGenericArgument val1,-
2124 QGenericArgument val2,-
2125 QGenericArgument val3,-
2126 QGenericArgument val4,-
2127 QGenericArgument val5,-
2128 QGenericArgument val6,-
2129 QGenericArgument val7,-
2130 QGenericArgument val8,-
2131 QGenericArgument val9) const-
2132{-
2133 if (!object || !mobj)
!objectDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 373467 times by 550 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
  • ...
!mobjDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 373464 times by 550 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
  • ...
2-373467
2134 return false;
executed 5 times by 1 test: return false;
Executed by:
  • tst_QMetaObject
5
2135-
2136 Q_ASSERT(mobj->cast(object));-
2137-
2138 // check return type-
2139 if (returnValue.data()) {
returnValue.data()Description
TRUEevaluated 114 times by 7 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
FALSEevaluated 373350 times by 550 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
  • ...
114-373350
2140 const char *retType = typeName();-
2141 if (qstrcmp(returnValue.name(), retType) != 0) {
qstrcmp(return... retType) != 0Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 108 times by 7 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
6-108
2142 // normalize the return value as well-
2143 QByteArray normalized = QMetaObject::normalizedType(returnValue.name());-
2144 if (qstrcmp(normalized.constData(), retType) != 0) {
qstrcmp(normal... retType) != 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObject
2-4
2145 // String comparison failed, try compare the metatype.-
2146 int t = returnType();-
2147 if (t == QMetaType::UnknownType || t != QMetaType::type(normalized))
t == QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
t != QMetaType...pe(normalized)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
0-2
2148 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaObject
1
2149 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QMetaObject
1
2150 }
executed 5 times by 1 test: end of block
Executed by:
  • tst_QMetaObject
5
2151 }
executed 113 times by 7 tests: end of block
Executed by:
  • tst_QDBusInterface
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextEdit
113
2152-
2153 // check argument count (we don't allow invoking a method if given too few arguments)-
2154 const char *typeNames[] = {-
2155 returnValue.name(),-
2156 val0.name(),-
2157 val1.name(),-
2158 val2.name(),-
2159 val3.name(),-
2160 val4.name(),-
2161 val5.name(),-
2162 val6.name(),-
2163 val7.name(),-
2164 val8.name(),-
2165 val9.name()-
2166 };-
2167 int paramCount;-
2168 for (paramCount = 1; paramCount < MaximumParamCount; ++paramCount) {
paramCount < MaximumParamCountDescription
TRUEevaluated 436038 times by 550 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-436038
2169 if (qstrlen(typeNames[paramCount]) <= 0)
qstrlen(typeNa...amCount]) <= 0Description
TRUEevaluated 373463 times by 550 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 62575 times by 25 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QDBusInterface
  • tst_QEventLoop
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextEdit
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdesktopservices
62575-373463
2170 break;
executed 373463 times by 550 tests: break;
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
  • ...
373463
2171 }
executed 62575 times by 25 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QDBusInterface
  • tst_QEventLoop
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPlainTextEdit
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QTextBrowser
  • tst_QTextEdit
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
  • tst_qdesktopservices
62575
2172 if (paramCount <= QMetaMethodPrivate::get(this)->parameterCount())
paramCount <= ...rameterCount()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 373462 times by 550 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
  • ...
1-373462
2173 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaObject
1
2174-
2175 // check connection type-
2176 QThread *currentThread = QThread::currentThread();-
2177 QThread *objectThread = object->thread();-
2178 if (connectionType == Qt::AutoConnection) {
connectionType...AutoConnectionDescription
TRUEevaluated 12554 times by 78 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QHostInfo
  • ...
FALSEevaluated 360908 times by 548 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
  • ...
12554-360908
2179 connectionType = currentThread == objectThread
currentThread == objectThreadDescription
TRUEevaluated 12489 times by 76 tests
Evaluated by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QHostInfo
  • ...
FALSEevaluated 65 times by 18 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_QNetworkSession
  • tst_QStateMachine
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QXmlInputSource
  • tst_QXmlStream
65-12489
2180 ? Qt::DirectConnection-
2181 : Qt::QueuedConnection;-
2182 }
executed 12554 times by 78 tests: end of block
Executed by:
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAccessibility
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusInterface
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QHostInfo
  • ...
12554
2183-
2184#ifdef QT_NO_THREAD-
2185 if (connectionType == Qt::BlockingQueuedConnection) {-
2186 connectionType = Qt::DirectConnection;-
2187 }-
2188#endif-
2189-
2190 // invoke!-
2191 void *param[] = {-
2192 returnValue.data(),-
2193 val0.data(),-
2194 val1.data(),-
2195 val2.data(),-
2196 val3.data(),-
2197 val4.data(),-
2198 val5.data(),-
2199 val6.data(),-
2200 val7.data(),-
2201 val8.data(),-
2202 val9.data()-
2203 };-
2204 int idx_relative = QMetaMethodPrivate::get(this)->ownMethodIndex();-
2205 int idx_offset = mobj->methodOffset();-
2206 Q_ASSERT(QMetaObjectPrivate::get(mobj)->revision >= 6);-
2207 QObjectPrivate::StaticMetaCallFunction callFunction = mobj->d.static_metacall;-
2208-
2209 if (connectionType == Qt::DirectConnection) {
connectionType...rectConnectionDescription
TRUEevaluated 253815 times by 543 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 119647 times by 193 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
119647-253815
2210 if (callFunction) {
callFunctionDescription
TRUEevaluated 253799 times by 543 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 16 times by 1 test
Evaluated by:
  • tst_QDBusInterface
16-253799
2211 callFunction(object, QMetaObject::InvokeMetaMethod, idx_relative, param);-
2212 return true;
executed 253728 times by 543 tests: return true;
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
  • ...
253728
2213 } else {-
2214 return QMetaObject::metacall(object, QMetaObject::InvokeMetaMethod, idx_relative + idx_offset, param) < 0;
executed 16 times by 1 test: return QMetaObject::metacall(object, QMetaObject::InvokeMetaMethod, idx_relative + idx_offset, param) < 0;
Executed by:
  • tst_QDBusInterface
16
2215 }-
2216 } else if (connectionType == Qt::QueuedConnection) {
connectionType...euedConnectionDescription
TRUEevaluated 119587 times by 193 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 60 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
60-119587
2217 if (returnValue.data()) {
returnValue.data()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 119586 times by 193 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
1-119586
2218 qWarning("QMetaMethod::invoke: Unable to invoke methods with return values in "-
2219 "queued connections");-
2220 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaObject
1
2221 }-
2222-
2223 int nargs = 1; // include return type-
2224 void **args = (void **) malloc(paramCount * sizeof(void *));-
2225 Q_CHECK_PTR(args);
never executed: qBadAlloc();
!(args)Description
TRUEnever evaluated
FALSEevaluated 119586 times by 193 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
0-119586
2226 int *types = (int *) malloc(paramCount * sizeof(int));-
2227 Q_CHECK_PTR(types);
never executed: qBadAlloc();
!(types)Description
TRUEnever evaluated
FALSEevaluated 119586 times by 193 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
0-119586
2228 types[0] = 0; // return type-
2229 args[0] = 0;-
2230-
2231 for (int i = 1; i < paramCount; ++i) {
i < paramCountDescription
TRUEevaluated 62245 times by 15 tests
Evaluated by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
FALSEevaluated 119585 times by 193 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_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
62245-119585
2232 types[i] = QMetaType::type(typeNames[i]);-
2233 if (types[i] != QMetaType::UnknownType) {
types[i] != QM...e::UnknownTypeDescription
TRUEevaluated 62244 times by 15 tests
Evaluated by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
1-62244
2234 args[i] = QMetaType::create(types[i], param[i]);-
2235 ++nargs;-
2236 } else if (param[i]) {
executed 62244 times by 15 tests: end of block
Executed by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
param[i]Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-62244
2237 // Try to register the type and try again before reporting an error.-
2238 void *argv[] = { &types[i], &i };-
2239 QMetaObject::metacall(object, QMetaObject::RegisterMethodArgumentMetaType,-
2240 idx_relative + idx_offset, argv);-
2241 if (types[i] == -1) {
types[i] == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-1
2242 qWarning("QMetaMethod::invoke: Unable to handle unregistered datatype '%s'",-
2243 typeNames[i]);-
2244 for (int x = 1; x < i; ++x) {
x < iDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
0-1
2245 if (types[x] && args[x])
types[x]Description
TRUEnever evaluated
FALSEnever evaluated
args[x]Description
TRUEnever evaluated
FALSEnever evaluated
0
2246 QMetaType::destroy(types[x], args[x]);
never executed: QMetaType::destroy(types[x], args[x]);
0
2247 }
never executed: end of block
0
2248 free(types);-
2249 free(args);-
2250 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaObject
1
2251 }-
2252 }
never executed: end of block
0
2253 }
executed 62244 times by 15 tests: end of block
Executed by:
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QItemDelegate
  • tst_QMetaObject
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QStateMachine
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QXmlStream
  • tst_Spdy
62244
2254-
2255 QCoreApplication::postEvent(object, new QMetaCallEvent(idx_offset, idx_relative, callFunction,-
2256 0, -1, nargs, types, args));-
2257 } else { // blocking queued connection
executed 119585 times by 193 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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
119585
2258#ifndef QT_NO_THREAD-
2259 if (currentThread == objectThread) {
currentThread == objectThreadDescription
TRUEnever evaluated
FALSEevaluated 60 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
0-60
2260 qWarning("QMetaMethod::invoke: Dead lock detected in "-
2261 "BlockingQueuedConnection: Receiver is %s(%p)",-
2262 mobj->className(), object);-
2263 }
never executed: end of block
0
2264-
2265 QSemaphore semaphore;-
2266 QCoreApplication::postEvent(object, new QMetaCallEvent(idx_offset, idx_relative, callFunction,-
2267 0, -1, 0, 0, param, &semaphore));-
2268 semaphore.acquire();-
2269#endif // QT_NO_THREAD-
2270 }
executed 60 times by 18 tests: end of block
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
60
2271 return true;
executed 119645 times by 193 tests: return true;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
119645
2272}-
2273-
2274/*! \fn bool QMetaMethod::invoke(QObject *object,-
2275 QGenericReturnArgument returnValue,-
2276 QGenericArgument val0 = QGenericArgument(0),-
2277 QGenericArgument val1 = QGenericArgument(),-
2278 QGenericArgument val2 = QGenericArgument(),-
2279 QGenericArgument val3 = QGenericArgument(),-
2280 QGenericArgument val4 = QGenericArgument(),-
2281 QGenericArgument val5 = QGenericArgument(),-
2282 QGenericArgument val6 = QGenericArgument(),-
2283 QGenericArgument val7 = QGenericArgument(),-
2284 QGenericArgument val8 = QGenericArgument(),-
2285 QGenericArgument val9 = QGenericArgument()) const-
2286 \overload invoke()-
2287-
2288 This overload always invokes this method using the connection type Qt::AutoConnection.-
2289*/-
2290-
2291/*! \fn bool QMetaMethod::invoke(QObject *object,-
2292 Qt::ConnectionType connectionType,-
2293 QGenericArgument val0 = QGenericArgument(0),-
2294 QGenericArgument val1 = QGenericArgument(),-
2295 QGenericArgument val2 = QGenericArgument(),-
2296 QGenericArgument val3 = QGenericArgument(),-
2297 QGenericArgument val4 = QGenericArgument(),-
2298 QGenericArgument val5 = QGenericArgument(),-
2299 QGenericArgument val6 = QGenericArgument(),-
2300 QGenericArgument val7 = QGenericArgument(),-
2301 QGenericArgument val8 = QGenericArgument(),-
2302 QGenericArgument val9 = QGenericArgument()) const-
2303-
2304 \overload invoke()-
2305-
2306 This overload can be used if the return value of the member is of no interest.-
2307*/-
2308-
2309/*!-
2310 \fn bool QMetaMethod::invoke(QObject *object,-
2311 QGenericArgument val0 = QGenericArgument(0),-
2312 QGenericArgument val1 = QGenericArgument(),-
2313 QGenericArgument val2 = QGenericArgument(),-
2314 QGenericArgument val3 = QGenericArgument(),-
2315 QGenericArgument val4 = QGenericArgument(),-
2316 QGenericArgument val5 = QGenericArgument(),-
2317 QGenericArgument val6 = QGenericArgument(),-
2318 QGenericArgument val7 = QGenericArgument(),-
2319 QGenericArgument val8 = QGenericArgument(),-
2320 QGenericArgument val9 = QGenericArgument()) const-
2321-
2322 \overload invoke()-
2323-
2324 This overload invokes this method using the-
2325 connection type Qt::AutoConnection and ignores return values.-
2326*/-
2327-
2328/*!-
2329 \since 5.5-
2330-
2331 Invokes this method on a Q_GADGET. Returns \c true if the member could be invoked.-
2332 Returns \c false if there is no such member or the parameters did not match.-
2333-
2334 The pointer \a gadget must point to an instance of the gadget class.-
2335-
2336 The invocation is always synchronous.-
2337-
2338 The return value of this method call is placed in \a-
2339 returnValue. You can pass up to ten arguments (\a val0, \a val1,-
2340 \a val2, \a val3, \a val4, \a val5, \a val6, \a val7, \a val8,-
2341 and \a val9) to this method call.-
2342-
2343 \warning this method will not test the validity of the arguments: \a gadget-
2344 must be an instance of the class of the QMetaObject of which this QMetaMethod-
2345 has been constructed with. The arguments must have the same type as the ones-
2346 expected by the method, else, the behavior is undefined.-
2347-
2348 \sa Q_ARG(), Q_RETURN_ARG(), qRegisterMetaType(), QMetaObject::invokeMethod()-
2349*/-
2350bool QMetaMethod::invokeOnGadget(void* gadget, QGenericReturnArgument returnValue, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9) const-
2351{-
2352 if (!gadget || !mobj)
!gadgetDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
!mobjDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
0-3
2353 return false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QMetaMethod
2
2354-
2355 // check return type-
2356 if (returnValue.data()) {
returnValue.data()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaMethod
1-2
2357 const char *retType = typeName();-
2358 if (qstrcmp(returnValue.name(), retType) != 0) {
qstrcmp(return... retType) != 0Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaMethod
0-2
2359 // normalize the return value as well-
2360 QByteArray normalized = QMetaObject::normalizedType(returnValue.name());-
2361 if (qstrcmp(normalized.constData(), retType) != 0) {
qstrcmp(normal... retType) != 0Description
TRUEnever evaluated
FALSEnever evaluated
0
2362 // String comparison failed, try compare the metatype.-
2363 int t = returnType();-
2364 if (t == QMetaType::UnknownType || t != QMetaType::type(normalized))
t == QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEnever evaluated
t != QMetaType...pe(normalized)Description
TRUEnever evaluated
FALSEnever evaluated
0
2365 return false;
never executed: return false;
0
2366 }
never executed: end of block
0
2367 }
never executed: end of block
0
2368 }
executed 2 times by 1 test: end of block
Executed by:
  • tst_QMetaMethod
2
2369-
2370 // check argument count (we don't allow invoking a method if given too few arguments)-
2371 const char *typeNames[] = {-
2372 returnValue.name(),-
2373 val0.name(),-
2374 val1.name(),-
2375 val2.name(),-
2376 val3.name(),-
2377 val4.name(),-
2378 val5.name(),-
2379 val6.name(),-
2380 val7.name(),-
2381 val8.name(),-
2382 val9.name()-
2383 };-
2384 int paramCount;-
2385 for (paramCount = 1; paramCount < MaximumParamCount; ++paramCount) {
paramCount < MaximumParamCountDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEnever evaluated
0-4
2386 if (qstrlen(typeNames[paramCount]) <= 0)
qstrlen(typeNa...amCount]) <= 0Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaMethod
1-3
2387 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QMetaMethod
3
2388 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QMetaMethod
1
2389 if (paramCount <= QMetaMethodPrivate::get(this)->parameterCount())
paramCount <= ...rameterCount()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
0-3
2390 return false;
never executed: return false;
0
2391-
2392 // invoke!-
2393 void *param[] = {-
2394 returnValue.data(),-
2395 val0.data(),-
2396 val1.data(),-
2397 val2.data(),-
2398 val3.data(),-
2399 val4.data(),-
2400 val5.data(),-
2401 val6.data(),-
2402 val7.data(),-
2403 val8.data(),-
2404 val9.data()-
2405 };-
2406 int idx_relative = QMetaMethodPrivate::get(this)->ownMethodIndex();-
2407 Q_ASSERT(QMetaObjectPrivate::get(mobj)->revision >= 6);-
2408 QObjectPrivate::StaticMetaCallFunction callFunction = mobj->d.static_metacall;-
2409 if (!callFunction)
!callFunctionDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaMethod
0-3
2410 return false;
never executed: return false;
0
2411 callFunction(reinterpret_cast<QObject*>(gadget), QMetaObject::InvokeMetaMethod, idx_relative, param);-
2412 return true;
executed 3 times by 1 test: return true;
Executed by:
  • tst_QMetaMethod
3
2413}-
2414-
2415/*!-
2416 \fn bool QMetaMethod::invokeOnGadget(void *gadget,-
2417 QGenericArgument val0 = QGenericArgument(0),-
2418 QGenericArgument val1 = QGenericArgument(),-
2419 QGenericArgument val2 = QGenericArgument(),-
2420 QGenericArgument val3 = QGenericArgument(),-
2421 QGenericArgument val4 = QGenericArgument(),-
2422 QGenericArgument val5 = QGenericArgument(),-
2423 QGenericArgument val6 = QGenericArgument(),-
2424 QGenericArgument val7 = QGenericArgument(),-
2425 QGenericArgument val8 = QGenericArgument(),-
2426 QGenericArgument val9 = QGenericArgument()) const-
2427-
2428 \overload-
2429 \since 5.5-
2430-
2431 This overload invokes this method for a \a gadget and ignores return values.-
2432*/-
2433-
2434/*!-
2435 \class QMetaEnum-
2436 \inmodule QtCore-
2437 \brief The QMetaEnum class provides meta-data about an enumerator.-
2438-
2439 \ingroup objectmodel-
2440-
2441 Use name() for the enumerator's name. The enumerator's keys (names-
2442 of each enumerated item) are returned by key(); use keyCount() to find-
2443 the number of keys. isFlag() returns whether the enumerator is-
2444 meant to be used as a flag, meaning that its values can be combined-
2445 using the OR operator.-
2446-
2447 The conversion functions keyToValue(), valueToKey(), keysToValue(),-
2448 and valueToKeys() allow conversion between the integer-
2449 representation of an enumeration or set value and its literal-
2450 representation. The scope() function returns the class scope this-
2451 enumerator was declared in.-
2452-
2453 \sa QMetaObject, QMetaMethod, QMetaProperty-
2454*/-
2455-
2456/*!-
2457 \fn bool QMetaEnum::isValid() const-
2458-
2459 Returns \c true if this enum is valid (has a name); otherwise returns-
2460 false.-
2461-
2462 \sa name()-
2463*/-
2464-
2465/*!-
2466 \fn const QMetaObject *QMetaEnum::enclosingMetaObject() const-
2467 \internal-
2468*/-
2469-
2470-
2471/*!-
2472 \fn QMetaEnum::QMetaEnum()-
2473 \internal-
2474*/-
2475-
2476/*!-
2477 Returns the name of the enumerator (without the scope).-
2478-
2479 For example, the Qt::AlignmentFlag enumeration has \c-
2480 AlignmentFlag as the name and \l Qt as the scope.-
2481-
2482 \sa isValid(), scope()-
2483*/-
2484const char *QMetaEnum::name() const-
2485{-
2486 if (!mobj)
!mobjDescription
TRUEevaluated 21247 times by 51 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • ...
FALSEevaluated 507 times by 17 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
507-21247
2487 return 0;
executed 21247 times by 51 tests: return 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • ...
21247
2488 return rawStringData(mobj, mobj->d.data[handle]);
executed 507 times by 17 tests: return rawStringData(mobj, mobj->d.data[handle]);
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractSpinBox
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QItemDelegate
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidget
507
2489}-
2490-
2491/*!-
2492 Returns the number of keys.-
2493-
2494 \sa key()-
2495*/-
2496int QMetaEnum::keyCount() const-
2497{-
2498 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObjectBuilder
0-27
2499 return 0;
never executed: return 0;
0
2500 return mobj->d.data[handle + 2];
executed 27 times by 2 tests: return mobj->d.data[handle + 2];
Executed by:
  • tst_QMetaEnum
  • tst_QMetaObjectBuilder
27
2501}-
2502-
2503-
2504/*!-
2505 Returns the key with the given \a index, or 0 if no such key exists.-
2506-
2507 \sa keyCount(), value(), valueToKey()-
2508*/-
2509const char *QMetaEnum::key(int index) const-
2510{-
2511 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 259 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObjectBuilder
  • tst_languageChange
0-259
2512 return 0;
never executed: return 0;
0
2513 int count = mobj->d.data[handle + 2];-
2514 int data = mobj->d.data[handle + 3];-
2515 if (index >= 0 && index < count)
index >= 0Description
TRUEevaluated 259 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObjectBuilder
  • tst_languageChange
FALSEnever evaluated
index < countDescription
TRUEevaluated 259 times by 5 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObjectBuilder
  • tst_languageChange
FALSEnever evaluated
0-259
2516 return rawStringData(mobj, mobj->d.data[data + 2*index]);
executed 259 times by 5 tests: return rawStringData(mobj, mobj->d.data[data + 2*index]);
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObjectBuilder
  • tst_languageChange
259
2517 return 0;
never executed: return 0;
0
2518}-
2519-
2520/*!-
2521 Returns the value with the given \a index; or returns -1 if there-
2522 is no such value.-
2523-
2524 \sa keyCount(), key(), keyToValue()-
2525*/-
2526int QMetaEnum::value(int index) const-
2527{-
2528 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 28 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-28
2529 return 0;
never executed: return 0;
0
2530 int count = mobj->d.data[handle + 2];-
2531 int data = mobj->d.data[handle + 3];-
2532 if (index >= 0 && index < count)
index >= 0Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
index < countDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-28
2533 return mobj->d.data[data + 2*index + 1];
executed 28 times by 1 test: return mobj->d.data[data + 2*index + 1];
Executed by:
  • tst_QMetaObjectBuilder
28
2534 return -1;
never executed: return -1;
0
2535}-
2536-
2537-
2538/*!-
2539 Returns \c true if this enumerator is used as a flag; otherwise returns-
2540 false.-
2541-
2542 When used as flags, enumerators can be combined using the OR-
2543 operator.-
2544-
2545 \sa keysToValue(), valueToKeys()-
2546*/-
2547bool QMetaEnum::isFlag() const-
2548{-
2549 return mobj && mobj->d.data[handle + 1];
executed 35 times by 3 tests: return mobj && mobj->d.data[handle + 1];
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
mobjDescription
TRUEevaluated 35 times by 3 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEnever evaluated
mobj->d.data[handle + 1]Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 22 times by 3 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
0-35
2550}-
2551-
2552-
2553/*!-
2554 Returns the scope this enumerator was declared in.-
2555-
2556 For example, the Qt::AlignmentFlag enumeration has \c Qt as-
2557 the scope and \c AlignmentFlag as the name.-
2558-
2559 \sa name()-
2560*/-
2561const char *QMetaEnum::scope() const-
2562{-
2563 return mobj ? objectClassName(mobj) : 0;
executed 59 times by 5 tests: return mobj ? objectClassName(mobj) : 0;
Executed by:
  • tst_QAbstractSpinBox
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QWidget
mobjDescription
TRUEevaluated 59 times by 5 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
  • tst_QWidget
FALSEnever evaluated
0-59
2564}-
2565-
2566/*!-
2567 Returns the integer value of the given enumeration \a key, or -1-
2568 if \a key is not defined.-
2569-
2570 If \a key is not defined, *\a{ok} is set to false; otherwise-
2571 *\a{ok} is set to true.-
2572-
2573 For flag types, use keysToValue().-
2574-
2575 \sa valueToKey(), isFlag(), keysToValue()-
2576*/-
2577int QMetaEnum::keyToValue(const char *key, bool *ok) const-
2578{-
2579 if (ok != 0)
ok != 0Description
TRUEevaluated 273 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEnever evaluated
0-273
2580 *ok = false;
executed 273 times by 6 tests: *ok = false;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
273
2581 if (!mobj || !key)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 273 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
!keyDescription
TRUEnever evaluated
FALSEevaluated 273 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
0-273
2582 return -1;
never executed: return -1;
0
2583 uint scope = 0;-
2584 const char *qualified_key = key;-
2585 const char *s = key + qstrlen(key);-
2586 while (s > key && *s != ':')
s > keyDescription
TRUEevaluated 1712 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEevaluated 267 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
*s != ':'Description
TRUEevaluated 1706 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QMetaObject
6-1712
2587 --s;
executed 1706 times by 6 tests: --s;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
1706
2588 if (s > key && *(s-1)==':') {
s > keyDescription
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 267 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
*(s-1)==':'Description
TRUEevaluated 6 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-267
2589 scope = s - key - 1;-
2590 key += scope + 2;-
2591 }
executed 6 times by 1 test: end of block
Executed by:
  • tst_QMetaObject
6
2592 int count = mobj->d.data[handle + 2];-
2593 int data = mobj->d.data[handle + 3];-
2594 for (int i = 0; i < count; ++i) {
i < countDescription
TRUEevaluated 302 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QMetaObject
8-302
2595 const QByteArray className = stringData(mobj, priv(mobj->d.data)->className);-
2596 if ((!scope || (className.size() == int(scope) && strncmp(qualified_key, className.constData(), scope) == 0))
!scopeDescription
TRUEevaluated 286 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEevaluated 16 times by 1 test
Evaluated by:
  • tst_QMetaObject
className.size() == int(scope)Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_QMetaObject
strncmp(qualif...), scope) == 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-286
2597 && strcmp(key, rawStringData(mobj, mobj->d.data[data + 2*i])) == 0) {
strcmp(key, ra... + 2*i])) == 0Description
TRUEevaluated 265 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEevaluated 25 times by 3 tests
Evaluated by:
  • tst_QFiledialog
  • tst_QMetaObject
  • tst_QObject
25-265
2598 if (ok != 0)
ok != 0Description
TRUEevaluated 265 times by 6 tests
Evaluated by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
FALSEnever evaluated
0-265
2599 *ok = true;
executed 265 times by 6 tests: *ok = true;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
265
2600 return mobj->d.data[data + 2*i + 1];
executed 265 times by 6 tests: return mobj->d.data[data + 2*i + 1];
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaObject
  • tst_QObject
  • tst_languageChange
265
2601 }-
2602 }
executed 37 times by 3 tests: end of block
Executed by:
  • tst_QFiledialog
  • tst_QMetaObject
  • tst_QObject
37
2603 return -1;
executed 8 times by 1 test: return -1;
Executed by:
  • tst_QMetaObject
8
2604}-
2605-
2606/*!-
2607 Returns the string that is used as the name of the given-
2608 enumeration \a value, or 0 if \a value is not defined.-
2609-
2610 For flag types, use valueToKeys().-
2611-
2612 \sa isFlag(), valueToKeys()-
2613*/-
2614const char* QMetaEnum::valueToKey(int value) const-
2615{-
2616 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 102192 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
0-102192
2617 return 0;
never executed: return 0;
0
2618 int count = mobj->d.data[handle + 2];-
2619 int data = mobj->d.data[handle + 3];-
2620 for (int i = 0; i < count; ++i)
i < countDescription
TRUEevaluated 558322 times by 124 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • ...
FALSEevaluated 17656 times by 22 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QKeyEvent
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QSizePolicy
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWidget
17656-558322
2621 if (value == (int)mobj->d.data[data + 2*i + 1])
value == (int)...ata + 2*i + 1]Description
TRUEevaluated 84536 times by 121 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QDrag
  • ...
FALSEevaluated 473786 times by 108 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDrag
  • tst_QEasingCurve
  • tst_QEventDispatcher
  • ...
84536-473786
2622 return rawStringData(mobj, mobj->d.data[data + 2*i]);
executed 84536 times by 121 tests: return rawStringData(mobj, mobj->d.data[data + 2*i]);
Executed by:
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBrush
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QCollator
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDataStream
  • tst_QDateTime
  • tst_QDateTimeEdit
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QDrag
  • ...
84536
2623 return 0;
executed 17656 times by 22 tests: return 0;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemModel
  • tst_QAbstractProxyModel
  • tst_QDockWidget
  • tst_QGraphicsItem
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QHeaderView
  • tst_QKeyEvent
  • tst_QLibrary
  • tst_QLineEdit
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QPlainTextEdit
  • tst_QPluginLoader
  • tst_QSizePolicy
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTextDocumentFragment
  • tst_QTextEdit
  • tst_QToolBar
  • tst_QWidget
17656
2624}-
2625-
2626/*!-
2627 Returns the value derived from combining together the values of-
2628 the \a keys using the OR operator, or -1 if \a keys is not-
2629 defined. Note that the strings in \a keys must be '|'-separated.-
2630-
2631 If \a keys is not defined, *\a{ok} is set to false; otherwise-
2632 *\a{ok} is set to true.-
2633-
2634 \sa isFlag(), valueToKey(), valueToKeys()-
2635*/-
2636int QMetaEnum::keysToValue(const char *keys, bool *ok) const-
2637{-
2638 if (ok != 0)
ok != 0Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEnever evaluated
0-41
2639 *ok = false;
executed 41 times by 2 tests: *ok = false;
Executed by:
  • tst_QMetaObject
  • tst_QVariant
41
2640 if (!mobj || !keys)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
!keysDescription
TRUEnever evaluated
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
0-41
2641 return -1;
never executed: return -1;
0
2642 if (ok != 0)
ok != 0Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEnever evaluated
0-41
2643 *ok = true;
executed 41 times by 2 tests: *ok = true;
Executed by:
  • tst_QMetaObject
  • tst_QVariant
41
2644 QStringList l = QString::fromLatin1(keys).split(QLatin1Char('|'));-
2645 if (l.isEmpty())
l.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
0-41
2646 return 0;
never executed: return 0;
0
2647 //#### TODO write proper code, do not use QStringList-
2648 int value = 0;-
2649 int count = mobj->d.data[handle + 2];-
2650 int data = mobj->d.data[handle + 3];-
2651 for (int li = 0; li < l.size(); ++li) {
li < l.size()Description
TRUEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
41-55
2652 QString trimmed = l.at(li).trimmed();-
2653 QByteArray qualified_key = trimmed.toLatin1();-
2654 const char *key = qualified_key.constData();-
2655 uint scope = 0;-
2656 const char *s = key + qstrlen(key);-
2657 while (s > key && *s != ':')
s > keyDescription
TRUEevaluated 729 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
*s != ':'Description
TRUEevaluated 705 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEevaluated 24 times by 1 test
Evaluated by:
  • tst_QMetaObject
24-729
2658 --s;
executed 705 times by 2 tests: --s;
Executed by:
  • tst_QMetaObject
  • tst_QVariant
705
2659 if (s > key && *(s-1)==':') {
s > keyDescription
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 31 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
*(s-1)==':'Description
TRUEevaluated 24 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-31
2660 scope = s - key - 1;-
2661 key += scope + 2;-
2662 }
executed 24 times by 1 test: end of block
Executed by:
  • tst_QMetaObject
24
2663 int i;-
2664 for (i = count-1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 121 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMetaObject
14-121
2665 const QByteArray className = stringData(mobj, priv(mobj->d.data)->className);-
2666 if ((!scope || (className.size() == int(scope) && strncmp(qualified_key.constData(), className.constData(), scope) == 0))
!scopeDescription
TRUEevaluated 59 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEevaluated 62 times by 1 test
Evaluated by:
  • tst_QMetaObject
className.size() == int(scope)Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QMetaObject
strncmp(qualif...), scope) == 0Description
TRUEevaluated 26 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-62
2667 && strcmp(key, rawStringData(mobj, mobj->d.data[data + 2*i])) == 0) {
strcmp(key, ra... + 2*i])) == 0Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
FALSEevaluated 44 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
41-44
2668 value |= mobj->d.data[data + 2*i + 1];-
2669 break;
executed 41 times by 2 tests: break;
Executed by:
  • tst_QMetaObject
  • tst_QVariant
41
2670 }-
2671 }
executed 80 times by 2 tests: end of block
Executed by:
  • tst_QMetaObject
  • tst_QVariant
80
2672 if (i < 0) {
i < 0Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 41 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QVariant
14-41
2673 if (ok != 0)
ok != 0Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEnever evaluated
0-14
2674 *ok = false;
executed 14 times by 1 test: *ok = false;
Executed by:
  • tst_QMetaObject
14
2675 value |= -1;-
2676 }
executed 14 times by 1 test: end of block
Executed by:
  • tst_QMetaObject
14
2677 }
executed 55 times by 2 tests: end of block
Executed by:
  • tst_QMetaObject
  • tst_QVariant
55
2678 return value;
executed 41 times by 2 tests: return value;
Executed by:
  • tst_QMetaObject
  • tst_QVariant
41
2679}-
2680-
2681/*!-
2682 Returns a byte array of '|'-separated keys that represents the-
2683 given \a value.-
2684-
2685 \sa isFlag(), valueToKey(), keysToValue()-
2686*/-
2687QByteArray QMetaEnum::valueToKeys(int value) const-
2688{-
2689 QByteArray keys;-
2690 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 17325 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
0-17325
2691 return keys;
never executed: return keys;
0
2692 int count = mobj->d.data[handle + 2];-
2693 int data = mobj->d.data[handle + 3];-
2694 int v = value;-
2695 // reverse iterate to ensure values like Qt::Dialog=0x2|Qt::Window are processed first.-
2696 for (int i = count - 1; i >= 0; --i) {
i >= 0Description
TRUEevaluated 260330 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
FALSEevaluated 17325 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
17325-260330
2697 int k = mobj->d.data[data + 2*i + 1];-
2698 if ((k != 0 && (v & k) == k ) || (k == value)) {
k != 0Description
TRUEevaluated 260307 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QWidget
(v & k) == kDescription
TRUEevaluated 17324 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
FALSEevaluated 242983 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
(k == value)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QWidget
FALSEevaluated 242996 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
10-260307
2699 v = v & ~k;-
2700 if (!keys.isEmpty())
!keys.isEmpty()Description
TRUEevaluated 9 times by 3 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
FALSEevaluated 17325 times by 4 tests
Evaluated by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
9-17325
2701 keys.prepend('|');
executed 9 times by 3 tests: keys.prepend('|');
Executed by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
9
2702 keys.prepend(stringData(mobj, mobj->d.data[data + 2*i]));-
2703 }
executed 17334 times by 4 tests: end of block
Executed by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
17334
2704 }
executed 260330 times by 4 tests: end of block
Executed by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
260330
2705 return keys;
executed 17325 times by 4 tests: return keys;
Executed by:
  • tst_QMetaEnum
  • tst_QMetaObject
  • tst_QSizePolicy
  • tst_QWidget
17325
2706}-
2707-
2708/*!-
2709 \fn QMetaEnum QMetaEnum::fromType()-
2710 \since 5.5-
2711-
2712 Returns the QMetaEnum corresponding to the type in the template parameter.-
2713 The enum needs to be declared with Q_ENUM.-
2714*/-
2715-
2716static QByteArray qualifiedName(const QMetaEnum &e)-
2717{-
2718 return QByteArray(e.scope()) + "::" + e.name();
executed 24 times by 2 tests: return QByteArray(e.scope()) + "::" + e.name();
Executed by:
  • tst_QAbstractSpinBox
  • tst_QObject
24
2719}-
2720-
2721/*!-
2722 \class QMetaProperty-
2723 \inmodule QtCore-
2724 \brief The QMetaProperty class provides meta-data about a property.-
2725-
2726 \ingroup objectmodel-
2727-
2728 Property meta-data is obtained from an object's meta-object. See-
2729 QMetaObject::property() and QMetaObject::propertyCount() for-
2730 details.-
2731-
2732 \section1 Property Meta-Data-
2733-
2734 A property has a name() and a type(), as well as various-
2735 attributes that specify its behavior: isReadable(), isWritable(),-
2736 isDesignable(), isScriptable(), revision(), and isStored().-
2737-
2738 If the property is an enumeration, isEnumType() returns \c true; if the-
2739 property is an enumeration that is also a flag (i.e. its values-
2740 can be combined using the OR operator), isEnumType() and-
2741 isFlagType() both return true. The enumerator for these types is-
2742 available from enumerator().-
2743-
2744 The property's values are set and retrieved with read(), write(),-
2745 and reset(); they can also be changed through QObject's set and get-
2746 functions. See QObject::setProperty() and QObject::property() for-
2747 details.-
2748-
2749 \section1 Copying and Assignment-
2750-
2751 QMetaProperty objects can be copied by value. However, each copy will-
2752 refer to the same underlying property meta-data.-
2753-
2754 \sa QMetaObject, QMetaEnum, QMetaMethod, {Qt's Property System}-
2755*/-
2756-
2757/*!-
2758 \fn bool QMetaProperty::isValid() const-
2759-
2760 Returns \c true if this property is valid (readable); otherwise-
2761 returns \c false.-
2762-
2763 \sa isReadable()-
2764*/-
2765-
2766/*!-
2767 \fn const QMetaObject *QMetaProperty::enclosingMetaObject() const-
2768 \internal-
2769*/-
2770-
2771/*!-
2772 \internal-
2773*/-
2774QMetaProperty::QMetaProperty()-
2775 : mobj(0), handle(0), idx(0)-
2776{-
2777}
executed 29879 times by 156 tests: end of block
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
  • ...
29879
2778-
2779-
2780/*!-
2781 Returns this property's name.-
2782-
2783 \sa type(), typeName()-
2784*/-
2785const char *QMetaProperty::name() const-
2786{-
2787 if (!mobj)
!mobjDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QAbstractItemView
FALSEevaluated 835 times by 136 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • ...
3-835
2788 return 0;
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QAbstractItemView
3
2789 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2790 return rawStringData(mobj, mobj->d.data[handle]);
executed 835 times by 136 tests: return rawStringData(mobj, mobj->d.data[handle]);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • ...
835
2791}-
2792-
2793/*!-
2794 Returns the name of this property's type.-
2795-
2796 \sa type(), name()-
2797*/-
2798const char *QMetaProperty::typeName() const-
2799{-
2800 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 108 times by 5 tests
Evaluated by:
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
0-108
2801 return 0;
never executed: return 0;
0
2802 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2803 return rawTypeNameFromTypeInfo(mobj, mobj->d.data[handle + 1]);
executed 108 times by 5 tests: return rawTypeNameFromTypeInfo(mobj, mobj->d.data[handle + 1]);
Executed by:
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
108
2804}-
2805-
2806/*!-
2807 Returns this property's type. The return value is one-
2808 of the values of the QVariant::Type enumeration.-
2809-
2810 \sa userType(), typeName(), name()-
2811*/-
2812QVariant::Type QMetaProperty::type() const-
2813{-
2814 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 254 times by 135 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
0-254
2815 return QVariant::Invalid;
never executed: return QVariant::Invalid;
0
2816 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2817-
2818 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
2819 uint type = typeFromTypeInfo(mobj, mobj->d.data[handle + 1]);-
2820 if (type >= QMetaType::User)
type >= QMetaType::UserDescription
TRUEevaluated 26 times by 4 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QObject
FALSEevaluated 228 times by 135 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
26-228
2821 return QVariant::UserType;
executed 26 times by 4 tests: return QVariant::UserType;
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QObject
26
2822 if (type != QMetaType::UnknownType)
type != QMetaType::UnknownTypeDescription
TRUEevaluated 224 times by 135 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
4-224
2823 return QVariant::Type(type);
executed 224 times by 135 tests: return QVariant::Type(type);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • ...
224
2824 if (isEnumType()) {
isEnumType()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
1-3
2825 int enumMetaTypeId = QMetaType::type(qualifiedName(menum));-
2826 if (enumMetaTypeId == QMetaType::UnknownType)
enumMetaTypeId...e::UnknownTypeDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
1-2
2827 return QVariant::Int;
executed 2 times by 1 test: return QVariant::Int;
Executed by:
  • tst_QObject
2
2828 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
2829#ifdef QT_COORD_TYPE-
2830 // qreal metatype must be resolved at runtime.-
2831 if (strcmp(typeName(), "qreal") == 0)-
2832 return QVariant::Type(qMetaTypeId<qreal>());-
2833#endif-
2834-
2835 return QVariant::UserType;
executed 2 times by 2 tests: return QVariant::UserType;
Executed by:
  • tst_QMetaObject
  • tst_QObject
2
2836}-
2837-
2838/*!-
2839 \since 4.2-
2840-
2841 Returns this property's user type. The return value is one-
2842 of the values that are registered with QMetaType, or QMetaType::UnknownType if-
2843 the type is not registered.-
2844-
2845 \sa type(), QMetaType, typeName()-
2846 */-
2847int QMetaProperty::userType() const-
2848{-
2849 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 586 times by 139 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • ...
0-586
2850 return QMetaType::UnknownType;
never executed: return QMetaType::UnknownType;
0
2851 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
2852 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2853 int type = typeFromTypeInfo(mobj, mobj->d.data[handle + 1]);-
2854 if (type != QMetaType::UnknownType)
type != QMetaType::UnknownTypeDescription
TRUEevaluated 584 times by 139 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • ...
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QObject
2-584
2855 return type;
executed 584 times by 139 tests: return type;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • 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_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • ...
584
2856 if (isEnumType()) {
isEnumType()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
1
2857 type = QMetaType::type(qualifiedName(menum));-
2858 if (type == QMetaType::UnknownType) {
type == QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-1
2859 type = registerPropertyType();-
2860 if (type == QMetaType::UnknownType)
type == QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEnever evaluated
0
2861 return QVariant::Int; // Match behavior of QMetaType::type()
never executed: return QVariant::Int;
0
2862 }
never executed: end of block
0
2863 return type;
executed 1 time by 1 test: return type;
Executed by:
  • tst_QObject
1
2864 }-
2865 type = QMetaType::type(typeName());-
2866 if (type != QMetaType::UnknownType)
type != QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
0-1
2867 return type;
never executed: return type;
0
2868 return registerPropertyType();
executed 1 time by 1 test: return registerPropertyType();
Executed by:
  • tst_QMetaObject
1
2869}-
2870-
2871/*!-
2872 \since 4.6-
2873-
2874 Returns this property's index.-
2875*/-
2876int QMetaProperty::propertyIndex() const-
2877{-
2878 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEnever evaluated
0
2879 return -1;
never executed: return -1;
0
2880 return idx + mobj->propertyOffset();
never executed: return idx + mobj->propertyOffset();
0
2881}-
2882-
2883/*!-
2884 Returns \c true if the property's type is an enumeration value that-
2885 is used as a flag; otherwise returns \c false.-
2886-
2887 Flags can be combined using the OR operator. A flag type is-
2888 implicitly also an enum type.-
2889-
2890 \sa isEnumType(), enumerator(), QMetaEnum::isFlag()-
2891*/-
2892-
2893bool QMetaProperty::isFlagType() const-
2894{-
2895 return isEnumType() && menum.isFlag();
executed 83 times by 3 tests: return isEnumType() && menum.isFlag();
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_QObject
isEnumType()Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEevaluated 68 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
menum.isFlag()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QMetaObjectBuilder
  • tst_QObject
4-83
2896}-
2897-
2898/*!-
2899 Returns \c true if the property's type is an enumeration value;-
2900 otherwise returns \c false.-
2901-
2902 \sa enumerator(), isFlagType()-
2903*/-
2904bool QMetaProperty::isEnumType() const-
2905{-
2906 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 22223 times by 154 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-22223
2907 return false;
never executed: return false;
0
2908 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2909 int flags = mobj->d.data[handle + 2];-
2910 return (flags & EnumOrFlag) && menum.name();
executed 22223 times by 154 tests: return (flags & EnumOrFlag) && menum.name();
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
  • ...
(flags & EnumOrFlag)Description
TRUEevaluated 149 times by 14 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QAbstractSpinBox
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDateTimeEdit
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
FALSEevaluated 22074 times by 152 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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
  • tst_QDBusAbstractInterface
  • ...
menum.name()Description
TRUEevaluated 72 times by 4 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QDateTimeEdit
  • tst_QMetaObjectBuilder
  • tst_QObject
FALSEevaluated 77 times by 11 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
72-22223
2911}-
2912-
2913/*!-
2914 \internal-
2915-
2916 Returns \c true if the property has a C++ setter function that-
2917 follows Qt's standard "name" / "setName" pattern. Designer and uic-
2918 query hasStdCppSet() in order to avoid expensive-
2919 QObject::setProperty() calls. All properties in Qt [should] follow-
2920 this pattern.-
2921*/-
2922bool QMetaProperty::hasStdCppSet() const-
2923{-
2924 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 60 times by 3 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
0-60
2925 return false;
never executed: return false;
0
2926 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2927 int flags = mobj->d.data[handle + 2];-
2928 return (flags & StdCppSet);
executed 60 times by 3 tests: return (flags & StdCppSet);
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
60
2929}-
2930-
2931/*!-
2932 \internal-
2933 Executes metacall with QMetaObject::RegisterPropertyMetaType flag.-
2934 Returns id of registered type or QMetaType::UnknownType if a type-
2935 could not be registered for any reason.-
2936*/-
2937int QMetaProperty::registerPropertyType() const-
2938{-
2939 int registerResult = -1;-
2940 void *argv[] = { &registerResult };-
2941 mobj->static_metacall(QMetaObject::RegisterPropertyMetaType, idx, argv);-
2942 return registerResult == -1 ? QMetaType::UnknownType : registerResult;
executed 3 times by 2 tests: return registerResult == -1 ? QMetaType::UnknownType : registerResult;
Executed by:
  • tst_QMetaObject
  • tst_QMetaProperty
registerResult == -1Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaProperty
1-3
2943}-
2944-
2945/*!-
2946 Returns the enumerator if this property's type is an enumerator-
2947 type; otherwise the returned value is undefined.-
2948-
2949 \sa isEnumType(), isFlagType()-
2950*/-
2951QMetaEnum QMetaProperty::enumerator() const-
2952{-
2953 return menum;
executed 1 time by 1 test: return menum;
Executed by:
  • tst_QMetaObject
1
2954}-
2955-
2956/*!-
2957 Reads the property's value from the given \a object. Returns the value-
2958 if it was able to read it; otherwise returns an invalid variant.-
2959-
2960 \sa write(), reset(), isReadable()-
2961*/-
2962QVariant QMetaProperty::read(const QObject *object) const-
2963{-
2964 if (!object || !mobj)
!objectDescription
TRUEnever evaluated
FALSEevaluated 20966 times by 152 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
  • ...
!mobjDescription
TRUEnever evaluated
FALSEevaluated 20966 times by 152 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-20966
2965 return QVariant();
never executed: return QVariant();
0
2966-
2967 uint t = QVariant::Int;-
2968 if (isEnumType()) {
isEnumType()Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QObject
FALSEevaluated 20950 times by 152 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
  • ...
16-20950
2969 /*-
2970 try to create a QVariant that can be converted to this enum-
2971 type (only works if the enum has already been registered-
2972 with QMetaType)-
2973 */-
2974 int enumMetaTypeId = QMetaType::type(qualifiedName(menum));-
2975 if (enumMetaTypeId != QMetaType::UnknownType)
enumMetaTypeId...e::UnknownTypeDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QAbstractSpinBox
  • tst_QObject
7-9
2976 t = enumMetaTypeId;
executed 7 times by 1 test: t = enumMetaTypeId;
Executed by:
  • tst_QObject
7
2977 } else {
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QAbstractSpinBox
  • tst_QObject
16
2978 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
2979 const char *typeName = 0;-
2980 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
2981 uint typeInfo = mobj->d.data[handle + 1];-
2982 if (!(typeInfo & IsUnresolvedType))
!(typeInfo & IsUnresolvedType)Description
TRUEevaluated 20916 times by 151 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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
  • tst_QDBusAbstractInterface
  • ...
FALSEevaluated 34 times by 9 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
34-20916
2983 t = typeInfo;
executed 20916 times by 151 tests: t = typeInfo;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • 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
  • tst_QDBusAbstractInterface
  • ...
20916
2984 else {-
2985 typeName = rawStringData(mobj, typeInfo & TypeNameIndexMask);-
2986 t = QMetaType::type(typeName);-
2987 }
executed 34 times by 9 tests: end of block
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSyntaxHighlighter
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
34
2988 if (t == QMetaType::UnknownType) {
t == QMetaType::UnknownTypeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEevaluated 20949 times by 152 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
  • ...
1-20949
2989 // Try to register the type and try again before reporting an error.-
2990 t = registerPropertyType();-
2991 if (t == QMetaType::UnknownType) {
t == QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
0-1
2992 qWarning("QMetaProperty::read: Unable to handle unregistered datatype '%s' for property '%s::%s'", typeName, mobj->className(), name());-
2993 return QVariant();
never executed: return QVariant();
0
2994 }-
2995 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QMetaProperty
1
2996 }
executed 20950 times by 152 tests: end of block
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
  • ...
20950
2997-
2998 // the status variable is changed by qt_metacall to indicate what it did-
2999 // this feature is currently only used by Qt D-Bus and should not be depended-
3000 // upon. Don't change it without looking into QDBusAbstractInterface first-
3001 // -1 (unchanged): normal qt_metacall, result stored in argv[0]-
3002 // changed: result stored directly in value-
3003 int status = -1;-
3004 QVariant value;-
3005 void *argv[] = { 0, &value, &status };-
3006 if (t == QMetaType::QVariant) {
t == QMetaType::QVariantDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 20962 times by 152 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
  • ...
4-20962
3007 argv[0] = &value;-
3008 } else {
executed 4 times by 1 test: end of block
Executed by:
  • tst_QObject
4
3009 value = QVariant(t, (void*)0);-
3010 argv[0] = value.data();-
3011 }
executed 20962 times by 152 tests: end of block
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
  • ...
20962
3012 if (priv(mobj->d.data)->flags & PropertyAccessInStaticMetaCall && mobj->d.static_metacall) {
priv(mobj->d.d...StaticMetaCallDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEevaluated 20964 times by 152 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
  • ...
mobj->d.static_metacallDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEnever evaluated
0-20964
3013 mobj->d.static_metacall(const_cast<QObject*>(object), QMetaObject::ReadProperty, idx, argv);-
3014 } else {
executed 2 times by 1 test: end of block
Executed by:
  • tst_QMetaProperty
2
3015 QMetaObject::metacall(const_cast<QObject*>(object), QMetaObject::ReadProperty,-
3016 idx + mobj->propertyOffset(), argv);-
3017 }
executed 20964 times by 152 tests: end of block
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
  • ...
20964
3018-
3019 if (status != -1)
status != -1Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QDBusAbstractInterface
FALSEevaluated 20952 times by 152 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
  • ...
14-20952
3020 return value;
executed 14 times by 1 test: return value;
Executed by:
  • tst_QDBusAbstractInterface
14
3021 if (t != QMetaType::QVariant && argv[0] != value.data())
t != QMetaType::QVariantDescription
TRUEevaluated 20948 times by 152 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
  • ...
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
argv[0] != value.data()Description
TRUEnever evaluated
FALSEevaluated 20948 times by 152 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-20948
3022 // pointer or reference-
3023 return QVariant((QVariant::Type)t, argv[0]);
never executed: return QVariant((QVariant::Type)t, argv[0]);
0
3024 return value;
executed 20952 times by 152 tests: return value;
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
  • ...
20952
3025}-
3026-
3027/*!-
3028 Writes \a value as the property's value to the given \a object. Returns-
3029 true if the write succeeded; otherwise returns \c false.-
3030-
3031 If \a value is not of the same type type as the property, a conversion-
3032 is attempted. An empty QVariant() is equivalent to a call to reset()-
3033 if this property is resetable, or setting a default-constructed object-
3034 otherwise.-
3035-
3036 \sa read(), reset(), isWritable()-
3037*/-
3038bool QMetaProperty::write(QObject *object, const QVariant &value) const-
3039{-
3040 if (!object || !isWritable())
!objectDescription
TRUEnever evaluated
FALSEevaluated 1064 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
!isWritable()Description
TRUEnever evaluated
FALSEevaluated 1064 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
0-1064
3041 return false;
never executed: return false;
0
3042-
3043 QVariant v = value;-
3044 uint t = QVariant::Invalid;-
3045 if (isEnumType()) {
isEnumType()Description
TRUEevaluated 13 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QObject
FALSEevaluated 1051 times by 53 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • 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
  • ...
13-1051
3046 if (v.type() == QVariant::String) {
v.type() == QVariant::StringDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QObject
3-10
3047 bool ok;-
3048 if (isFlagType())
isFlagType()Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
0-3
3049 v = QVariant(menum.keysToValue(value.toByteArray(), &ok));
never executed: v = QVariant(menum.keysToValue(value.toByteArray(), &ok));
0
3050 else-
3051 v = QVariant(menum.keyToValue(value.toByteArray(), &ok));
executed 3 times by 1 test: v = QVariant(menum.keyToValue(value.toByteArray(), &ok));
Executed by:
  • tst_QObject
3
3052 if (!ok)
!okDescription
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QObject
0-3
3053 return false;
never executed: return false;
0
3054 } else if (v.type() != QVariant::Int && v.type() != QVariant::UInt) {
executed 3 times by 1 test: end of block
Executed by:
  • tst_QObject
v.type() != QVariant::IntDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 6 times by 2 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QObject
v.type() != QVariant::UIntDescription
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QObject
FALSEnever evaluated
0-6
3055 int enumMetaTypeId = QMetaType::type(qualifiedName(menum));-
3056 if ((enumMetaTypeId == QMetaType::UnknownType) || (v.userType() != enumMetaTypeId) || !v.constData())
(enumMetaTypeI...::UnknownType)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
(v.userType() ...numMetaTypeId)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
!v.constData()Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QObject
0-2
3057 return false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QObject
3
3058 v = QVariant(*reinterpret_cast<const int *>(v.constData()));-
3059 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QObject
1
3060 v.convert(QVariant::Int);-
3061 } else {
executed 10 times by 2 tests: end of block
Executed by:
  • tst_QDateTimeEdit
  • tst_QObject
10
3062 int handle = priv(mobj->d.data)->propertyData + 3*idx;-
3063 const char *typeName = 0;-
3064 Q_ASSERT(priv(mobj->d.data)->revision >= 7);-
3065 uint typeInfo = mobj->d.data[handle + 1];-
3066 if (!(typeInfo & IsUnresolvedType))
!(typeInfo & IsUnresolvedType)Description
TRUEevaluated 1025 times by 53 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • 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
  • ...
FALSEevaluated 26 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QMetaProperty
  • tst_QObject
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
26-1025
3067 t = typeInfo;
executed 1025 times by 53 tests: t = typeInfo;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • 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
  • ...
1025
3068 else {-
3069 typeName = rawStringData(mobj, typeInfo & TypeNameIndexMask);-
3070 t = QMetaType::type(typeName);-
3071 if (t == QMetaType::UnknownType)
t == QMetaType::UnknownTypeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEevaluated 25 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QMetaProperty
  • tst_QObject
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
1-25
3072 t = registerPropertyType();
executed 1 time by 1 test: t = registerPropertyType();
Executed by:
  • tst_QMetaProperty
1
3073 if (t == QMetaType::UnknownType)
t == QMetaType::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 26 times by 6 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QMetaProperty
  • tst_QObject
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
0-26
3074 return false;
never executed: return false;
0
3075 }
executed 26 times by 6 tests: end of block
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QMetaProperty
  • tst_QObject
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
26
3076 if (t != QMetaType::QVariant && int(t) != value.userType()) {
t != QMetaType::QVariantDescription
TRUEevaluated 1049 times by 53 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • 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
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
int(t) != value.userType()Description
TRUEevaluated 35 times by 7 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QMetaProperty
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWizard
FALSEevaluated 1014 times by 53 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • 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
  • ...
2-1049
3077 if (!value.isValid()) {
!value.isValid()Description
TRUEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QObject
FALSEevaluated 31 times by 7 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QGraphicsObject
  • tst_QMetaProperty
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWizard
4-31
3078 if (isResettable())
isResettable()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaProperty
  • tst_QObject
1-3
3079 return reset(object);
executed 1 time by 1 test: return reset(object);
Executed by:
  • tst_QMetaProperty
1
3080 v = QVariant(t, 0);-
3081 } else if (!v.convert(t)) {
executed 3 times by 2 tests: end of block
Executed by:
  • tst_QMetaProperty
  • tst_QObject
!v.convert(t)Description
TRUEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QDataWidgetMapper
  • tst_QMetaProperty
  • tst_QObject
FALSEevaluated 23 times by 6 tests
Evaluated by:
  • tst_QGraphicsObject
  • tst_QMetaProperty
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWizard
3-23
3082 return false;
executed 8 times by 3 tests: return false;
Executed by:
  • tst_QDataWidgetMapper
  • tst_QMetaProperty
  • tst_QObject
8
3083 }-
3084 }
executed 26 times by 6 tests: end of block
Executed by:
  • tst_QGraphicsObject
  • tst_QMetaProperty
  • tst_QObject
  • tst_QStyleSheetStyle
  • tst_QTableView
  • tst_QWizard
26
3085 }
executed 1042 times by 53 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDataWidgetMapper
  • 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
  • ...
1042
3086-
3087 // the status variable is changed by qt_metacall to indicate what it did-
3088 // this feature is currently only used by Qt D-Bus and should not be depended-
3089 // upon. Don't change it without looking into QDBusAbstractInterface first-
3090 // -1 (unchanged): normal qt_metacall, result stored in argv[0]-
3091 // changed: result stored directly in value, return the value of status-
3092 int status = -1;-
3093 // the flags variable is used by the declarative module to implement-
3094 // interception of property writes.-
3095 int flags = 0;-
3096 void *argv[] = { 0, &v, &status, &flags };-
3097 if (t == QMetaType::QVariant)
t == QMetaType::QVariantDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QObject
FALSEevaluated 1050 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
2-1050
3098 argv[0] = &v;
executed 2 times by 1 test: argv[0] = &v;
Executed by:
  • tst_QObject
2
3099 else-
3100 argv[0] = v.data();
executed 1050 times by 54 tests: argv[0] = v.data();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
1050
3101 if (priv(mobj->d.data)->flags & PropertyAccessInStaticMetaCall && mobj->d.static_metacall)
priv(mobj->d.d...StaticMetaCallDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEevaluated 1051 times by 54 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
mobj->d.static_metacallDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEnever evaluated
0-1051
3102 mobj->d.static_metacall(object, QMetaObject::WriteProperty, idx, argv);
executed 1 time by 1 test: mobj->d.static_metacall(object, QMetaObject::WriteProperty, idx, argv);
Executed by:
  • tst_QMetaProperty
1
3103 else-
3104 QMetaObject::metacall(object, QMetaObject::WriteProperty, idx + mobj->propertyOffset(), argv);
executed 1051 times by 54 tests: QMetaObject::metacall(object, QMetaObject::WriteProperty, idx + mobj->propertyOffset(), argv);
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
1051
3105-
3106 return status;
executed 1052 times by 54 tests: return status;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • 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
  • ...
1052
3107}-
3108-
3109/*!-
3110 Resets the property for the given \a object with a reset method.-
3111 Returns \c true if the reset worked; otherwise returns \c false.-
3112-
3113 Reset methods are optional; only a few properties support them.-
3114-
3115 \sa read(), write()-
3116*/-
3117bool QMetaProperty::reset(QObject *object) const-
3118{-
3119 if (!object || !mobj || !isResettable())
!objectDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaProperty
!mobjDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaProperty
!isResettable()Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaProperty
0-2
3120 return false;
never executed: return false;
0
3121 void *argv[] = { 0 };-
3122 if (priv(mobj->d.data)->flags & PropertyAccessInStaticMetaCall && mobj->d.static_metacall)
priv(mobj->d.d...StaticMetaCallDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
mobj->d.static_metacallDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaProperty
FALSEnever evaluated
0-1
3123 mobj->d.static_metacall(object, QMetaObject::ResetProperty, idx, argv);
executed 1 time by 1 test: mobj->d.static_metacall(object, QMetaObject::ResetProperty, idx, argv);
Executed by:
  • tst_QMetaProperty
1
3124 else-
3125 QMetaObject::metacall(object, QMetaObject::ResetProperty, idx + mobj->propertyOffset(), argv);
executed 1 time by 1 test: QMetaObject::metacall(object, QMetaObject::ResetProperty, idx + mobj->propertyOffset(), argv);
Executed by:
  • tst_QMetaProperty
1
3126 return true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QMetaProperty
2
3127}-
3128/*!-
3129 \since 5.5-
3130-
3131 Reads the property's value from the given \a gadget. Returns the value-
3132 if it was able to read it; otherwise returns an invalid variant.-
3133-
3134 This function should only be used if this is a property of a Q_GADGET-
3135*/-
3136QVariant QMetaProperty::readOnGadget(const void *gadget) const-
3137{-
3138 Q_ASSERT(priv(mobj->d.data)->flags & PropertyAccessInStaticMetaCall && mobj->d.static_metacall);-
3139 return read(reinterpret_cast<const QObject*>(gadget));
executed 2 times by 1 test: return read(reinterpret_cast<const QObject*>(gadget));
Executed by:
  • tst_QMetaProperty
2
3140}-
3141-
3142/*!-
3143 \since 5.5-
3144-
3145 Writes \a value as the property's value to the given \a gadget. Returns-
3146 true if the write succeeded; otherwise returns \c false.-
3147-
3148 This function should only be used if this is a property of a Q_GADGET-
3149*/-
3150bool QMetaProperty::writeOnGadget(void *gadget, const QVariant &value) const-
3151{-
3152 Q_ASSERT(priv(mobj->d.data)->flags & PropertyAccessInStaticMetaCall && mobj->d.static_metacall);-
3153 return write(reinterpret_cast<QObject*>(gadget), value);
executed 1 time by 1 test: return write(reinterpret_cast<QObject*>(gadget), value);
Executed by:
  • tst_QMetaProperty
1
3154}-
3155-
3156/*!-
3157 \since 5.5-
3158-
3159 Resets the property for the given \a gadget with a reset method.-
3160 Returns \c true if the reset worked; otherwise returns \c false.-
3161-
3162 Reset methods are optional; only a few properties support them.-
3163-
3164 This function should only be used if this is a property of a Q_GADGET-
3165*/-
3166bool QMetaProperty::resetOnGadget(void *gadget) const-
3167{-
3168 Q_ASSERT(priv(mobj->d.data)->flags & PropertyAccessInStaticMetaCall && mobj->d.static_metacall);-
3169 return reset(reinterpret_cast<QObject*>(gadget));
executed 1 time by 1 test: return reset(reinterpret_cast<QObject*>(gadget));
Executed by:
  • tst_QMetaProperty
1
3170}-
3171-
3172/*!-
3173 Returns \c true if this property can be reset to a default value; otherwise-
3174 returns \c false.-
3175-
3176 \sa reset()-
3177*/-
3178bool QMetaProperty::isResettable() const-
3179{-
3180 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 106 times by 4 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QObject
0-106
3181 return false;
never executed: return false;
0
3182 int flags = mobj->d.data[handle + 2];-
3183 return flags & Resettable;
executed 106 times by 4 tests: return flags & Resettable;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QObject
106
3184}-
3185-
3186/*!-
3187 Returns \c true if this property is readable; otherwise returns \c false.-
3188-
3189 \sa isWritable(), read(), isValid()-
3190 */-
3191bool QMetaProperty::isReadable() const-
3192{-
3193 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 21241 times by 153 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-21241
3194 return false;
never executed: return false;
0
3195 int flags = mobj->d.data[handle + 2];-
3196 return flags & Readable;
executed 21241 times by 153 tests: return flags & Readable;
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
  • ...
21241
3197}-
3198-
3199/*!-
3200 Returns \c true if this property has a corresponding change notify signal;-
3201 otherwise returns \c false.-
3202-
3203 \sa notifySignal()-
3204 */-
3205bool QMetaProperty::hasNotifySignal() const-
3206{-
3207 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 103 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
0-103
3208 return false;
never executed: return false;
0
3209 int flags = mobj->d.data[handle + 2];-
3210 return flags & Notify;
executed 103 times by 2 tests: return flags & Notify;
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
103
3211}-
3212-
3213/*!-
3214 \since 4.5-
3215-
3216 Returns the QMetaMethod instance of the property change notifying signal if-
3217 one was specified, otherwise returns an invalid QMetaMethod.-
3218-
3219 \sa hasNotifySignal()-
3220 */-
3221QMetaMethod QMetaProperty::notifySignal() const-
3222{-
3223 int id = notifySignalIndex();-
3224 if (id != -1)
id != -1Description
TRUEevaluated 7 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
2-7
3225 return mobj->method(id);
executed 7 times by 2 tests: return mobj->method(id);
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
7
3226 else-
3227 return QMetaMethod();
executed 2 times by 1 test: return QMetaMethod();
Executed by:
  • tst_QMetaObject
2
3228}-
3229-
3230/*!-
3231 \since 4.6-
3232-
3233 Returns the index of the property change notifying signal if one was-
3234 specified, otherwise returns -1.-
3235-
3236 \sa hasNotifySignal()-
3237 */-
3238int QMetaProperty::notifySignalIndex() const-
3239{-
3240 if (hasNotifySignal()) {
hasNotifySignal()Description
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaObject
2-23
3241 int offset = priv(mobj->d.data)->propertyData +-
3242 priv(mobj->d.data)->propertyCount * 3 + idx;-
3243 return mobj->d.data[offset] + mobj->methodOffset();
executed 23 times by 2 tests: return mobj->d.data[offset] + mobj->methodOffset();
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
23
3244 } else {-
3245 return -1;
executed 2 times by 1 test: return -1;
Executed by:
  • tst_QMetaObject
2
3246 }-
3247}-
3248-
3249// This method has been around for a while, but the documentation was marked \internal until 5.1-
3250/*!-
3251 \since 5.1-
3252-
3253 Returns the property revision if one was-
3254 specified by REVISION, otherwise returns 0.-
3255 */-
3256int QMetaProperty::revision() const-
3257{-
3258 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 56 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-56
3259 return 0;
never executed: return 0;
0
3260 int flags = mobj->d.data[handle + 2];-
3261 if (flags & Revisioned) {
flags & RevisionedDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 49 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
7-49
3262 int offset = priv(mobj->d.data)->propertyData +-
3263 priv(mobj->d.data)->propertyCount * 3 + idx;-
3264 // Revision data is placed after NOTIFY data, if present.-
3265 // Iterate through properties to discover whether we have NOTIFY signals.-
3266 for (int i = 0; i < priv(mobj->d.data)->propertyCount; ++i) {
i < priv(mobj-...>propertyCountDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-7
3267 int handle = priv(mobj->d.data)->propertyData + 3*i;-
3268 if (mobj->d.data[handle + 2] & Notify) {
mobj->d.data[h... + 2] & NotifyDescription
TRUEevaluated 7 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
0-7
3269 offset += priv(mobj->d.data)->propertyCount;-
3270 break;
executed 7 times by 1 test: break;
Executed by:
  • tst_QMetaObjectBuilder
7
3271 }-
3272 }
never executed: end of block
0
3273 return mobj->d.data[offset];
executed 7 times by 1 test: return mobj->d.data[offset];
Executed by:
  • tst_QMetaObjectBuilder
7
3274 } else {-
3275 return 0;
executed 49 times by 1 test: return 0;
Executed by:
  • tst_QMetaObjectBuilder
49
3276 }-
3277}-
3278-
3279/*!-
3280 Returns \c true if this property is writable; otherwise returns-
3281 false.-
3282-
3283 \sa isReadable(), write()-
3284 */-
3285bool QMetaProperty::isWritable() const-
3286{-
3287 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 4327 times by 69 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
0-4327
3288 return false;
never executed: return false;
0
3289 int flags = mobj->d.data[handle + 2];-
3290 return flags & Writable;
executed 4327 times by 69 tests: return flags & Writable;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDockWidget
  • tst_QEasingCurve
  • tst_QErrorMessage
  • tst_QGraphicsItem
  • tst_QGraphicsObject
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QInputDialog
  • tst_QItemDelegate
  • ...
4327
3291}-
3292-
3293-
3294/*!-
3295 Returns \c true if this property is designable for the given \a object;-
3296 otherwise returns \c false.-
3297-
3298 If no \a object is given, the function returns \c false if the-
3299 \c{Q_PROPERTY()}'s \c DESIGNABLE attribute is false; otherwise-
3300 returns \c true (if the attribute is true or is a function or expression).-
3301-
3302 \sa isScriptable(), isStored()-
3303*/-
3304bool QMetaProperty::isDesignable(const QObject *object) const-
3305{-
3306 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_QStyleSheetStyle
0-103
3307 return false;
never executed: return false;
0
3308 int flags = mobj->d.data[handle + 2];-
3309 bool b = flags & Designable;-
3310 if (object) {
objectDescription
TRUEnever evaluated
FALSEevaluated 103 times by 3 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_QStyleSheetStyle
0-103
3311 void *argv[] = { &b };-
3312 QMetaObject::metacall(const_cast<QObject*>(object), QMetaObject::QueryPropertyDesignable,-
3313 idx + mobj->propertyOffset(), argv);-
3314 }
never executed: end of block
0
3315 return b;
executed 103 times by 3 tests: return b;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_QStyleSheetStyle
103
3316-
3317-
3318}-
3319-
3320/*!-
3321 Returns \c true if the property is scriptable for the given \a object;-
3322 otherwise returns \c false.-
3323-
3324 If no \a object is given, the function returns \c false if the-
3325 \c{Q_PROPERTY()}'s \c SCRIPTABLE attribute is false; otherwise returns-
3326 true (if the attribute is true or is a function or expression).-
3327-
3328 \sa isDesignable(), isStored()-
3329*/-
3330bool QMetaProperty::isScriptable(const QObject *object) const-
3331{-
3332 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 373 times by 9 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
0-373
3333 return false;
never executed: return false;
0
3334 int flags = mobj->d.data[handle + 2];-
3335 bool b = flags & Scriptable;-
3336 if (object) {
objectDescription
TRUEnever evaluated
FALSEevaluated 373 times by 9 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
0-373
3337 void *argv[] = { &b };-
3338 QMetaObject::metacall(const_cast<QObject*>(object), QMetaObject::QueryPropertyScriptable,-
3339 idx + mobj->propertyOffset(), argv);-
3340 }
never executed: end of block
0
3341 return b;
executed 373 times by 9 tests: return b;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
373
3342}-
3343-
3344/*!-
3345 Returns \c true if the property is stored for \a object; otherwise returns-
3346 false.-
3347-
3348 If no \a object is given, the function returns \c false if the-
3349 \c{Q_PROPERTY()}'s \c STORED attribute is false; otherwise returns-
3350 true (if the attribute is true or is a function or expression).-
3351-
3352 \sa isDesignable(), isScriptable()-
3353*/-
3354bool QMetaProperty::isStored(const QObject *object) const-
3355{-
3356 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
0-100
3357 return false;
never executed: return false;
0
3358 int flags = mobj->d.data[handle + 2];-
3359 bool b = flags & Stored;-
3360 if (object) {
objectDescription
TRUEnever evaluated
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
0-100
3361 void *argv[] = { &b };-
3362 QMetaObject::metacall(const_cast<QObject*>(object), QMetaObject::QueryPropertyStored,-
3363 idx + mobj->propertyOffset(), argv);-
3364 }
never executed: end of block
0
3365 return b;
executed 100 times by 2 tests: return b;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
100
3366}-
3367-
3368/*!-
3369 Returns \c true if this property is designated as the \c USER-
3370 property, i.e., the one that the user can edit for \a object or-
3371 that is significant in some other way. Otherwise it returns-
3372 false. e.g., the \c text property is the \c USER editable property-
3373 of a QLineEdit.-
3374-
3375 If \a object is null, the function returns \c false if the \c-
3376 {Q_PROPERTY()}'s \c USER attribute is false. Otherwise it returns-
3377 true.-
3378-
3379 \sa QMetaObject::userProperty(), isDesignable(), isScriptable()-
3380*/-
3381bool QMetaProperty::isUser(const QObject *object) const-
3382{-
3383 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 5463 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
0-5463
3384 return false;
never executed: return false;
0
3385 int flags = mobj->d.data[handle + 2];-
3386 bool b = flags & User;-
3387 if (object) {
objectDescription
TRUEnever evaluated
FALSEevaluated 5463 times by 12 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
0-5463
3388 void *argv[] = { &b };-
3389 QMetaObject::metacall(const_cast<QObject*>(object), QMetaObject::QueryPropertyUser,-
3390 idx + mobj->propertyOffset(), argv);-
3391 }
never executed: end of block
0
3392 return b;
executed 5463 times by 12 tests: return b;
Executed by:
  • tst_QAbstractItemView
  • tst_QDBusMetaObject
  • tst_QDataWidgetMapper
  • tst_QItemDelegate
  • tst_QItemEditorFactory
  • tst_QItemView
  • tst_QListWidget
  • tst_QMetaObjectBuilder
  • tst_QTableView
  • tst_QTableWidget
  • tst_QTreeView
  • tst_QTreeWidget
5463
3393}-
3394-
3395/*!-
3396 \since 4.6-
3397 Returns \c true if the property is constant; otherwise returns \c false.-
3398-
3399 A property is constant if the \c{Q_PROPERTY()}'s \c CONSTANT attribute-
3400 is set.-
3401*/-
3402bool QMetaProperty::isConstant() const-
3403{-
3404 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
0-24
3405 return false;
never executed: return false;
0
3406 int flags = mobj->d.data[handle + 2];-
3407 return flags & Constant;
executed 24 times by 3 tests: return flags & Constant;
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
24
3408}-
3409-
3410/*!-
3411 \since 4.6-
3412 Returns \c true if the property is final; otherwise returns \c false.-
3413-
3414 A property is final if the \c{Q_PROPERTY()}'s \c FINAL attribute-
3415 is set.-
3416*/-
3417bool QMetaProperty::isFinal() const-
3418{-
3419 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 24 times by 3 tests
Evaluated by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
0-24
3420 return false;
never executed: return false;
0
3421 int flags = mobj->d.data[handle + 2];-
3422 return flags & Final;
executed 24 times by 3 tests: return flags & Final;
Executed by:
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
24
3423}-
3424-
3425/*!-
3426 \obsolete-
3427-
3428 Returns \c true if the property is editable for the given \a object;-
3429 otherwise returns \c false.-
3430-
3431 If no \a object is given, the function returns \c false if the-
3432 \c{Q_PROPERTY()}'s \c EDITABLE attribute is false; otherwise returns-
3433 true (if the attribute is true or is a function or expression).-
3434-
3435 \sa isDesignable(), isScriptable(), isStored()-
3436*/-
3437bool QMetaProperty::isEditable(const QObject *object) const-
3438{-
3439 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
0-100
3440 return false;
never executed: return false;
0
3441 int flags = mobj->d.data[handle + 2];-
3442 bool b = flags & Editable;-
3443 if (object) {
objectDescription
TRUEnever evaluated
FALSEevaluated 100 times by 2 tests
Evaluated by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
0-100
3444 void *argv[] = { &b };-
3445 QMetaObject::metacall(const_cast<QObject*>(object), QMetaObject::QueryPropertyEditable,-
3446 idx + mobj->propertyOffset(), argv);-
3447 }
never executed: end of block
0
3448 return b;
executed 100 times by 2 tests: return b;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaObjectBuilder
100
3449}-
3450-
3451/*!-
3452 \class QMetaClassInfo-
3453 \inmodule QtCore-
3454-
3455 \brief The QMetaClassInfo class provides additional information-
3456 about a class.-
3457-
3458 \ingroup objectmodel-
3459-
3460 Class information items are simple \e{name}--\e{value} pairs that-
3461 are specified using Q_CLASSINFO() in the source code. The-
3462 information can be retrieved using name() and value(). For example:-
3463-
3464 \snippet code/src_corelib_kernel_qmetaobject.cpp 5-
3465-
3466 This mechanism is free for you to use in your Qt applications. Qt-
3467 doesn't use it for any of its classes.-
3468-
3469 \sa QMetaObject-
3470*/-
3471-
3472-
3473/*!-
3474 \fn QMetaClassInfo::QMetaClassInfo()-
3475 \internal-
3476*/-
3477-
3478/*!-
3479 \fn const QMetaObject *QMetaClassInfo::enclosingMetaObject() const-
3480 \internal-
3481*/-
3482-
3483/*!-
3484 Returns the name of this item.-
3485-
3486 \sa value()-
3487*/-
3488const char *QMetaClassInfo::name() const-
3489{-
3490 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-14
3491 return 0;
never executed: return 0;
0
3492 return rawStringData(mobj, mobj->d.data[handle]);
executed 14 times by 1 test: return rawStringData(mobj, mobj->d.data[handle]);
Executed by:
  • tst_QMetaObjectBuilder
14
3493}-
3494-
3495/*!-
3496 Returns the value of this item.-
3497-
3498 \sa name()-
3499*/-
3500const char* QMetaClassInfo::value() const-
3501{-
3502 if (!mobj)
!mobjDescription
TRUEnever evaluated
FALSEevaluated 2840 times by 16 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
0-2840
3503 return 0;
never executed: return 0;
0
3504 return rawStringData(mobj, mobj->d.data[handle + 1]);
executed 2840 times by 16 tests: return rawStringData(mobj, mobj->d.data[handle + 1]);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
2840
3505}-
3506-
3507/*!-
3508 \macro QGenericArgument Q_ARG(Type, const Type &value)-
3509 \relates QMetaObject-
3510-
3511 This macro takes a \a Type and a \a value of that type and-
3512 returns a \l QGenericArgument object that can be passed to-
3513 QMetaObject::invokeMethod().-
3514-
3515 \sa Q_RETURN_ARG()-
3516*/-
3517-
3518/*!-
3519 \macro QGenericReturnArgument Q_RETURN_ARG(Type, Type &value)-
3520 \relates QMetaObject-
3521-
3522 This macro takes a \a Type and a non-const reference to a \a-
3523 value of that type and returns a QGenericReturnArgument object-
3524 that can be passed to QMetaObject::invokeMethod().-
3525-
3526 \sa Q_ARG()-
3527*/-
3528-
3529/*!-
3530 \class QGenericArgument-
3531 \inmodule QtCore-
3532-
3533 \brief The QGenericArgument class is an internal helper class for-
3534 marshalling arguments.-
3535-
3536 This class should never be used directly. Please use the \l Q_ARG()-
3537 macro instead.-
3538-
3539 \sa Q_ARG(), QMetaObject::invokeMethod(), QGenericReturnArgument-
3540*/-
3541-
3542/*!-
3543 \fn QGenericArgument::QGenericArgument(const char *name, const void *data)-
3544-
3545 Constructs a QGenericArgument object with the given \a name and \a data.-
3546*/-
3547-
3548/*!-
3549 \fn QGenericArgument::data () const-
3550-
3551 Returns the data set in the constructor.-
3552*/-
3553-
3554/*!-
3555 \fn QGenericArgument::name () const-
3556-
3557 Returns the name set in the constructor.-
3558*/-
3559-
3560/*!-
3561 \class QGenericReturnArgument-
3562 \inmodule QtCore-
3563-
3564 \brief The QGenericReturnArgument class is an internal helper class for-
3565 marshalling arguments.-
3566-
3567 This class should never be used directly. Please use the-
3568 Q_RETURN_ARG() macro instead.-
3569-
3570 \sa Q_RETURN_ARG(), QMetaObject::invokeMethod(), QGenericArgument-
3571*/-
3572-
3573/*!-
3574 \fn QGenericReturnArgument::QGenericReturnArgument(const char *name, void *data)-
3575-
3576 Constructs a QGenericReturnArgument object with the given \a name-
3577 and \a data.-
3578*/-
3579-
3580/*!-
3581 \internal-
3582 If the local_method_index is a cloned method, return the index of the original.-
3583-
3584 Example: if the index of "destroyed()" is passed, the index of "destroyed(QObject*)" is returned-
3585 */-
3586int QMetaObjectPrivate::originalClone(const QMetaObject *mobj, int local_method_index)-
3587{-
3588 Q_ASSERT(local_method_index < get(mobj)->methodCount);-
3589 int handle = get(mobj)->methodData + 5 * local_method_index;-
3590 while (mobj->d.data[handle + 4] & MethodCloned) {
mobj->d.data[h...& MethodClonedDescription
TRUEevaluated 52929 times by 161 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
FALSEevaluated 762015 times by 277 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
  • ...
52929-762015
3591 Q_ASSERT(local_method_index > 0);-
3592 handle -= 5;-
3593 local_method_index--;-
3594 }
executed 52929 times by 161 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • 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_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
52929
3595 return local_method_index;
executed 762015 times by 277 tests: return local_method_index;
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
  • ...
762015
3596}-
3597-
3598/*!-
3599 \internal-
3600-
3601 Returns the parameter type names extracted from the given \a signature.-
3602*/-
3603QList<QByteArray> QMetaObjectPrivate::parameterTypeNamesFromSignature(const char *signature)-
3604{-
3605 QList<QByteArray> list;-
3606 while (*signature && *signature != '(')
*signatureDescription
TRUEevaluated 9676 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
*signature != '('Description
TRUEevaluated 8883 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 793 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-9676
3607 ++signature;
executed 8883 times by 1 test: ++signature;
Executed by:
  • tst_QMetaObjectBuilder
8883
3608 while (*signature && *signature != ')' && *++signature != ')') {
*signatureDescription
TRUEevaluated 1377 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
*signature != ')'Description
TRUEevaluated 939 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 438 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
*++signature != ')'Description
TRUEevaluated 584 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 355 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-1377
3609 const char *begin = signature;-
3610 int level = 0;-
3611 while (*signature && (level > 0 || *signature != ',') && *signature != ')') {
*signatureDescription
TRUEevaluated 3650 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEnever evaluated
level > 0Description
TRUEnever evaluated
FALSEevaluated 3650 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
*signature != ','Description
TRUEevaluated 3504 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 146 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
*signature != ')'Description
TRUEevaluated 3066 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
FALSEevaluated 438 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-3650
3612 if (*signature == '<')
*signature == '<'Description
TRUEnever evaluated
FALSEevaluated 3066 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-3066
3613 ++level;
never executed: ++level;
0
3614 else if (*signature == '>')
*signature == '>'Description
TRUEnever evaluated
FALSEevaluated 3066 times by 1 test
Evaluated by:
  • tst_QMetaObjectBuilder
0-3066
3615 --level;
never executed: --level;
0
3616 ++signature;-
3617 }
executed 3066 times by 1 test: end of block
Executed by:
  • tst_QMetaObjectBuilder
3066
3618 list += QByteArray(begin, signature - begin);-
3619 }
executed 584 times by 1 test: end of block
Executed by:
  • tst_QMetaObjectBuilder
584
3620 return list;
executed 793 times by 1 test: return list;
Executed by:
  • tst_QMetaObjectBuilder
793
3621}-
3622-
3623QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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