qmetatype.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qmetatype.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2**-
3** Copyright (C) 2016 The Qt Company Ltd.-
4** Contact: https://www.qt.io/licensing/-
5**-
6** This file is part of the QtCore module of the Qt Toolkit.-
7**-
8** $QT_BEGIN_LICENSE:LGPL$-
9** Commercial License Usage-
10** Licensees holding valid commercial Qt licenses may use this file in-
11** accordance with the commercial license agreement provided with the-
12** Software or, alternatively, in accordance with the terms contained in-
13** a written agreement between you and The Qt Company. For licensing terms-
14** and conditions see https://www.qt.io/terms-conditions. For further-
15** information use the contact form at https://www.qt.io/contact-us.-
16**-
17** GNU Lesser General Public License Usage-
18** Alternatively, this file may be used under the terms of the GNU Lesser-
19** General Public License version 3 as published by the Free Software-
20** Foundation and appearing in the file LICENSE.LGPL3 included in the-
21** packaging of this file. Please review the following information to-
22** ensure the GNU Lesser General Public License version 3 requirements-
23** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.-
24**-
25** GNU General Public License Usage-
26** Alternatively, this file may be used under the terms of the GNU-
27** General Public License version 2.0 or (at your option) the GNU General-
28** Public license version 3 or any later version approved by the KDE Free-
29** Qt Foundation. The licenses are as published by the Free Software-
30** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3-
31** included in the packaging of this file. Please review the following-
32** information to ensure the GNU General Public License requirements will-
33** be met: https://www.gnu.org/licenses/gpl-2.0.html and-
34** https://www.gnu.org/licenses/gpl-3.0.html.-
35**-
36** $QT_END_LICENSE$-
37**-
38****************************************************************************/-
39-
40#include "qmetatype.h"-
41#include "qmetatype_p.h"-
42#include "qobjectdefs.h"-
43#include "qdatetime.h"-
44#include "qbytearray.h"-
45#include "qreadwritelock.h"-
46#include "qstring.h"-
47#include "qstringlist.h"-
48#include "qvector.h"-
49#include "qlocale.h"-
50#include "qeasingcurve.h"-
51#include "quuid.h"-
52#include "qvariant.h"-
53#include "qdatastream.h"-
54#include "qmetatypeswitcher_p.h"-
55-
56#ifndef QT_BOOTSTRAPPED-
57# include "qbitarray.h"-
58# include "qurl.h"-
59# include "qvariant.h"-
60# include "qabstractitemmodel.h"-
61# include "qregularexpression.h"-
62# include "qjsonvalue.h"-
63# include "qjsonobject.h"-
64# include "qjsonarray.h"-
65# include "qjsondocument.h"-
66# include "qbytearraylist.h"-
67#endif-
68-
69#ifndef QT_NO_GEOM_VARIANT-
70# include "qsize.h"-
71# include "qpoint.h"-
72# include "qrect.h"-
73# include "qline.h"-
74#endif-
75-
76QT_BEGIN_NAMESPACE-
77-
78#define NS(x) QT_PREPEND_NAMESPACE(x)-
79-
80-
81namespace {-
82struct DefinedTypesFilter {-
83 template<typename T>-
84 struct Acceptor {-
85 static const bool IsAccepted = QtMetaTypePrivate::TypeDefinition<T>::IsAvailable && QModulesPrivate::QTypeModuleInfo<T>::IsCore;-
86 };-
87};-
88} // namespace-
89-
90/*!-
91 \macro Q_DECLARE_OPAQUE_POINTER(PointerType)-
92 \relates QMetaType-
93 \since 5.0-
94-
95 This macro enables pointers to forward-declared types (\a PointerType)-
96 to be registered with QMetaType using either Q_DECLARE_METATYPE()-
97 or qRegisterMetaType().-
98-
99 \sa Q_DECLARE_METATYPE(), qRegisterMetaType()-
100*/-
101-
102/*!-
103 \macro Q_DECLARE_METATYPE(Type)-
104 \relates QMetaType-
105-
106 This macro makes the type \a Type known to QMetaType as long as it-
107 provides a public default constructor, a public copy constructor and-
108 a public destructor.-
109 It is needed to use the type \a Type as a custom type in QVariant.-
110-
111 This macro requires that \a Type is a fully defined type at the point where-
112 it is used. For pointer types, it also requires that the pointed to type is-
113 fully defined. Use in conjunction with Q_DECLARE_OPAQUE_POINTER() to-
114 register pointers to forward declared types.-
115-
116 Ideally, this macro should be placed below the declaration of-
117 the class or struct. If that is not possible, it can be put in-
118 a private header file which has to be included every time that-
119 type is used in a QVariant.-
120-
121 Adding a Q_DECLARE_METATYPE() makes the type known to all template-
122 based functions, including QVariant. Note that if you intend to-
123 use the type in \e queued signal and slot connections or in-
124 QObject's property system, you also have to call-
125 qRegisterMetaType() since the names are resolved at runtime.-
126-
127 This example shows a typical use case of Q_DECLARE_METATYPE():-
128-
129 \snippet code/src_corelib_kernel_qmetatype.cpp 0-
130-
131 If \c MyStruct is in a namespace, the Q_DECLARE_METATYPE() macro-
132 has to be outside the namespace:-
133-
134 \snippet code/src_corelib_kernel_qmetatype.cpp 1-
135-
136 Since \c{MyStruct} is now known to QMetaType, it can be used in QVariant:-
137-
138 \snippet code/src_corelib_kernel_qmetatype.cpp 2-
139-
140 Some types are registered automatically and do not need this macro:-
141-
142 \list-
143 \li Pointers to classes derived from QObject-
144 \li QList<T>, QVector<T>, QQueue<T>, QStack<T>, QSet<T> or QLinkedList<T>-
145 where T is a registered meta type-
146 \li QHash<T1, T2>, QMap<T1, T2> or QPair<T1, T2> where T1 and T2 are-
147 registered meta types-
148 \li QPointer<T>, QSharedPointer<T>, QWeakPointer<T>, where T is a class that derives from QObject-
149 \li Enumerations registered with Q_ENUM or Q_FLAG-
150 \li Classes that have a Q_GADGET macro-
151 \endlist-
152-
153 \sa qRegisterMetaType()-
154*/-
155-
156/*!-
157 \macro Q_DECLARE_SEQUENTIAL_CONTAINER_METATYPE(Container)-
158 \relates QMetaType-
159-
160 This macro makes the container \a Container known to QMetaType as a sequential-
161 container. This makes it possible to put an instance of Container<T> into-
162 a QVariant, if T itself is known to QMetaType.-
163-
164 Note that all of the Qt sequential containers already have built-in-
165 support, and it is not necessary to use this macro with them. The-
166 std::vector and std::list containers also have built-in support.-
167-
168 This example shows a typical use of Q_DECLARE_SEQUENTIAL_CONTAINER_METATYPE():-
169-
170 \snippet code/src_corelib_kernel_qmetatype.cpp 10-
171*/-
172-
173/*!-
174 \macro Q_DECLARE_ASSOCIATIVE_CONTAINER_METATYPE(Container)-
175 \relates QMetaType-
176-
177 This macro makes the container \a Container known to QMetaType as an associative-
178 container. This makes it possible to put an instance of Container<T, U> into-
179 a QVariant, if T and U are themselves known to QMetaType.-
180-
181 Note that all of the Qt associative containers already have built-in-
182 support, and it is not necessary to use this macro with them. The-
183 std::map container also has built-in support.-
184-
185 This example shows a typical use of Q_DECLARE_ASSOCIATIVE_CONTAINER_METATYPE():-
186-
187 \snippet code/src_corelib_kernel_qmetatype.cpp 11-
188*/-
189-
190/*!-
191 \macro Q_DECLARE_SMART_POINTER_METATYPE(SmartPointer)-
192 \relates QMetaType-
193-
194 This macro makes the smart pointer \a SmartPointer known to QMetaType as a-
195 smart pointer. This makes it possible to put an instance of SmartPointer<T> into-
196 a QVariant, if T is a type which inherits QObject.-
197-
198 Note that the QWeakPointer, QSharedPointer and QPointer already have built-in-
199 support, and it is not necessary to use this macro with them.-
200-
201 This example shows a typical use of Q_DECLARE_SMART_POINTER_METATYPE():-
202-
203 \snippet code/src_corelib_kernel_qmetatype.cpp 13-
204*/-
205-
206/*!-
207 \enum QMetaType::Type-
208-
209 These are the built-in types supported by QMetaType:-
210 Read doc on QChar-
211 Read doc on \l QChar-
212-
213 \value Void \c void-
214 \value Bool \c bool-
215 \value Int \c int-
216 \value UInt \c{unsigned int}-
217 \value Double \c double-
218 \value QChar QChar-
219 \value QString QString-
220 \value QByteArray QByteArray-
221-
222 \value VoidStar \c{void *}-
223 \value Long \c{long}-
224 \value LongLong LongLong-
225 \value Short \c{short}-
226 \value Char \c{char}-
227 \value ULong \c{unsigned long}-
228 \value ULongLong ULongLong-
229 \value UShort \c{unsigned short}-
230 \value SChar \c{signed char}-
231 \value UChar \c{unsigned char}-
232 \value Float \c float-
233 \value QObjectStar QObject *-
234 \value QVariant QVariant-
235-
236 \value QCursor QCursor-
237 \value QDate QDate-
238 \value QSize QSize-
239 \value QTime QTime-
240 \value QVariantList QVariantList-
241 \value QPolygon QPolygon-
242 \value QPolygonF QPolygonF-
243 \value QColor QColor-
244 \value QSizeF QSizeF-
245 \value QRectF QRectF-
246 \value QLine QLine-
247 \value QTextLength QTextLength-
248 \value QStringList QStringList-
249 \value QVariantMap QVariantMap-
250 \value QVariantHash QVariantHash-
251 \value QIcon QIcon-
252 \value QPen QPen-
253 \value QLineF QLineF-
254 \value QTextFormat QTextFormat-
255 \value QRect QRect-
256 \value QPoint QPoint-
257 \value QUrl QUrl-
258 \value QRegExp QRegExp-
259 \value QRegularExpression QRegularExpression-
260 \value QDateTime QDateTime-
261 \value QPointF QPointF-
262 \value QPalette QPalette-
263 \value QFont QFont-
264 \value QBrush QBrush-
265 \value QRegion QRegion-
266 \value QBitArray QBitArray-
267 \value QImage QImage-
268 \value QKeySequence QKeySequence-
269 \value QSizePolicy QSizePolicy-
270 \value QPixmap QPixmap-
271 \value QLocale QLocale-
272 \value QBitmap QBitmap-
273 \value QMatrix QMatrix-
274 \value QTransform QTransform-
275 \value QMatrix4x4 QMatrix4x4-
276 \value QVector2D QVector2D-
277 \value QVector3D QVector3D-
278 \value QVector4D QVector4D-
279 \value QQuaternion QQuaternion-
280 \value QEasingCurve QEasingCurve-
281 \value QJsonValue QJsonValue-
282 \value QJsonObject QJsonObject-
283 \value QJsonArray QJsonArray-
284 \value QJsonDocument QJsonDocument-
285 \value QModelIndex QModelIndex-
286 \value QPersistentModelIndex QPersistentModelIndex (since 5.5)-
287 \value QUuid QUuid-
288 \value QByteArrayList QByteArrayList-
289-
290 \value User Base value for user types-
291 \value UnknownType This is an invalid type id. It is returned from QMetaType for types that are not registered-
292-
293 Additional types can be registered using Q_DECLARE_METATYPE().-
294-
295 \sa type(), typeName()-
296*/-
297-
298/*!-
299 \enum QMetaType::TypeFlag-
300-
301 The enum describes attributes of a type supported by QMetaType.-
302-
303 \value NeedsConstruction This type has non-trivial constructors. If the flag is not set instances can be safely initialized with memset to 0.-
304 \value NeedsDestruction This type has a non-trivial destructor. If the flag is not set calls to the destructor are not necessary before discarding objects.-
305 \value MovableType An instance of a type having this attribute can be safely moved by memcpy.-
306 \omitvalue SharedPointerToQObject-
307 \value IsEnumeration This type is an enumeration-
308 \value PointerToQObject This type is a pointer to a derived of QObject-
309 \omitvalue WeakPointerToQObject-
310 \omitvalue TrackingPointerToQObject-
311 \omitvalue WasDeclaredAsMetaType-
312 \omitvalue IsGadget This type is a Q_GADGET and it's corresponding QMetaObject can be accessed with QMetaType::metaObject Since 5.5.-
313*/-
314-
315/*!-
316 \class QMetaType-
317 \inmodule QtCore-
318 \brief The QMetaType class manages named types in the meta-object system.-
319-
320 \ingroup objectmodel-
321 \threadsafe-
322-
323 The class is used as a helper to marshall types in QVariant and-
324 in queued signals and slots connections. It associates a type-
325 name to a type so that it can be created and destructed-
326 dynamically at run-time. Declare new types with Q_DECLARE_METATYPE()-
327 to make them available to QVariant and other template-based functions.-
328 Call qRegisterMetaType() to make types available to non-template based-
329 functions, such as the queued signal and slot connections.-
330-
331 Any class or struct that has a public default-
332 constructor, a public copy constructor, and a public destructor-
333 can be registered.-
334-
335 The following code allocates and destructs an instance of-
336 \c{MyClass}:-
337-
338 \snippet code/src_corelib_kernel_qmetatype.cpp 3-
339-
340 If we want the stream operators \c operator<<() and \c-
341 operator>>() to work on QVariant objects that store custom types,-
342 the custom type must provide \c operator<<() and \c operator>>()-
343 operators.-
344-
345 \sa Q_DECLARE_METATYPE(), QVariant::setValue(), QVariant::value(), QVariant::fromValue()-
346*/-
347-
348/*!-
349 \fn bool QMetaType::isValid() const-
350 \since 5.0-
351-
352 Returns \c true if this QMetaType object contains valid-
353 information about a type, false otherwise.-
354*/-
355-
356/*!-
357 \fn bool QMetaType::isRegistered() const-
358 \since 5.0-
359-
360 Returns \c true if this QMetaType object contains valid-
361 information about a type, false otherwise.-
362*/-
363-
364/*!-
365 \fn bool QMetaType::sizeOf() const-
366 \since 5.0-
367-
368 Returns the size of the type in bytes (i.e. sizeof(T),-
369 where T is the actual type for which this QMetaType instance-
370 was constructed for).-
371-
372 This function is typically used together with construct()-
373 to perform low-level management of the memory used by a type.-
374-
375 \sa QMetaType::construct(), QMetaType::sizeOf()-
376*/-
377-
378/*!-
379 \fn TypeFlags QMetaType::flags() const-
380 \since 5.0-
381-
382 Returns flags of the type for which this QMetaType instance was constructed.-
383-
384 \sa QMetaType::TypeFlags, QMetaType::typeFlags()-
385*/-
386-
387/*!-
388 \fn const QMetaObject *QMetaType::metaObject() const-
389 \since 5.5-
390-
391 return a QMetaObject relative to this type.-
392-
393 If the type is a pointer type to a subclass of QObject, flags() contains-
394 QMetaType::PointerToQObject and this function returns the corresponding QMetaObject. This can-
395 be used to in combinaison with QMetaObject::construct to create QObject of this type.-
396-
397 If the type is a Q_GADGET, flags() contains QMetaType::IsGadget, and this function returns its-
398 QMetaObject. This can be used to retrieve QMetaMethod and QMetaProperty and use them on a-
399 pointer of this type. (given by QVariant::data for example)-
400-
401 If the type is an enumeration, flags() contains QMetaType::IsEnumeration, and this function-
402 returns the QMetaObject of the enclosing object if the enum was registered as a Q_ENUM or 0-
403 otherwise-
404-
405 \sa QMetaType::metaObjectForType(), QMetaType::flags()-
406*/-
407-
408/*!-
409 \fn void *QMetaType::create(const void *copy = 0) const-
410 \since 5.0-
411-
412 Returns a copy of \a copy, assuming it is of the type that this-
413 QMetaType instance was created for. If \a copy is null, creates-
414 a default constructed instance.-
415-
416 \sa QMetaType::destroy()-
417*/-
418-
419/*!-
420 \fn void QMetaType::destroy(void *data) const-
421 \since 5.0-
422-
423 Destroys the \a data, assuming it is of the type that this-
424 QMetaType instance was created for.-
425-
426 \sa QMetaType::create()-
427*/-
428-
429/*!-
430 \fn void *QMetaType::construct(int type, const void *copy)-
431 \deprecated-
432-
433 Constructs a value of the given type which is a copy of \a copy.-
434 The default value for \a copy is 0.-
435-
436 Deprecated, use the static function QMetaType::create(int type,-
437 const void *copy) instead.-
438*/-
439/*!-
440 \fn void *QMetaType::construct(void *where, const void *copy = 0) const-
441 \since 5.0-
442-
443 Constructs a value of the type that this QMetaType instance-
444 was constructed for in the existing memory addressed by \a where,-
445 that is a copy of \a copy, and returns \a where. If \a copy is-
446 zero, the value is default constructed.-
447-
448 This is a low-level function for explicitly managing the memory-
449 used to store the type. Consider calling create() if you don't-
450 need this level of control (that is, use "new" rather than-
451 "placement new").-
452-
453 You must ensure that \a where points to a location where the new-
454 value can be stored and that \a where is suitably aligned.-
455 The type's size can be queried by calling sizeOf().-
456-
457 The rule of thumb for alignment is that a type is aligned to its-
458 natural boundary, which is the smallest power of 2 that is bigger-
459 than the type, unless that alignment is larger than the maximum-
460 useful alignment for the platform. For practical purposes,-
461 alignment larger than 2 * sizeof(void*) is only necessary for-
462 special hardware instructions (e.g., aligned SSE loads and stores-
463 on x86).-
464*/-
465-
466/*!-
467 \fn void QMetaType::destruct(void *data) const-
468 \since 5.0-
469-
470 Destructs the value, located at \a data, assuming that it is-
471 of the type for which this QMetaType instance was constructed for.-
472-
473 Unlike destroy(), this function only invokes the type's-
474 destructor, it doesn't invoke the delete operator.-
475 \sa QMetaType::construct()-
476*/-
477-
478/*!-
479 \fn QMetaType::~QMetaType()-
480-
481 Destructs this object.-
482*/-
483-
484#define QT_ADD_STATIC_METATYPE(MetaTypeName, MetaTypeId, RealName) \-
485 { #RealName, sizeof(#RealName) - 1, MetaTypeId },-
486-
487#define QT_ADD_STATIC_METATYPE_ALIASES_ITER(MetaTypeName, MetaTypeId, AliasingName, RealNameStr) \-
488 { RealNameStr, sizeof(RealNameStr) - 1, QMetaType::MetaTypeName },-
489-
490#define QT_ADD_STATIC_METATYPE_HACKS_ITER(MetaTypeName, TypeId, Name) \-
491 QT_ADD_STATIC_METATYPE(MetaTypeName, MetaTypeName, Name)-
492-
493static const struct { const char * typeName; int typeNameLength; int type; } types[] = {-
494 QT_FOR_EACH_STATIC_TYPE(QT_ADD_STATIC_METATYPE)-
495 QT_FOR_EACH_STATIC_ALIAS_TYPE(QT_ADD_STATIC_METATYPE_ALIASES_ITER)-
496 QT_FOR_EACH_STATIC_HACKS_TYPE(QT_ADD_STATIC_METATYPE_HACKS_ITER)-
497 {0, 0, QMetaType::UnknownType}-
498};-
499-
500Q_CORE_EXPORT const QMetaTypeInterface *qMetaTypeGuiHelper = 0;-
501Q_CORE_EXPORT const QMetaTypeInterface *qMetaTypeWidgetsHelper = 0;-
502Q_CORE_EXPORT const QMetaObject *qMetaObjectWidgetsHelper = 0;-
503-
504class QCustomTypeInfo : public QMetaTypeInterface-
505{-
506public:-
507 QCustomTypeInfo()-
508 : alias(-1)-
509 {-
510 QMetaTypeInterface empty = QT_METATYPE_INTERFACE_INIT(void);-
511 *static_cast<QMetaTypeInterface*>(this) = empty;-
512 }
executed 12055 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_QAbstractPrintDialog
  • 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
  • ...
12055
513 QByteArray typeName;-
514 int alias;-
515};-
516-
517template<typename T, typename Key>-
518class QMetaTypeFunctionRegistry-
519{-
520public:-
521 ~QMetaTypeFunctionRegistry()-
522 {-
523 const QWriteLocker locker(&lock);-
524 map.clear();-
525 }
executed 515 times by 237 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
515
526-
527 bool contains(Key k) const-
528 {-
529 const QReadLocker locker(&lock);-
530 return map.contains(k);
executed 5834 times by 241 tests: return map.contains(k);
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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
5834
531 }-
532-
533 bool insertIfNotContains(Key k, const T *f)-
534 {-
535 const QWriteLocker locker(&lock);-
536 const T* &fun = map[k];-
537 if (fun != 0)
fun != 0Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 4788 times by 239 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
1-4788
538 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaType
1
539 fun = f;-
540 return true;
executed 4788 times by 239 tests: return true;
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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
4788
541 }-
542-
543 const T *function(Key k) const-
544 {-
545 const QReadLocker locker(&lock);-
546 return map.value(k, 0);
executed 2261 times by 33 tests: return map.value(k, 0);
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QFtp
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QIdentityProxyModel
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QProcess
  • ...
2261
547 }-
548-
549 void remove(int from, int to)-
550 {-
551 const Key k(from, to);-
552 const QWriteLocker locker(&lock);-
553 map.remove(k);-
554 }
executed 4847 times by 235 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
4847
555private:-
556 mutable QReadWriteLock lock;-
557 QHash<Key, const T *> map;-
558};-
559-
560typedef QMetaTypeFunctionRegistry<QtPrivate::AbstractConverterFunction,QPair<int,int> >-
561QMetaTypeConverterRegistry;-
562typedef QMetaTypeFunctionRegistry<QtPrivate::AbstractComparatorFunction,int>-
563QMetaTypeComparatorRegistry;-
564typedef QMetaTypeFunctionRegistry<QtPrivate::AbstractDebugStreamFunction,int>-
565QMetaTypeDebugStreamRegistry;-
566-
567namespace-
568{-
569union CheckThatItIsPod-
570{ // This should break if QMetaTypeInterface is not a POD type-
571 QMetaTypeInterface iface;-
572};-
573}-
574-
575Q_DECLARE_TYPEINFO(QCustomTypeInfo, Q_MOVABLE_TYPE);-
576Q_GLOBAL_STATIC(QVector<QCustomTypeInfo>, customTypes)
executed 514 times by 190 tests: end of block
Executed by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qarraydata - unknown status
  • tst_qarraydata_strictiterators - unknown status
  • tst_qasn1element - unknown status
  • tst_qbackingstore - unknown status
  • tst_qbrush - unknown status
  • tst_qclipboard - unknown status
  • tst_qcolor - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcryptographichash - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatastream - unknown status
  • tst_qdate - unknown status
  • tst_qdatetime - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • ...
executed 514 times by 190 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qarraydata - unknown status
  • tst_qarraydata_strictiterators - unknown status
  • tst_qasn1element - unknown status
  • tst_qbackingstore - unknown status
  • tst_qbrush - unknown status
  • tst_qclipboard - unknown status
  • tst_qcolor - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcryptographichash - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatastream - unknown status
  • tst_qdate - unknown status
  • tst_qdatetime - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • ...
executed 1222922 times by 350 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 514 times by 190 tests
Evaluated by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qarraydata - unknown status
  • tst_qarraydata_strictiterators - unknown status
  • tst_qasn1element - unknown status
  • tst_qbackingstore - unknown status
  • tst_qbrush - unknown status
  • tst_qclipboard - unknown status
  • tst_qcolor - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcryptographichash - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatastream - unknown status
  • tst_qdate - unknown status
  • tst_qdatetime - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • ...
FALSEnever evaluated
0-1222922
577Q_GLOBAL_STATIC(QReadWriteLock, customTypesLock)
executed 514 times by 190 tests: end of block
Executed by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qarraydata - unknown status
  • tst_qarraydata_strictiterators - unknown status
  • tst_qasn1element - unknown status
  • tst_qbackingstore - unknown status
  • tst_qbrush - unknown status
  • tst_qclipboard - unknown status
  • tst_qcolor - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcryptographichash - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatastream - unknown status
  • tst_qdate - unknown status
  • tst_qdatetime - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • ...
executed 514 times by 190 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qarraydata - unknown status
  • tst_qarraydata_strictiterators - unknown status
  • tst_qasn1element - unknown status
  • tst_qbackingstore - unknown status
  • tst_qbrush - unknown status
  • tst_qclipboard - unknown status
  • tst_qcolor - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcryptographichash - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatastream - unknown status
  • tst_qdate - unknown status
  • tst_qdatetime - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • ...
executed 1198125 times by 350 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 514 times by 190 tests
Evaluated by:
  • tst_lancelot - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qarraydata - unknown status
  • tst_qarraydata_strictiterators - unknown status
  • tst_qasn1element - unknown status
  • tst_qbackingstore - unknown status
  • tst_qbrush - unknown status
  • tst_qclipboard - unknown status
  • tst_qcolor - unknown status
  • tst_qcommandlineparser - unknown status
  • tst_qcomplextext - unknown status
  • tst_qcryptographichash - unknown status
  • tst_qcssparser - unknown status
  • tst_qdatastream - unknown status
  • tst_qdate - unknown status
  • tst_qdatetime - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • ...
FALSEnever evaluated
0-1198125
578Q_GLOBAL_STATIC(QMetaTypeConverterRegistry, customTypesConversionRegistry)
executed 465 times by 237 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
executed 465 times by 237 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
executed 17339 times by 468 tests: return &holder.value;
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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
guard.load() =...c::InitializedDescription
TRUEevaluated 465 times by 237 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
FALSEnever evaluated
0-17339
579Q_GLOBAL_STATIC(QMetaTypeComparatorRegistry, customTypesComparatorRegistry)
executed 48 times by 21 tests: end of block
Executed by:
  • tst_qabstractproxymodel - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qftp - unknown status
  • tst_qidentityproxymodel - unknown status
  • tst_qmetatype - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qprinter - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qvariant - unknown status
  • tst_selftests - unknown status
executed 48 times by 21 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qabstractproxymodel - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qftp - unknown status
  • tst_qidentityproxymodel - unknown status
  • tst_qmetatype - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qprinter - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qvariant - unknown status
  • tst_selftests - unknown status
executed 385 times by 24 tests: return &holder.value;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
guard.load() =...c::InitializedDescription
TRUEevaluated 48 times by 21 tests
Evaluated by:
  • tst_qabstractproxymodel - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusconnection - unknown status
  • tst_qdbusconnection_no_app - unknown status
  • tst_qdbusconnection_spyhook - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbuspendingcall - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qftp - unknown status
  • tst_qidentityproxymodel - unknown status
  • tst_qmetatype - unknown status
  • tst_qnetworkrequest - unknown status
  • tst_qprinter - unknown status
  • tst_qpropertyanimation - unknown status
  • tst_qstylesheetstyle - unknown status
  • tst_qvariant - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
0-385
580Q_GLOBAL_STATIC(QMetaTypeDebugStreamRegistry, customTypesDebugStreamRegistry)
executed 2 times by 2 tests: end of block
Executed by:
  • tst_qmetatype - unknown status
  • tst_qvariant - unknown status
executed 2 times by 2 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qmetatype - unknown status
  • tst_qvariant - unknown status
executed 7 times by 2 tests: return &holder.value;
Executed by:
  • tst_QMetaType
  • tst_QVariant
guard.load() =...c::InitializedDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_qmetatype - unknown status
  • tst_qvariant - unknown status
FALSEnever evaluated
0-7
581-
582/*!-
583 \fn bool QMetaType::registerConverter()-
584 \since 5.2-
585 Registers the possibility of an implicit conversion from type From to type To in the meta-
586 type system. Returns \c true if the registration succeeded, otherwise false.-
587*/-
588-
589/*!-
590 \fn bool QMetaType::registerConverter(MemberFunction function)-
591 \since 5.2-
592 \overload-
593 Registers a method \a function like To From::function() const as converter from type From-
594 to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false.-
595*/-
596-
597/*!-
598 \fn bool QMetaType::registerConverter(MemberFunctionOk function)-
599 \since 5.2-
600 \overload-
601 Registers a method \a function like To From::function(bool *ok) const as converter from type From-
602 to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false.-
603*/-
604-
605/*!-
606 \fn bool QMetaType::registerConverter(UnaryFunction function)-
607 \since 5.2-
608 \overload-
609 Registers a unary function object \a function as converter from type From-
610 to type To in the meta type system. Returns \c true if the registration succeeded, otherwise false.-
611*/-
612-
613/*!-
614 \fn bool QMetaType::registerComparators()-
615 \since 5.2-
616 Registers comparison operators for the user-registered type T. This requires T to have-
617 both an operator== and an operator<.-
618 Returns \c true if the registration succeeded, otherwise false.-
619*/-
620-
621/*!-
622 \fn bool QMetaType::registerEqualsComparator()-
623 \since 5.5-
624 Registers equals operator for the user-registered type T. This requires T to have-
625 an operator==.-
626 Returns \c true if the registration succeeded, otherwise false.-
627*/-
628-
629#ifndef QT_NO_DEBUG_STREAM-
630/*!-
631 \fn bool QMetaType::registerDebugStreamOperator()-
632 Registers the debug stream operator for the user-registered type T. This requires T to have-
633 an operator<<(QDebug dbg, T).-
634 Returns \c true if the registration succeeded, otherwise false.-
635*/-
636#endif-
637-
638/*!-
639 Registers function \a f as converter function from type id \a from to \a to.-
640 If there's already a conversion registered, this does nothing but deleting \a f.-
641 Returns \c true if the registration succeeded, otherwise false.-
642 \since 5.2-
643 \internal-
644*/-
645bool QMetaType::registerConverterFunction(const QtPrivate::AbstractConverterFunction *f, int from, int to)-
646{-
647 if (!customTypesConversionRegistry()->insertIfNotContains(qMakePair(from, to), f)) {
!customTypesCo...(from, to), f)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 4785 times by 239 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
1-4785
648 qWarning("Type conversion already registered from type %s to type %s",-
649 QMetaType::typeName(from), QMetaType::typeName(to));-
650 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaType
1
651 }-
652 return true;
executed 4785 times by 239 tests: return true;
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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
4785
653}-
654-
655/*!-
656 \internal-
657-
658 Invoked automatically when a converter function object is destroyed.-
659 */-
660void QMetaType::unregisterConverterFunction(int from, int to)-
661{-
662 if (customTypesConversionRegistry.isDestroyed())
customTypesCon....isDestroyed()Description
TRUEnever evaluated
FALSEevaluated 4847 times by 235 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
0-4847
663 return;
never executed: return;
0
664 customTypesConversionRegistry()->remove(from, to);-
665}
executed 4847 times by 235 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemmodel - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qalgorithms - unknown status
  • tst_qanimationgroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
4847
666-
667bool QMetaType::registerComparatorFunction(const QtPrivate::AbstractComparatorFunction *f, int type)-
668{-
669 if (!customTypesComparatorRegistry()->insertIfNotContains(type, f)) {
!customTypesCo...tains(type, f)Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
0-2
670 qWarning("Comparators already registered for type %s", QMetaType::typeName(type));-
671 return false;
never executed: return false;
0
672 }-
673 return true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QMetaType
2
674}-
675-
676/*!-
677 \fn bool QMetaType::hasRegisteredComparators()-
678 Returns \c true, if the meta type system has registered comparators for type T.-
679 \since 5.2-
680 */-
681-
682/*!-
683 Returns \c true, if the meta type system has registered comparators for type id \a typeId.-
684 \since 5.2-
685 */-
686bool QMetaType::hasRegisteredComparators(int typeId)-
687{-
688 return customTypesComparatorRegistry()->contains(typeId);
never executed: return customTypesComparatorRegistry()->contains(typeId);
0
689}-
690-
691#ifndef QT_NO_DEBUG_STREAM-
692bool QMetaType::registerDebugStreamOperatorFunction(const QtPrivate::AbstractDebugStreamFunction *f,-
693 int type)-
694{-
695 if (!customTypesDebugStreamRegistry()->insertIfNotContains(type, f)) {
!customTypesDe...tains(type, f)Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
0-1
696 qWarning("Debug stream operator already registered for type %s", QMetaType::typeName(type));-
697 return false;
never executed: return false;
0
698 }-
699 return true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QMetaType
1
700}-
701-
702/*!-
703 \fn bool QMetaType::hasRegisteredDebugStreamOperator()-
704 Returns \c true, if the meta type system has a registered debug stream operator for type T.-
705 \since 5.2-
706 */-
707-
708/*!-
709 Returns \c true, if the meta type system has a registered debug stream operator for type-
710 id \a typeId.-
711 \since 5.2-
712*/-
713bool QMetaType::hasRegisteredDebugStreamOperator(int typeId)-
714{-
715 return customTypesDebugStreamRegistry()->contains(typeId);
never executed: return customTypesDebugStreamRegistry()->contains(typeId);
0
716}-
717#endif-
718-
719/*!-
720 Converts the object at \a from from \a fromTypeId to the preallocated space at \a to-
721 typed \a toTypeId. Returns \c true, if the conversion succeeded, otherwise false.-
722 \since 5.2-
723*/-
724bool QMetaType::convert(const void *from, int fromTypeId, void *to, int toTypeId)-
725{-
726 const QtPrivate::AbstractConverterFunction * const f =-
727 customTypesConversionRegistry()->function(qMakePair(fromTypeId, toTypeId));-
728 return f && f->convert(f, from, to);
executed 1872 times by 25 tests: return f && f->convert(f, from, to);
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_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QGraphicsItem
  • tst_QGuiApplication
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QProcess
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
1872
729}-
730-
731/*!-
732 Compares the objects at \a lhs and \a rhs. Both objects need to be of type \a typeId.-
733 \a result is set to less than, equal to or greater than zero, if \a lhs is less than, equal to-
734 or greater than \a rhs. Returns \c true, if the comparison succeeded, otherwise \c false.-
735 \since 5.2-
736*/-
737bool QMetaType::compare(const void *lhs, const void *rhs, int typeId, int* result)-
738{-
739 const QtPrivate::AbstractComparatorFunction * const f =-
740 customTypesComparatorRegistry()->function(typeId);-
741 if (!f)
!fDescription
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • tst_QMetaType
0-10
742 return false;
never executed: return false;
0
743 if (f->equals(f, lhs, rhs))
f->equals(f, lhs, rhs)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QMetaType
2-8
744 *result = 0;
executed 2 times by 1 test: *result = 0;
Executed by:
  • tst_QMetaType
2
745 else if (f->lessThan)
f->lessThanDescription
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
3-5
746 *result = f->lessThan(f, lhs, rhs) ? -1 : 1;
executed 5 times by 1 test: *result = f->lessThan(f, lhs, rhs) ? -1 : 1;
Executed by:
  • tst_QMetaType
f->lessThan(f, lhs, rhs)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QMetaType
1-5
747 else-
748 return false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QMetaType
3
749 return true;
executed 7 times by 1 test: return true;
Executed by:
  • tst_QMetaType
7
750}-
751-
752/*!-
753 Compares the objects at \a lhs and \a rhs. Both objects need to be of type \a typeId.-
754 \a result is set to zero, if \a lhs equals to rhs. Returns \c true, if the comparison-
755 succeeded, otherwise \c false.-
756 \since 5.5-
757*/-
758bool QMetaType::equals(const void *lhs, const void *rhs, int typeId, int *result)-
759{-
760 const QtPrivate::AbstractComparatorFunction * const f-
761 = customTypesComparatorRegistry()->function(typeId);-
762 if (!f)
!fDescription
TRUEevaluated 350 times by 24 tests
Evaluated by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QMetaType
23-350
763 return false;
executed 350 times by 24 tests: return false;
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
350
764 if (f->equals(f, lhs, rhs))
f->equals(f, lhs, rhs)Description
TRUEevaluated 10 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 13 times by 1 test
Evaluated by:
  • tst_QMetaType
10-13
765 *result = 0;
executed 10 times by 1 test: *result = 0;
Executed by:
  • tst_QMetaType
10
766 else-
767 *result = -1;
executed 13 times by 1 test: *result = -1;
Executed by:
  • tst_QMetaType
13
768 return true;
executed 23 times by 1 test: return true;
Executed by:
  • tst_QMetaType
23
769}-
770-
771/*!-
772 Streams the object at \a rhs of type \a typeId to the debug stream \a dbg. Returns \c true-
773 on success, otherwise false.-
774 \since 5.2-
775*/-
776bool QMetaType::debugStream(QDebug& dbg, const void *rhs, int typeId)-
777{-
778 const QtPrivate::AbstractDebugStreamFunction * const f = customTypesDebugStreamRegistry()->function(typeId);-
779 if (!f)
!fDescription
TRUEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
1-5
780 return false;
executed 5 times by 2 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
781 f->stream(f, dbg, rhs);-
782 return true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QMetaType
1
783}-
784-
785/*!-
786 \fn bool QMetaType::hasRegisteredConverterFunction()-
787 Returns \c true, if the meta type system has a registered conversion from type From to type To.-
788 \since 5.2-
789 \overload-
790 */-
791-
792/*!-
793 Returns \c true, if the meta type system has a registered conversion from meta type id \a fromTypeId-
794 to \a toTypeId-
795 \since 5.2-
796*/-
797bool QMetaType::hasRegisteredConverterFunction(int fromTypeId, int toTypeId)-
798{-
799 return customTypesConversionRegistry()->contains(qMakePair(fromTypeId, toTypeId));
executed 5834 times by 241 tests: return customTypesConversionRegistry()->contains(qMakePair(fromTypeId, toTypeId));
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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
5834
800}-
801-
802#ifndef QT_NO_DATASTREAM-
803/*!-
804 \internal-
805*/-
806void QMetaType::registerStreamOperators(const char *typeName, SaveOperator saveOp,-
807 LoadOperator loadOp)-
808{-
809 registerStreamOperators(type(typeName), saveOp, loadOp);-
810}
executed 5 times by 3 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
5
811-
812/*!-
813 \internal-
814*/-
815void QMetaType::registerStreamOperators(int idx, SaveOperator saveOp,-
816 LoadOperator loadOp)-
817{-
818 if (idx < User)
idx < UserDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
2-4
819 return; //builtin types should not be registered;
executed 2 times by 1 test: return;
Executed by:
  • tst_QMetaType
2
820 QVector<QCustomTypeInfo> *ct = customTypes();-
821 if (!ct)
!ctDescription
TRUEnever evaluated
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
0-4
822 return;
never executed: return;
0
823 QWriteLocker locker(customTypesLock());-
824 QCustomTypeInfo &inf = (*ct)[idx - User];-
825 inf.saveOp = saveOp;-
826 inf.loadOp = loadOp;-
827}
executed 4 times by 3 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
4
828#endif // QT_NO_DATASTREAM-
829-
830/*!-
831 Returns the type name associated with the given \a typeId, or 0 if no-
832 matching type was found. The returned pointer must not be deleted.-
833-
834 \sa type(), isRegistered(), Type-
835*/-
836const char *QMetaType::typeName(int typeId)-
837{-
838 const uint type = typeId;-
839 // In theory it can be filled during compilation time, but for some reason template code-
840 // that is able to do it causes GCC 4.6 to generate additional 3K of executable code. Probably-
841 // it is not worth of it.-
842 static const char *namesCache[QMetaType::HighestInternalId + 1];-
843-
844 const char *result;-
845 if (type <= QMetaType::HighestInternalId && ((result = namesCache[type])))
type <= QMetaT...hestInternalIdDescription
TRUEevaluated 44294 times by 260 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 7719 times by 196 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
  • ...
((result = namesCache[type]))Description
TRUEevaluated 39610 times by 238 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 4684 times by 241 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
4684-44294
846 return result;
executed 39610 times by 238 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
39610
847-
848#define QT_METATYPE_TYPEID_TYPENAME_CONVERTER(MetaTypeName, TypeId, RealName) \-
849 case QMetaType::MetaTypeName: result = #RealName; break;-
850-
851 switch (QMetaType::Type(type)) {-
852 QT_FOR_EACH_STATIC_TYPE(QT_METATYPE_TYPEID_TYPENAME_CONVERTER)
executed 6 times by 6 tests: break;
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QVariant
executed 369 times by 169 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 428 times by 204 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_QAlgorithms
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • ...
executed 369 times by 169 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 376 times by 176 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 369 times by 169 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 372 times by 172 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 4 times by 4 tests: break;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QSignalSpy
  • tst_QVariant
executed 368 times by 168 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 3 times by 3 tests: break;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: break;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
executed 369 times by 169 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 12 times by 7 tests: break;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbusxml2cpp - unknown status
executed 3 times by 3 tests: break;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 168 times by 163 tests: break;
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 3 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSignalSpy
  • tst_QVariant
executed 219 times by 181 tests: break;
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_QCssParser
  • ...
executed 31 times by 26 tests: break;
Executed by:
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSettings
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
  • tst_languageChange
  • ...
executed 24 times by 19 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp - unknown status
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 57 times by 5 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 57 times by 5 tests: break;
Executed by:
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 60 times by 8 tests: break;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 8 times by 8 tests: break;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
executed 3 times by 3 tests: break;
Executed by:
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QVariant
executed 68 times by 16 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegion
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
  • tst_QWidget
  • tst_languageChange
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 60 times by 8 tests: break;
Executed by:
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 58 times by 6 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 57 times by 5 tests: break;
Executed by:
  • tst_QGraphicsGridLayout
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 56 times by 4 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 56 times by 4 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 65 times by 13 tests: break;
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSettings
  • tst_QTreeView
  • tst_QVariant
  • tst_languageChange
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 59 times by 7 tests: break;
Executed by:
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QPainter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: break;
Executed by:
  • tst_QEasingCurve
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 119 times by 95 tests: break;
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
executed 12 times by 12 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMetaType
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_QVariant
  • tst_languageChange
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: break;
Executed by:
  • tst_QItemModel
  • tst_QMetaType
  • tst_QVariant
executed 20 times by 20 tests: break;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMdiArea
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QObject
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QSignalSpy
  • tst_QState
  • tst_QVariant
  • tst_languageChange
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
executed 75 times by 22 tests: break;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMetaObject
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 18 times by 13 tests: break;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusThreading
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QMimeData
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp - unknown status
executed 83 times by 7 tests: break;
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
  • tst_selftests - unknown status
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiApplication
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 11 times by 11 tests: break;
Executed by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGuiVariant
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QPrinter
  • tst_QVariant
  • tst_languageChange
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QMimeData
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGraphicsItem
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGraphicsItem
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QVectorND
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QVectorND
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QVectorND
executed 5 times by 5 tests: break;
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QQuaternion
  • tst_QVariant
executed 3 times by 3 tests: break;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
executed 6 times by 6 tests: case QMetaType::Void:
Executed by:
  • tst_QDBusMetaObject
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QVariant
executed 369 times by 169 tests: case QMetaType::Bool:
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
  • ...
executed 428 times by 204 tests: case QMetaType::Int:
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_QAlgorithms
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • ...
executed 369 times by 169 tests: case QMetaType::UInt:
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
  • ...
executed 376 times by 176 tests: case QMetaType::LongLong:
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
  • ...
executed 369 times by 169 tests: case QMetaType::ULongLong:
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
  • ...
executed 372 times by 172 tests: case QMetaType::Double:
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
  • ...
executed 4 times by 4 tests: case QMetaType::Long:
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QSignalSpy
  • tst_QVariant
executed 368 times by 168 tests: case QMetaType::Short:
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
  • ...
executed 3 times by 3 tests: case QMetaType::Char:
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: case QMetaType::ULong:
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
executed 369 times by 169 tests: case QMetaType::UShort:
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
  • ...
executed 12 times by 7 tests: case QMetaType::UChar:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbusxml2cpp - unknown status
executed 3 times by 3 tests: case QMetaType::Float:
Executed by:
  • tst_QMetaMethod
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: case QMetaType::SChar:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 168 times by 163 tests: case QMetaType::VoidStar:
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • ...
executed 3 times by 3 tests: case QMetaType::QChar:
Executed by:
  • tst_QMetaType
  • tst_QSignalSpy
  • tst_QVariant
executed 219 times by 181 tests: case QMetaType::QString:
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_QCssParser
  • ...
executed 31 times by 26 tests: case QMetaType::QStringList:
Executed by:
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSettings
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextDocumentFragment
  • tst_QVariant
  • tst_languageChange
  • ...
executed 24 times by 19 tests: case QMetaType::QByteArray:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QSettings
  • tst_QSocks5SocketEngine
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp - unknown status
executed 2 times by 2 tests: case QMetaType::QBitArray:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 57 times by 5 tests: case QMetaType::QDate:
Executed by:
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 57 times by 5 tests: case QMetaType::QTime:
Executed by:
  • tst_QDateTimeEdit
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 60 times by 8 tests: case QMetaType::QDateTime:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QSignalSpy
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 8 times by 8 tests: case QMetaType::QUrl:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QVariant
  • tst_Spdy
  • tst_languageChange
executed 3 times by 3 tests: case QMetaType::QLocale:
Executed by:
  • tst_QDBusMarshall
  • tst_QMetaType
  • tst_QVariant
executed 68 times by 16 tests: case QMetaType::QRect:
Executed by:
  • tst_QAbstractItemView
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QPrinter
  • tst_QRegion
  • tst_QSettings
  • tst_QTableView
  • tst_QVariant
  • tst_QWidget
  • tst_languageChange
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 60 times by 8 tests: case QMetaType::QRectF:
Executed by:
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 58 times by 6 tests: case QMetaType::QSize:
Executed by:
  • tst_QAbstractItemView
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 57 times by 5 tests: case QMetaType::QSizeF:
Executed by:
  • tst_QGraphicsGridLayout
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 56 times by 4 tests: case QMetaType::QLine:
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 56 times by 4 tests: case QMetaType::QLineF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 65 times by 13 tests: case QMetaType::QPoint:
Executed by:
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QPrinter
  • tst_QSettings
  • tst_QTreeView
  • tst_QVariant
  • tst_languageChange
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 59 times by 7 tests: case QMetaType::QPointF:
Executed by:
  • tst_QGraphicsItem
  • tst_QMetaType
  • tst_QPainter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 2 times by 2 tests: case QMetaType::QRegExp:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: case QMetaType::QEasingCurve:
Executed by:
  • tst_QEasingCurve
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: case QMetaType::QUuid:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 119 times by 95 tests: case QMetaType::QVariant:
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QCalendarWidget
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection_Delayed
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDirModel
  • tst_QDockWidget
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • ...
executed 12 times by 12 tests: case QMetaType::QModelIndex:
Executed by:
  • tst_QAbstractItemModel
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QIdentityProxyModel
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMetaType
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_QVariant
  • tst_languageChange
executed 2 times by 2 tests: case QMetaType::QRegularExpression:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: case QMetaType::QJsonValue:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: case QMetaType::QJsonObject:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: case QMetaType::QJsonArray:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 2 times by 2 tests: case QMetaType::QJsonDocument:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: case QMetaType::QPersistentModelIndex:
Executed by:
  • tst_QItemModel
  • tst_QMetaType
  • tst_QVariant
executed 20 times by 20 tests: case QMetaType::QObjectStar:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QMdiArea
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QObject
  • tst_QPluginLoader
  • tst_QPrinter
  • tst_QSignalSpy
  • tst_QState
  • tst_QVariant
  • tst_languageChange
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
executed 75 times by 22 tests: case QMetaType::QVariantMap:
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QDBusAbstractAdaptor
  • tst_QDBusMetaObject
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QVariant
  • tst_QXmlInputSource
  • tst_QXmlStream
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
executed 18 times by 13 tests: case QMetaType::QVariantList:
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusThreading
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QMimeData
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbusxml2cpp - unknown status
executed 83 times by 7 tests: case QMetaType::QVariantHash:
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QMetaType
  • tst_QVariant
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml
  • tst_qdbuscpp2xml - unknown status
  • tst_selftests - unknown status
executed 2 times by 2 tests: case QMetaType::QByteArrayList:
Executed by:
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QFont:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QPixmap:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QBrush:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QColor:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: case QMetaType::QPalette:
Executed by:
  • tst_QGuiApplication
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 11 times by 11 tests: case QMetaType::QIcon:
Executed by:
  • tst_QComboBox
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QGraphicsProxyWidget
  • tst_QGridLayout
  • tst_QGuiVariant
  • tst_QMdiArea
  • tst_QMetaType
  • tst_QPrinter
  • tst_QVariant
  • tst_languageChange
executed 5 times by 5 tests: case QMetaType::QImage:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QMimeData
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QPolygon:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QRegion:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QBitmap:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QCursor:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: case QMetaType::QKeySequence:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QKeySequence
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QPen:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QTextLength:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 4 times by 4 tests: case QMetaType::QTextFormat:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: case QMetaType::QMatrix:
Executed by:
  • tst_QGraphicsItem
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: case QMetaType::QTransform:
Executed by:
  • tst_QGraphicsItem
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: case QMetaType::QMatrix4x4:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QVariant
executed 5 times by 5 tests: case QMetaType::QVector2D:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QVectorND
executed 5 times by 5 tests: case QMetaType::QVector3D:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QVectorND
executed 5 times by 5 tests: case QMetaType::QVector4D:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QVectorND
executed 5 times by 5 tests: case QMetaType::QQuaternion:
Executed by:
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QQuaternion
  • tst_QVariant
executed 3 times by 3 tests: case QMetaType::QPolygonF:
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
executed 3 times by 3 tests: case QMetaType::QSizePolicy:
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
2-428
853-
854 default: {
executed 7779 times by 197 tests: default:
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
  • ...
7779
855 if (Q_UNLIKELY(type < QMetaType::User)) {
__builtin_expe...:User), false)Description
TRUEevaluated 962 times by 5 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 6817 times by 195 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
  • ...
962-6817
856 return 0; // It can happen when someone cast int to QVariant::Type, we should not crash...
executed 962 times by 5 tests: return 0;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
962
857 } else {-
858 const QVector<QCustomTypeInfo> * const ct = customTypes();-
859 QReadLocker locker(customTypesLock());-
860 return ct && uint(ct->count()) > type - QMetaType::User && !ct->at(type - QMetaType::User).typeName.isEmpty()
executed 6817 times by 195 tests: return ct && uint(ct->count()) > type - QMetaType::User && !ct->at(type - QMetaType::User).typeName.isEmpty() ? ct->at(type - QMetaType::User).typeName.constData() : 0;
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
  • ...
6817
861 ? ct->at(type - QMetaType::User).typeName.constData()
executed 6817 times by 195 tests: return ct && uint(ct->count()) > type - QMetaType::User && !ct->at(type - QMetaType::User).typeName.isEmpty() ? ct->at(type - QMetaType::User).typeName.constData() : 0;
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
  • ...
6817
862 : 0;
executed 6817 times by 195 tests: return ct && uint(ct->count()) > type - QMetaType::User && !ct->at(type - QMetaType::User).typeName.isEmpty() ? ct->at(type - QMetaType::User).typeName.constData() : 0;
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
  • ...
6817
863 }-
864 }-
865 }-
866#undef QT_METATYPE_TYPEID_TYPENAME_CONVERTER-
867-
868 Q_ASSERT(type <= QMetaType::HighestInternalId);-
869 namesCache[type] = result;-
870 return result;
executed 4624 times by 241 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
4624
871}-
872-
873/*!-
874 \internal-
875 Similar to QMetaType::type(), but only looks in the static set of types.-
876*/-
877static inline int qMetaTypeStaticType(const char *typeName, int length)-
878{-
879 int i = 0;-
880 while (types[i].typeName && ((length != types[i].typeNameLength)
types[i].typeNameDescription
TRUEevaluated 74150828 times by 370 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 539544 times by 342 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
(length != typ...ypeNameLength)Description
TRUEevaluated 70062194 times by 370 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 4088634 times by 351 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_QBuffer
  • ...
539544-74150828
881 || memcmp(typeName, types[i].typeName, length))) {
memcmp(typeNam...eName, length)Description
TRUEevaluated 2753380 times by 327 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_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • ...
FALSEevaluated 1335254 times by 274 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
1335254-2753380
882 ++i;-
883 }
executed 72800310 times by 370 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
72800310
884 return types[i].type;
executed 1874798 times by 370 tests: return types[i].type;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
1874798
885}-
886-
887/*!-
888 \internal-
889 Similar to QMetaType::type(), but only looks in the custom set of-
890 types, and doesn't lock the mutex.-
891 The extra \a firstInvalidIndex parameter is an easy way to avoid-
892 iterating over customTypes() a second time in registerNormalizedType().-
893*/-
894static int qMetaTypeCustomType_unlocked(const char *typeName, int length, int *firstInvalidIndex = 0)-
895{-
896 const QVector<QCustomTypeInfo> * const ct = customTypes();-
897 if (!ct)
!ctDescription
TRUEnever evaluated
FALSEevaluated 539544 times by 342 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
0-539544
898 return QMetaType::UnknownType;
never executed: return QMetaType::UnknownType;
0
899-
900 if (firstInvalidIndex)
firstInvalidIndexDescription
TRUEevaluated 24655 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 514889 times by 223 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
24655-514889
901 *firstInvalidIndex = -1;
executed 24655 times by 321 tests: *firstInvalidIndex = -1;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
24655
902 for (int v = 0; v < ct->count(); ++v) {
v < ct->count()Description
TRUEevaluated 20713923 times by 322 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 167790 times by 324 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
167790-20713923
903 const QCustomTypeInfo &customInfo = ct->at(v);-
904 if ((length == customInfo.typeName.size())
(length == cus...peName.size())Description
TRUEevaluated 8171427 times by 251 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • ...
FALSEevaluated 12542128 times by 317 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
8171427-12542128
905 && !memcmp(typeName, customInfo.typeName.constData(), length)) {
!memcmp(typeNa...ata(), length)Description
TRUEevaluated 371754 times by 173 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
FALSEevaluated 7800041 times by 199 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_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • ...
371754-7800041
906 if (customInfo.alias >= 0)
customInfo.alias >= 0Description
TRUEevaluated 67 times by 6 tests
Evaluated by:
  • tst_QHeaderView
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkConfigurationManager
  • tst_QObject
  • tst_QWindow
FALSEevaluated 371687 times by 173 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
67-371687
907 return customInfo.alias;
executed 67 times by 6 tests: return customInfo.alias;
Executed by:
  • tst_QHeaderView
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkConfigurationManager
  • tst_QObject
  • tst_QWindow
67
908 return v + QMetaType::User;
executed 371687 times by 173 tests: return v + QMetaType::User;
Executed by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractSlider
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • ...
371687
909 }-
910 if (firstInvalidIndex && (*firstInvalidIndex < 0) && customInfo.typeName.isEmpty())
firstInvalidIndexDescription
TRUEevaluated 5830059 times by 295 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 14512110 times by 212 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • ...
(*firstInvalidIndex < 0)Description
TRUEevaluated 5830056 times by 295 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
customInfo.typeName.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 5830053 times by 295 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
3-14512110
911 *firstInvalidIndex = v;
executed 3 times by 1 test: *firstInvalidIndex = v;
Executed by:
  • tst_QMetaType
3
912 }
executed 20342169 times by 317 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • ...
20342169
913 return QMetaType::UnknownType;
executed 167790 times by 324 tests: return QMetaType::UnknownType;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
167790
914}-
915-
916/*!-
917 \internal-
918-
919 This function is needed until existing code outside of qtbase-
920 has been changed to call the new version of registerType().-
921 */-
922int QMetaType::registerType(const char *typeName, Deleter deleter,-
923 Creator creator)-
924{-
925 return registerType(typeName, deleter, creator,
never executed: return registerType(typeName, deleter, creator, QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Destruct, QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Construct, 0, TypeFlags(), 0);
0
926 QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Destruct,
never executed: return registerType(typeName, deleter, creator, QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Destruct, QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Construct, 0, TypeFlags(), 0);
0
927 QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Construct, 0, TypeFlags(), 0);
never executed: return registerType(typeName, deleter, creator, QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Destruct, QtMetaTypePrivate::QMetaTypeFunctionHelper<void>::Construct, 0, TypeFlags(), 0);
0
928}-
929-
930/*!-
931 \internal-
932 \since 5.5-
933-
934 Unregisters the user type with the given \a typeId and all its aliases.-
935 Returns \c true if the type was unregistered or \c false otherwise.-
936-
937 This function was added for QML to be able to deregister types after-
938 they are unloaded to prevent an infinite increase in custom types for-
939 applications that are unloading/reloading components often.-
940 */-
941bool QMetaType::unregisterType(int type)-
942{-
943 QWriteLocker locker(customTypesLock());-
944 QVector<QCustomTypeInfo> *ct = customTypes();-
945-
946 // check if user type-
947 if ((type < User) || ((type - User) >= ct->size()))
(type < User)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
((type - User) >= ct->size())Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
0-3
948 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaType
1
949-
950 // only types without Q_DECLARE_METATYPE can be unregistered-
951 if (ct->data()[type - User].flags & WasDeclaredAsMetaType)
ct->data()[typ...aredAsMetaTypeDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
1-2
952 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaType
1
953-
954 // invalidate type and all its alias entries-
955 for (int v = 0; v < ct->count(); ++v) {
v < ct->count()Description
TRUEevaluated 6080 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
2-6080
956 if (((v + User) == type) || (ct->at(v).alias == type))
((v + User) == type)Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 6078 times by 1 test
Evaluated by:
  • tst_QMetaType
(ct->at(v).alias == type)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 6077 times by 1 test
Evaluated by:
  • tst_QMetaType
1-6078
957 ct->data()[v].typeName.clear();
executed 3 times by 1 test: ct->data()[v].typeName.clear();
Executed by:
  • tst_QMetaType
3
958 }
executed 6080 times by 1 test: end of block
Executed by:
  • tst_QMetaType
6080
959 return true;
executed 2 times by 1 test: return true;
Executed by:
  • tst_QMetaType
2
960}-
961-
962-
963/*!-
964 \internal-
965 \since 5.0-
966-
967 Registers a user type for marshalling, with \a typeName, a \a-
968 deleter, a \a creator, a \a destructor, a \a constructor, and-
969 a \a size. Returns the type's handle, or -1 if the type could-
970 not be registered.-
971 */-
972int QMetaType::registerType(const char *typeName, Deleter deleter,-
973 Creator creator,-
974 Destructor destructor,-
975 Constructor constructor,-
976 int size, TypeFlags flags, const QMetaObject *metaObject)-
977{-
978#ifdef QT_NO_QOBJECT-
979 NS(QByteArray) normalizedTypeName = typeName;-
980#else-
981 NS(QByteArray) normalizedTypeName = QMetaObject::normalizedType(typeName);-
982#endif-
983-
984 return registerNormalizedType(normalizedTypeName, deleter, creator, destructor, constructor, size, flags, metaObject);
executed 4 times by 1 test: return registerNormalizedType(normalizedTypeName, deleter, creator, destructor, constructor, size, flags, metaObject);
Executed by:
  • tst_QMetaType
4
985}-
986-
987-
988/*!-
989 \internal-
990 \since 5.0-
991 \overload-
992 Don't use, kept for binary compatibility-
993-
994 ### TODO Qt6: remove me-
995*/-
996int QMetaType::registerNormalizedType(const NS(QByteArray) &normalizedTypeName, Deleter deleter,-
997 Creator creator,-
998 Destructor destructor,-
999 Constructor constructor,-
1000 int size, TypeFlags flags, const QMetaObject *metaObject)-
1001{-
1002 Q_UNUSED(deleter);-
1003 Q_UNUSED(creator);-
1004 return registerNormalizedType(normalizedTypeName, destructor, constructor, size, flags, metaObject);
executed 4 times by 1 test: return registerNormalizedType(normalizedTypeName, destructor, constructor, size, flags, metaObject);
Executed by:
  • tst_QMetaType
4
1005}-
1006-
1007-
1008/*!-
1009 \internal-
1010 \since 5.5-
1011-
1012 Registers a user type for marshalling, with \a normalizedTypeName,-
1013 a \a destructor, a \a constructor, and a \a size. Returns the type's-
1014 handle, or -1 if the type could not be registered.-
1015-
1016 \note normalizedTypeName is not checked for conformance with-
1017 Qt's normalized format, so it must already conform.-
1018 */-
1019int QMetaType::registerNormalizedType(const NS(QByteArray) &normalizedTypeName,-
1020 Destructor destructor,-
1021 Constructor constructor,-
1022 int size, TypeFlags flags, const QMetaObject *metaObject)-
1023{-
1024 QVector<QCustomTypeInfo> *ct = customTypes();-
1025 if (!ct || normalizedTypeName.isEmpty() || !destructor || !constructor)
!ctDescription
TRUEnever evaluated
FALSEevaluated 24484 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
normalizedTypeName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 24484 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
!destructorDescription
TRUEnever evaluated
FALSEevaluated 24484 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
!constructorDescription
TRUEnever evaluated
FALSEevaluated 24484 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
0-24484
1026 return -1;
never executed: return -1;
0
1027-
1028 int idx = qMetaTypeStaticType(normalizedTypeName.constData(),-
1029 normalizedTypeName.size());-
1030-
1031 int previousSize = 0;-
1032 int previousFlags = 0;-
1033 if (idx == UnknownType) {
idx == UnknownTypeDescription
TRUEevaluated 24484 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEnever evaluated
0-24484
1034 QWriteLocker locker(customTypesLock());-
1035 int posInVector = -1;-
1036 idx = qMetaTypeCustomType_unlocked(normalizedTypeName.constData(),-
1037 normalizedTypeName.size(),-
1038 &posInVector);-
1039 if (idx == UnknownType) {
idx == UnknownTypeDescription
TRUEevaluated 12024 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 12460 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
12024-12460
1040 QCustomTypeInfo inf;-
1041 inf.typeName = normalizedTypeName;-
1042#ifndef QT_NO_DATASTREAM-
1043 inf.loadOp = 0;-
1044 inf.saveOp = 0;-
1045#endif-
1046 inf.alias = -1;-
1047 inf.constructor = constructor;-
1048 inf.destructor = destructor;-
1049 inf.size = size;-
1050 inf.flags = flags;-
1051 inf.metaObject = metaObject;-
1052 if (posInVector == -1) {
posInVector == -1Description
TRUEevaluated 12021 times by 321 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
3-12021
1053 idx = ct->size() + User;-
1054 ct->append(inf);-
1055 } else {
executed 12021 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_QAbstractPrintDialog
  • 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
  • ...
12021
1056 idx = posInVector + User;-
1057 ct->data()[posInVector] = inf;-
1058 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QMetaType
3
1059 return idx;
executed 12024 times by 321 tests: return idx;
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • ...
12024
1060 }-
1061-
1062 if (idx >= User) {
idx >= UserDescription
TRUEevaluated 12460 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
FALSEnever evaluated
0-12460
1063 previousSize = ct->at(idx - User).size;-
1064 previousFlags = ct->at(idx - User).flags;-
1065-
1066 // Set new/additional flags in case of old library/app.-
1067 // Ensures that older code works in conjunction with new Qt releases-
1068 // requiring the new flags.-
1069 if (flags != previousFlags) {
flags != previousFlagsDescription
TRUEnever evaluated
FALSEevaluated 12460 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
0-12460
1070 QCustomTypeInfo &inf = ct->data()[idx - User];-
1071 inf.flags |= flags;-
1072 if (metaObject)
metaObjectDescription
TRUEnever evaluated
FALSEnever evaluated
0
1073 inf.metaObject = metaObject;
never executed: inf.metaObject = metaObject;
0
1074 }
never executed: end of block
0
1075 }
executed 12460 times by 83 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
12460
1076 }
executed 12460 times by 83 tests: end of block
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
12460
1077-
1078 if (idx < User) {
idx < UserDescription
TRUEnever evaluated
FALSEevaluated 12460 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
0-12460
1079 previousSize = QMetaType::sizeOf(idx);-
1080 previousFlags = QMetaType::typeFlags(idx);-
1081 }
never executed: end of block
0
1082-
1083 if (Q_UNLIKELY(previousSize != size)) {
__builtin_expe... size), false)Description
TRUEnever evaluated
FALSEevaluated 12460 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
0-12460
1084 qFatal("QMetaType::registerType: Binary compatibility break "-
1085 "-- Size mismatch for type '%s' [%i]. Previously registered "-
1086 "size %i, now registering size %i.",-
1087 normalizedTypeName.constData(), idx, previousSize, size);-
1088 }
never executed: end of block
0
1089-
1090 // these flags cannot change in a binary compatible way:-
1091 const int binaryCompatibilityFlag = PointerToQObject | IsEnumeration | SharedPointerToQObject-
1092 | WeakPointerToQObject | TrackingPointerToQObject;-
1093 if (Q_UNLIKELY((previousFlags ^ flags) & binaryCompatibilityFlag)) {
__builtin_expe...yFlag), false)Description
TRUEnever evaluated
FALSEevaluated 12460 times by 83 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
0-12460
1094-
1095 const char *msg = "QMetaType::registerType: Binary compatibility break. "-
1096 "\nType flags for type '%s' [%i] don't match. Previously "-
1097 "registered TypeFlags(0x%x), now registering TypeFlags(0x%x). ";-
1098-
1099 qFatal(msg, normalizedTypeName.constData(), idx, previousFlags, int(flags));-
1100 }
never executed: end of block
0
1101-
1102 return idx;
executed 12460 times by 83 tests: return idx;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractSlider
  • tst_QBoxLayout
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • tst_QDBusMetaType
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFtp
  • tst_QGraphicsGridLayout
  • ...
12460
1103}-
1104-
1105/*!-
1106 \internal-
1107 \since 4.7-
1108-
1109 Registers a user type for marshalling, as an alias of another type (typedef)-
1110*/-
1111int QMetaType::registerTypedef(const char* typeName, int aliasId)-
1112{-
1113#ifdef QT_NO_QOBJECT-
1114 NS(QByteArray) normalizedTypeName = typeName;-
1115#else-
1116 NS(QByteArray) normalizedTypeName = QMetaObject::normalizedType(typeName);-
1117#endif-
1118-
1119 return registerNormalizedTypedef(normalizedTypeName, aliasId);
executed 1 time by 1 test: return registerNormalizedTypedef(normalizedTypeName, aliasId);
Executed by:
  • tst_QMetaType
1
1120}-
1121-
1122/*!-
1123 \internal-
1124 \since 5.0-
1125-
1126 Registers a user type for marshalling, as an alias of another type (typedef).-
1127 Note that normalizedTypeName is not checked for conformance with Qt's normalized format,-
1128 so it must already conform.-
1129*/-
1130int QMetaType::registerNormalizedTypedef(const NS(QByteArray) &normalizedTypeName, int aliasId)-
1131{-
1132 QVector<QCustomTypeInfo> *ct = customTypes();-
1133 if (!ct || normalizedTypeName.isEmpty())
!ctDescription
TRUEnever evaluated
FALSEevaluated 177 times by 47 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
normalizedTypeName.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 177 times by 47 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
0-177
1134 return -1;
never executed: return -1;
0
1135-
1136 int idx = qMetaTypeStaticType(normalizedTypeName.constData(),-
1137 normalizedTypeName.size());-
1138-
1139 if (idx == UnknownType) {
idx == UnknownTypeDescription
TRUEevaluated 171 times by 47 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QFtp
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • ...
FALSEevaluated 6 times by 1 test
Evaluated by:
  • tst_QMetaType
6-171
1140 QWriteLocker locker(customTypesLock());-
1141 int posInVector = -1;-
1142 idx = qMetaTypeCustomType_unlocked(normalizedTypeName.constData(),-
1143 normalizedTypeName.size(),-
1144 &posInVector);-
1145-
1146 if (idx == UnknownType) {
idx == UnknownTypeDescription
TRUEevaluated 31 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QWindow
  • tst_QXmlInputSource
  • tst_QXmlStream
FALSEevaluated 140 times by 33 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkConfigurationManager
  • tst_QNetworkSession
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProcess
  • tst_QPropertyAnimation
  • tst_QScreen
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QSqlDatabase
  • ...
31-140
1147 QCustomTypeInfo inf;-
1148 inf.typeName = normalizedTypeName;-
1149 inf.alias = aliasId;-
1150 if (posInVector == -1)
posInVector == -1Description
TRUEevaluated 31 times by 20 tests
Evaluated by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QWindow
  • tst_QXmlInputSource
  • tst_QXmlStream
FALSEnever evaluated
0-31
1151 ct->append(inf);
executed 31 times by 20 tests: ct->append(inf);
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QWindow
  • tst_QXmlInputSource
  • tst_QXmlStream
31
1152 else-
1153 ct->data()[posInVector] = inf;
never executed: ct->data()[posInVector] = inf;
0
1154 return aliasId;
executed 31 times by 20 tests: return aliasId;
Executed by:
  • tst_NetworkSelfTest
  • tst_QAbstractNetworkCache
  • tst_QFtp
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfiguration
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkInterface
  • tst_QNetworkProxyFactory
  • tst_QObject
  • tst_QTcpServer
  • tst_QUdpSocket
  • tst_QWindow
  • tst_QXmlInputSource
  • tst_QXmlStream
31
1155 }-
1156 }
executed 140 times by 33 tests: end of block
Executed by:
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkConfigurationManager
  • tst_QNetworkSession
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProcess
  • tst_QPropertyAnimation
  • tst_QScreen
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QSqlDatabase
  • ...
140
1157-
1158 if (idx != aliasId) {
idx != aliasIdDescription
TRUEnever evaluated
FALSEevaluated 146 times by 33 tests
Evaluated by:
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkConfigurationManager
  • tst_QNetworkSession
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProcess
  • tst_QPropertyAnimation
  • tst_QScreen
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QSqlDatabase
  • ...
0-146
1159 qWarning("QMetaType::registerTypedef: "-
1160 "-- Type name '%s' previously registered as typedef of '%s' [%i], "-
1161 "now registering as typedef of '%s' [%i].",-
1162 normalizedTypeName.constData(), QMetaType::typeName(idx), idx,-
1163 QMetaType::typeName(aliasId), aliasId);-
1164 }
never executed: end of block
0
1165 return idx;
executed 146 times by 33 tests: return idx;
Executed by:
  • tst_QAnimationGroup
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QDialogButtonBox
  • tst_QDockWidget
  • tst_QDoubleValidator
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMdiSubWindow
  • tst_QMetaType
  • tst_QNetworkAccessManager
  • tst_QNetworkConfigurationManager
  • tst_QNetworkSession
  • tst_QObject
  • tst_QParallelAnimationGroup
  • tst_QPauseAnimation
  • tst_QProcess
  • tst_QPropertyAnimation
  • tst_QScreen
  • tst_QSequentialAnimationGroup
  • tst_QSettings
  • tst_QSqlDatabase
  • ...
146
1166}-
1167-
1168/*!-
1169 Returns \c true if the datatype with ID \a type is registered;-
1170 otherwise returns \c false.-
1171-
1172 \sa type(), typeName(), Type-
1173*/-
1174bool QMetaType::isRegistered(int type)-
1175{-
1176 // predefined type-
1177 if ((type >= FirstCoreType && type <= LastCoreType)
type >= FirstCoreTypeDescription
TRUEevaluated 47929 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QEasingCurve
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QObject
  • tst_QQuaternion
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QVectorND
  • tst_QWidgetsVariant
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QMetaType
type <= LastCoreTypeDescription
TRUEevaluated 32618 times by 15 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QEasingCurve
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
FALSEevaluated 15311 times by 10 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QQuaternion
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVariant
  • tst_QVectorND
  • tst_QWidgetsVariant
3-47929
1178 || (type >= FirstGuiType && type <= LastGuiType)
type >= FirstGuiTypeDescription
TRUEevaluated 15309 times by 10 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QObject
  • tst_QQuaternion
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVariant
  • tst_QVectorND
  • tst_QWidgetsVariant
FALSEevaluated 5 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
type <= LastGuiTypeDescription
TRUEevaluated 277 times by 7 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QQuaternion
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVectorND
FALSEevaluated 15032 times by 5 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
5-15309
1179 || (type >= FirstWidgetsType && type <= LastWidgetsType)) {
type >= FirstWidgetsTypeDescription
TRUEevaluated 15030 times by 5 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 7 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
type <= LastWidgetsTypeDescription
TRUEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QWidgetsVariant
FALSEevaluated 15027 times by 5 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
3-15030
1180 return true;
executed 32898 times by 20 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QEasingCurve
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMatrixNxN
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QQuaternion
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QVectorND
  • tst_QWidgetsVariant
32898
1181 }-
1182-
1183 QReadLocker locker(customTypesLock());-
1184 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1185 return ((type >= User) && (ct && ct->count() > type - User) && !ct->at(type - User).typeName.isEmpty());
executed 15034 times by 5 tests: return ((type >= User) && (ct && ct->count() > type - User) && !ct->at(type - User).typeName.isEmpty());
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
  • tst_QWidgetsVariant
15034
1186}-
1187-
1188template <bool tryNormalizedType>-
1189static inline int qMetaTypeTypeImpl(const char *typeName, int length)-
1190{-
1191 if (!length)
!lengthDescription
TRUEevaluated 108 times by 4 tests
Evaluated by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 1849999 times by 284 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
  • ...
108-1849999
1192 return QMetaType::UnknownType;
executed 108 times by 4 tests: return QMetaType::UnknownType;
Executed by:
  • tst_QMetaMethod
  • tst_QMetaObjectBuilder
  • tst_QMetaType
  • tst_QVariant
108
1193 int type = qMetaTypeStaticType(typeName, length);-
1194 if (type == QMetaType::UnknownType) {
type == QMetaType::UnknownTypeDescription
TRUEevaluated 514753 times by 223 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
FALSEevaluated 1335246 times by 274 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QBuffer
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • ...
514753-1335246
1195 QReadLocker locker(customTypesLock());-
1196 type = qMetaTypeCustomType_unlocked(typeName, length);-
1197#ifndef QT_NO_QOBJECT-
1198 if ((type == QMetaType::UnknownType) && tryNormalizedType) {
(type == QMeta...::UnknownType)Description
TRUEevaluated 155603 times by 180 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
  • ...
FALSEevaluated 359150 times by 149 tests
Evaluated by:
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAccessibility
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QClipboard
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaObject
  • ...
tryNormalizedTypeDescription
TRUEevaluated 138 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QDBusLocalCalls
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSequentialAnimationGroup
  • tst_QSignalMapper
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
FALSEevaluated 155465 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
  • ...
138-359150
1199 const NS(QByteArray) normalizedTypeName = QMetaObject::normalizedType(typeName);-
1200 type = qMetaTypeStaticType(normalizedTypeName.constData(),-
1201 normalizedTypeName.size());-
1202 if (type == QMetaType::UnknownType) {
type == QMetaType::UnknownTypeDescription
TRUEevaluated 136 times by 21 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QDBusLocalCalls
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSequentialAnimationGroup
  • tst_QSignalMapper
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QVariant
2-136
1203 type = qMetaTypeCustomType_unlocked(normalizedTypeName.constData(),-
1204 normalizedTypeName.size());-
1205 }
executed 136 times by 21 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QDBusLocalCalls
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSequentialAnimationGroup
  • tst_QSignalMapper
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
136
1206 }
executed 138 times by 21 tests: end of block
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractSpinBox
  • tst_QAction
  • tst_QDBusLocalCalls
  • tst_QDBusMetaObject
  • tst_QGraphicsItem
  • tst_QItemModel
  • tst_QItemSelectionModel
  • tst_QMenuBar
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaObjectBuilder
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QObject
  • tst_QSequentialAnimationGroup
  • tst_QSignalMapper
  • tst_QSortFilterProxyModel
  • tst_QStringListModel
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
138
1207#endif-
1208 }
executed 514753 times by 223 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
514753
1209 return type;
executed 1849999 times by 284 tests: return type;
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
  • ...
1849999
1210}-
1211-
1212/*!-
1213 Returns a handle to the type called \a typeName, or QMetaType::UnknownType if there is-
1214 no such type.-
1215-
1216 \sa isRegistered(), typeName(), Type-
1217*/-
1218int QMetaType::type(const char *typeName)-
1219{-
1220 return qMetaTypeTypeImpl</*tryNormalizedType=*/true>(typeName, qstrlen(typeName));
executed 66751 times by 31 tests: return qMetaTypeTypeImpl< true>(typeName, qstrlen(typeName));
Executed by:
  • tst_QAbstractProxyModel
  • tst_QDBusAbstractInterface
  • tst_QDBusInterface
  • tst_QEasingCurve
  • tst_QEventLoop
  • tst_QGuiEventLoop
  • tst_QGuiVariant
  • tst_QItemDelegate
  • tst_QMatrixNxN
  • tst_QMetaMethod
  • tst_QMetaObject
  • tst_QMetaProperty
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPropertyAnimation
  • tst_QQuaternion
  • tst_QStateMachine
  • tst_QSyntaxHighlighter
  • tst_QTableView
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QTreeWidget
  • tst_QVariant
  • ...
66751
1221}-
1222-
1223/*!-
1224 \a internal-
1225-
1226 Similar to QMetaType::type(); the only difference is that this function-
1227 doesn't attempt to normalize the type name (i.e., the lookup will fail-
1228 for type names in non-normalized form).-
1229*/-
1230int qMetaTypeTypeInternal(const char *typeName)-
1231{-
1232 return qMetaTypeTypeImpl</*tryNormalizedType=*/false>(typeName, qstrlen(typeName));
executed 1611862 times by 270 tests: return qMetaTypeTypeImpl< false>(typeName, qstrlen(typeName));
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
  • ...
1611862
1233}-
1234-
1235/*!-
1236 \since 5.5-
1237 \overload-
1238-
1239 Returns a handle to the type called \a typeName, or 0 if there is-
1240 no such type.-
1241-
1242 \sa isRegistered(), typeName()-
1243*/-
1244int QMetaType::type(const QT_PREPEND_NAMESPACE(QByteArray) &typeName)-
1245{-
1246 return qMetaTypeTypeImpl</*tryNormalizedType=*/true>(typeName.constData(), typeName.size());
executed 171494 times by 223 tests: return qMetaTypeTypeImpl< true>(typeName.constData(), typeName.size());
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
  • ...
171494
1247}-
1248-
1249#ifndef QT_NO_DATASTREAM-
1250/*!-
1251 Writes the object pointed to by \a data with the ID \a type to-
1252 the given \a stream. Returns \c true if the object is saved-
1253 successfully; otherwise returns \c false.-
1254-
1255 The type must have been registered with qRegisterMetaType() and-
1256 qRegisterMetaTypeStreamOperators() beforehand.-
1257-
1258 Normally, you should not need to call this function directly.-
1259 Instead, use QVariant's \c operator<<(), which relies on save()-
1260 to stream custom types.-
1261-
1262 \sa load(), qRegisterMetaTypeStreamOperators()-
1263*/-
1264bool QMetaType::save(QDataStream &stream, int type, const void *data)-
1265{-
1266 if (!data || !isRegistered(type))
!dataDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 16385 times by 17 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
!isRegistered(type)Description
TRUEnever evaluated
FALSEevaluated 16385 times by 17 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
0-16385
1267 return false;
executed 25 times by 1 test: return false;
Executed by:
  • tst_QMetaType
25
1268-
1269 switch(type) {-
1270 case QMetaType::UnknownType:
never executed: case QMetaType::UnknownType:
0
1271 case QMetaType::Void:
never executed: case QMetaType::Void:
0
1272 case QMetaType::VoidStar:
executed 1 time by 1 test: case QMetaType::VoidStar:
Executed by:
  • tst_QMetaType
1
1273 case QMetaType::QObjectStar:
executed 1 time by 1 test: case QMetaType::QObjectStar:
Executed by:
  • tst_QMetaType
1
1274 case QMetaType::QModelIndex:
executed 1 time by 1 test: case QMetaType::QModelIndex:
Executed by:
  • tst_QMetaType
1
1275 case QMetaType::QPersistentModelIndex:
executed 1 time by 1 test: case QMetaType::QPersistentModelIndex:
Executed by:
  • tst_QMetaType
1
1276 case QMetaType::QJsonValue:
executed 1 time by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QMetaType
1
1277 case QMetaType::QJsonObject:
executed 1 time by 1 test: case QMetaType::QJsonObject:
Executed by:
  • tst_QMetaType
1
1278 case QMetaType::QJsonArray:
executed 1 time by 1 test: case QMetaType::QJsonArray:
Executed by:
  • tst_QMetaType
1
1279 case QMetaType::QJsonDocument:
executed 1 time by 1 test: case QMetaType::QJsonDocument:
Executed by:
  • tst_QMetaType
1
1280 return false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_QMetaType
8
1281 case QMetaType::Long:
executed 5 times by 2 tests: case QMetaType::Long:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1282 stream << qlonglong(*static_cast<const long *>(data));-
1283 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1284 case QMetaType::Int:
executed 308 times by 8 tests: case QMetaType::Int:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QVariant
308
1285 stream << *static_cast<const int *>(data);-
1286 break;
executed 308 times by 8 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QVariant
308
1287 case QMetaType::Short:
executed 5 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1288 stream << *static_cast<const short *>(data);-
1289 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1290 case QMetaType::Char:
executed 5 times by 2 tests: case QMetaType::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1291 // force a char to be signed-
1292 stream << *static_cast<const signed char *>(data);-
1293 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1294 case QMetaType::ULong:
executed 5 times by 2 tests: case QMetaType::ULong:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1295 stream << qulonglong(*static_cast<const ulong *>(data));-
1296 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1297 case QMetaType::UInt:
executed 4 times by 2 tests: case QMetaType::UInt:
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
1298 stream << *static_cast<const uint *>(data);-
1299 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
1300 case QMetaType::LongLong:
executed 3 times by 2 tests: case QMetaType::LongLong:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1301 stream << *static_cast<const qlonglong *>(data);-
1302 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1303 case QMetaType::ULongLong:
executed 3 times by 2 tests: case QMetaType::ULongLong:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1304 stream << *static_cast<const qulonglong *>(data);-
1305 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1306 case QMetaType::UShort:
executed 5 times by 2 tests: case QMetaType::UShort:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1307 stream << *static_cast<const ushort *>(data);-
1308 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1309 case QMetaType::SChar:
executed 1 time by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QMetaType
1
1310 stream << *static_cast<const signed char *>(data);-
1311 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QMetaType
1
1312 case QMetaType::UChar:
executed 5 times by 2 tests: case QMetaType::UChar:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1313 stream << *static_cast<const uchar *>(data);-
1314 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1315 case QMetaType::Bool:
executed 75 times by 3 tests: case QMetaType::Bool:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
75
1316 stream << qint8(*static_cast<const bool *>(data));-
1317 break;
executed 75 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
75
1318 case QMetaType::Float:
executed 7 times by 2 tests: case QMetaType::Float:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1319 stream << *static_cast<const float *>(data);-
1320 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1321 case QMetaType::Double:
executed 6 times by 2 tests: case QMetaType::Double:
Executed by:
  • tst_QMetaType
  • tst_QVariant
6
1322 stream << *static_cast<const double *>(data);-
1323 break;
executed 6 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
6
1324 case QMetaType::QChar:
executed 5 times by 2 tests: case QMetaType::QChar:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1325 stream << *static_cast<const NS(QChar) *>(data);-
1326 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1327#ifndef QT_BOOTSTRAPPED-
1328 case QMetaType::QVariantMap:
executed 77 times by 3 tests: case QMetaType::QVariantMap:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
77
1329 stream << *static_cast<const NS(QVariantMap)*>(data);-
1330 break;
executed 77 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
77
1331 case QMetaType::QVariantHash:
executed 3 times by 2 tests: case QMetaType::QVariantHash:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1332 stream << *static_cast<const NS(QVariantHash)*>(data);-
1333 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1334 case QMetaType::QVariantList:
executed 61 times by 3 tests: case QMetaType::QVariantList:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
61
1335 stream << *static_cast<const NS(QVariantList)*>(data);-
1336 break;
executed 61 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
61
1337 case QMetaType::QVariant:
executed 3 times by 2 tests: case QMetaType::QVariant:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1338 stream << *static_cast<const NS(QVariant)*>(data);-
1339 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1340 case QMetaType::QByteArrayList:
executed 1 time by 1 test: case QMetaType::QByteArrayList:
Executed by:
  • tst_QMetaType
1
1341 stream << *static_cast<const NS(QByteArrayList)*>(data);-
1342 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QMetaType
1
1343#endif-
1344 case QMetaType::QByteArray:
executed 14 times by 4 tests: case QMetaType::QByteArray:
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
14
1345 stream << *static_cast<const NS(QByteArray)*>(data);-
1346 break;
executed 14 times by 4 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
14
1347 case QMetaType::QString:
executed 12681 times by 12 tests: case QMetaType::QString:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
12681
1348 stream << *static_cast<const NS(QString)*>(data);-
1349 break;
executed 12681 times by 12 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
12681
1350 case QMetaType::QStringList:
executed 25 times by 3 tests: case QMetaType::QStringList:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
25
1351 stream << *static_cast<const NS(QStringList)*>(data);-
1352 break;
executed 25 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
25
1353#ifndef QT_BOOTSTRAPPED-
1354 case QMetaType::QBitArray:
executed 5 times by 2 tests: case QMetaType::QBitArray:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1355 stream << *static_cast<const NS(QBitArray)*>(data);-
1356 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1357#endif-
1358 case QMetaType::QDate:
executed 89 times by 3 tests: case QMetaType::QDate:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
89
1359 stream << *static_cast<const NS(QDate)*>(data);-
1360 break;
executed 89 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
89
1361 case QMetaType::QTime:
executed 85 times by 3 tests: case QMetaType::QTime:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
85
1362 stream << *static_cast<const NS(QTime)*>(data);-
1363 break;
executed 85 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
85
1364 case QMetaType::QDateTime:
executed 13 times by 3 tests: case QMetaType::QDateTime:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
13
1365 stream << *static_cast<const NS(QDateTime)*>(data);-
1366 break;
executed 13 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
13
1367#ifndef QT_BOOTSTRAPPED-
1368 case QMetaType::QUrl:
executed 3 times by 2 tests: case QMetaType::QUrl:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1369 stream << *static_cast<const NS(QUrl)*>(data);-
1370 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1371#endif-
1372 case QMetaType::QLocale:
executed 3 times by 2 tests: case QMetaType::QLocale:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1373 stream << *static_cast<const NS(QLocale)*>(data);-
1374 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1375#ifndef QT_NO_GEOM_VARIANT-
1376 case QMetaType::QRect:
executed 2559 times by 4 tests: case QMetaType::QRect:
Executed by:
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
2559
1377 stream << *static_cast<const NS(QRect)*>(data);-
1378 break;
executed 2559 times by 4 tests: break;
Executed by:
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
2559
1379 case QMetaType::QRectF:
executed 3 times by 2 tests: case QMetaType::QRectF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1380 stream << *static_cast<const NS(QRectF)*>(data);-
1381 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1382 case QMetaType::QSize:
executed 58 times by 4 tests: case QMetaType::QSize:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVariant
58
1383 stream << *static_cast<const NS(QSize)*>(data);-
1384 break;
executed 58 times by 4 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVariant
58
1385 case QMetaType::QSizeF:
executed 3 times by 2 tests: case QMetaType::QSizeF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1386 stream << *static_cast<const NS(QSizeF)*>(data);-
1387 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1388 case QMetaType::QLine:
executed 3 times by 2 tests: case QMetaType::QLine:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1389 stream << *static_cast<const NS(QLine)*>(data);-
1390 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1391 case QMetaType::QLineF:
executed 3 times by 2 tests: case QMetaType::QLineF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1392 stream << *static_cast<const NS(QLineF)*>(data);-
1393 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1394 case QMetaType::QPoint:
executed 55 times by 3 tests: case QMetaType::QPoint:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
55
1395 stream << *static_cast<const NS(QPoint)*>(data);-
1396 break;
executed 55 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
55
1397 case QMetaType::QPointF:
executed 3 times by 2 tests: case QMetaType::QPointF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1398 stream << *static_cast<const NS(QPointF)*>(data);-
1399 break;
executed 3 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
3
1400#endif-
1401#ifndef QT_NO_REGEXP-
1402 case QMetaType::QRegExp:
executed 47 times by 3 tests: case QMetaType::QRegExp:
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
47
1403 stream << *static_cast<const NS(QRegExp)*>(data);-
1404 break;
executed 47 times by 3 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
47
1405#endif-
1406#ifndef QT_BOOTSTRAPPED-
1407#ifndef QT_NO_REGULAREXPRESSION-
1408 case QMetaType::QRegularExpression:
executed 4 times by 2 tests: case QMetaType::QRegularExpression:
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
1409 stream << *static_cast<const NS(QRegularExpression)*>(data);-
1410 break;
executed 4 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
4
1411#endif // QT_NO_REGULAREXPRESSION-
1412 case QMetaType::QEasingCurve:
executed 1 time by 1 test: case QMetaType::QEasingCurve:
Executed by:
  • tst_QMetaType
1
1413 stream << *static_cast<const NS(QEasingCurve)*>(data);-
1414 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QMetaType
1
1415#endif // QT_BOOTSTRAPPED-
1416 case QMetaType::QFont:
executed 2 times by 2 tests: case QMetaType::QFont:
Executed by:
  • tst_QGuiVariant
  • tst_QStandardItem
2
1417 case QMetaType::QPixmap:
executed 3 times by 2 tests: case QMetaType::QPixmap:
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
3
1418 case QMetaType::QBrush:
executed 3 times by 2 tests: case QMetaType::QBrush:
Executed by:
  • tst_QGuiVariant
  • tst_QStandardItem
3
1419 case QMetaType::QColor:
executed 101 times by 2 tests: case QMetaType::QColor:
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
101
1420 case QMetaType::QPalette:
executed 1 time by 1 test: case QMetaType::QPalette:
Executed by:
  • tst_QGuiVariant
1
1421 case QMetaType::QImage:
executed 1 time by 1 test: case QMetaType::QImage:
Executed by:
  • tst_QGuiVariant
1
1422 case QMetaType::QPolygon:
executed 2 times by 1 test: case QMetaType::QPolygon:
Executed by:
  • tst_QGuiVariant
2
1423 case QMetaType::QPolygonF:
executed 3 times by 1 test: case QMetaType::QPolygonF:
Executed by:
  • tst_QGuiVariant
3
1424 case QMetaType::QRegion:
executed 2 times by 1 test: case QMetaType::QRegion:
Executed by:
  • tst_QGuiVariant
2
1425 case QMetaType::QBitmap:
executed 2 times by 1 test: case QMetaType::QBitmap:
Executed by:
  • tst_QGuiVariant
2
1426 case QMetaType::QCursor:
executed 1 time by 1 test: case QMetaType::QCursor:
Executed by:
  • tst_QGuiVariant
1
1427 case QMetaType::QKeySequence:
executed 3 times by 2 tests: case QMetaType::QKeySequence:
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
3
1428 case QMetaType::QPen:
executed 1 time by 1 test: case QMetaType::QPen:
Executed by:
  • tst_QGuiVariant
1
1429 case QMetaType::QTextLength:
never executed: case QMetaType::QTextLength:
0
1430 case QMetaType::QTextFormat:
never executed: case QMetaType::QTextFormat:
0
1431 case QMetaType::QMatrix:
never executed: case QMetaType::QMatrix:
0
1432 case QMetaType::QTransform:
never executed: case QMetaType::QTransform:
0
1433 case QMetaType::QMatrix4x4:
never executed: case QMetaType::QMatrix4x4:
0
1434 case QMetaType::QVector2D:
never executed: case QMetaType::QVector2D:
0
1435 case QMetaType::QVector3D:
never executed: case QMetaType::QVector3D:
0
1436 case QMetaType::QVector4D:
never executed: case QMetaType::QVector4D:
0
1437 case QMetaType::QQuaternion:
never executed: case QMetaType::QQuaternion:
0
1438 case QMetaType::QIcon:
never executed: case QMetaType::QIcon:
0
1439 if (!qMetaTypeGuiHelper)
!qMetaTypeGuiHelperDescription
TRUEnever evaluated
FALSEevaluated 125 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QSettings
  • tst_QStandardItem
0-125
1440 return false;
never executed: return false;
0
1441 qMetaTypeGuiHelper[type - FirstGuiType].saveOp(stream, data);-
1442 break;
executed 125 times by 3 tests: break;
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
  • tst_QStandardItem
125
1443 case QMetaType::QSizePolicy:
executed 1 time by 1 test: case QMetaType::QSizePolicy:
Executed by:
  • tst_QWidgetsVariant
1
1444 if (!qMetaTypeWidgetsHelper)
!qMetaTypeWidgetsHelperDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidgetsVariant
0-1
1445 return false;
never executed: return false;
0
1446 qMetaTypeWidgetsHelper[type - FirstWidgetsType].saveOp(stream, data);-
1447 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QWidgetsVariant
1
1448 case QMetaType::QUuid:
executed 2 times by 2 tests: case QMetaType::QUuid:
Executed by:
  • tst_QMetaType
  • tst_QVariant
2
1449 stream << *static_cast<const NS(QUuid)*>(data);-
1450 break;
executed 2 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
2
1451 default: {
executed 5 times by 3 tests: default:
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
5
1452 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1453 if (!ct)
!ctDescription
TRUEnever evaluated
FALSEevaluated 5 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
0-5
1454 return false;
never executed: return false;
0
1455-
1456 SaveOperator saveOp = 0;-
1457 {-
1458 QReadLocker locker(customTypesLock());-
1459 saveOp = ct->at(type - User).saveOp;-
1460 }-
1461-
1462 if (!saveOp)
!saveOpDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
1-4
1463 return false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QMetaType
1
1464 saveOp(stream, data);-
1465 break; }
executed 4 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
4
1466 }-
1467-
1468 return true;
executed 16376 times by 17 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkDiskCache
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
16376
1469}-
1470-
1471/*!-
1472 Reads the object of the specified \a type from the given \a-
1473 stream into \a data. Returns \c true if the object is loaded-
1474 successfully; otherwise returns \c false.-
1475-
1476 The type must have been registered with qRegisterMetaType() and-
1477 qRegisterMetaTypeStreamOperators() beforehand.-
1478-
1479 Normally, you should not need to call this function directly.-
1480 Instead, use QVariant's \c operator>>(), which relies on load()-
1481 to stream custom types.-
1482-
1483 \sa save(), qRegisterMetaTypeStreamOperators()-
1484*/-
1485bool QMetaType::load(QDataStream &stream, int type, void *data)-
1486{-
1487 if (!data || !isRegistered(type))
!dataDescription
TRUEevaluated 25 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 16446 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
!isRegistered(type)Description
TRUEnever evaluated
FALSEevaluated 16446 times by 16 tests
Evaluated by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
0-16446
1488 return false;
executed 25 times by 1 test: return false;
Executed by:
  • tst_QMetaType
25
1489-
1490 switch(type) {-
1491 case QMetaType::UnknownType:
never executed: case QMetaType::UnknownType:
0
1492 case QMetaType::Void:
never executed: case QMetaType::Void:
0
1493 case QMetaType::VoidStar:
executed 1 time by 1 test: case QMetaType::VoidStar:
Executed by:
  • tst_QMetaType
1
1494 case QMetaType::QObjectStar:
executed 1 time by 1 test: case QMetaType::QObjectStar:
Executed by:
  • tst_QMetaType
1
1495 case QMetaType::QModelIndex:
executed 1 time by 1 test: case QMetaType::QModelIndex:
Executed by:
  • tst_QMetaType
1
1496 case QMetaType::QPersistentModelIndex:
executed 1 time by 1 test: case QMetaType::QPersistentModelIndex:
Executed by:
  • tst_QMetaType
1
1497 case QMetaType::QJsonValue:
executed 1 time by 1 test: case QMetaType::QJsonValue:
Executed by:
  • tst_QMetaType
1
1498 case QMetaType::QJsonObject:
executed 1 time by 1 test: case QMetaType::QJsonObject:
Executed by:
  • tst_QMetaType
1
1499 case QMetaType::QJsonArray:
executed 1 time by 1 test: case QMetaType::QJsonArray:
Executed by:
  • tst_QMetaType
1
1500 case QMetaType::QJsonDocument:
executed 1 time by 1 test: case QMetaType::QJsonDocument:
Executed by:
  • tst_QMetaType
1
1501 return false;
executed 8 times by 1 test: return false;
Executed by:
  • tst_QMetaType
8
1502 case QMetaType::Long: {
executed 9 times by 2 tests: case QMetaType::Long:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1503 qlonglong l;-
1504 stream >> l;-
1505 *static_cast<long *>(data) = long(l);-
1506 break; }
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1507 case QMetaType::Int:
executed 205 times by 7 tests: case QMetaType::Int:
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QVariant
205
1508 stream >> *static_cast<int *>(data);-
1509 break;
executed 205 times by 7 tests: break;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QVariant
205
1510 case QMetaType::Short:
executed 9 times by 2 tests: case QMetaType::Short:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1511 stream >> *static_cast<short *>(data);-
1512 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1513 case QMetaType::Char:
executed 9 times by 2 tests: case QMetaType::Char:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1514 // force a char to be signed-
1515 stream >> *static_cast<signed char *>(data);-
1516 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1517 case QMetaType::ULong: {
executed 9 times by 2 tests: case QMetaType::ULong:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1518 qulonglong ul;-
1519 stream >> ul;-
1520 *static_cast<ulong *>(data) = ulong(ul);-
1521 break; }
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1522 case QMetaType::UInt:
executed 8 times by 2 tests: case QMetaType::UInt:
Executed by:
  • tst_QMetaType
  • tst_QVariant
8
1523 stream >> *static_cast<uint *>(data);-
1524 break;
executed 8 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
8
1525 case QMetaType::LongLong:
executed 7 times by 2 tests: case QMetaType::LongLong:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1526 stream >> *static_cast<qlonglong *>(data);-
1527 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1528 case QMetaType::ULongLong:
executed 7 times by 2 tests: case QMetaType::ULongLong:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1529 stream >> *static_cast<qulonglong *>(data);-
1530 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1531 case QMetaType::UShort:
executed 9 times by 2 tests: case QMetaType::UShort:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1532 stream >> *static_cast<ushort *>(data);-
1533 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1534 case QMetaType::SChar:
executed 3 times by 1 test: case QMetaType::SChar:
Executed by:
  • tst_QMetaType
3
1535 stream >> *static_cast<signed char *>(data);-
1536 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QMetaType
3
1537 case QMetaType::UChar:
executed 9 times by 2 tests: case QMetaType::UChar:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1538 stream >> *static_cast<uchar *>(data);-
1539 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1540 case QMetaType::Bool: {
executed 79 times by 3 tests: case QMetaType::Bool:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
79
1541 qint8 b;-
1542 stream >> b;-
1543 *static_cast<bool *>(data) = b;-
1544 break; }
executed 79 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
79
1545 case QMetaType::Float:
executed 11 times by 2 tests: case QMetaType::Float:
Executed by:
  • tst_QMetaType
  • tst_QVariant
11
1546 stream >> *static_cast<float *>(data);-
1547 break;
executed 11 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
11
1548 case QMetaType::Double:
executed 10 times by 2 tests: case QMetaType::Double:
Executed by:
  • tst_QMetaType
  • tst_QVariant
10
1549 stream >> *static_cast<double *>(data);-
1550 break;
executed 10 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
10
1551 case QMetaType::QChar:
executed 9 times by 2 tests: case QMetaType::QChar:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1552 stream >> *static_cast< NS(QChar)*>(data);-
1553 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1554#ifndef QT_BOOTSTRAPPED-
1555 case QMetaType::QVariantMap:
executed 80 times by 3 tests: case QMetaType::QVariantMap:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
80
1556 stream >> *static_cast< NS(QVariantMap)*>(data);-
1557 break;
executed 80 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
80
1558 case QMetaType::QVariantHash:
executed 7 times by 2 tests: case QMetaType::QVariantHash:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1559 stream >> *static_cast< NS(QVariantHash)*>(data);-
1560 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1561 case QMetaType::QVariantList:
executed 50 times by 3 tests: case QMetaType::QVariantList:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
50
1562 stream >> *static_cast< NS(QVariantList)*>(data);-
1563 break;
executed 50 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
50
1564 case QMetaType::QVariant:
executed 7 times by 2 tests: case QMetaType::QVariant:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1565 stream >> *static_cast< NS(QVariant)*>(data);-
1566 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1567 case QMetaType::QByteArrayList:
executed 3 times by 1 test: case QMetaType::QByteArrayList:
Executed by:
  • tst_QMetaType
3
1568 stream >> *static_cast< NS(QByteArrayList)*>(data);-
1569 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QMetaType
3
1570#endif-
1571 case QMetaType::QByteArray:
executed 17 times by 3 tests: case QMetaType::QByteArray:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
17
1572 stream >> *static_cast< NS(QByteArray)*>(data);-
1573 break;
executed 17 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
17
1574 case QMetaType::QString:
executed 12725 times by 11 tests: case QMetaType::QString:
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
12725
1575 stream >> *static_cast< NS(QString)*>(data);-
1576 break;
executed 12725 times by 11 tests: break;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QListWidget
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
12725
1577 case QMetaType::QStringList:
executed 25 times by 3 tests: case QMetaType::QStringList:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
25
1578 stream >> *static_cast< NS(QStringList)*>(data);-
1579 break;
executed 25 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
25
1580#ifndef QT_BOOTSTRAPPED-
1581 case QMetaType::QBitArray:
executed 9 times by 2 tests: case QMetaType::QBitArray:
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1582 stream >> *static_cast< NS(QBitArray)*>(data);-
1583 break;
executed 9 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
9
1584#endif-
1585 case QMetaType::QDate:
executed 93 times by 3 tests: case QMetaType::QDate:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
93
1586 stream >> *static_cast< NS(QDate)*>(data);-
1587 break;
executed 93 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
93
1588 case QMetaType::QTime:
executed 89 times by 3 tests: case QMetaType::QTime:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
89
1589 stream >> *static_cast< NS(QTime)*>(data);-
1590 break;
executed 89 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
89
1591 case QMetaType::QDateTime:
executed 17 times by 3 tests: case QMetaType::QDateTime:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
17
1592 stream >> *static_cast< NS(QDateTime)*>(data);-
1593 break;
executed 17 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
17
1594#ifndef QT_BOOTSTRAPPED-
1595 case QMetaType::QUrl:
executed 7 times by 2 tests: case QMetaType::QUrl:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1596 stream >> *static_cast< NS(QUrl)*>(data);-
1597 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1598#endif-
1599 case QMetaType::QLocale:
executed 7 times by 2 tests: case QMetaType::QLocale:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1600 stream >> *static_cast< NS(QLocale)*>(data);-
1601 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1602#ifndef QT_NO_GEOM_VARIANT-
1603 case QMetaType::QRect:
executed 2554 times by 4 tests: case QMetaType::QRect:
Executed by:
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
2554
1604 stream >> *static_cast< NS(QRect)*>(data);-
1605 break;
executed 2554 times by 4 tests: break;
Executed by:
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
2554
1606 case QMetaType::QRectF:
executed 7 times by 2 tests: case QMetaType::QRectF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1607 stream >> *static_cast< NS(QRectF)*>(data);-
1608 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1609 case QMetaType::QSize:
executed 62 times by 4 tests: case QMetaType::QSize:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVariant
62
1610 stream >> *static_cast< NS(QSize)*>(data);-
1611 break;
executed 62 times by 4 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QStandardItem
  • tst_QVariant
62
1612 case QMetaType::QSizeF:
executed 7 times by 2 tests: case QMetaType::QSizeF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1613 stream >> *static_cast< NS(QSizeF)*>(data);-
1614 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1615 case QMetaType::QLine:
executed 7 times by 2 tests: case QMetaType::QLine:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1616 stream >> *static_cast< NS(QLine)*>(data);-
1617 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1618 case QMetaType::QLineF:
executed 7 times by 2 tests: case QMetaType::QLineF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1619 stream >> *static_cast< NS(QLineF)*>(data);-
1620 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1621 case QMetaType::QPoint:
executed 59 times by 3 tests: case QMetaType::QPoint:
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
59
1622 stream >> *static_cast< NS(QPoint)*>(data);-
1623 break;
executed 59 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QSettings
  • tst_QVariant
59
1624 case QMetaType::QPointF:
executed 7 times by 2 tests: case QMetaType::QPointF:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1625 stream >> *static_cast< NS(QPointF)*>(data);-
1626 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1627#endif-
1628#ifndef QT_NO_REGEXP-
1629 case QMetaType::QRegExp:
executed 51 times by 3 tests: case QMetaType::QRegExp:
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
51
1630 stream >> *static_cast< NS(QRegExp)*>(data);-
1631 break;
executed 51 times by 3 tests: break;
Executed by:
  • tst_QDataStream
  • tst_QMetaType
  • tst_QVariant
51
1632#endif-
1633#ifndef QT_BOOTSTRAPPED-
1634#ifndef QT_NO_REGULAREXPRESSION-
1635 case QMetaType::QRegularExpression:
executed 7 times by 2 tests: case QMetaType::QRegularExpression:
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1636 stream >> *static_cast< NS(QRegularExpression)*>(data);-
1637 break;
executed 7 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
7
1638#endif // QT_NO_REGULAREXPRESSION-
1639 case QMetaType::QEasingCurve:
executed 3 times by 1 test: case QMetaType::QEasingCurve:
Executed by:
  • tst_QMetaType
3
1640 stream >> *static_cast< NS(QEasingCurve)*>(data);-
1641 break;
executed 3 times by 1 test: break;
Executed by:
  • tst_QMetaType
3
1642#endif // QT_BOOTSTRAPPED-
1643 case QMetaType::QFont:
executed 2 times by 2 tests: case QMetaType::QFont:
Executed by:
  • tst_QGuiVariant
  • tst_QStandardItem
2
1644 case QMetaType::QPixmap:
executed 2 times by 1 test: case QMetaType::QPixmap:
Executed by:
  • tst_QGuiVariant
2
1645 case QMetaType::QBrush:
executed 3 times by 2 tests: case QMetaType::QBrush:
Executed by:
  • tst_QGuiVariant
  • tst_QStandardItem
3
1646 case QMetaType::QColor:
executed 101 times by 2 tests: case QMetaType::QColor:
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
101
1647 case QMetaType::QPalette:
executed 1 time by 1 test: case QMetaType::QPalette:
Executed by:
  • tst_QGuiVariant
1
1648 case QMetaType::QImage:
executed 1 time by 1 test: case QMetaType::QImage:
Executed by:
  • tst_QGuiVariant
1
1649 case QMetaType::QPolygon:
executed 2 times by 1 test: case QMetaType::QPolygon:
Executed by:
  • tst_QGuiVariant
2
1650 case QMetaType::QPolygonF:
executed 3 times by 1 test: case QMetaType::QPolygonF:
Executed by:
  • tst_QGuiVariant
3
1651 case QMetaType::QRegion:
executed 2 times by 1 test: case QMetaType::QRegion:
Executed by:
  • tst_QGuiVariant
2
1652 case QMetaType::QBitmap:
executed 2 times by 1 test: case QMetaType::QBitmap:
Executed by:
  • tst_QGuiVariant
2
1653 case QMetaType::QCursor:
executed 1 time by 1 test: case QMetaType::QCursor:
Executed by:
  • tst_QGuiVariant
1
1654 case QMetaType::QKeySequence:
executed 3 times by 2 tests: case QMetaType::QKeySequence:
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
3
1655 case QMetaType::QPen:
executed 1 time by 1 test: case QMetaType::QPen:
Executed by:
  • tst_QGuiVariant
1
1656 case QMetaType::QTextLength:
never executed: case QMetaType::QTextLength:
0
1657 case QMetaType::QTextFormat:
never executed: case QMetaType::QTextFormat:
0
1658 case QMetaType::QMatrix:
never executed: case QMetaType::QMatrix:
0
1659 case QMetaType::QTransform:
never executed: case QMetaType::QTransform:
0
1660 case QMetaType::QMatrix4x4:
never executed: case QMetaType::QMatrix4x4:
0
1661 case QMetaType::QVector2D:
never executed: case QMetaType::QVector2D:
0
1662 case QMetaType::QVector3D:
never executed: case QMetaType::QVector3D:
0
1663 case QMetaType::QVector4D:
never executed: case QMetaType::QVector4D:
0
1664 case QMetaType::QQuaternion:
never executed: case QMetaType::QQuaternion:
0
1665 case QMetaType::QIcon:
never executed: case QMetaType::QIcon:
0
1666 if (!qMetaTypeGuiHelper)
!qMetaTypeGuiHelperDescription
TRUEnever evaluated
FALSEevaluated 124 times by 3 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QSettings
  • tst_QStandardItem
0-124
1667 return false;
never executed: return false;
0
1668 qMetaTypeGuiHelper[type - FirstGuiType].loadOp(stream, data);-
1669 break;
executed 124 times by 3 tests: break;
Executed by:
  • tst_QGuiVariant
  • tst_QSettings
  • tst_QStandardItem
124
1670 case QMetaType::QSizePolicy:
executed 1 time by 1 test: case QMetaType::QSizePolicy:
Executed by:
  • tst_QWidgetsVariant
1
1671 if (!qMetaTypeWidgetsHelper)
!qMetaTypeWidgetsHelperDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidgetsVariant
0-1
1672 return false;
never executed: return false;
0
1673 qMetaTypeWidgetsHelper[type - FirstWidgetsType].loadOp(stream, data);-
1674 break;
executed 1 time by 1 test: break;
Executed by:
  • tst_QWidgetsVariant
1
1675 case QMetaType::QUuid:
executed 5 times by 2 tests: case QMetaType::QUuid:
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1676 stream >> *static_cast< NS(QUuid)*>(data);-
1677 break;
executed 5 times by 2 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QVariant
5
1678 default: {
executed 8 times by 3 tests: default:
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
8
1679 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1680 if (!ct)
!ctDescription
TRUEnever evaluated
FALSEevaluated 8 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
0-8
1681 return false;
never executed: return false;
0
1682-
1683 LoadOperator loadOp = 0;-
1684 {-
1685 QReadLocker locker(customTypesLock());-
1686 loadOp = ct->at(type - User).loadOp;-
1687 }-
1688-
1689 if (!loadOp)
!loadOpDescription
TRUEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 6 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
2-6
1690 return false;
executed 2 times by 2 tests: return false;
Executed by:
  • tst_QMetaType
  • tst_QVariant
2
1691 loadOp(stream, data);-
1692 break; }
executed 6 times by 3 tests: break;
Executed by:
  • tst_QMetaType
  • tst_QObject
  • tst_QVariant
6
1693 }-
1694 return true;
executed 16436 times by 16 tests: return true;
Executed by:
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QDataStream
  • tst_QGuiVariant
  • tst_QListWidget
  • tst_QLocalSocket
  • tst_QMetaType
  • tst_QNetworkReply
  • tst_QObject
  • tst_QSettings
  • tst_QStandardItem
  • tst_QStandardItemModel
  • tst_QTableWidget
  • tst_QTreeWidget
  • tst_QVariant
  • tst_QWidgetsVariant
16436
1695}-
1696#endif // QT_NO_DATASTREAM-
1697-
1698/*!-
1699 Returns a copy of \a copy, assuming it is of type \a type. If \a-
1700 copy is zero, creates a default constructed instance.-
1701-
1702 \sa destroy(), isRegistered(), Type-
1703*/-
1704void *QMetaType::create(int type, const void *copy)-
1705{-
1706 QMetaType info(type);-
1707 if (int size = info.sizeOf())
int size = info.sizeOf()Description
TRUEevaluated 570705 times by 393 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
FALSEevaluated 123 times by 1 test
Evaluated by:
  • tst_QMetaType
123-570705
1708 return info.construct(operator new(size), copy);
executed 570705 times by 393 tests: return info.construct(operator new(size), copy);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
570705
1709 return 0;
executed 123 times by 1 test: return 0;
Executed by:
  • tst_QMetaType
123
1710}-
1711-
1712/*!-
1713 Destroys the \a data, assuming it is of the \a type given.-
1714-
1715 \sa create(), isRegistered(), Type-
1716*/-
1717void QMetaType::destroy(int type, void *data)-
1718{-
1719 QMetaType info(type);-
1720 info.destruct(data);-
1721 operator delete(data);-
1722}
executed 568477 times by 404 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
568477
1723-
1724namespace {-
1725class TypeConstructor {-
1726 template<typename T, bool IsAcceptedType = DefinedTypesFilter::Acceptor<T>::IsAccepted>-
1727 struct ConstructorImpl {-
1728 static void *Construct(const int /*type*/, void *where, const void *copy) { return QtMetaTypePrivate::QMetaTypeFunctionHelper<T>::Construct(where, copy); }
executed 282 times by 131 tests: return QtMetaTypePrivate::QMetaTypeFunctionHelper<T>::Construct(where, copy);
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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
282
1729 };-
1730 template<typename T>-
1731 struct ConstructorImpl<T, /* IsAcceptedType = */ false> {-
1732 static void *Construct(const int type, void *where, const void *copy)-
1733 {-
1734 if (QModulesPrivate::QTypeModuleInfo<T>::IsGui)
QModulesPrivat...Info<T>::IsGuiDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QGuiMetaType
FALSEnever evaluated
0-42
1735 return Q_LIKELY(qMetaTypeGuiHelper) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].constructor(where, copy) : 0;
executed 42 times by 1 test: return __builtin_expect(!!(qMetaTypeGuiHelper), true) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].constructor(where, copy) : 0;
Executed by:
  • tst_QGuiMetaType
42
1736-
1737 if (QModulesPrivate::QTypeModuleInfo<T>::IsWidget)
QModulesPrivat...o<T>::IsWidgetDescription
TRUEnever evaluated
FALSEnever evaluated
0
1738 return Q_LIKELY(qMetaTypeWidgetsHelper) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].constructor(where, copy) : 0;
never executed: return __builtin_expect(!!(qMetaTypeWidgetsHelper), true) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].constructor(where, copy) : 0;
0
1739-
1740 // This point can be reached only for known types that definition is not available, for example-
1741 // in bootstrap mode. We have no other choice then ignore it.-
1742 return 0;
never executed: return 0;
0
1743 }-
1744 };-
1745public:-
1746 TypeConstructor(const int type, void *where)-
1747 : m_type(type)-
1748 , m_where(where)-
1749 {}
executed 6328 times by 132 tests: end of block
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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
6328
1750-
1751 template<typename T>-
1752 void *delegate(const T *copy) { return ConstructorImpl<T>::Construct(m_type, m_where, copy); }
executed 324 times by 132 tests: return ConstructorImpl<T>::Construct(m_type, m_where, copy);
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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
324
1753 void *delegate(const void *) { return m_where; }
never executed: return m_where;
0
1754 void *delegate(const QMetaTypeSwitcher::UnknownType*) { return m_where; }
never executed: return m_where;
0
1755 void *delegate(const QMetaTypeSwitcher::NotBuiltinType *copy) { return customTypeConstructor(m_type, m_where, copy); }
executed 6004 times by 2 tests: return customTypeConstructor(m_type, m_where, copy);
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QMetaType
6004
1756-
1757private:-
1758 static void *customTypeConstructor(const int type, void *where, const void *copy)-
1759 {-
1760 QMetaType::Constructor ctor;-
1761 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1762 {-
1763 QReadLocker locker(customTypesLock());-
1764 if (Q_UNLIKELY(type < QMetaType::User || !ct || ct->count() <= type - QMetaType::User))
__builtin_expe...:User), false)Description
TRUEnever evaluated
FALSEevaluated 6004 times by 2 tests
Evaluated by:
  • tst_QDBusAbstractInterface
  • tst_QMetaType
0-6004
1765 return 0;
never executed: return 0;
0
1766 ctor = ct->at(type - QMetaType::User).constructor;-
1767 }-
1768 Q_ASSERT_X(ctor, "void *QMetaType::construct(int type, void *where, const void *copy)", "The type was not properly registered");-
1769 return ctor(where, copy);
executed 6004 times by 2 tests: return ctor(where, copy);
Executed by:
  • tst_QDBusAbstractInterface
  • tst_QMetaType
6004
1770 }-
1771-
1772 const int m_type;-
1773 void *m_where;-
1774};-
1775} // namespace-
1776-
1777/*!-
1778 \since 5.0-
1779-
1780 Constructs a value of the given \a type in the existing memory-
1781 addressed by \a where, that is a copy of \a copy, and returns-
1782 \a where. If \a copy is zero, the value is default constructed.-
1783-
1784 This is a low-level function for explicitly managing the memory-
1785 used to store the type. Consider calling create() if you don't-
1786 need this level of control (that is, use "new" rather than-
1787 "placement new").-
1788-
1789 You must ensure that \a where points to a location that can store-
1790 a value of type \a type, and that \a where is suitably aligned.-
1791 The type's size can be queried by calling sizeOf().-
1792-
1793 The rule of thumb for alignment is that a type is aligned to its-
1794 natural boundary, which is the smallest power of 2 that is bigger-
1795 than the type, unless that alignment is larger than the maximum-
1796 useful alignment for the platform. For practical purposes,-
1797 alignment larger than 2 * sizeof(void*) is only necessary for-
1798 special hardware instructions (e.g., aligned SSE loads and stores-
1799 on x86).-
1800-
1801 \sa destruct(), sizeOf()-
1802*/-
1803void *QMetaType::construct(int type, void *where, const void *copy)-
1804{-
1805 if (!where)
!whereDescription
TRUEevaluated 100 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 6328 times by 132 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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
100-6328
1806 return 0;
executed 100 times by 1 test: return 0;
Executed by:
  • tst_QMetaType
100
1807 TypeConstructor constructor(type, where);-
1808 return QMetaTypeSwitcher::switcher<void*>(constructor, type, copy);
executed 6328 times by 132 tests: return QMetaTypeSwitcher::switcher<void*>(constructor, type, copy);
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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
6328
1809}-
1810-
1811-
1812namespace {-
1813class TypeDestructor {-
1814 template<typename T, bool IsAcceptedType = DefinedTypesFilter::Acceptor<T>::IsAccepted>-
1815 struct DestructorImpl {-
1816 static void Destruct(const int /* type */, void *where) { QtMetaTypePrivate::QMetaTypeFunctionHelper<T>::Destruct(where); }
executed 282 times by 131 tests: end of block
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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
282
1817 };-
1818 template<typename T>-
1819 struct DestructorImpl<T, /* IsAcceptedType = */ false> {-
1820 static void Destruct(const int type, void *where)-
1821 {-
1822 if (QModulesPrivate::QTypeModuleInfo<T>::IsGui) {
QModulesPrivat...Info<T>::IsGuiDescription
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QGuiMetaType
FALSEnever evaluated
0-42
1823 if (Q_LIKELY(qMetaTypeGuiHelper))
__builtin_expe...Helper), true)Description
TRUEevaluated 42 times by 1 test
Evaluated by:
  • tst_QGuiMetaType
FALSEnever evaluated
0-42
1824 qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].destructor(where);
executed 42 times by 1 test: qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].destructor(where);
Executed by:
  • tst_QGuiMetaType
42
1825 return;
executed 42 times by 1 test: return;
Executed by:
  • tst_QGuiMetaType
42
1826 }-
1827 if (QModulesPrivate::QTypeModuleInfo<T>::IsWidget) {
QModulesPrivat...o<T>::IsWidgetDescription
TRUEnever evaluated
FALSEnever evaluated
0
1828 if (Q_LIKELY(qMetaTypeWidgetsHelper))
__builtin_expe...Helper), true)Description
TRUEnever evaluated
FALSEnever evaluated
0
1829 qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].destructor(where);
never executed: qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].destructor(where);
0
1830 return;
never executed: return;
0
1831 }-
1832 // This point can be reached only for known types that definition is not available, for example-
1833 // in bootstrap mode. We have no other choice then ignore it.-
1834 }
never executed: end of block
0
1835 };-
1836public:-
1837 TypeDestructor(const int type)-
1838 : m_type(type)-
1839 {}
executed 152969 times by 225 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
152969
1840-
1841 template<typename T>-
1842 void delegate(const T *where) { DestructorImpl<T>::Destruct(m_type, const_cast<T*>(where)); }
executed 324 times by 132 tests: end of block
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_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • ...
324
1843 void delegate(const void *) {}-
1844 void delegate(const QMetaTypeSwitcher::UnknownType*) {}-
1845 void delegate(const QMetaTypeSwitcher::NotBuiltinType *where)-
1846 { customTypeDestructor(m_type, const_cast<void *>(static_cast<const void *>(where))); }
executed 152645 times by 144 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
152645
1847-
1848private:-
1849 static void customTypeDestructor(const int type, void *where)-
1850 {-
1851 QMetaType::Destructor dtor;-
1852 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1853 {-
1854 QReadLocker locker(customTypesLock());-
1855 if (Q_UNLIKELY(type < QMetaType::User || !ct || ct->count() <= type - QMetaType::User))
__builtin_expe...:User), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_qdbusinterface - unknown status
FALSEevaluated 152644 times by 144 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
1-152644
1856 return;
executed 1 time by 1 test: return;
Executed by:
  • tst_qdbusinterface - unknown status
1
1857 dtor = ct->at(type - QMetaType::User).destructor;-
1858 }-
1859 Q_ASSERT_X(dtor, "void QMetaType::destruct(int type, void *where)", "The type was not properly registered");-
1860 dtor(where);-
1861 }
executed 152644 times by 144 tests: end of block
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemModel
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAction
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QClipboard
  • tst_QCompleter
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusMetaType
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • ...
152644
1862-
1863 const int m_type;-
1864};-
1865} // namespace-
1866-
1867/*!-
1868 \since 5.0-
1869-
1870 Destructs the value of the given \a type, located at \a where.-
1871-
1872 Unlike destroy(), this function only invokes the type's-
1873 destructor, it doesn't invoke the delete operator.-
1874-
1875 \sa construct()-
1876*/-
1877void QMetaType::destruct(int type, void *where)-
1878{-
1879 if (!where)
!whereDescription
TRUEevaluated 51 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 152969 times by 225 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_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
51-152969
1880 return;
executed 51 times by 1 test: return;
Executed by:
  • tst_QMetaType
51
1881 TypeDestructor destructor(type);-
1882 QMetaTypeSwitcher::switcher<void>(destructor, type, where);-
1883}
executed 152969 times by 225 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_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QClipboard
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • ...
152969
1884-
1885-
1886namespace {-
1887class SizeOf {-
1888 template<typename T, bool IsAcceptedType = DefinedTypesFilter::Acceptor<T>::IsAccepted>-
1889 struct SizeOfImpl {-
1890 static int Size(const int) { return QTypeInfo<T>::sizeOf; }
executed 99 times by 1 test: return QTypeInfo<T>::sizeOf;
Executed by:
  • tst_QMetaType
99
1891 };-
1892 template<typename T>-
1893 struct SizeOfImpl<T, /* IsAcceptedType = */ false> {-
1894 static int Size(const int type)-
1895 {-
1896 if (QModulesPrivate::QTypeModuleInfo<T>::IsGui)
QModulesPrivat...Info<T>::IsGuiDescription
TRUEevaluated 63 times by 1 test
Evaluated by:
  • tst_QGuiMetaType
FALSEnever evaluated
0-63
1897 return Q_LIKELY(qMetaTypeGuiHelper) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].size : 0;
executed 63 times by 1 test: return __builtin_expect(!!(qMetaTypeGuiHelper), true) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].size : 0;
Executed by:
  • tst_QGuiMetaType
63
1898-
1899 if (QModulesPrivate::QTypeModuleInfo<T>::IsWidget)
QModulesPrivat...o<T>::IsWidgetDescription
TRUEnever evaluated
FALSEnever evaluated
0
1900 return Q_LIKELY(qMetaTypeWidgetsHelper) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].size : 0;
never executed: return __builtin_expect(!!(qMetaTypeWidgetsHelper), true) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].size : 0;
0
1901-
1902 // This point can be reached only for known types that definition is not available, for example-
1903 // in bootstrap mode. We have no other choice then ignore it.-
1904 return 0;
never executed: return 0;
0
1905 }-
1906 };-
1907-
1908public:-
1909 SizeOf(int type)-
1910 : m_type(type)-
1911 {}
executed 556 times by 23 tests: end of block
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QGuiMetaType
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
556
1912-
1913 template<typename T>-
1914 int delegate(const T*) { return SizeOfImpl<T>::Size(m_type); }
executed 162 times by 2 tests: return SizeOfImpl<T>::Size(m_type);
Executed by:
  • tst_QGuiMetaType
  • tst_QMetaType
162
1915 int delegate(const QMetaTypeSwitcher::UnknownType*) { return 0; }
executed 3 times by 1 test: return 0;
Executed by:
  • tst_QMetaType
3
1916 int delegate(const QMetaTypeSwitcher::NotBuiltinType*) { return customTypeSizeOf(m_type); }
executed 391 times by 22 tests: return customTypeSizeOf(m_type);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
391
1917private:-
1918 static int customTypeSizeOf(const int type)-
1919 {-
1920 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1921 QReadLocker locker(customTypesLock());-
1922 if (Q_UNLIKELY(type < QMetaType::User || !ct || ct->count() <= type - QMetaType::User))
__builtin_expe...:User), false)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 390 times by 22 tests
Evaluated by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
1-390
1923 return 0;
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QMetaType
1
1924 return ct->at(type - QMetaType::User).size;
executed 390 times by 22 tests: return ct->at(type - QMetaType::User).size;
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
390
1925 }-
1926-
1927 const int m_type;-
1928};-
1929} // namespace-
1930-
1931/*!-
1932 \since 5.0-
1933-
1934 Returns the size of the given \a type in bytes (i.e. sizeof(T),-
1935 where T is the actual type identified by the \a type argument).-
1936-
1937 This function is typically used together with construct()-
1938 to perform low-level management of the memory used by a type.-
1939-
1940 \sa construct()-
1941*/-
1942int QMetaType::sizeOf(int type)-
1943{-
1944 SizeOf sizeOf(type);-
1945 return QMetaTypeSwitcher::switcher<int>(sizeOf, type, 0);
executed 556 times by 23 tests: return QMetaTypeSwitcher::switcher<int>(sizeOf, type, 0);
Executed by:
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QFtp
  • tst_QGuiMetaType
  • tst_QIdentityProxyModel
  • tst_QMetaType
  • tst_QNetworkRequest
  • tst_QPrinter
  • tst_QPropertyAnimation
  • tst_QVariant
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_selftests - unknown status
556
1946}-
1947-
1948namespace {-
1949class Flags-
1950{-
1951 template<typename T, bool IsAcceptedType = DefinedTypesFilter::Acceptor<T>::IsAccepted>-
1952 struct FlagsImpl-
1953 {-
1954 static quint32 Flags(const int /* type */)-
1955 {-
1956 return QtPrivate::QMetaTypeTypeFlags<T>::Flags;
executed 32936 times by 54 tests: return QtPrivate::QMetaTypeTypeFlags<T>::Flags;
Executed by:
  • tst_Gestures
  • tst_QAccessibility
  • tst_QComboBox
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsObject
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsSceneIndex
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiVariant
  • tst_QItemDelegate
  • ...
32936
1957 }-
1958 };-
1959 template<typename T>-
1960 struct FlagsImpl<T, /* IsAcceptedType = */ false>-
1961 {-
1962 static quint32 Flags(const int type)-
1963 {-
1964 if (QModulesPrivate::QTypeModuleInfo<T>::IsGui)
QModulesPrivat...Info<T>::IsGuiDescription
TRUEevaluated 242426 times by 62 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • ...
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QWidgetsVariant
8-242426
1965 return Q_LIKELY(qMetaTypeGuiHelper) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].flags : 0;
executed 242426 times by 62 tests: return __builtin_expect(!!(qMetaTypeGuiHelper), true) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].flags : 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDataWidgetMapper
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiApplication
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QLabel
  • ...
242426
1966-
1967 if (QModulesPrivate::QTypeModuleInfo<T>::IsWidget)
QModulesPrivat...o<T>::IsWidgetDescription
TRUEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QWidgetsVariant
FALSEnever evaluated
0-8
1968 return Q_LIKELY(qMetaTypeWidgetsHelper) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].flags : 0;
executed 8 times by 2 tests: return __builtin_expect(!!(qMetaTypeWidgetsHelper), true) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].flags : 0;
Executed by:
  • tst_QMetaType
  • tst_QWidgetsVariant
8
1969-
1970 // This point can be reached only for known types that definition is not available, for example-
1971 // in bootstrap mode. We have no other choice then ignore it.-
1972 return 0;
never executed: return 0;
0
1973 }-
1974 };-
1975public:-
1976 Flags(const int type)-
1977 : m_type(type)-
1978 {}
executed 312026 times by 121 tests: end of block
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
312026
1979 template<typename T>-
1980 quint32 delegate(const T*) { return FlagsImpl<T>::Flags(m_type); }
executed 275370 times by 95 tests: return FlagsImpl<T>::Flags(m_type);
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusMarshall
  • tst_QDataWidgetMapper
  • tst_QDialog
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • tst_QGraphicsLinearLayout
  • ...
275370
1981 quint32 delegate(const void*) { return 0; }
executed 1 time by 1 test: return 0;
Executed by:
  • tst_QMetaType
1
1982 quint32 delegate(const QMetaTypeSwitcher::UnknownType*) { return 0; }
executed 15 times by 4 tests: return 0;
Executed by:
  • tst_QMetaType
  • tst_QPropertyAnimation
  • tst_QStyleSheetStyle
  • tst_QVariant
15
1983 quint32 delegate(const QMetaTypeSwitcher::NotBuiltinType*) { return customTypeFlags(m_type); }
executed 36640 times by 56 tests: return customTypeFlags(m_type);
Executed by:
  • tst_Gestures
  • tst_QAbstractProxyModel
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
36640
1984private:-
1985 const int m_type;-
1986 static quint32 customTypeFlags(const int type)-
1987 {-
1988 const QVector<QCustomTypeInfo> * const ct = customTypes();-
1989 if (Q_UNLIKELY(!ct || type < QMetaType::User))
__builtin_expe...:User), false)Description
TRUEnever evaluated
FALSEevaluated 36640 times by 56 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractProxyModel
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
0-36640
1990 return 0;
never executed: return 0;
0
1991 QReadLocker locker(customTypesLock());-
1992 if (Q_UNLIKELY(ct->count() <= type - QMetaType::User))
__builtin_expe...:User), false)Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
FALSEevaluated 36610 times by 56 tests
Evaluated by:
  • tst_Gestures
  • tst_QAbstractProxyModel
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
30-36610
1993 return 0;
executed 30 times by 2 tests: return 0;
Executed by:
  • tst_QMetaType
  • tst_QVariant
30
1994 return ct->at(type - QMetaType::User).flags;
executed 36610 times by 56 tests: return ct->at(type - QMetaType::User).flags;
Executed by:
  • tst_Gestures
  • tst_QAbstractProxyModel
  • tst_QApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDialog
  • tst_QDialogButtonBox
  • tst_QGraphicsAnchorLayout
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsGridLayout
  • tst_QGraphicsItem
  • tst_QGraphicsLayout
  • ...
36610
1995 }-
1996};-
1997} // namespace-
1998-
1999/*!-
2000 \since 5.0-
2001-
2002 Returns flags of the given \a type.-
2003-
2004 \sa QMetaType::TypeFlags-
2005*/-
2006QMetaType::TypeFlags QMetaType::typeFlags(int type)-
2007{-
2008 Flags flags(type);-
2009 return static_cast<QMetaType::TypeFlags>(QMetaTypeSwitcher::switcher<quint32>(flags, type, 0));
executed 312026 times by 121 tests: return static_cast<QMetaType::TypeFlags>(QMetaTypeSwitcher::switcher<quint32>(flags, type, 0));
Executed by:
  • tst_Gestures
  • tst_QAbstractItemView
  • tst_QAbstractProxyModel
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QApplication
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCompleter
  • tst_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • tst_QDBusConnection
  • tst_QDBusConnection_Delayed
  • tst_QDBusConnection_NoApplication
  • tst_QDBusConnection_SpyHook
  • tst_QDBusContext
  • tst_QDBusInterface
  • tst_QDBusLocalCalls
  • tst_QDBusMarshall
  • tst_QDBusPendingCall
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDBusThreading
  • tst_QDataWidgetMapper
  • ...
312026
2010}-
2011-
2012#ifndef QT_BOOTSTRAPPED-
2013namespace {-
2014class MetaObject-
2015{-
2016public:-
2017 MetaObject(const int type)-
2018 : m_type(type)-
2019 {}
executed 32 times by 3 tests: end of block
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetMetaType
32
2020-
2021 template<typename T, bool IsAcceptedType = DefinedTypesFilter::Acceptor<T>::IsAccepted>-
2022 struct MetaObjectImpl-
2023 {-
2024 static const QMetaObject *MetaObject(int /*type*/)-
2025 { return QtPrivate::MetaObjectForType<T>::value(); }
executed 3 times by 1 test: return QtPrivate::MetaObjectForType<T>::value();
Executed by:
  • tst_QMetaType
3
2026 };-
2027 template<typename T>-
2028 struct MetaObjectImpl<T, /* IsAcceptedType = */ false>-
2029 {-
2030 static const QMetaObject *MetaObject(int type) {-
2031 if (QModulesPrivate::QTypeModuleInfo<T>::IsGui)
QModulesPrivat...Info<T>::IsGuiDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidgetMetaType
0-1
2032 return Q_LIKELY(qMetaTypeGuiHelper) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].metaObject : 0;
never executed: return __builtin_expect(!!(qMetaTypeGuiHelper), true) ? qMetaTypeGuiHelper[type - QMetaType::FirstGuiType].metaObject : 0;
0
2033 if (QModulesPrivate::QTypeModuleInfo<T>::IsWidget)
QModulesPrivat...o<T>::IsWidgetDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QWidgetMetaType
FALSEnever evaluated
0-1
2034 return Q_LIKELY(qMetaTypeWidgetsHelper) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].metaObject : 0;
executed 1 time by 1 test: return __builtin_expect(!!(qMetaTypeWidgetsHelper), true) ? qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType].metaObject : 0;
Executed by:
  • tst_QWidgetMetaType
1
2035 return 0;
never executed: return 0;
0
2036 }-
2037 };-
2038-
2039 template <typename T>-
2040 const QMetaObject *delegate(const T *) { return MetaObjectImpl<T>::MetaObject(m_type); }
executed 4 times by 2 tests: return MetaObjectImpl<T>::MetaObject(m_type);
Executed by:
  • tst_QMetaType
  • tst_QWidgetMetaType
4
2041 const QMetaObject *delegate(const void*) { return 0; }
never executed: return 0;
0
2042 const QMetaObject *delegate(const QMetaTypeSwitcher::UnknownType*) { return 0; }
never executed: return 0;
0
2043 const QMetaObject *delegate(const QMetaTypeSwitcher::NotBuiltinType*) { return customMetaObject(m_type); }
executed 28 times by 3 tests: return customMetaObject(m_type);
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetMetaType
28
2044private:-
2045 const int m_type;-
2046 static const QMetaObject *customMetaObject(const int type)-
2047 {-
2048 const QVector<QCustomTypeInfo> * const ct = customTypes();-
2049 if (Q_UNLIKELY(!ct || type < QMetaType::User))
__builtin_expe...:User), false)Description
TRUEnever evaluated
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetMetaType
0-28
2050 return 0;
never executed: return 0;
0
2051 QReadLocker locker(customTypesLock());-
2052 if (Q_UNLIKELY(ct->count() <= type - QMetaType::User))
__builtin_expe...:User), false)Description
TRUEnever evaluated
FALSEevaluated 28 times by 3 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetMetaType
0-28
2053 return 0;
never executed: return 0;
0
2054 return ct->at(type - QMetaType::User).metaObject;
executed 28 times by 3 tests: return ct->at(type - QMetaType::User).metaObject;
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetMetaType
28
2055 }-
2056};-
2057} // namespace-
2058#endif-
2059-
2060/*!-
2061 \since 5.0-
2062-
2063 returns QMetaType::metaObject for \a type-
2064-
2065 \sa metaObject()-
2066*/-
2067const QMetaObject *QMetaType::metaObjectForType(int type)-
2068{-
2069#ifndef QT_BOOTSTRAPPED-
2070 MetaObject mo(type);-
2071 return QMetaTypeSwitcher::switcher<const QMetaObject*>(mo, type, 0);
executed 32 times by 3 tests: return QMetaTypeSwitcher::switcher<const QMetaObject*>(mo, type, 0);
Executed by:
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetMetaType
32
2072#else-
2073 Q_UNUSED(type);-
2074 return 0;-
2075#endif-
2076}-
2077-
2078/*!-
2079 \fn int qRegisterMetaType(const char *typeName)-
2080 \relates QMetaType-
2081 \threadsafe-
2082-
2083 Registers the type name \a typeName for the type \c{T}. Returns-
2084 the internal ID used by QMetaType. Any class or struct that has a-
2085 public default constructor, a public copy constructor and a public-
2086 destructor can be registered.-
2087-
2088 This function requires that \c{T} is a fully defined type at the point-
2089 where the function is called. For pointer types, it also requires that the-
2090 pointed to type is fully defined. Use Q_DECLARE_OPAQUE_POINTER() to be able-
2091 to register pointers to forward declared types.-
2092-
2093 After a type has been registered, you can create and destroy-
2094 objects of that type dynamically at run-time.-
2095-
2096 This example registers the class \c{MyClass}:-
2097-
2098 \snippet code/src_corelib_kernel_qmetatype.cpp 4-
2099-
2100 This function is useful to register typedefs so they can be used-
2101 by QMetaProperty, or in QueuedConnections-
2102-
2103 \snippet code/src_corelib_kernel_qmetatype.cpp 9-
2104-
2105 \warning This function is useful only for registering an alias (typedef)-
2106 for every other use case Q_DECLARE_METATYPE and qMetaTypeId() should be used instead.-
2107-
2108 \sa {QMetaType::}{qRegisterMetaTypeStreamOperators()}, {QMetaType::}{isRegistered()},-
2109 Q_DECLARE_METATYPE()-
2110*/-
2111-
2112/*!-
2113 \fn void qRegisterMetaTypeStreamOperators(const char *typeName)-
2114 \relates QMetaType-
2115 \threadsafe-
2116-
2117 Registers the stream operators for the type \c{T} called \a-
2118 typeName.-
2119-
2120 Afterward, the type can be streamed using QMetaType::load() and-
2121 QMetaType::save(). These functions are used when streaming a-
2122 QVariant.-
2123-
2124 \snippet code/src_corelib_kernel_qmetatype.cpp 5-
2125-
2126 The stream operators should have the following signatures:-
2127-
2128 \snippet code/src_corelib_kernel_qmetatype.cpp 6-
2129-
2130 \sa qRegisterMetaType(), QMetaType::isRegistered(), Q_DECLARE_METATYPE()-
2131*/-
2132-
2133/*! \typedef QMetaType::Deleter-
2134 \internal-
2135*/-
2136/*! \typedef QMetaType::Creator-
2137 \internal-
2138*/-
2139/*! \typedef QMetaType::SaveOperator-
2140 \internal-
2141*/-
2142/*! \typedef QMetaType::LoadOperator-
2143 \internal-
2144*/-
2145/*! \typedef QMetaType::Destructor-
2146 \internal-
2147*/-
2148/*! \typedef QMetaType::Constructor-
2149 \internal-
2150*/-
2151-
2152/*!-
2153 \fn int qRegisterMetaType()-
2154 \relates QMetaType-
2155 \threadsafe-
2156 \since 4.2-
2157-
2158 Call this function to register the type \c T. \c T must be declared with-
2159 Q_DECLARE_METATYPE(). Returns the meta type Id.-
2160-
2161 Example:-
2162-
2163 \snippet code/src_corelib_kernel_qmetatype.cpp 7-
2164-
2165 This function requires that \c{T} is a fully defined type at the point-
2166 where the function is called. For pointer types, it also requires that the-
2167 pointed to type is fully defined. Use Q_DECLARE_OPAQUE_POINTER() to be able-
2168 to register pointers to forward declared types.-
2169-
2170 After a type has been registered, you can create and destroy-
2171 objects of that type dynamically at run-time.-
2172-
2173 To use the type \c T in QVariant, using Q_DECLARE_METATYPE() is-
2174 sufficient. To use the type \c T in queued signal and slot connections,-
2175 \c{qRegisterMetaType<T>()} must be called before the first connection-
2176 is established.-
2177-
2178 Also, to use type \c T with the QObject::property() API,-
2179 \c{qRegisterMetaType<T>()} must be called before it is used, typically-
2180 in the constructor of the class that uses \c T, or in the \c{main()}-
2181 function.-
2182-
2183 \sa Q_DECLARE_METATYPE()-
2184 */-
2185-
2186/*!-
2187 \fn int qMetaTypeId()-
2188 \relates QMetaType-
2189 \threadsafe-
2190 \since 4.1-
2191-
2192 Returns the meta type id of type \c T at compile time. If the-
2193 type was not declared with Q_DECLARE_METATYPE(), compilation will-
2194 fail.-
2195-
2196 Typical usage:-
2197-
2198 \snippet code/src_corelib_kernel_qmetatype.cpp 8-
2199-
2200 QMetaType::type() returns the same ID as qMetaTypeId(), but does-
2201 a lookup at runtime based on the name of the type.-
2202 QMetaType::type() is a bit slower, but compilation succeeds if a-
2203 type is not registered.-
2204-
2205 \sa Q_DECLARE_METATYPE(), QMetaType::type()-
2206*/-
2207-
2208namespace {-
2209class TypeInfo {-
2210 template<typename T, bool IsAcceptedType = DefinedTypesFilter::Acceptor<T>::IsAccepted>-
2211 struct TypeInfoImpl-
2212 {-
2213 TypeInfoImpl(const uint /* type */, QMetaTypeInterface &info)-
2214 {-
2215 QMetaTypeInterface tmp = QT_METATYPE_INTERFACE_INIT_NO_DATASTREAM(T);-
2216 info = tmp;-
2217 }
executed 765698 times by 388 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
765698
2218 };-
2219-
2220 template<typename T>-
2221 struct TypeInfoImpl<T, /* IsAcceptedType = */ false>-
2222 {-
2223 TypeInfoImpl(const uint type, QMetaTypeInterface &info)-
2224 {-
2225 if (QModulesPrivate::QTypeModuleInfo<T>::IsGui) {
QModulesPrivat...Info<T>::IsGuiDescription
TRUEevaluated 9958 times by 40 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColor
  • tst_QCssParser
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • tst_QGraphicsScene
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMetaType
  • ...
FALSEevaluated 34632 times by 4 tests
Evaluated by:
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsLayoutItem
  • tst_QMetaType
  • tst_QSizePolicy
9958-34632
2226 if (Q_LIKELY(qMetaTypeGuiHelper))
__builtin_expe...Helper), true)Description
TRUEevaluated 9912 times by 39 tests
Evaluated by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColor
  • tst_QCssParser
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • tst_QGraphicsScene
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QPainter
  • ...
FALSEevaluated 46 times by 1 test
Evaluated by:
  • tst_QMetaType
46-9912
2227 info = qMetaTypeGuiHelper[type - QMetaType::FirstGuiType];
executed 9912 times by 39 tests: info = qMetaTypeGuiHelper[type - QMetaType::FirstGuiType];
Executed by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColor
  • tst_QCssParser
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • tst_QGraphicsScene
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QPainter
  • ...
9912
2228 return;
executed 9958 times by 40 tests: return;
Executed by:
  • tst_QAccessibility
  • tst_QBrush
  • tst_QColor
  • tst_QCssParser
  • tst_QFont
  • tst_QFontComboBox
  • tst_QFontMetrics
  • tst_QGraphicsItem
  • tst_QGraphicsPixmapItem
  • tst_QGraphicsPolygonItem
  • tst_QGraphicsScene
  • tst_QGraphicsTransform
  • tst_QGraphicsView
  • tst_QGraphicsWidget
  • tst_QGuiMetaType
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImage
  • tst_QImageReader
  • tst_QImageWriter
  • tst_QItemDelegate
  • tst_QKeySequence
  • tst_QKeySequenceEdit
  • tst_QLineEdit
  • tst_QMetaType
  • ...
9958
2229 }-
2230 if (QModulesPrivate::QTypeModuleInfo<T>::IsWidget) {
QModulesPrivat...o<T>::IsWidgetDescription
TRUEevaluated 34632 times by 4 tests
Evaluated by:
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsLayoutItem
  • tst_QMetaType
  • tst_QSizePolicy
FALSEnever evaluated
0-34632
2231 if (Q_LIKELY(qMetaTypeWidgetsHelper))
__builtin_expe...Helper), true)Description
TRUEevaluated 34630 times by 3 tests
Evaluated by:
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsLayoutItem
  • tst_QSizePolicy
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QMetaType
2-34630
2232 info = qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType];
executed 34630 times by 3 tests: info = qMetaTypeWidgetsHelper[type - QMetaType::FirstWidgetsType];
Executed by:
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsLayoutItem
  • tst_QSizePolicy
34630
2233 return;
executed 34632 times by 4 tests: return;
Executed by:
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsLayoutItem
  • tst_QMetaType
  • tst_QSizePolicy
34632
2234 }-
2235 }
never executed: end of block
0
2236 };-
2237public:-
2238 QMetaTypeInterface info;-
2239 TypeInfo(const uint type)-
2240 : m_type(type)-
2241 {-
2242 QMetaTypeInterface tmp = QT_METATYPE_INTERFACE_INIT_EMPTY();-
2243 info = tmp;-
2244 }
executed 1251444 times by 414 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2245 template<typename T>-
2246 void delegate(const T*) { TypeInfoImpl<T>(m_type, info); }
executed 810288 times by 389 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • tst_QAtomicInteger_char16_t
  • ...
810288
2247 void delegate(const QMetaTypeSwitcher::UnknownType*) {}-
2248 void delegate(const QMetaTypeSwitcher::NotBuiltinType*) { customTypeInfo(m_type); }
executed 441138 times by 296 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
441138
2249private:-
2250 void customTypeInfo(const uint type)-
2251 {-
2252 const QVector<QCustomTypeInfo> * const ct = customTypes();-
2253 if (Q_UNLIKELY(!ct))
__builtin_expe...!(!ct), false)Description
TRUEnever evaluated
FALSEevaluated 441138 times by 296 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_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
0-441138
2254 return;
never executed: return;
0
2255 QReadLocker locker(customTypesLock());-
2256 if (Q_LIKELY(uint(ct->count()) > type - QMetaType::User))
__builtin_expe...::User), true)Description
TRUEevaluated 441104 times by 296 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_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
FALSEevaluated 34 times by 2 tests
Evaluated by:
  • tst_QMetaType
  • tst_QVariant
34-441104
2257 info = ct->at(type - QMetaType::User);
executed 441104 times by 296 tests: info = ct->at(type - QMetaType::User);
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_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
441104
2258 }
executed 441138 times by 296 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_QAlgorithms
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QArrayData
  • tst_QArrayData_StrictIterators
  • tst_QAsn1Element
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • ...
441138
2259-
2260 const uint m_type;-
2261};-
2262} // namespace-
2263-
2264/*!-
2265 \fn QMetaType QMetaType::typeInfo(const int type)-
2266 \internal-
2267*/-
2268QMetaType QMetaType::typeInfo(const int type)-
2269{-
2270 TypeInfo typeInfo(type);-
2271 QMetaTypeSwitcher::switcher<void>(typeInfo, type, 0);-
2272 return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx)
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2273 , static_cast<const QMetaTypeInterface *>(0) // typeInfo::info is a temporary variable, we can't return address of it.
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2274 , 0 // unused
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2275 , 0 // unused
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2276 , typeInfo.info.saveOp
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2277 , typeInfo.info.loadOp
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2278 , typeInfo.info.constructor
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2279 , typeInfo.info.destructor
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2280 , typeInfo.info.size
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2281 , typeInfo.info.flags
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2282 , type
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2283 , typeInfo.info.metaObject)
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2284 : QMetaType(UnknownType);
executed 1251444 times by 414 tests: return typeInfo.info.constructor ? QMetaType(static_cast<ExtensionFlag>(QMetaType::CreateEx | QMetaType::DestroyEx) , static_cast<const QMetaTypeInterface *>(0) , 0 , 0 , typeInfo.info.saveOp , typeInfo.info.loadOp , typeInfo.info.constructor , typeInfo.info.destructor , typeInfo.info.size , typeInfo.info.flags , type , typeInfo.info.metaObject) : QMetaType(UnknownType);
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2285}-
2286-
2287/*!-
2288 \fn QMetaType::QMetaType(const int typeId)-
2289 \since 5.0-
2290-
2291 Constructs a QMetaType object that contains all information about type \a typeId.-
2292*/-
2293QMetaType::QMetaType(const int typeId)-
2294 : m_typeId(typeId)-
2295{-
2296 if (Q_UNLIKELY(typeId == UnknownType)) {
__builtin_expe...nType), false)Description
TRUEevaluated 21397 times by 56 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
FALSEevaluated 1251444 times by 414 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
21397-1251444
2297 // Constructs invalid QMetaType instance.-
2298 m_extensionFlags = 0xffffffff;-
2299 Q_ASSERT(!isValid());-
2300 } else {
executed 21397 times by 56 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QGuiVariant
  • tst_QHeaderView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • ...
21397
2301 // TODO it can be better.-
2302 *this = QMetaType::typeInfo(typeId);-
2303 if (m_typeId == UnknownType)
m_typeId == UnknownTypeDescription
TRUEevaluated 100 times by 4 tests
Evaluated by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
FALSEevaluated 1251344 times by 414 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
100-1251344
2304 m_extensionFlags = 0xffffffff;
executed 100 times by 4 tests: m_extensionFlags = 0xffffffff;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
100
2305 else if (m_typeId == QMetaType::Void)
m_typeId == QMetaType::VoidDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • tst_QMetaType
FALSEevaluated 1251336 times by 414 tests
Evaluated by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
8-1251336
2306 m_extensionFlags = CreateEx | DestroyEx | ConstructEx | DestructEx;
executed 8 times by 1 test: m_extensionFlags = CreateEx | DestroyEx | ConstructEx | DestructEx;
Executed by:
  • tst_QMetaType
8
2307 }
executed 1251444 times by 414 tests: end of block
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2308}-
2309-
2310/*!-
2311 \fn QMetaType::QMetaType(const QMetaType &other)-
2312 \since 5.0-
2313-
2314 Copy constructs a QMetaType object.-
2315*/-
2316QMetaType::QMetaType(const QMetaType &other)-
2317 : m_creator_unused(other.m_creator_unused)-
2318 , m_deleter_unused(other.m_deleter_unused)-
2319 , m_saveOp(other.m_saveOp)-
2320 , m_loadOp(other.m_loadOp)-
2321 , m_constructor(other.m_constructor)-
2322 , m_destructor(other.m_destructor)-
2323 , m_extension(other.m_extension) // space reserved for future use-
2324 , m_size(other.m_size)-
2325 , m_typeFlags(other.m_typeFlags)-
2326 , m_extensionFlags(other.m_extensionFlags)-
2327 , m_typeId(other.m_typeId)-
2328 , m_metaObject(other.m_metaObject)-
2329{}
never executed: end of block
0
2330-
2331QMetaType &QMetaType::operator =(const QMetaType &other)-
2332{-
2333 m_creator_unused = other.m_creator_unused;-
2334 m_deleter_unused = other.m_deleter_unused;-
2335 m_saveOp = other.m_saveOp;-
2336 m_loadOp = other.m_loadOp;-
2337 m_constructor = other.m_constructor;-
2338 m_destructor = other.m_destructor;-
2339 m_size = other.m_size;-
2340 m_typeFlags = other.m_typeFlags;-
2341 m_extensionFlags = other.m_extensionFlags;-
2342 m_extension = other.m_extension; // space reserved for future use-
2343 m_typeId = other.m_typeId;-
2344 m_metaObject = other.m_metaObject;-
2345 return *this;
executed 1251444 times by 414 tests: return *this;
Executed by:
  • tst_Collections
  • tst_Gestures
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • 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_QAsn1Element
  • tst_QAtomicInt
  • tst_QAtomicInteger_char
  • ...
1251444
2346}-
2347-
2348/*!-
2349 \fn void QMetaType::ctor(const QMetaTypeInterface *info)-
2350 \internal-
2351-
2352 Method used for future binary compatible extensions. The function may be-
2353 called from within QMetaType's constructor to force a library call from-
2354 inlined code.-
2355*/-
2356void QMetaType::ctor(const QMetaTypeInterface *info)-
2357{-
2358 // Special case for Void type, the type is valid but not constructible.-
2359 // In future we may consider to remove this assert and extend this function to initialize-
2360 // differently m_extensionFlags for different types. Currently it is not needed.-
2361 Q_ASSERT(m_typeId == QMetaType::Void);-
2362 Q_UNUSED(info);-
2363 m_extensionFlags = CreateEx | DestroyEx | ConstructEx | DestructEx;-
2364}
executed 8 times by 1 test: end of block
Executed by:
  • tst_QMetaType
8
2365-
2366/*!-
2367 \fn void QMetaType::dtor()-
2368 \internal-
2369-
2370 Method used for future binary compatible extensions. The function may be-
2371 called from within QMetaType's destructor to force a library call from-
2372 inlined code.-
2373*/-
2374void QMetaType::dtor()-
2375{}-
2376-
2377/*!-
2378 \fn void *QMetaType::createExtended(const void *copy) const-
2379 \internal-
2380-
2381 Method used for future binary compatible extensions. The function may be called-
2382 during QMetaType::create to force library call from inlined code.-
2383-
2384 ### TODO Qt6 remove the extension-
2385*/-
2386void *QMetaType::createExtended(const void *copy) const-
2387{-
2388 if (m_typeId == QMetaType::UnknownType)
m_typeId == QM...e::UnknownTypeDescription
TRUEnever evaluated
FALSEevaluated 3893 times by 174 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_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
0-3893
2389 return 0;
never executed: return 0;
0
2390 return m_constructor(operator new(m_size), copy);
executed 3893 times by 174 tests: return m_constructor(operator new(m_size), copy);
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_QCssParser
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
3893
2391}-
2392-
2393/*!-
2394 \fn void QMetaType::destroyExtended(void *data) const-
2395 \internal-
2396-
2397 Method used for future binary compatible extensions. The function may be called-
2398 during QMetaType::destroy to force library call from inlined code.-
2399-
2400 ### TODO Qt6 remove the extension-
2401*/-
2402void QMetaType::destroyExtended(void *data) const-
2403{-
2404 m_destructor(data);-
2405 operator delete(data);-
2406}
executed 6096 times by 1 test: end of block
Executed by:
  • tst_QMetaType
6096
2407-
2408/*!-
2409 \fn void *QMetaType::constructExtended(void *where, const void *copy) const-
2410 \internal-
2411-
2412 Method used for future binary compatible extensions. The function may be called-
2413 during QMetaType::construct to force library call from inlined code.-
2414*/-
2415void *QMetaType::constructExtended(void *where, const void *copy) const-
2416{-
2417 Q_UNUSED(where);-
2418 Q_UNUSED(copy);-
2419 return 0;
never executed: return 0;
0
2420}-
2421-
2422/*!-
2423 \fn void QMetaType::destructExtended(void *data) const-
2424 \internal-
2425-
2426 Method used for future binary compatible extensions. The function may be called-
2427 during QMetaType::destruct to force library call from inlined code.-
2428*/-
2429void QMetaType::destructExtended(void *data) const-
2430{-
2431 Q_UNUSED(data);-
2432}
executed 27 times by 1 test: end of block
Executed by:
  • tst_QMetaType
27
2433-
2434/*!-
2435 \fn uint QMetaType::sizeExtended() const-
2436 \internal-
2437-
2438 Method used for future binary compatible extensions. The function may be-
2439 called from within QMetaType::size to force a library call from-
2440 inlined code.-
2441*/-
2442uint QMetaType::sizeExtended() const-
2443{-
2444 return 0;
executed 142 times by 4 tests: return 0;
Executed by:
  • tst_QGuiVariant
  • tst_QMetaType
  • tst_QVariant
  • tst_QWidgetsVariant
142
2445}-
2446-
2447/*!-
2448 \fn QMetaType::TypeFlags QMetaType::flagsExtended() const-
2449 \internal-
2450-
2451 Method used for future binary compatible extensions. The function may be-
2452 called from within QMetaType::flags to force a library call from-
2453 inlined code.-
2454*/-
2455QMetaType::TypeFlags QMetaType::flagsExtended() const-
2456{-
2457 return 0;
executed 21202 times by 54 tests: return 0;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QComboBox
  • tst_QCompleter
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingReply
  • tst_QDBusReply
  • tst_QDialog
  • tst_QFileDialog2
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontDialog
  • tst_QGraphicsAnchorLayout1
  • tst_QGraphicsItem
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGraphicsView
  • tst_QHeaderView
  • tst_QHttpSocketEngine
  • tst_QInputDialog
  • tst_QItemDelegate
  • tst_QItemModel
  • tst_QItemView
  • tst_QListView
  • ...
21202
2458}-
2459-
2460/*!-
2461 \brief QMetaType::metaObjectExtended-
2462 \internal-
2463-
2464 Method used for future binary compatible extensions. The function may be-
2465 called from within QMetaType::metaObject to force a library call from-
2466 inlined code.-
2467*/-
2468const QMetaObject *QMetaType::metaObjectExtended() const-
2469{-
2470 return 0;
never executed: return 0;
0
2471}-
2472-
2473-
2474namespace QtPrivate-
2475{-
2476const QMetaObject *metaObjectForQWidget()-
2477{-
2478 if (!qMetaTypeWidgetsHelper)
!qMetaTypeWidgetsHelperDescription
TRUEnever evaluated
FALSEnever evaluated
0
2479 return 0;
never executed: return 0;
0
2480 return qMetaObjectWidgetsHelper;
never executed: return qMetaObjectWidgetsHelper;
0
2481}-
2482}-
2483-
2484namespace QtMetaTypePrivate {-
2485const bool VectorBoolElements::true_element = true;-
2486const bool VectorBoolElements::false_element = false;-
2487}-
2488-
2489QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

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