| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qmetaobjectbuilder.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||
| 4 | - | |||||||||||||||||||||||||||||||
| 5 | - | |||||||||||||||||||||||||||||||
| 6 | namespace QtPrivate { | - | ||||||||||||||||||||||||||||||
| 7 | __attribute__((visibility("default"))) bool isBuiltinType(const QByteArray &type) | - | ||||||||||||||||||||||||||||||
| 8 | { | - | ||||||||||||||||||||||||||||||
| 9 | int id = QMetaType::type(type); | - | ||||||||||||||||||||||||||||||
| 10 | if (!id
| 0-496 | ||||||||||||||||||||||||||||||
| 11 | return executed 48 times by 1 test: false;return false;Executed by:
executed 48 times by 1 test: return false;Executed by:
| 48 | ||||||||||||||||||||||||||||||
| 12 | return executed 544 times by 1 test: (id < QMetaType::User);return (id < QMetaType::User);Executed by:
executed 544 times by 1 test: return (id < QMetaType::User);Executed by:
| 544 | ||||||||||||||||||||||||||||||
| 13 | } | - | ||||||||||||||||||||||||||||||
| 14 | } | - | ||||||||||||||||||||||||||||||
| 15 | - | |||||||||||||||||||||||||||||||
| 16 | - | |||||||||||||||||||||||||||||||
| 17 | static inline __attribute__((__unused__)) const QMetaObjectPrivate *priv(const uint* data) | - | ||||||||||||||||||||||||||||||
| 18 | { return executed 10 times by 1 test: reinterpret_cast<const QMetaObjectPrivate*>(data);return reinterpret_cast<const QMetaObjectPrivate*>(data);Executed by:
executed 10 times by 1 test: }return reinterpret_cast<const QMetaObjectPrivate*>(data);Executed by:
| 10 | ||||||||||||||||||||||||||||||
| 19 | - | |||||||||||||||||||||||||||||||
| 20 | class QMetaMethodBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 21 | { | - | ||||||||||||||||||||||||||||||
| 22 | public: | - | ||||||||||||||||||||||||||||||
| 23 | QMetaMethodBuilderPrivate() {} | - | ||||||||||||||||||||||||||||||
| 24 | QMetaMethodBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 25 | (QMetaMethod::MethodType _methodType, | - | ||||||||||||||||||||||||||||||
| 26 | const QByteArray& _signature, | - | ||||||||||||||||||||||||||||||
| 27 | const QByteArray& _returnType = QByteArray("void"), | - | ||||||||||||||||||||||||||||||
| 28 | QMetaMethod::Access _access = QMetaMethod::Public, | - | ||||||||||||||||||||||||||||||
| 29 | int _revision = 0) | - | ||||||||||||||||||||||||||||||
| 30 | : signature(QMetaObject::normalizedSignature(_signature.constData())), | - | ||||||||||||||||||||||||||||||
| 31 | returnType(QMetaObject::normalizedType(_returnType)), | - | ||||||||||||||||||||||||||||||
| 32 | attributes(((int)_access) | (((int)_methodType) << 2)), | - | ||||||||||||||||||||||||||||||
| 33 | revision(_revision) | - | ||||||||||||||||||||||||||||||
| 34 | { | - | ||||||||||||||||||||||||||||||
| 35 | ((!((_methodType == QMetaMethod::Constructor) == returnType.isNull())) ? qt_assert("(_methodType == QMetaMethod::Constructor) == returnType.isNull()",__FILE__,103) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 36 | } executed 140 times by 1 test: end of blockExecuted by:
| 140 | ||||||||||||||||||||||||||||||
| 37 | - | |||||||||||||||||||||||||||||||
| 38 | QByteArray signature; | - | ||||||||||||||||||||||||||||||
| 39 | QByteArray returnType; | - | ||||||||||||||||||||||||||||||
| 40 | QList<QByteArray> parameterNames; | - | ||||||||||||||||||||||||||||||
| 41 | QByteArray tag; | - | ||||||||||||||||||||||||||||||
| 42 | int attributes; | - | ||||||||||||||||||||||||||||||
| 43 | int revision; | - | ||||||||||||||||||||||||||||||
| 44 | - | |||||||||||||||||||||||||||||||
| 45 | QMetaMethod::MethodType methodType() const | - | ||||||||||||||||||||||||||||||
| 46 | { | - | ||||||||||||||||||||||||||||||
| 47 | return executed 213 times by 1 test: (QMetaMethod::MethodType)((attributes & MethodTypeMask) >> 2);return (QMetaMethod::MethodType)((attributes & MethodTypeMask) >> 2);Executed by:
executed 213 times by 1 test: return (QMetaMethod::MethodType)((attributes & MethodTypeMask) >> 2);Executed by:
| 213 | ||||||||||||||||||||||||||||||
| 48 | } | - | ||||||||||||||||||||||||||||||
| 49 | - | |||||||||||||||||||||||||||||||
| 50 | QMetaMethod::Access access() const | - | ||||||||||||||||||||||||||||||
| 51 | { | - | ||||||||||||||||||||||||||||||
| 52 | return executed 19 times by 1 test: (QMetaMethod::Access)(attributes & AccessMask);return (QMetaMethod::Access)(attributes & AccessMask);Executed by:
executed 19 times by 1 test: return (QMetaMethod::Access)(attributes & AccessMask);Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 53 | } | - | ||||||||||||||||||||||||||||||
| 54 | - | |||||||||||||||||||||||||||||||
| 55 | void setAccess(QMetaMethod::Access value) | - | ||||||||||||||||||||||||||||||
| 56 | { | - | ||||||||||||||||||||||||||||||
| 57 | attributes = ((attributes & ~AccessMask) | (int)value); | - | ||||||||||||||||||||||||||||||
| 58 | } executed 60 times by 1 test: end of blockExecuted by:
| 60 | ||||||||||||||||||||||||||||||
| 59 | - | |||||||||||||||||||||||||||||||
| 60 | QList<QByteArray> parameterTypes() const | - | ||||||||||||||||||||||||||||||
| 61 | { | - | ||||||||||||||||||||||||||||||
| 62 | return executed 793 times by 1 test: QMetaObjectPrivate::parameterTypeNamesFromSignature(signature);return QMetaObjectPrivate::parameterTypeNamesFromSignature(signature);Executed by:
executed 793 times by 1 test: return QMetaObjectPrivate::parameterTypeNamesFromSignature(signature);Executed by:
| 793 | ||||||||||||||||||||||||||||||
| 63 | } | - | ||||||||||||||||||||||||||||||
| 64 | - | |||||||||||||||||||||||||||||||
| 65 | int parameterCount() const | - | ||||||||||||||||||||||||||||||
| 66 | { | - | ||||||||||||||||||||||||||||||
| 67 | return executed 516 times by 1 test: parameterTypes().size();return parameterTypes().size();Executed by:
executed 516 times by 1 test: return parameterTypes().size();Executed by:
| 516 | ||||||||||||||||||||||||||||||
| 68 | } | - | ||||||||||||||||||||||||||||||
| 69 | - | |||||||||||||||||||||||||||||||
| 70 | QByteArray name() const | - | ||||||||||||||||||||||||||||||
| 71 | { | - | ||||||||||||||||||||||||||||||
| 72 | return executed 258 times by 1 test: signature.left(qMax(signature.indexOf('('), 0));return signature.left(qMax(signature.indexOf('('), 0));Executed by:
executed 258 times by 1 test: return signature.left(qMax(signature.indexOf('('), 0));Executed by:
| 258 | ||||||||||||||||||||||||||||||
| 73 | } | - | ||||||||||||||||||||||||||||||
| 74 | }; | - | ||||||||||||||||||||||||||||||
| 75 | template<> class QTypeInfo<QMetaMethodBuilderPrivate > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QMetaMethodBuilderPrivate)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QMetaMethodBuilderPrivate >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QMetaMethodBuilderPrivate) }; static inline const char *name() { return "QMetaMethodBuilderPrivate"; } }; | - | ||||||||||||||||||||||||||||||
| 76 | - | |||||||||||||||||||||||||||||||
| 77 | class QMetaPropertyBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 78 | { | - | ||||||||||||||||||||||||||||||
| 79 | public: | - | ||||||||||||||||||||||||||||||
| 80 | QMetaPropertyBuilderPrivate() {} | - | ||||||||||||||||||||||||||||||
| 81 | QMetaPropertyBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 82 | (const QByteArray& _name, const QByteArray& _type, int notifierIdx=-1, | - | ||||||||||||||||||||||||||||||
| 83 | int _revision = 0) | - | ||||||||||||||||||||||||||||||
| 84 | : name(_name), | - | ||||||||||||||||||||||||||||||
| 85 | type(QMetaObject::normalizedType(_type.constData())), | - | ||||||||||||||||||||||||||||||
| 86 | flags(Readable | Writable | Scriptable), notifySignal(-1), | - | ||||||||||||||||||||||||||||||
| 87 | revision(_revision) | - | ||||||||||||||||||||||||||||||
| 88 | { | - | ||||||||||||||||||||||||||||||
| 89 | if (notifierIdx >= 0
| 0-43 | ||||||||||||||||||||||||||||||
| 90 | flags |= Notify; | - | ||||||||||||||||||||||||||||||
| 91 | notifySignal = notifierIdx; | - | ||||||||||||||||||||||||||||||
| 92 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||
| 93 | } executed 43 times by 1 test: end of blockExecuted by:
| 43 | ||||||||||||||||||||||||||||||
| 94 | - | |||||||||||||||||||||||||||||||
| 95 | QByteArray name; | - | ||||||||||||||||||||||||||||||
| 96 | QByteArray type; | - | ||||||||||||||||||||||||||||||
| 97 | int flags; | - | ||||||||||||||||||||||||||||||
| 98 | int notifySignal; | - | ||||||||||||||||||||||||||||||
| 99 | int revision; | - | ||||||||||||||||||||||||||||||
| 100 | - | |||||||||||||||||||||||||||||||
| 101 | bool flag(int f) const | - | ||||||||||||||||||||||||||||||
| 102 | { | - | ||||||||||||||||||||||||||||||
| 103 | return executed 368 times by 1 test: ((flags & f) != 0);return ((flags & f) != 0);Executed by:
executed 368 times by 1 test: return ((flags & f) != 0);Executed by:
| 368 | ||||||||||||||||||||||||||||||
| 104 | } | - | ||||||||||||||||||||||||||||||
| 105 | - | |||||||||||||||||||||||||||||||
| 106 | void setFlag(int f, bool value) | - | ||||||||||||||||||||||||||||||
| 107 | { | - | ||||||||||||||||||||||||||||||
| 108 | if (value
| 148-302 | ||||||||||||||||||||||||||||||
| 109 | flags |= f; executed 148 times by 1 test: flags |= f;Executed by:
| 148 | ||||||||||||||||||||||||||||||
| 110 | else | - | ||||||||||||||||||||||||||||||
| 111 | flags &= ~f; executed 302 times by 1 test: flags &= ~f;Executed by:
| 302 | ||||||||||||||||||||||||||||||
| 112 | } | - | ||||||||||||||||||||||||||||||
| 113 | }; | - | ||||||||||||||||||||||||||||||
| 114 | template<> class QTypeInfo<QMetaPropertyBuilderPrivate > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QMetaPropertyBuilderPrivate)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QMetaPropertyBuilderPrivate >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QMetaPropertyBuilderPrivate) }; static inline const char *name() { return "QMetaPropertyBuilderPrivate"; } }; | - | ||||||||||||||||||||||||||||||
| 115 | - | |||||||||||||||||||||||||||||||
| 116 | class QMetaEnumBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 117 | { | - | ||||||||||||||||||||||||||||||
| 118 | public: | - | ||||||||||||||||||||||||||||||
| 119 | QMetaEnumBuilderPrivate() {} | - | ||||||||||||||||||||||||||||||
| 120 | QMetaEnumBuilderPrivate(const QByteArray& _name) | - | ||||||||||||||||||||||||||||||
| 121 | : name(_name), isFlag(false) | - | ||||||||||||||||||||||||||||||
| 122 | { | - | ||||||||||||||||||||||||||||||
| 123 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||||||||
| 124 | - | |||||||||||||||||||||||||||||||
| 125 | QByteArray name; | - | ||||||||||||||||||||||||||||||
| 126 | bool isFlag; | - | ||||||||||||||||||||||||||||||
| 127 | QList<QByteArray> keys; | - | ||||||||||||||||||||||||||||||
| 128 | QVector<int> values; | - | ||||||||||||||||||||||||||||||
| 129 | }; | - | ||||||||||||||||||||||||||||||
| 130 | template<> class QTypeInfo<QMetaEnumBuilderPrivate > { public: enum { isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QMetaEnumBuilderPrivate)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QMetaEnumBuilderPrivate >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QMetaEnumBuilderPrivate) }; static inline const char *name() { return "QMetaEnumBuilderPrivate"; } }; | - | ||||||||||||||||||||||||||||||
| 131 | - | |||||||||||||||||||||||||||||||
| 132 | class QMetaObjectBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 133 | { | - | ||||||||||||||||||||||||||||||
| 134 | public: | - | ||||||||||||||||||||||||||||||
| 135 | QMetaObjectBuilderPrivate() | - | ||||||||||||||||||||||||||||||
| 136 | : flags(0) | - | ||||||||||||||||||||||||||||||
| 137 | { | - | ||||||||||||||||||||||||||||||
| 138 | superClass = &QObject::staticMetaObject; | - | ||||||||||||||||||||||||||||||
| 139 | staticMetacallFunction = 0; | - | ||||||||||||||||||||||||||||||
| 140 | } executed 35 times by 1 test: end of blockExecuted by:
| 35 | ||||||||||||||||||||||||||||||
| 141 | - | |||||||||||||||||||||||||||||||
| 142 | bool hasRevisionedProperties() const; | - | ||||||||||||||||||||||||||||||
| 143 | bool hasRevisionedMethods() const; | - | ||||||||||||||||||||||||||||||
| 144 | - | |||||||||||||||||||||||||||||||
| 145 | QByteArray className; | - | ||||||||||||||||||||||||||||||
| 146 | const QMetaObject *superClass; | - | ||||||||||||||||||||||||||||||
| 147 | QMetaObjectBuilder::StaticMetacallFunction staticMetacallFunction; | - | ||||||||||||||||||||||||||||||
| 148 | QVector<QMetaMethodBuilderPrivate> methods; | - | ||||||||||||||||||||||||||||||
| 149 | QVector<QMetaMethodBuilderPrivate> constructors; | - | ||||||||||||||||||||||||||||||
| 150 | QVector<QMetaPropertyBuilderPrivate> properties; | - | ||||||||||||||||||||||||||||||
| 151 | QList<QByteArray> classInfoNames; | - | ||||||||||||||||||||||||||||||
| 152 | QList<QByteArray> classInfoValues; | - | ||||||||||||||||||||||||||||||
| 153 | QVector<QMetaEnumBuilderPrivate> enumerators; | - | ||||||||||||||||||||||||||||||
| 154 | QList<const QMetaObject *> relatedMetaObjects; | - | ||||||||||||||||||||||||||||||
| 155 | int flags; | - | ||||||||||||||||||||||||||||||
| 156 | }; | - | ||||||||||||||||||||||||||||||
| 157 | - | |||||||||||||||||||||||||||||||
| 158 | bool QMetaObjectBuilderPrivate::hasRevisionedProperties() const | - | ||||||||||||||||||||||||||||||
| 159 | { | - | ||||||||||||||||||||||||||||||
| 160 | for (int i = 0; i < properties.size()
| 28-50 | ||||||||||||||||||||||||||||||
| 161 | if (properties.at(i).revision
| 8-42 | ||||||||||||||||||||||||||||||
| 162 | return executed 8 times by 1 test: true;return true;Executed by:
executed 8 times by 1 test: return true;Executed by:
| 8 | ||||||||||||||||||||||||||||||
| 163 | } executed 42 times by 1 test: end of blockExecuted by:
| 42 | ||||||||||||||||||||||||||||||
| 164 | return executed 28 times by 1 test: false;return false;Executed by:
executed 28 times by 1 test: return false;Executed by:
| 28 | ||||||||||||||||||||||||||||||
| 165 | } | - | ||||||||||||||||||||||||||||||
| 166 | - | |||||||||||||||||||||||||||||||
| 167 | bool QMetaObjectBuilderPrivate::hasRevisionedMethods() const | - | ||||||||||||||||||||||||||||||
| 168 | { | - | ||||||||||||||||||||||||||||||
| 169 | for (int i = 0; i < methods.size()
| 28-178 | ||||||||||||||||||||||||||||||
| 170 | if (methods.at(i).revision
| 8-170 | ||||||||||||||||||||||||||||||
| 171 | return executed 8 times by 1 test: true;return true;Executed by:
executed 8 times by 1 test: return true;Executed by:
| 8 | ||||||||||||||||||||||||||||||
| 172 | } executed 170 times by 1 test: end of blockExecuted by:
| 170 | ||||||||||||||||||||||||||||||
| 173 | return executed 28 times by 1 test: false;return false;Executed by:
executed 28 times by 1 test: return false;Executed by:
| 28 | ||||||||||||||||||||||||||||||
| 174 | } | - | ||||||||||||||||||||||||||||||
| 175 | - | |||||||||||||||||||||||||||||||
| 176 | - | |||||||||||||||||||||||||||||||
| 177 | - | |||||||||||||||||||||||||||||||
| 178 | - | |||||||||||||||||||||||||||||||
| 179 | QMetaObjectBuilder::QMetaObjectBuilder() | - | ||||||||||||||||||||||||||||||
| 180 | { | - | ||||||||||||||||||||||||||||||
| 181 | d = new QMetaObjectBuilderPrivate(); | - | ||||||||||||||||||||||||||||||
| 182 | } executed 31 times by 1 test: end of blockExecuted by:
| 31 | ||||||||||||||||||||||||||||||
| 183 | QMetaObjectBuilder::QMetaObjectBuilder | - | ||||||||||||||||||||||||||||||
| 184 | (const QMetaObject *prototype, QMetaObjectBuilder::AddMembers members) | - | ||||||||||||||||||||||||||||||
| 185 | { | - | ||||||||||||||||||||||||||||||
| 186 | d = new QMetaObjectBuilderPrivate(); | - | ||||||||||||||||||||||||||||||
| 187 | addMetaObject(prototype, members); | - | ||||||||||||||||||||||||||||||
| 188 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||||||||||||||
| 189 | - | |||||||||||||||||||||||||||||||
| 190 | - | |||||||||||||||||||||||||||||||
| 191 | - | |||||||||||||||||||||||||||||||
| 192 | - | |||||||||||||||||||||||||||||||
| 193 | QMetaObjectBuilder::~QMetaObjectBuilder() | - | ||||||||||||||||||||||||||||||
| 194 | { | - | ||||||||||||||||||||||||||||||
| 195 | delete d; | - | ||||||||||||||||||||||||||||||
| 196 | } executed 35 times by 1 test: end of blockExecuted by:
| 35 | ||||||||||||||||||||||||||||||
| 197 | - | |||||||||||||||||||||||||||||||
| 198 | - | |||||||||||||||||||||||||||||||
| 199 | - | |||||||||||||||||||||||||||||||
| 200 | - | |||||||||||||||||||||||||||||||
| 201 | - | |||||||||||||||||||||||||||||||
| 202 | - | |||||||||||||||||||||||||||||||
| 203 | - | |||||||||||||||||||||||||||||||
| 204 | QByteArray QMetaObjectBuilder::className() const | - | ||||||||||||||||||||||||||||||
| 205 | { | - | ||||||||||||||||||||||||||||||
| 206 | return d->className; | - | ||||||||||||||||||||||||||||||
| 207 | } | - | ||||||||||||||||||||||||||||||
| 208 | - | |||||||||||||||||||||||||||||||
| 209 | - | |||||||||||||||||||||||||||||||
| 210 | - | |||||||||||||||||||||||||||||||
| 211 | - | |||||||||||||||||||||||||||||||
| 212 | - | |||||||||||||||||||||||||||||||
| 213 | - | |||||||||||||||||||||||||||||||
| 214 | - | |||||||||||||||||||||||||||||||
| 215 | void QMetaObjectBuilder::setClassName(const QByteArray& name) | - | ||||||||||||||||||||||||||||||
| 216 | { | - | ||||||||||||||||||||||||||||||
| 217 | d->className = name; | - | ||||||||||||||||||||||||||||||
| 218 | } executed 14 times by 1 test: end of blockExecuted by:
| 14 | ||||||||||||||||||||||||||||||
| 219 | const QMetaObject *QMetaObjectBuilder::superClass() const | - | ||||||||||||||||||||||||||||||
| 220 | { | - | ||||||||||||||||||||||||||||||
| 221 | return executed 18 times by 1 test: d->superClass;return d->superClass;Executed by:
executed 18 times by 1 test: return d->superClass;Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 222 | } | - | ||||||||||||||||||||||||||||||
| 223 | void QMetaObjectBuilder::setSuperClass(const QMetaObject *meta) | - | ||||||||||||||||||||||||||||||
| 224 | { | - | ||||||||||||||||||||||||||||||
| 225 | ((!(meta)) ? qt_assert("meta",__FILE__,321) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 226 | d->superClass = meta; | - | ||||||||||||||||||||||||||||||
| 227 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 228 | - | |||||||||||||||||||||||||||||||
| 229 | - | |||||||||||||||||||||||||||||||
| 230 | - | |||||||||||||||||||||||||||||||
| 231 | - | |||||||||||||||||||||||||||||||
| 232 | - | |||||||||||||||||||||||||||||||
| 233 | - | |||||||||||||||||||||||||||||||
| 234 | - | |||||||||||||||||||||||||||||||
| 235 | QMetaObjectBuilder::MetaObjectFlags QMetaObjectBuilder::flags() const | - | ||||||||||||||||||||||||||||||
| 236 | { | - | ||||||||||||||||||||||||||||||
| 237 | return executed 2 times by 1 test: (QMetaObjectBuilder::MetaObjectFlags)d->flags;return (QMetaObjectBuilder::MetaObjectFlags)d->flags;Executed by:
executed 2 times by 1 test: return (QMetaObjectBuilder::MetaObjectFlags)d->flags;Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 238 | } | - | ||||||||||||||||||||||||||||||
| 239 | - | |||||||||||||||||||||||||||||||
| 240 | - | |||||||||||||||||||||||||||||||
| 241 | - | |||||||||||||||||||||||||||||||
| 242 | - | |||||||||||||||||||||||||||||||
| 243 | - | |||||||||||||||||||||||||||||||
| 244 | - | |||||||||||||||||||||||||||||||
| 245 | - | |||||||||||||||||||||||||||||||
| 246 | void QMetaObjectBuilder::setFlags(MetaObjectFlags flags) | - | ||||||||||||||||||||||||||||||
| 247 | { | - | ||||||||||||||||||||||||||||||
| 248 | d->flags = flags; | - | ||||||||||||||||||||||||||||||
| 249 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 250 | int QMetaObjectBuilder::methodCount() const | - | ||||||||||||||||||||||||||||||
| 251 | { | - | ||||||||||||||||||||||||||||||
| 252 | return executed 20 times by 1 test: d->methods.size();return d->methods.size();Executed by:
executed 20 times by 1 test: return d->methods.size();Executed by:
| 20 | ||||||||||||||||||||||||||||||
| 253 | } | - | ||||||||||||||||||||||||||||||
| 254 | - | |||||||||||||||||||||||||||||||
| 255 | - | |||||||||||||||||||||||||||||||
| 256 | - | |||||||||||||||||||||||||||||||
| 257 | - | |||||||||||||||||||||||||||||||
| 258 | - | |||||||||||||||||||||||||||||||
| 259 | - | |||||||||||||||||||||||||||||||
| 260 | int QMetaObjectBuilder::constructorCount() const | - | ||||||||||||||||||||||||||||||
| 261 | { | - | ||||||||||||||||||||||||||||||
| 262 | return executed 18 times by 1 test: d->constructors.size();return d->constructors.size();Executed by:
executed 18 times by 1 test: return d->constructors.size();Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 263 | } | - | ||||||||||||||||||||||||||||||
| 264 | - | |||||||||||||||||||||||||||||||
| 265 | - | |||||||||||||||||||||||||||||||
| 266 | - | |||||||||||||||||||||||||||||||
| 267 | - | |||||||||||||||||||||||||||||||
| 268 | - | |||||||||||||||||||||||||||||||
| 269 | - | |||||||||||||||||||||||||||||||
| 270 | - | |||||||||||||||||||||||||||||||
| 271 | int QMetaObjectBuilder::propertyCount() const | - | ||||||||||||||||||||||||||||||
| 272 | { | - | ||||||||||||||||||||||||||||||
| 273 | return executed 17 times by 1 test: d->properties.size();return d->properties.size();Executed by:
executed 17 times by 1 test: return d->properties.size();Executed by:
| 17 | ||||||||||||||||||||||||||||||
| 274 | } | - | ||||||||||||||||||||||||||||||
| 275 | int QMetaObjectBuilder::enumeratorCount() const | - | ||||||||||||||||||||||||||||||
| 276 | { | - | ||||||||||||||||||||||||||||||
| 277 | return executed 15 times by 1 test: d->enumerators.size();return d->enumerators.size();Executed by:
executed 15 times by 1 test: return d->enumerators.size();Executed by:
| 15 | ||||||||||||||||||||||||||||||
| 278 | } | - | ||||||||||||||||||||||||||||||
| 279 | int QMetaObjectBuilder::classInfoCount() const | - | ||||||||||||||||||||||||||||||
| 280 | { | - | ||||||||||||||||||||||||||||||
| 281 | return executed 14 times by 1 test: d->classInfoNames.size();return d->classInfoNames.size();Executed by:
executed 14 times by 1 test: return d->classInfoNames.size();Executed by:
| 14 | ||||||||||||||||||||||||||||||
| 282 | } | - | ||||||||||||||||||||||||||||||
| 283 | int QMetaObjectBuilder::relatedMetaObjectCount() const | - | ||||||||||||||||||||||||||||||
| 284 | { | - | ||||||||||||||||||||||||||||||
| 285 | return executed 14 times by 1 test: d->relatedMetaObjects.size();return d->relatedMetaObjects.size();Executed by:
executed 14 times by 1 test: return d->relatedMetaObjects.size();Executed by:
| 14 | ||||||||||||||||||||||||||||||
| 286 | } | - | ||||||||||||||||||||||||||||||
| 287 | QMetaMethodBuilder QMetaObjectBuilder::addMethod(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 288 | { | - | ||||||||||||||||||||||||||||||
| 289 | int index = d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 290 | d->methods.append(QMetaMethodBuilderPrivate(QMetaMethod::Method, signature)); | - | ||||||||||||||||||||||||||||||
| 291 | return executed 24 times by 1 test: QMetaMethodBuilder(this, index);return QMetaMethodBuilder(this, index);Executed by:
executed 24 times by 1 test: return QMetaMethodBuilder(this, index);Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 292 | } | - | ||||||||||||||||||||||||||||||
| 293 | QMetaMethodBuilder QMetaObjectBuilder::addMethod | - | ||||||||||||||||||||||||||||||
| 294 | (const QByteArray& signature, const QByteArray& returnType) | - | ||||||||||||||||||||||||||||||
| 295 | { | - | ||||||||||||||||||||||||||||||
| 296 | int index = d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 297 | d->methods.append(QMetaMethodBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 298 | (QMetaMethod::Method, signature, returnType)); | - | ||||||||||||||||||||||||||||||
| 299 | return executed 1 time by 1 test: QMetaMethodBuilder(this, index);return QMetaMethodBuilder(this, index);Executed by:
executed 1 time by 1 test: return QMetaMethodBuilder(this, index);Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 300 | } | - | ||||||||||||||||||||||||||||||
| 301 | QMetaMethodBuilder QMetaObjectBuilder::addMethod(const QMetaMethod& prototype) | - | ||||||||||||||||||||||||||||||
| 302 | { | - | ||||||||||||||||||||||||||||||
| 303 | QMetaMethodBuilder method; | - | ||||||||||||||||||||||||||||||
| 304 | if (prototype.methodType() == QMetaMethod::Method
| 3-61 | ||||||||||||||||||||||||||||||
| 305 | method = addMethod(prototype.methodSignature()); executed 3 times by 1 test: method = addMethod(prototype.methodSignature());Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 306 | else if (prototype.methodType() == QMetaMethod::Signal
| 13-48 | ||||||||||||||||||||||||||||||
| 307 | method = addSignal(prototype.methodSignature()); executed 13 times by 1 test: method = addSignal(prototype.methodSignature());Executed by:
| 13 | ||||||||||||||||||||||||||||||
| 308 | else if (prototype.methodType() == QMetaMethod::Slot
| 1-47 | ||||||||||||||||||||||||||||||
| 309 | method = addSlot(prototype.methodSignature()); executed 47 times by 1 test: method = addSlot(prototype.methodSignature());Executed by:
| 47 | ||||||||||||||||||||||||||||||
| 310 | else if (prototype.methodType() == QMetaMethod::Constructor
| 0-1 | ||||||||||||||||||||||||||||||
| 311 | method = addConstructor(prototype.methodSignature()); executed 1 time by 1 test: method = addConstructor(prototype.methodSignature());Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 312 | method.setReturnType(prototype.typeName()); | - | ||||||||||||||||||||||||||||||
| 313 | method.setParameterNames(prototype.parameterNames()); | - | ||||||||||||||||||||||||||||||
| 314 | method.setTag(prototype.tag()); | - | ||||||||||||||||||||||||||||||
| 315 | method.setAccess(prototype.access()); | - | ||||||||||||||||||||||||||||||
| 316 | method.setAttributes(prototype.attributes()); | - | ||||||||||||||||||||||||||||||
| 317 | method.setRevision(prototype.revision()); | - | ||||||||||||||||||||||||||||||
| 318 | return executed 64 times by 1 test: method;return method;Executed by:
executed 64 times by 1 test: return method;Executed by:
| 64 | ||||||||||||||||||||||||||||||
| 319 | } | - | ||||||||||||||||||||||||||||||
| 320 | QMetaMethodBuilder QMetaObjectBuilder::addSlot(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 321 | { | - | ||||||||||||||||||||||||||||||
| 322 | int index = d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 323 | d->methods.append(QMetaMethodBuilderPrivate(QMetaMethod::Slot, signature)); | - | ||||||||||||||||||||||||||||||
| 324 | return executed 60 times by 1 test: QMetaMethodBuilder(this, index);return QMetaMethodBuilder(this, index);Executed by:
executed 60 times by 1 test: return QMetaMethodBuilder(this, index);Executed by:
| 60 | ||||||||||||||||||||||||||||||
| 325 | } | - | ||||||||||||||||||||||||||||||
| 326 | QMetaMethodBuilder QMetaObjectBuilder::addSignal(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 327 | { | - | ||||||||||||||||||||||||||||||
| 328 | int index = d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 329 | d->methods.append(QMetaMethodBuilderPrivate | - | ||||||||||||||||||||||||||||||
| 330 | (QMetaMethod::Signal, signature, QByteArray("void"), QMetaMethod::Public)); | - | ||||||||||||||||||||||||||||||
| 331 | return executed 28 times by 1 test: QMetaMethodBuilder(this, index);return QMetaMethodBuilder(this, index);Executed by:
executed 28 times by 1 test: return QMetaMethodBuilder(this, index);Executed by:
| 28 | ||||||||||||||||||||||||||||||
| 332 | } | - | ||||||||||||||||||||||||||||||
| 333 | QMetaMethodBuilder QMetaObjectBuilder::addConstructor(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 334 | { | - | ||||||||||||||||||||||||||||||
| 335 | int index = d->constructors.size(); | - | ||||||||||||||||||||||||||||||
| 336 | d->constructors.append(QMetaMethodBuilderPrivate(QMetaMethod::Constructor, signature, | - | ||||||||||||||||||||||||||||||
| 337 | QByteArray())); | - | ||||||||||||||||||||||||||||||
| 338 | return executed 27 times by 1 test: QMetaMethodBuilder(this, -(index + 1));return QMetaMethodBuilder(this, -(index + 1));Executed by:
executed 27 times by 1 test: return QMetaMethodBuilder(this, -(index + 1));Executed by:
| 27 | ||||||||||||||||||||||||||||||
| 339 | } | - | ||||||||||||||||||||||||||||||
| 340 | QMetaMethodBuilder QMetaObjectBuilder::addConstructor(const QMetaMethod& prototype) | - | ||||||||||||||||||||||||||||||
| 341 | { | - | ||||||||||||||||||||||||||||||
| 342 | ((!(prototype.methodType() == QMetaMethod::Constructor)) ? qt_assert("prototype.methodType() == QMetaMethod::Constructor",__FILE__,545) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 343 | QMetaMethodBuilder ctor = addConstructor(prototype.methodSignature()); | - | ||||||||||||||||||||||||||||||
| 344 | ctor.setReturnType(prototype.typeName()); | - | ||||||||||||||||||||||||||||||
| 345 | ctor.setParameterNames(prototype.parameterNames()); | - | ||||||||||||||||||||||||||||||
| 346 | ctor.setTag(prototype.tag()); | - | ||||||||||||||||||||||||||||||
| 347 | ctor.setAccess(prototype.access()); | - | ||||||||||||||||||||||||||||||
| 348 | ctor.setAttributes(prototype.attributes()); | - | ||||||||||||||||||||||||||||||
| 349 | return executed 5 times by 1 test: ctor;return ctor;Executed by:
executed 5 times by 1 test: return ctor;Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 350 | } | - | ||||||||||||||||||||||||||||||
| 351 | QMetaPropertyBuilder QMetaObjectBuilder::addProperty | - | ||||||||||||||||||||||||||||||
| 352 | (const QByteArray& name, const QByteArray& type, int notifierId) | - | ||||||||||||||||||||||||||||||
| 353 | { | - | ||||||||||||||||||||||||||||||
| 354 | int index = d->properties.size(); | - | ||||||||||||||||||||||||||||||
| 355 | d->properties.append(QMetaPropertyBuilderPrivate(name, type, notifierId)); | - | ||||||||||||||||||||||||||||||
| 356 | return executed 43 times by 1 test: QMetaPropertyBuilder(this, index);return QMetaPropertyBuilder(this, index);Executed by:
executed 43 times by 1 test: return QMetaPropertyBuilder(this, index);Executed by:
| 43 | ||||||||||||||||||||||||||||||
| 357 | } | - | ||||||||||||||||||||||||||||||
| 358 | QMetaPropertyBuilder QMetaObjectBuilder::addProperty(const QMetaProperty& prototype) | - | ||||||||||||||||||||||||||||||
| 359 | { | - | ||||||||||||||||||||||||||||||
| 360 | QMetaPropertyBuilder property = addProperty(prototype.name(), prototype.typeName()); | - | ||||||||||||||||||||||||||||||
| 361 | property.setReadable(prototype.isReadable()); | - | ||||||||||||||||||||||||||||||
| 362 | property.setWritable(prototype.isWritable()); | - | ||||||||||||||||||||||||||||||
| 363 | property.setResettable(prototype.isResettable()); | - | ||||||||||||||||||||||||||||||
| 364 | property.setDesignable(prototype.isDesignable()); | - | ||||||||||||||||||||||||||||||
| 365 | property.setScriptable(prototype.isScriptable()); | - | ||||||||||||||||||||||||||||||
| 366 | property.setStored(prototype.isStored()); | - | ||||||||||||||||||||||||||||||
| 367 | property.setEditable(prototype.isEditable()); | - | ||||||||||||||||||||||||||||||
| 368 | property.setUser(prototype.isUser()); | - | ||||||||||||||||||||||||||||||
| 369 | property.setStdCppSet(prototype.hasStdCppSet()); | - | ||||||||||||||||||||||||||||||
| 370 | property.setEnumOrFlag(prototype.isEnumType()); | - | ||||||||||||||||||||||||||||||
| 371 | property.setConstant(prototype.isConstant()); | - | ||||||||||||||||||||||||||||||
| 372 | property.setFinal(prototype.isFinal()); | - | ||||||||||||||||||||||||||||||
| 373 | property.setRevision(prototype.revision()); | - | ||||||||||||||||||||||||||||||
| 374 | if (prototype.hasNotifySignal()
| 5-15 | ||||||||||||||||||||||||||||||
| 375 | - | |||||||||||||||||||||||||||||||
| 376 | QMetaMethod method = prototype.notifySignal(); | - | ||||||||||||||||||||||||||||||
| 377 | int index = indexOfMethod(method.methodSignature()); | - | ||||||||||||||||||||||||||||||
| 378 | if (index == -1
| 1-4 | ||||||||||||||||||||||||||||||
| 379 | index = addMethod(method).index(); executed 1 time by 1 test: index = addMethod(method).index();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 380 | d->properties[property._index].notifySignal = index; | - | ||||||||||||||||||||||||||||||
| 381 | d->properties[property._index].setFlag(Notify, true); | - | ||||||||||||||||||||||||||||||
| 382 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 383 | return executed 20 times by 1 test: property;return property;Executed by:
executed 20 times by 1 test: return property;Executed by:
| 20 | ||||||||||||||||||||||||||||||
| 384 | } | - | ||||||||||||||||||||||||||||||
| 385 | QMetaEnumBuilder QMetaObjectBuilder::addEnumerator(const QByteArray& name) | - | ||||||||||||||||||||||||||||||
| 386 | { | - | ||||||||||||||||||||||||||||||
| 387 | int index = d->enumerators.size(); | - | ||||||||||||||||||||||||||||||
| 388 | d->enumerators.append(QMetaEnumBuilderPrivate(name)); | - | ||||||||||||||||||||||||||||||
| 389 | return executed 10 times by 1 test: QMetaEnumBuilder(this, index);return QMetaEnumBuilder(this, index);Executed by:
executed 10 times by 1 test: return QMetaEnumBuilder(this, index);Executed by:
| 10 | ||||||||||||||||||||||||||||||
| 390 | } | - | ||||||||||||||||||||||||||||||
| 391 | QMetaEnumBuilder QMetaObjectBuilder::addEnumerator(const QMetaEnum& prototype) | - | ||||||||||||||||||||||||||||||
| 392 | { | - | ||||||||||||||||||||||||||||||
| 393 | QMetaEnumBuilder en = addEnumerator(prototype.name()); | - | ||||||||||||||||||||||||||||||
| 394 | en.setIsFlag(prototype.isFlag()); | - | ||||||||||||||||||||||||||||||
| 395 | int count = prototype.keyCount(); | - | ||||||||||||||||||||||||||||||
| 396 | for (int index = 0; index < count
| 6-12 | ||||||||||||||||||||||||||||||
| 397 | en.addKey(prototype.key(index), prototype.value(index)); executed 12 times by 1 test: en.addKey(prototype.key(index), prototype.value(index));Executed by:
| 12 | ||||||||||||||||||||||||||||||
| 398 | return executed 6 times by 1 test: en;return en;Executed by:
executed 6 times by 1 test: return en;Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 399 | } | - | ||||||||||||||||||||||||||||||
| 400 | int QMetaObjectBuilder::addClassInfo(const QByteArray& name, const QByteArray& value) | - | ||||||||||||||||||||||||||||||
| 401 | { | - | ||||||||||||||||||||||||||||||
| 402 | int index = d->classInfoNames.size(); | - | ||||||||||||||||||||||||||||||
| 403 | d->classInfoNames += name; | - | ||||||||||||||||||||||||||||||
| 404 | d->classInfoValues += value; | - | ||||||||||||||||||||||||||||||
| 405 | return executed 10 times by 1 test: index;return index;Executed by:
executed 10 times by 1 test: return index;Executed by:
| 10 | ||||||||||||||||||||||||||||||
| 406 | } | - | ||||||||||||||||||||||||||||||
| 407 | int QMetaObjectBuilder::addRelatedMetaObject(const QMetaObject *meta) | - | ||||||||||||||||||||||||||||||
| 408 | { | - | ||||||||||||||||||||||||||||||
| 409 | ((!(meta)) ? qt_assert("meta",__FILE__,670) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 410 | int index = d->relatedMetaObjects.size(); | - | ||||||||||||||||||||||||||||||
| 411 | d->relatedMetaObjects.append(meta); | - | ||||||||||||||||||||||||||||||
| 412 | return executed 6 times by 1 test: index;return index;Executed by:
executed 6 times by 1 test: return index;Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 413 | } | - | ||||||||||||||||||||||||||||||
| 414 | void QMetaObjectBuilder::addMetaObject | - | ||||||||||||||||||||||||||||||
| 415 | (const QMetaObject *prototype, QMetaObjectBuilder::AddMembers members) | - | ||||||||||||||||||||||||||||||
| 416 | { | - | ||||||||||||||||||||||||||||||
| 417 | ((!(prototype)) ? qt_assert("prototype",__FILE__,686) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 418 | int index; | - | ||||||||||||||||||||||||||||||
| 419 | - | |||||||||||||||||||||||||||||||
| 420 | if ((
| 2-6 | ||||||||||||||||||||||||||||||
| 421 | d->className = prototype->className(); executed 6 times by 1 test: d->className = prototype->className();Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 422 | - | |||||||||||||||||||||||||||||||
| 423 | if ((
| 1-7 | ||||||||||||||||||||||||||||||
| 424 | d->superClass = prototype->superClass(); executed 7 times by 1 test: d->superClass = prototype->superClass();Executed by:
| 7 | ||||||||||||||||||||||||||||||
| 425 | - | |||||||||||||||||||||||||||||||
| 426 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 427 | for (index = prototype->methodOffset(); index < prototype->methodCount()
| 5-62 | ||||||||||||||||||||||||||||||
| 428 | QMetaMethod method = prototype->method(index); | - | ||||||||||||||||||||||||||||||
| 429 | if (method.methodType() != QMetaMethod::Signal
| 12-50 | ||||||||||||||||||||||||||||||
| 430 | if (method.access() == QMetaMethod::Public
| 0-37 | ||||||||||||||||||||||||||||||
| 431 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||
| 432 | if (method.access() == QMetaMethod::Private
| 0-31 | ||||||||||||||||||||||||||||||
| 433 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||
| 434 | if (method.access() == QMetaMethod::Protected
| 0-44 | ||||||||||||||||||||||||||||||
| 435 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||
| 436 | } executed 50 times by 1 test: end of blockExecuted by:
| 50 | ||||||||||||||||||||||||||||||
| 437 | if (method.methodType() == QMetaMethod::Method
| 0-59 | ||||||||||||||||||||||||||||||
| 438 | addMethod(method); | - | ||||||||||||||||||||||||||||||
| 439 | } executed 3 times by 1 test: else if (method.methodType() == QMetaMethod::Signalend of blockExecuted by:
| 3-47 | ||||||||||||||||||||||||||||||
| 440 | (
| 0-12 | ||||||||||||||||||||||||||||||
| 441 | addMethod(method); | - | ||||||||||||||||||||||||||||||
| 442 | } executed 12 times by 1 test: else if (method.methodType() == QMetaMethod::Slotend of blockExecuted by:
| 0-47 | ||||||||||||||||||||||||||||||
| 443 | (
| 0-47 | ||||||||||||||||||||||||||||||
| 444 | addMethod(method); | - | ||||||||||||||||||||||||||||||
| 445 | } executed 47 times by 1 test: end of blockExecuted by:
| 47 | ||||||||||||||||||||||||||||||
| 446 | } executed 62 times by 1 test: end of blockExecuted by:
| 62 | ||||||||||||||||||||||||||||||
| 447 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 448 | - | |||||||||||||||||||||||||||||||
| 449 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 450 | for (index = 0; index < prototype->constructorCount()
| 5 | ||||||||||||||||||||||||||||||
| 451 | addConstructor(prototype->constructor(index)); executed 5 times by 1 test: addConstructor(prototype->constructor(index));Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 452 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 453 | - | |||||||||||||||||||||||||||||||
| 454 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 455 | for (index = prototype->propertyOffset(); index < prototype->propertyCount()
| 5-19 | ||||||||||||||||||||||||||||||
| 456 | addProperty(prototype->property(index)); executed 19 times by 1 test: addProperty(prototype->property(index));Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 457 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 458 | - | |||||||||||||||||||||||||||||||
| 459 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 460 | for (index = prototype->enumeratorOffset(); index < prototype->enumeratorCount()
| 5-6 | ||||||||||||||||||||||||||||||
| 461 | addEnumerator(prototype->enumerator(index)); executed 6 times by 1 test: addEnumerator(prototype->enumerator(index));Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 462 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 463 | - | |||||||||||||||||||||||||||||||
| 464 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 465 | for (index = prototype->classInfoOffset(); index < prototype->classInfoCount()
| 5-6 | ||||||||||||||||||||||||||||||
| 466 | QMetaClassInfo ci = prototype->classInfo(index); | - | ||||||||||||||||||||||||||||||
| 467 | addClassInfo(ci.name(), ci.value()); | - | ||||||||||||||||||||||||||||||
| 468 | } executed 6 times by 1 test: end of blockExecuted by:
| 6 | ||||||||||||||||||||||||||||||
| 469 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 470 | - | |||||||||||||||||||||||||||||||
| 471 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 472 | ((!(priv(prototype->d.data)->revision >= 2)) ? qt_assert("priv(prototype->d.data)->revision >= 2",__FILE__,741) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 473 | const QMetaObject * const *objects = prototype->d.relatedMetaObjects; | - | ||||||||||||||||||||||||||||||
| 474 | if (objects
| 2-3 | ||||||||||||||||||||||||||||||
| 475 | while (*
| 3 | ||||||||||||||||||||||||||||||
| 476 | addRelatedMetaObject(*objects); | - | ||||||||||||||||||||||||||||||
| 477 | ++objects; | - | ||||||||||||||||||||||||||||||
| 478 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||
| 479 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||
| 480 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 481 | - | |||||||||||||||||||||||||||||||
| 482 | if ((
| 3-5 | ||||||||||||||||||||||||||||||
| 483 | ((!(priv(prototype->d.data)->revision >= 6)) ? qt_assert("priv(prototype->d.data)->revision >= 6",__FILE__,752) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 484 | if (prototype->d.static_metacall
| 0-5 | ||||||||||||||||||||||||||||||
| 485 | setStaticMetacallFunction(prototype->d.static_metacall); executed 5 times by 1 test: setStaticMetacallFunction(prototype->d.static_metacall);Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 486 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 487 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 488 | - | |||||||||||||||||||||||||||||||
| 489 | - | |||||||||||||||||||||||||||||||
| 490 | - | |||||||||||||||||||||||||||||||
| 491 | - | |||||||||||||||||||||||||||||||
| 492 | - | |||||||||||||||||||||||||||||||
| 493 | - | |||||||||||||||||||||||||||||||
| 494 | QMetaMethodBuilder QMetaObjectBuilder::method(int index) const | - | ||||||||||||||||||||||||||||||
| 495 | { | - | ||||||||||||||||||||||||||||||
| 496 | if (index >= 0
| 0-4 | ||||||||||||||||||||||||||||||
| 497 | return executed 3 times by 1 test: QMetaMethodBuilder(this, index);return QMetaMethodBuilder(this, index);Executed by:
executed 3 times by 1 test: return QMetaMethodBuilder(this, index);Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 498 | else | - | ||||||||||||||||||||||||||||||
| 499 | return executed 1 time by 1 test: QMetaMethodBuilder();return QMetaMethodBuilder();Executed by:
executed 1 time by 1 test: return QMetaMethodBuilder();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 500 | } | - | ||||||||||||||||||||||||||||||
| 501 | - | |||||||||||||||||||||||||||||||
| 502 | - | |||||||||||||||||||||||||||||||
| 503 | - | |||||||||||||||||||||||||||||||
| 504 | - | |||||||||||||||||||||||||||||||
| 505 | - | |||||||||||||||||||||||||||||||
| 506 | - | |||||||||||||||||||||||||||||||
| 507 | QMetaMethodBuilder QMetaObjectBuilder::constructor(int index) const | - | ||||||||||||||||||||||||||||||
| 508 | { | - | ||||||||||||||||||||||||||||||
| 509 | if (index >= 0
| 0-3 | ||||||||||||||||||||||||||||||
| 510 | return executed 2 times by 1 test: QMetaMethodBuilder(this, -(index + 1));return QMetaMethodBuilder(this, -(index + 1));Executed by:
executed 2 times by 1 test: return QMetaMethodBuilder(this, -(index + 1));Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 511 | else | - | ||||||||||||||||||||||||||||||
| 512 | return executed 1 time by 1 test: QMetaMethodBuilder();return QMetaMethodBuilder();Executed by:
executed 1 time by 1 test: return QMetaMethodBuilder();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 513 | } | - | ||||||||||||||||||||||||||||||
| 514 | - | |||||||||||||||||||||||||||||||
| 515 | - | |||||||||||||||||||||||||||||||
| 516 | - | |||||||||||||||||||||||||||||||
| 517 | - | |||||||||||||||||||||||||||||||
| 518 | - | |||||||||||||||||||||||||||||||
| 519 | - | |||||||||||||||||||||||||||||||
| 520 | QMetaPropertyBuilder QMetaObjectBuilder::property(int index) const | - | ||||||||||||||||||||||||||||||
| 521 | { | - | ||||||||||||||||||||||||||||||
| 522 | if (index >= 0
| 0-7 | ||||||||||||||||||||||||||||||
| 523 | return executed 6 times by 1 test: QMetaPropertyBuilder(this, index);return QMetaPropertyBuilder(this, index);Executed by:
executed 6 times by 1 test: return QMetaPropertyBuilder(this, index);Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 524 | else | - | ||||||||||||||||||||||||||||||
| 525 | return executed 1 time by 1 test: QMetaPropertyBuilder();return QMetaPropertyBuilder();Executed by:
executed 1 time by 1 test: return QMetaPropertyBuilder();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 526 | } | - | ||||||||||||||||||||||||||||||
| 527 | - | |||||||||||||||||||||||||||||||
| 528 | - | |||||||||||||||||||||||||||||||
| 529 | - | |||||||||||||||||||||||||||||||
| 530 | - | |||||||||||||||||||||||||||||||
| 531 | - | |||||||||||||||||||||||||||||||
| 532 | - | |||||||||||||||||||||||||||||||
| 533 | - | |||||||||||||||||||||||||||||||
| 534 | QMetaEnumBuilder QMetaObjectBuilder::enumerator(int index) const | - | ||||||||||||||||||||||||||||||
| 535 | { | - | ||||||||||||||||||||||||||||||
| 536 | if (index >= 0
| 0-3 | ||||||||||||||||||||||||||||||
| 537 | return executed 2 times by 1 test: QMetaEnumBuilder(this, index);return QMetaEnumBuilder(this, index);Executed by:
executed 2 times by 1 test: return QMetaEnumBuilder(this, index);Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 538 | else | - | ||||||||||||||||||||||||||||||
| 539 | return executed 1 time by 1 test: QMetaEnumBuilder();return QMetaEnumBuilder();Executed by:
executed 1 time by 1 test: return QMetaEnumBuilder();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 540 | } | - | ||||||||||||||||||||||||||||||
| 541 | const QMetaObject *QMetaObjectBuilder::relatedMetaObject(int index) const | - | ||||||||||||||||||||||||||||||
| 542 | { | - | ||||||||||||||||||||||||||||||
| 543 | if (index >= 0
| 0-3 | ||||||||||||||||||||||||||||||
| 544 | return executed 3 times by 1 test: d->relatedMetaObjects[index];return d->relatedMetaObjects[index];Executed by:
executed 3 times by 1 test: return d->relatedMetaObjects[index];Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 545 | else | - | ||||||||||||||||||||||||||||||
| 546 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||||||||||||||
| 547 | } | - | ||||||||||||||||||||||||||||||
| 548 | QByteArray QMetaObjectBuilder::classInfoName(int index) const | - | ||||||||||||||||||||||||||||||
| 549 | { | - | ||||||||||||||||||||||||||||||
| 550 | if (index >= 0
| 0-4 | ||||||||||||||||||||||||||||||
| 551 | return executed 3 times by 1 test: d->classInfoNames[index];return d->classInfoNames[index];Executed by:
executed 3 times by 1 test: return d->classInfoNames[index];Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 552 | else | - | ||||||||||||||||||||||||||||||
| 553 | return executed 1 time by 1 test: QByteArray();return QByteArray();Executed by:
executed 1 time by 1 test: return QByteArray();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 554 | } | - | ||||||||||||||||||||||||||||||
| 555 | QByteArray QMetaObjectBuilder::classInfoValue(int index) const | - | ||||||||||||||||||||||||||||||
| 556 | { | - | ||||||||||||||||||||||||||||||
| 557 | if (index >= 0
| 0-4 | ||||||||||||||||||||||||||||||
| 558 | return executed 3 times by 1 test: d->classInfoValues[index];return d->classInfoValues[index];Executed by:
executed 3 times by 1 test: return d->classInfoValues[index];Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 559 | else | - | ||||||||||||||||||||||||||||||
| 560 | return executed 1 time by 1 test: QByteArray();return QByteArray();Executed by:
executed 1 time by 1 test: return QByteArray();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 561 | } | - | ||||||||||||||||||||||||||||||
| 562 | void QMetaObjectBuilder::removeMethod(int index) | - | ||||||||||||||||||||||||||||||
| 563 | { | - | ||||||||||||||||||||||||||||||
| 564 | if (index >= 0
| 0-3 | ||||||||||||||||||||||||||||||
| 565 | d->methods.removeAt(index); | - | ||||||||||||||||||||||||||||||
| 566 | for (int prop = 0; prop < d->properties.size()
| 2-3 | ||||||||||||||||||||||||||||||
| 567 | - | |||||||||||||||||||||||||||||||
| 568 | if (d->properties[prop].notifySignal == index
| 1 | ||||||||||||||||||||||||||||||
| 569 | d->properties[prop].notifySignal = -1; | - | ||||||||||||||||||||||||||||||
| 570 | d->properties[prop].setFlag(Notify, false); | - | ||||||||||||||||||||||||||||||
| 571 | } executed 1 time by 1 test: else if (d->properties[prop].notifySignal > indexend of blockExecuted by:
| 0-1 | ||||||||||||||||||||||||||||||
| 572 | ( executed 1 time by 1 test: d->properties[prop].notifySignal)--;(d->properties[prop].notifySignal)--;Executed by:
executed 1 time by 1 test: (d->properties[prop].notifySignal)--;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 573 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 574 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||
| 575 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||
| 576 | void QMetaObjectBuilder::removeConstructor(int index) | - | ||||||||||||||||||||||||||||||
| 577 | { | - | ||||||||||||||||||||||||||||||
| 578 | if (index >= 0
| 0-1 | ||||||||||||||||||||||||||||||
| 579 | d->constructors.removeAt(index); executed 1 time by 1 test: d->constructors.removeAt(index);Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 580 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 581 | - | |||||||||||||||||||||||||||||||
| 582 | - | |||||||||||||||||||||||||||||||
| 583 | - | |||||||||||||||||||||||||||||||
| 584 | - | |||||||||||||||||||||||||||||||
| 585 | - | |||||||||||||||||||||||||||||||
| 586 | - | |||||||||||||||||||||||||||||||
| 587 | - | |||||||||||||||||||||||||||||||
| 588 | void QMetaObjectBuilder::removeProperty(int index) | - | ||||||||||||||||||||||||||||||
| 589 | { | - | ||||||||||||||||||||||||||||||
| 590 | if (index >= 0
| 0-1 | ||||||||||||||||||||||||||||||
| 591 | d->properties.removeAt(index); executed 1 time by 1 test: d->properties.removeAt(index);Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 592 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 593 | void QMetaObjectBuilder::removeEnumerator(int index) | - | ||||||||||||||||||||||||||||||
| 594 | { | - | ||||||||||||||||||||||||||||||
| 595 | if (index >= 0
| 0-1 | ||||||||||||||||||||||||||||||
| 596 | d->enumerators.removeAt(index); executed 1 time by 1 test: d->enumerators.removeAt(index);Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 597 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 598 | void QMetaObjectBuilder::removeClassInfo(int index) | - | ||||||||||||||||||||||||||||||
| 599 | { | - | ||||||||||||||||||||||||||||||
| 600 | if (index >= 0
| 0-1 | ||||||||||||||||||||||||||||||
| 601 | d->classInfoNames.removeAt(index); | - | ||||||||||||||||||||||||||||||
| 602 | d->classInfoValues.removeAt(index); | - | ||||||||||||||||||||||||||||||
| 603 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 604 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 605 | void QMetaObjectBuilder::removeRelatedMetaObject(int index) | - | ||||||||||||||||||||||||||||||
| 606 | { | - | ||||||||||||||||||||||||||||||
| 607 | if (index >= 0
| 0-1 | ||||||||||||||||||||||||||||||
| 608 | d->relatedMetaObjects.removeAt(index); executed 1 time by 1 test: d->relatedMetaObjects.removeAt(index);Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 609 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 610 | - | |||||||||||||||||||||||||||||||
| 611 | - | |||||||||||||||||||||||||||||||
| 612 | - | |||||||||||||||||||||||||||||||
| 613 | - | |||||||||||||||||||||||||||||||
| 614 | - | |||||||||||||||||||||||||||||||
| 615 | - | |||||||||||||||||||||||||||||||
| 616 | - | |||||||||||||||||||||||||||||||
| 617 | int QMetaObjectBuilder::indexOfMethod(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 618 | { | - | ||||||||||||||||||||||||||||||
| 619 | QByteArray sig = QMetaObject::normalizedSignature(signature); | - | ||||||||||||||||||||||||||||||
| 620 | for (int index = 0; index < d->methods.size()
| 4-20 | ||||||||||||||||||||||||||||||
| 621 | if (sig == d->methods[index].signature
| 7-13 | ||||||||||||||||||||||||||||||
| 622 | return executed 7 times by 1 test: index;return index;Executed by:
executed 7 times by 1 test: return index;Executed by:
| 7 | ||||||||||||||||||||||||||||||
| 623 | } executed 13 times by 1 test: end of blockExecuted by:
| 13 | ||||||||||||||||||||||||||||||
| 624 | return executed 4 times by 1 test: -1;return -1;Executed by:
executed 4 times by 1 test: return -1;Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 625 | } | - | ||||||||||||||||||||||||||||||
| 626 | - | |||||||||||||||||||||||||||||||
| 627 | - | |||||||||||||||||||||||||||||||
| 628 | - | |||||||||||||||||||||||||||||||
| 629 | - | |||||||||||||||||||||||||||||||
| 630 | - | |||||||||||||||||||||||||||||||
| 631 | - | |||||||||||||||||||||||||||||||
| 632 | - | |||||||||||||||||||||||||||||||
| 633 | int QMetaObjectBuilder::indexOfSignal(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 634 | { | - | ||||||||||||||||||||||||||||||
| 635 | QByteArray sig = QMetaObject::normalizedSignature(signature); | - | ||||||||||||||||||||||||||||||
| 636 | for (int index = 0; index < d->methods.size()
| 1-5 | ||||||||||||||||||||||||||||||
| 637 | if (sig == d->methods[index].signature
| 2-3 | ||||||||||||||||||||||||||||||
| 638 | d->methods[index].methodType() == QMetaMethod::Signal
| 0-2 | ||||||||||||||||||||||||||||||
| 639 | return executed 2 times by 1 test: index;return index;Executed by:
executed 2 times by 1 test: return index;Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 640 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||
| 641 | return executed 1 time by 1 test: -1;return -1;Executed by:
executed 1 time by 1 test: return -1;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 642 | } | - | ||||||||||||||||||||||||||||||
| 643 | - | |||||||||||||||||||||||||||||||
| 644 | - | |||||||||||||||||||||||||||||||
| 645 | - | |||||||||||||||||||||||||||||||
| 646 | - | |||||||||||||||||||||||||||||||
| 647 | - | |||||||||||||||||||||||||||||||
| 648 | - | |||||||||||||||||||||||||||||||
| 649 | - | |||||||||||||||||||||||||||||||
| 650 | int QMetaObjectBuilder::indexOfSlot(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 651 | { | - | ||||||||||||||||||||||||||||||
| 652 | QByteArray sig = QMetaObject::normalizedSignature(signature); | - | ||||||||||||||||||||||||||||||
| 653 | for (int index = 0; index < d->methods.size()
| 1-5 | ||||||||||||||||||||||||||||||
| 654 | if (sig == d->methods[index].signature
| 2-3 | ||||||||||||||||||||||||||||||
| 655 | d->methods[index].methodType() == QMetaMethod::Slot
| 0-2 | ||||||||||||||||||||||||||||||
| 656 | return executed 2 times by 1 test: index;return index;Executed by:
executed 2 times by 1 test: return index;Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 657 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||||||||
| 658 | return executed 1 time by 1 test: -1;return -1;Executed by:
executed 1 time by 1 test: return -1;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 659 | } | - | ||||||||||||||||||||||||||||||
| 660 | - | |||||||||||||||||||||||||||||||
| 661 | - | |||||||||||||||||||||||||||||||
| 662 | - | |||||||||||||||||||||||||||||||
| 663 | - | |||||||||||||||||||||||||||||||
| 664 | - | |||||||||||||||||||||||||||||||
| 665 | - | |||||||||||||||||||||||||||||||
| 666 | - | |||||||||||||||||||||||||||||||
| 667 | int QMetaObjectBuilder::indexOfConstructor(const QByteArray& signature) | - | ||||||||||||||||||||||||||||||
| 668 | { | - | ||||||||||||||||||||||||||||||
| 669 | QByteArray sig = QMetaObject::normalizedSignature(signature); | - | ||||||||||||||||||||||||||||||
| 670 | for (int index = 0; index < d->constructors.size()
| 3-8 | ||||||||||||||||||||||||||||||
| 671 | if (sig == d->constructors[index].signature
| 3-5 | ||||||||||||||||||||||||||||||
| 672 | return executed 3 times by 1 test: index;return index;Executed by:
executed 3 times by 1 test: return index;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 673 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 674 | return executed 3 times by 1 test: -1;return -1;Executed by:
executed 3 times by 1 test: return -1;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 675 | } | - | ||||||||||||||||||||||||||||||
| 676 | - | |||||||||||||||||||||||||||||||
| 677 | - | |||||||||||||||||||||||||||||||
| 678 | - | |||||||||||||||||||||||||||||||
| 679 | - | |||||||||||||||||||||||||||||||
| 680 | - | |||||||||||||||||||||||||||||||
| 681 | - | |||||||||||||||||||||||||||||||
| 682 | - | |||||||||||||||||||||||||||||||
| 683 | int QMetaObjectBuilder::indexOfProperty(const QByteArray& name) | - | ||||||||||||||||||||||||||||||
| 684 | { | - | ||||||||||||||||||||||||||||||
| 685 | for (int index = 0; index < d->properties.size()
| 3-8 | ||||||||||||||||||||||||||||||
| 686 | if (name == d->properties[index].name
| 3-5 | ||||||||||||||||||||||||||||||
| 687 | return executed 3 times by 1 test: index;return index;Executed by:
executed 3 times by 1 test: return index;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 688 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 689 | return executed 3 times by 1 test: -1;return -1;Executed by:
executed 3 times by 1 test: return -1;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 690 | } | - | ||||||||||||||||||||||||||||||
| 691 | - | |||||||||||||||||||||||||||||||
| 692 | - | |||||||||||||||||||||||||||||||
| 693 | - | |||||||||||||||||||||||||||||||
| 694 | - | |||||||||||||||||||||||||||||||
| 695 | - | |||||||||||||||||||||||||||||||
| 696 | - | |||||||||||||||||||||||||||||||
| 697 | - | |||||||||||||||||||||||||||||||
| 698 | int QMetaObjectBuilder::indexOfEnumerator(const QByteArray& name) | - | ||||||||||||||||||||||||||||||
| 699 | { | - | ||||||||||||||||||||||||||||||
| 700 | for (int index = 0; index < d->enumerators.size()
| 3-8 | ||||||||||||||||||||||||||||||
| 701 | if (name == d->enumerators[index].name
| 3-5 | ||||||||||||||||||||||||||||||
| 702 | return executed 3 times by 1 test: index;return index;Executed by:
executed 3 times by 1 test: return index;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 703 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 704 | return executed 3 times by 1 test: -1;return -1;Executed by:
executed 3 times by 1 test: return -1;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 705 | } | - | ||||||||||||||||||||||||||||||
| 706 | int QMetaObjectBuilder::indexOfClassInfo(const QByteArray& name) | - | ||||||||||||||||||||||||||||||
| 707 | { | - | ||||||||||||||||||||||||||||||
| 708 | for (int index = 0; index < d->classInfoNames.size()
| 3-8 | ||||||||||||||||||||||||||||||
| 709 | if (name == d->classInfoNames[index]
| 3-5 | ||||||||||||||||||||||||||||||
| 710 | return executed 3 times by 1 test: index;return index;Executed by:
executed 3 times by 1 test: return index;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 711 | } executed 5 times by 1 test: end of blockExecuted by:
| 5 | ||||||||||||||||||||||||||||||
| 712 | return executed 3 times by 1 test: -1;return -1;Executed by:
executed 3 times by 1 test: return -1;Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 713 | } | - | ||||||||||||||||||||||||||||||
| 714 | QMetaStringTable::QMetaStringTable(const QByteArray &className) | - | ||||||||||||||||||||||||||||||
| 715 | : m_index(0) | - | ||||||||||||||||||||||||||||||
| 716 | , m_className(className) | - | ||||||||||||||||||||||||||||||
| 717 | { | - | ||||||||||||||||||||||||||||||
| 718 | const int index = enter(m_className); | - | ||||||||||||||||||||||||||||||
| 719 | ((!(index == 0)) ? qt_assert("index == 0",__FILE__,1081) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 720 | (void)index;; | - | ||||||||||||||||||||||||||||||
| 721 | } executed 180 times by 11 tests: end of blockExecuted by:
| 180 | ||||||||||||||||||||||||||||||
| 722 | - | |||||||||||||||||||||||||||||||
| 723 | - | |||||||||||||||||||||||||||||||
| 724 | - | |||||||||||||||||||||||||||||||
| 725 | int QMetaStringTable::enter(const QByteArray &value) | - | ||||||||||||||||||||||||||||||
| 726 | { | - | ||||||||||||||||||||||||||||||
| 727 | Entries::iterator it = m_entries.find(value); | - | ||||||||||||||||||||||||||||||
| 728 | if (it != m_entries.end()
| 1552-2423 | ||||||||||||||||||||||||||||||
| 729 | return executed 1552 times by 11 tests: it.value();return it.value();Executed by:
executed 1552 times by 11 tests: return it.value();Executed by:
| 1552 | ||||||||||||||||||||||||||||||
| 730 | int pos = m_index; | - | ||||||||||||||||||||||||||||||
| 731 | m_entries.insert(value, pos); | - | ||||||||||||||||||||||||||||||
| 732 | ++m_index; | - | ||||||||||||||||||||||||||||||
| 733 | return executed 2423 times by 11 tests: pos;return pos;Executed by:
executed 2423 times by 11 tests: return pos;Executed by:
| 2423 | ||||||||||||||||||||||||||||||
| 734 | } | - | ||||||||||||||||||||||||||||||
| 735 | - | |||||||||||||||||||||||||||||||
| 736 | int QMetaStringTable::preferredAlignment() | - | ||||||||||||||||||||||||||||||
| 737 | { | - | ||||||||||||||||||||||||||||||
| 738 | return executed 162 times by 11 tests: alignof(QByteArrayData);return alignof(QByteArrayData);Executed by:
executed 162 times by 11 tests: return alignof(QByteArrayData);Executed by:
| 162 | ||||||||||||||||||||||||||||||
| 739 | } | - | ||||||||||||||||||||||||||||||
| 740 | - | |||||||||||||||||||||||||||||||
| 741 | - | |||||||||||||||||||||||||||||||
| 742 | int QMetaStringTable::blobSize() const | - | ||||||||||||||||||||||||||||||
| 743 | { | - | ||||||||||||||||||||||||||||||
| 744 | int size = m_entries.size() * sizeof(QByteArrayData); | - | ||||||||||||||||||||||||||||||
| 745 | Entries::const_iterator it; | - | ||||||||||||||||||||||||||||||
| 746 | for (it = m_entries.constBegin(); it != m_entries.constEnd()
| 180-2423 | ||||||||||||||||||||||||||||||
| 747 | size += it.key().size() + 1; executed 2423 times by 11 tests: size += it.key().size() + 1;Executed by:
| 2423 | ||||||||||||||||||||||||||||||
| 748 | return executed 180 times by 11 tests: size;return size;Executed by:
executed 180 times by 11 tests: return size;Executed by:
| 180 | ||||||||||||||||||||||||||||||
| 749 | } | - | ||||||||||||||||||||||||||||||
| 750 | - | |||||||||||||||||||||||||||||||
| 751 | static void writeString(char *out, int i, const QByteArray &str, | - | ||||||||||||||||||||||||||||||
| 752 | const int offsetOfStringdataMember, int &stringdataOffset) | - | ||||||||||||||||||||||||||||||
| 753 | { | - | ||||||||||||||||||||||||||||||
| 754 | int size = str.size(); | - | ||||||||||||||||||||||||||||||
| 755 | qptrdiff offset = offsetOfStringdataMember + stringdataOffset | - | ||||||||||||||||||||||||||||||
| 756 | - i * sizeof(QByteArrayData); | - | ||||||||||||||||||||||||||||||
| 757 | const QByteArrayData data = | - | ||||||||||||||||||||||||||||||
| 758 | { { { -1 } }, size, 0, 0, offset }; | - | ||||||||||||||||||||||||||||||
| 759 | - | |||||||||||||||||||||||||||||||
| 760 | memcpy(out + i * sizeof(QByteArrayData), &data, sizeof(QByteArrayData)); | - | ||||||||||||||||||||||||||||||
| 761 | - | |||||||||||||||||||||||||||||||
| 762 | memcpy(out + offsetOfStringdataMember + stringdataOffset, str.constData(), size); | - | ||||||||||||||||||||||||||||||
| 763 | out[offsetOfStringdataMember + stringdataOffset + size] = '\0'; | - | ||||||||||||||||||||||||||||||
| 764 | - | |||||||||||||||||||||||||||||||
| 765 | stringdataOffset += size + 1; | - | ||||||||||||||||||||||||||||||
| 766 | } executed 2141 times by 11 tests: end of blockExecuted by:
| 2141 | ||||||||||||||||||||||||||||||
| 767 | - | |||||||||||||||||||||||||||||||
| 768 | - | |||||||||||||||||||||||||||||||
| 769 | - | |||||||||||||||||||||||||||||||
| 770 | - | |||||||||||||||||||||||||||||||
| 771 | - | |||||||||||||||||||||||||||||||
| 772 | void QMetaStringTable::writeBlob(char *out) const | - | ||||||||||||||||||||||||||||||
| 773 | { | - | ||||||||||||||||||||||||||||||
| 774 | ((!(!(reinterpret_cast<quintptr>(out) & (preferredAlignment()-1)))) ? qt_assert("!(reinterpret_cast<quintptr>(out) & (preferredAlignment()-1))",__FILE__,1136) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 775 | - | |||||||||||||||||||||||||||||||
| 776 | int offsetOfStringdataMember = m_entries.size() * sizeof(QByteArrayData); | - | ||||||||||||||||||||||||||||||
| 777 | int stringdataOffset = 0; | - | ||||||||||||||||||||||||||||||
| 778 | - | |||||||||||||||||||||||||||||||
| 779 | - | |||||||||||||||||||||||||||||||
| 780 | writeString(out, 0, m_className, offsetOfStringdataMember, stringdataOffset); | - | ||||||||||||||||||||||||||||||
| 781 | - | |||||||||||||||||||||||||||||||
| 782 | for (Entries::ConstIterator it = m_entries.constBegin(), end = m_entries.constEnd(); | - | ||||||||||||||||||||||||||||||
| 783 | it != end
| 162-2141 | ||||||||||||||||||||||||||||||
| 784 | const int i = it.value(); | - | ||||||||||||||||||||||||||||||
| 785 | if (i == 0
| 162-1979 | ||||||||||||||||||||||||||||||
| 786 | continue; executed 162 times by 11 tests: continue;Executed by:
| 162 | ||||||||||||||||||||||||||||||
| 787 | const QByteArray &str = it.key(); | - | ||||||||||||||||||||||||||||||
| 788 | - | |||||||||||||||||||||||||||||||
| 789 | writeString(out, i, str, offsetOfStringdataMember, stringdataOffset); | - | ||||||||||||||||||||||||||||||
| 790 | } executed 1979 times by 11 tests: end of blockExecuted by:
| 1979 | ||||||||||||||||||||||||||||||
| 791 | } executed 162 times by 11 tests: end of blockExecuted by:
| 162 | ||||||||||||||||||||||||||||||
| 792 | - | |||||||||||||||||||||||||||||||
| 793 | - | |||||||||||||||||||||||||||||||
| 794 | - | |||||||||||||||||||||||||||||||
| 795 | - | |||||||||||||||||||||||||||||||
| 796 | static int aggregateParameterCount(const QVector<QMetaMethodBuilderPrivate> &methods) | - | ||||||||||||||||||||||||||||||
| 797 | { | - | ||||||||||||||||||||||||||||||
| 798 | int sum = 0; | - | ||||||||||||||||||||||||||||||
| 799 | for (int i = 0; i < methods.size()
| 72-258 | ||||||||||||||||||||||||||||||
| 800 | sum += methods.at(i).parameterCount() + 1; executed 258 times by 1 test: sum += methods.at(i).parameterCount() + 1;Executed by:
| 258 | ||||||||||||||||||||||||||||||
| 801 | return executed 72 times by 1 test: sum;return sum;Executed by:
executed 72 times by 1 test: return sum;Executed by:
| 72 | ||||||||||||||||||||||||||||||
| 802 | } | - | ||||||||||||||||||||||||||||||
| 803 | - | |||||||||||||||||||||||||||||||
| 804 | - | |||||||||||||||||||||||||||||||
| 805 | - | |||||||||||||||||||||||||||||||
| 806 | - | |||||||||||||||||||||||||||||||
| 807 | - | |||||||||||||||||||||||||||||||
| 808 | static int buildMetaObject(QMetaObjectBuilderPrivate *d, char *buf, | - | ||||||||||||||||||||||||||||||
| 809 | int expectedSize, bool relocatable) | - | ||||||||||||||||||||||||||||||
| 810 | { | - | ||||||||||||||||||||||||||||||
| 811 | (void)expectedSize;; | - | ||||||||||||||||||||||||||||||
| 812 | int size = 0; | - | ||||||||||||||||||||||||||||||
| 813 | int dataIndex; | - | ||||||||||||||||||||||||||||||
| 814 | int paramsIndex; | - | ||||||||||||||||||||||||||||||
| 815 | int enumIndex; | - | ||||||||||||||||||||||||||||||
| 816 | int index; | - | ||||||||||||||||||||||||||||||
| 817 | bool hasRevisionedMethods = d->hasRevisionedMethods(); | - | ||||||||||||||||||||||||||||||
| 818 | bool hasRevisionedProperties = d->hasRevisionedProperties(); | - | ||||||||||||||||||||||||||||||
| 819 | bool hasNotifySignals = false; | - | ||||||||||||||||||||||||||||||
| 820 | - | |||||||||||||||||||||||||||||||
| 821 | if (relocatable
| 2-34 | ||||||||||||||||||||||||||||||
| 822 | (d->relatedMetaObjects.size() > 0
| 0-2 | ||||||||||||||||||||||||||||||
| 823 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||||||||||||||||||||||||||
| 824 | - | |||||||||||||||||||||||||||||||
| 825 | - | |||||||||||||||||||||||||||||||
| 826 | QMetaObject *meta = reinterpret_cast<QMetaObject *>(buf); | - | ||||||||||||||||||||||||||||||
| 827 | size += sizeof(QMetaObject); | - | ||||||||||||||||||||||||||||||
| 828 | (size) = ((size) + sizeof(int) - 1) & ~(sizeof(int) - 1); | - | ||||||||||||||||||||||||||||||
| 829 | if (buf
| 18 | ||||||||||||||||||||||||||||||
| 830 | if (!relocatable
executed 17 times by 1 test: meta->d.superdata = d->superClass;Executed by:
| 1-17 | ||||||||||||||||||||||||||||||
| 831 | meta->d.relatedMetaObjects = 0; | - | ||||||||||||||||||||||||||||||
| 832 | meta->d.extradata = 0; | - | ||||||||||||||||||||||||||||||
| 833 | meta->d.static_metacall = d->staticMetacallFunction; | - | ||||||||||||||||||||||||||||||
| 834 | } executed 18 times by 1 test: end of blockExecuted by:
| 18 | ||||||||||||||||||||||||||||||
| 835 | - | |||||||||||||||||||||||||||||||
| 836 | - | |||||||||||||||||||||||||||||||
| 837 | QMetaObjectPrivate *pmeta | - | ||||||||||||||||||||||||||||||
| 838 | = reinterpret_cast<QMetaObjectPrivate *>(buf + size); | - | ||||||||||||||||||||||||||||||
| 839 | int pmetaSize = size; | - | ||||||||||||||||||||||||||||||
| 840 | dataIndex = MetaObjectPrivateFieldCount; | - | ||||||||||||||||||||||||||||||
| 841 | for (index = 0; index < d->properties.size()
| 4-34 | ||||||||||||||||||||||||||||||
| 842 | if (d->properties[index].notifySignal != -1
| 2-32 | ||||||||||||||||||||||||||||||
| 843 | hasNotifySignals = true; | - | ||||||||||||||||||||||||||||||
| 844 | break; executed 32 times by 1 test: break;Executed by:
| 32 | ||||||||||||||||||||||||||||||
| 845 | } | - | ||||||||||||||||||||||||||||||
| 846 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 847 | int methodParametersDataSize = | - | ||||||||||||||||||||||||||||||
| 848 | ((aggregateParameterCount(d->methods) | - | ||||||||||||||||||||||||||||||
| 849 | + aggregateParameterCount(d->constructors)) * 2) | - | ||||||||||||||||||||||||||||||
| 850 | - d->methods.size() | - | ||||||||||||||||||||||||||||||
| 851 | - d->constructors.size(); | - | ||||||||||||||||||||||||||||||
| 852 | if (buf
| 18 | ||||||||||||||||||||||||||||||
| 853 | static_assert(bool(QMetaObjectPrivate::OutputRevision == 7), "QMetaObjectBuilder should generate the same version as moc"); | - | ||||||||||||||||||||||||||||||
| 854 | pmeta->revision = QMetaObjectPrivate::OutputRevision; | - | ||||||||||||||||||||||||||||||
| 855 | pmeta->flags = d->flags; | - | ||||||||||||||||||||||||||||||
| 856 | pmeta->className = 0; | - | ||||||||||||||||||||||||||||||
| 857 | - | |||||||||||||||||||||||||||||||
| 858 | - | |||||||||||||||||||||||||||||||
| 859 | pmeta->classInfoCount = d->classInfoNames.size(); | - | ||||||||||||||||||||||||||||||
| 860 | pmeta->classInfoData = dataIndex; | - | ||||||||||||||||||||||||||||||
| 861 | dataIndex += 2 * d->classInfoNames.size(); | - | ||||||||||||||||||||||||||||||
| 862 | - | |||||||||||||||||||||||||||||||
| 863 | pmeta->methodCount = d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 864 | pmeta->methodData = dataIndex; | - | ||||||||||||||||||||||||||||||
| 865 | dataIndex += 5 * d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 866 | if (hasRevisionedMethods
| 4-14 | ||||||||||||||||||||||||||||||
| 867 | dataIndex += d->methods.size(); executed 4 times by 1 test: dataIndex += d->methods.size();Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 868 | paramsIndex = dataIndex; | - | ||||||||||||||||||||||||||||||
| 869 | dataIndex += methodParametersDataSize; | - | ||||||||||||||||||||||||||||||
| 870 | - | |||||||||||||||||||||||||||||||
| 871 | pmeta->propertyCount = d->properties.size(); | - | ||||||||||||||||||||||||||||||
| 872 | pmeta->propertyData = dataIndex; | - | ||||||||||||||||||||||||||||||
| 873 | dataIndex += 3 * d->properties.size(); | - | ||||||||||||||||||||||||||||||
| 874 | if (hasNotifySignals
| 2-16 | ||||||||||||||||||||||||||||||
| 875 | dataIndex += d->properties.size(); executed 16 times by 1 test: dataIndex += d->properties.size();Executed by:
| 16 | ||||||||||||||||||||||||||||||
| 876 | if (hasRevisionedProperties
| 4-14 | ||||||||||||||||||||||||||||||
| 877 | dataIndex += d->properties.size(); executed 4 times by 1 test: dataIndex += d->properties.size();Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 878 | - | |||||||||||||||||||||||||||||||
| 879 | pmeta->enumeratorCount = d->enumerators.size(); | - | ||||||||||||||||||||||||||||||
| 880 | pmeta->enumeratorData = dataIndex; | - | ||||||||||||||||||||||||||||||
| 881 | dataIndex += 4 * d->enumerators.size(); | - | ||||||||||||||||||||||||||||||
| 882 | - | |||||||||||||||||||||||||||||||
| 883 | pmeta->constructorCount = d->constructors.size(); | - | ||||||||||||||||||||||||||||||
| 884 | pmeta->constructorData = dataIndex; | - | ||||||||||||||||||||||||||||||
| 885 | dataIndex += 5 * d->constructors.size(); | - | ||||||||||||||||||||||||||||||
| 886 | } executed 18 times by 1 test: else {end of blockExecuted by:
| 18 | ||||||||||||||||||||||||||||||
| 887 | dataIndex += 2 * d->classInfoNames.size(); | - | ||||||||||||||||||||||||||||||
| 888 | dataIndex += 5 * d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 889 | if (hasRevisionedMethods
| 4-14 | ||||||||||||||||||||||||||||||
| 890 | dataIndex += d->methods.size(); executed 4 times by 1 test: dataIndex += d->methods.size();Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 891 | paramsIndex = dataIndex; | - | ||||||||||||||||||||||||||||||
| 892 | dataIndex += methodParametersDataSize; | - | ||||||||||||||||||||||||||||||
| 893 | dataIndex += 3 * d->properties.size(); | - | ||||||||||||||||||||||||||||||
| 894 | if (hasNotifySignals
| 2-16 | ||||||||||||||||||||||||||||||
| 895 | dataIndex += d->properties.size(); executed 16 times by 1 test: dataIndex += d->properties.size();Executed by:
| 16 | ||||||||||||||||||||||||||||||
| 896 | if (hasRevisionedProperties
| 4-14 | ||||||||||||||||||||||||||||||
| 897 | dataIndex += d->properties.size(); executed 4 times by 1 test: dataIndex += d->properties.size();Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 898 | dataIndex += 4 * d->enumerators.size(); | - | ||||||||||||||||||||||||||||||
| 899 | dataIndex += 5 * d->constructors.size(); | - | ||||||||||||||||||||||||||||||
| 900 | } executed 18 times by 1 test: end of blockExecuted by:
| 18 | ||||||||||||||||||||||||||||||
| 901 | - | |||||||||||||||||||||||||||||||
| 902 | - | |||||||||||||||||||||||||||||||
| 903 | enumIndex = dataIndex; | - | ||||||||||||||||||||||||||||||
| 904 | for (index = 0; index < d->enumerators.size()
| 16-36 | ||||||||||||||||||||||||||||||
| 905 | QMetaEnumBuilderPrivate *enumerator = &(d->enumerators[index]); | - | ||||||||||||||||||||||||||||||
| 906 | dataIndex += 2 * enumerator->keys.size(); | - | ||||||||||||||||||||||||||||||
| 907 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 | ||||||||||||||||||||||||||||||
| 908 | - | |||||||||||||||||||||||||||||||
| 909 | - | |||||||||||||||||||||||||||||||
| 910 | ++dataIndex; | - | ||||||||||||||||||||||||||||||
| 911 | - | |||||||||||||||||||||||||||||||
| 912 | - | |||||||||||||||||||||||||||||||
| 913 | int *data = reinterpret_cast<int *>(pmeta); | - | ||||||||||||||||||||||||||||||
| 914 | size += dataIndex * sizeof(int); | - | ||||||||||||||||||||||||||||||
| 915 | (size) = ((size) + sizeof(void *) - 1) & ~(sizeof(void *) - 1); | - | ||||||||||||||||||||||||||||||
| 916 | char *str = reinterpret_cast<char *>(buf + size); | - | ||||||||||||||||||||||||||||||
| 917 | if (buf
| 18 | ||||||||||||||||||||||||||||||
| 918 | if (relocatable
| 1-17 | ||||||||||||||||||||||||||||||
| 919 | meta->d.stringdata = reinterpret_cast<const QByteArrayData *>((quintptr)size); | - | ||||||||||||||||||||||||||||||
| 920 | meta->d.data = reinterpret_cast<uint *>((quintptr)pmetaSize); | - | ||||||||||||||||||||||||||||||
| 921 | } executed 1 time by 1 test: else {end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 922 | meta->d.stringdata = reinterpret_cast<const QByteArrayData *>(str); | - | ||||||||||||||||||||||||||||||
| 923 | meta->d.data = reinterpret_cast<uint *>(data); | - | ||||||||||||||||||||||||||||||
| 924 | } executed 17 times by 1 test: end of blockExecuted by:
| 17 | ||||||||||||||||||||||||||||||
| 925 | } | - | ||||||||||||||||||||||||||||||
| 926 | - | |||||||||||||||||||||||||||||||
| 927 | - | |||||||||||||||||||||||||||||||
| 928 | dataIndex = MetaObjectPrivateFieldCount; | - | ||||||||||||||||||||||||||||||
| 929 | - | |||||||||||||||||||||||||||||||
| 930 | QMetaStringTable strings(d->className); | - | ||||||||||||||||||||||||||||||
| 931 | - | |||||||||||||||||||||||||||||||
| 932 | - | |||||||||||||||||||||||||||||||
| 933 | ((!(!buf || dataIndex == pmeta->classInfoData)) ? qt_assert("!buf || dataIndex == pmeta->classInfoData",__FILE__,1295) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 934 | for (index = 0; index < d->classInfoNames.size()
| 16-36 | ||||||||||||||||||||||||||||||
| 935 | int name = strings.enter(d->classInfoNames[index]); | - | ||||||||||||||||||||||||||||||
| 936 | int value = strings.enter(d->classInfoValues[index]); | - | ||||||||||||||||||||||||||||||
| 937 | if (buf
| 8 | ||||||||||||||||||||||||||||||
| 938 | data[dataIndex] = name; | - | ||||||||||||||||||||||||||||||
| 939 | data[dataIndex + 1] = value; | - | ||||||||||||||||||||||||||||||
| 940 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 941 | dataIndex += 2; | - | ||||||||||||||||||||||||||||||
| 942 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 | ||||||||||||||||||||||||||||||
| 943 | - | |||||||||||||||||||||||||||||||
| 944 | - | |||||||||||||||||||||||||||||||
| 945 | ((!(!buf || dataIndex == pmeta->methodData)) ? qt_assert("!buf || dataIndex == pmeta->methodData",__FILE__,1307) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 946 | for (index = 0; index < d->methods.size()
| 36-210 | ||||||||||||||||||||||||||||||
| 947 | QMetaMethodBuilderPrivate *method = &(d->methods[index]); | - | ||||||||||||||||||||||||||||||
| 948 | int name = strings.enter(method->name()); | - | ||||||||||||||||||||||||||||||
| 949 | int argc = method->parameterCount(); | - | ||||||||||||||||||||||||||||||
| 950 | int tag = strings.enter(method->tag); | - | ||||||||||||||||||||||||||||||
| 951 | int attrs = method->attributes; | - | ||||||||||||||||||||||||||||||
| 952 | if (buf
| 105 | ||||||||||||||||||||||||||||||
| 953 | data[dataIndex] = name; | - | ||||||||||||||||||||||||||||||
| 954 | data[dataIndex + 1] = argc; | - | ||||||||||||||||||||||||||||||
| 955 | data[dataIndex + 2] = paramsIndex; | - | ||||||||||||||||||||||||||||||
| 956 | data[dataIndex + 3] = tag; | - | ||||||||||||||||||||||||||||||
| 957 | data[dataIndex + 4] = attrs; | - | ||||||||||||||||||||||||||||||
| 958 | if (method->methodType() == QMetaMethod::Signal
| 26-79 | ||||||||||||||||||||||||||||||
| 959 | pmeta->signalCount++; executed 26 times by 1 test: pmeta->signalCount++;Executed by:
| 26 | ||||||||||||||||||||||||||||||
| 960 | } executed 105 times by 1 test: end of blockExecuted by:
| 105 | ||||||||||||||||||||||||||||||
| 961 | dataIndex += 5; | - | ||||||||||||||||||||||||||||||
| 962 | paramsIndex += 1 + argc * 2; | - | ||||||||||||||||||||||||||||||
| 963 | } executed 210 times by 1 test: end of blockExecuted by:
| 210 | ||||||||||||||||||||||||||||||
| 964 | if (hasRevisionedMethods
| 8-28 | ||||||||||||||||||||||||||||||
| 965 | for (index = 0; index < d->methods.size()
| 8-80 | ||||||||||||||||||||||||||||||
| 966 | QMetaMethodBuilderPrivate *method = &(d->methods[index]); | - | ||||||||||||||||||||||||||||||
| 967 | if (buf
| 40 | ||||||||||||||||||||||||||||||
| 968 | data[dataIndex] = method->revision; executed 40 times by 1 test: data[dataIndex] = method->revision;Executed by:
| 40 | ||||||||||||||||||||||||||||||
| 969 | ++dataIndex; | - | ||||||||||||||||||||||||||||||
| 970 | } executed 80 times by 1 test: end of blockExecuted by:
| 80 | ||||||||||||||||||||||||||||||
| 971 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 972 | - | |||||||||||||||||||||||||||||||
| 973 | - | |||||||||||||||||||||||||||||||
| 974 | ((!(!buf || dataIndex == pmeta->methodData + d->methods.size() * 5 + (hasRevisionedMethods ? d->methods.size() : 0))) ? qt_assert("!buf || dataIndex == pmeta->methodData + d->methods.size() * 5 + (hasRevisionedMethods ? d->methods.size() : 0)", | - | ||||||||||||||||||||||||||||||
| 975 | __FILE__ | - | ||||||||||||||||||||||||||||||
| 976 | , | - | ||||||||||||||||||||||||||||||
| 977 | 1337 | - | ||||||||||||||||||||||||||||||
| 978 | ) : qt_noop()) | - | ||||||||||||||||||||||||||||||
| 979 | ; | - | ||||||||||||||||||||||||||||||
| 980 | for (int x = 0; x < 2
| 36-72 | ||||||||||||||||||||||||||||||
| 981 | QVector<QMetaMethodBuilderPrivate> &methods = (
| 36 | ||||||||||||||||||||||||||||||
| 982 | for (index = 0; index < methods.size()
| 72-258 | ||||||||||||||||||||||||||||||
| 983 | QMetaMethodBuilderPrivate *method = &(methods[index]); | - | ||||||||||||||||||||||||||||||
| 984 | QList<QByteArray> paramTypeNames = method->parameterTypes(); | - | ||||||||||||||||||||||||||||||
| 985 | int paramCount = paramTypeNames.size(); | - | ||||||||||||||||||||||||||||||
| 986 | for (int i = -1; i < paramCount
| 258-444 | ||||||||||||||||||||||||||||||
| 987 | const QByteArray &typeName = (
| 186-258 | ||||||||||||||||||||||||||||||
| 988 | int typeInfo; | - | ||||||||||||||||||||||||||||||
| 989 | if (QtPrivate::isBuiltinType(typeName)
| 0-444 | ||||||||||||||||||||||||||||||
| 990 | typeInfo = QMetaType::type(typeName); executed 444 times by 1 test: typeInfo = QMetaType::type(typeName);Executed by:
| 444 | ||||||||||||||||||||||||||||||
| 991 | else | - | ||||||||||||||||||||||||||||||
| 992 | typeInfo = IsUnresolvedType | strings.enter(typeName); never executed: typeInfo = IsUnresolvedType | strings.enter(typeName); | 0 | ||||||||||||||||||||||||||||||
| 993 | if (buf
| 222 | ||||||||||||||||||||||||||||||
| 994 | data[dataIndex] = typeInfo; executed 222 times by 1 test: data[dataIndex] = typeInfo;Executed by:
| 222 | ||||||||||||||||||||||||||||||
| 995 | ++dataIndex; | - | ||||||||||||||||||||||||||||||
| 996 | } executed 444 times by 1 test: end of blockExecuted by:
| 444 | ||||||||||||||||||||||||||||||
| 997 | - | |||||||||||||||||||||||||||||||
| 998 | QList<QByteArray> paramNames = method->parameterNames; | - | ||||||||||||||||||||||||||||||
| 999 | while (paramNames.size() < paramCount
| 18-258 | ||||||||||||||||||||||||||||||
| 1000 | paramNames.append(QByteArray()); executed 18 times by 1 test: paramNames.append(QByteArray());Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 1001 | for (int i = 0; i < paramCount
| 186-258 | ||||||||||||||||||||||||||||||
| 1002 | int stringIndex = strings.enter(paramNames.at(i)); | - | ||||||||||||||||||||||||||||||
| 1003 | if (buf
| 93 | ||||||||||||||||||||||||||||||
| 1004 | data[dataIndex] = stringIndex; executed 93 times by 1 test: data[dataIndex] = stringIndex;Executed by:
| 93 | ||||||||||||||||||||||||||||||
| 1005 | ++dataIndex; | - | ||||||||||||||||||||||||||||||
| 1006 | } executed 186 times by 1 test: end of blockExecuted by:
| 186 | ||||||||||||||||||||||||||||||
| 1007 | } executed 258 times by 1 test: end of blockExecuted by:
| 258 | ||||||||||||||||||||||||||||||
| 1008 | } executed 72 times by 1 test: end of blockExecuted by:
| 72 | ||||||||||||||||||||||||||||||
| 1009 | - | |||||||||||||||||||||||||||||||
| 1010 | - | |||||||||||||||||||||||||||||||
| 1011 | ((!(!buf || dataIndex == pmeta->propertyData)) ? qt_assert("!buf || dataIndex == pmeta->propertyData",__FILE__,1369) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 1012 | for (index = 0; index < d->properties.size()
| 36-74 | ||||||||||||||||||||||||||||||
| 1013 | QMetaPropertyBuilderPrivate *prop = &(d->properties[index]); | - | ||||||||||||||||||||||||||||||
| 1014 | int name = strings.enter(prop->name); | - | ||||||||||||||||||||||||||||||
| 1015 | - | |||||||||||||||||||||||||||||||
| 1016 | int typeInfo; | - | ||||||||||||||||||||||||||||||
| 1017 | if (QtPrivate::isBuiltinType(prop->type)
| 24-50 | ||||||||||||||||||||||||||||||
| 1018 | typeInfo = QMetaType::type(prop->type); executed 50 times by 1 test: typeInfo = QMetaType::type(prop->type);Executed by:
| 50 | ||||||||||||||||||||||||||||||
| 1019 | else | - | ||||||||||||||||||||||||||||||
| 1020 | typeInfo = IsUnresolvedType | strings.enter(prop->type); executed 24 times by 1 test: typeInfo = IsUnresolvedType | strings.enter(prop->type);Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 1021 | - | |||||||||||||||||||||||||||||||
| 1022 | int flags = prop->flags; | - | ||||||||||||||||||||||||||||||
| 1023 | - | |||||||||||||||||||||||||||||||
| 1024 | if (!QtPrivate::isBuiltinType(prop->type)
| 24-50 | ||||||||||||||||||||||||||||||
| 1025 | flags |= EnumOrFlag; executed 24 times by 1 test: flags |= EnumOrFlag;Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 1026 | - | |||||||||||||||||||||||||||||||
| 1027 | if (buf
| 37 | ||||||||||||||||||||||||||||||
| 1028 | data[dataIndex] = name; | - | ||||||||||||||||||||||||||||||
| 1029 | data[dataIndex + 1] = typeInfo; | - | ||||||||||||||||||||||||||||||
| 1030 | data[dataIndex + 2] = flags; | - | ||||||||||||||||||||||||||||||
| 1031 | } executed 37 times by 1 test: end of blockExecuted by:
| 37 | ||||||||||||||||||||||||||||||
| 1032 | dataIndex += 3; | - | ||||||||||||||||||||||||||||||
| 1033 | } executed 74 times by 1 test: end of blockExecuted by:
| 74 | ||||||||||||||||||||||||||||||
| 1034 | if (hasNotifySignals
| 4-32 | ||||||||||||||||||||||||||||||
| 1035 | for (index = 0; index < d->properties.size()
| 32-72 | ||||||||||||||||||||||||||||||
| 1036 | QMetaPropertyBuilderPrivate *prop = &(d->properties[index]); | - | ||||||||||||||||||||||||||||||
| 1037 | if (buf
| 36 | ||||||||||||||||||||||||||||||
| 1038 | if (prop->notifySignal != -1
| 16-20 | ||||||||||||||||||||||||||||||
| 1039 | data[dataIndex] = prop->notifySignal; executed 16 times by 1 test: data[dataIndex] = prop->notifySignal;Executed by:
| 16 | ||||||||||||||||||||||||||||||
| 1040 | else | - | ||||||||||||||||||||||||||||||
| 1041 | data[dataIndex] = 0; executed 20 times by 1 test: data[dataIndex] = 0;Executed by:
| 20 | ||||||||||||||||||||||||||||||
| 1042 | } | - | ||||||||||||||||||||||||||||||
| 1043 | ++dataIndex; | - | ||||||||||||||||||||||||||||||
| 1044 | } executed 72 times by 1 test: end of blockExecuted by:
| 72 | ||||||||||||||||||||||||||||||
| 1045 | } executed 32 times by 1 test: end of blockExecuted by:
| 32 | ||||||||||||||||||||||||||||||
| 1046 | if (hasRevisionedProperties
| 8-28 | ||||||||||||||||||||||||||||||
| 1047 | for (index = 0; index < d->properties.size()
| 8-48 | ||||||||||||||||||||||||||||||
| 1048 | QMetaPropertyBuilderPrivate *prop = &(d->properties[index]); | - | ||||||||||||||||||||||||||||||
| 1049 | if (buf
| 24 | ||||||||||||||||||||||||||||||
| 1050 | data[dataIndex] = prop->revision; executed 24 times by 1 test: data[dataIndex] = prop->revision;Executed by:
| 24 | ||||||||||||||||||||||||||||||
| 1051 | ++dataIndex; | - | ||||||||||||||||||||||||||||||
| 1052 | } executed 48 times by 1 test: end of blockExecuted by:
| 48 | ||||||||||||||||||||||||||||||
| 1053 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 1054 | - | |||||||||||||||||||||||||||||||
| 1055 | - | |||||||||||||||||||||||||||||||
| 1056 | ((!(!buf || dataIndex == pmeta->enumeratorData)) ? qt_assert("!buf || dataIndex == pmeta->enumeratorData",__FILE__,1414) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 1057 | for (index = 0; index < d->enumerators.size()
| 16-36 | ||||||||||||||||||||||||||||||
| 1058 | QMetaEnumBuilderPrivate *enumerator = &(d->enumerators[index]); | - | ||||||||||||||||||||||||||||||
| 1059 | int name = strings.enter(enumerator->name); | - | ||||||||||||||||||||||||||||||
| 1060 | int isFlag = (int)(enumerator->isFlag); | - | ||||||||||||||||||||||||||||||
| 1061 | int count = enumerator->keys.size(); | - | ||||||||||||||||||||||||||||||
| 1062 | int enumOffset = enumIndex; | - | ||||||||||||||||||||||||||||||
| 1063 | if (buf
| 8 | ||||||||||||||||||||||||||||||
| 1064 | data[dataIndex] = name; | - | ||||||||||||||||||||||||||||||
| 1065 | data[dataIndex + 1] = isFlag; | - | ||||||||||||||||||||||||||||||
| 1066 | data[dataIndex + 2] = count; | - | ||||||||||||||||||||||||||||||
| 1067 | data[dataIndex + 3] = enumOffset; | - | ||||||||||||||||||||||||||||||
| 1068 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 1069 | for (int key = 0; key < count
| 16-32 | ||||||||||||||||||||||||||||||
| 1070 | int keyIndex = strings.enter(enumerator->keys[key]); | - | ||||||||||||||||||||||||||||||
| 1071 | if (buf
| 16 | ||||||||||||||||||||||||||||||
| 1072 | data[enumOffset++] = keyIndex; | - | ||||||||||||||||||||||||||||||
| 1073 | data[enumOffset++] = enumerator->values[key]; | - | ||||||||||||||||||||||||||||||
| 1074 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 | ||||||||||||||||||||||||||||||
| 1075 | } executed 32 times by 1 test: end of blockExecuted by:
| 32 | ||||||||||||||||||||||||||||||
| 1076 | dataIndex += 4; | - | ||||||||||||||||||||||||||||||
| 1077 | enumIndex += 2 * count; | - | ||||||||||||||||||||||||||||||
| 1078 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 | ||||||||||||||||||||||||||||||
| 1079 | - | |||||||||||||||||||||||||||||||
| 1080 | - | |||||||||||||||||||||||||||||||
| 1081 | ((!(!buf || dataIndex == pmeta->constructorData)) ? qt_assert("!buf || dataIndex == pmeta->constructorData",__FILE__,1439) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 1082 | for (index = 0; index < d->constructors.size()
| 36-48 | ||||||||||||||||||||||||||||||
| 1083 | QMetaMethodBuilderPrivate *method = &(d->constructors[index]); | - | ||||||||||||||||||||||||||||||
| 1084 | int name = strings.enter(method->name()); | - | ||||||||||||||||||||||||||||||
| 1085 | int argc = method->parameterCount(); | - | ||||||||||||||||||||||||||||||
| 1086 | int tag = strings.enter(method->tag); | - | ||||||||||||||||||||||||||||||
| 1087 | int attrs = method->attributes; | - | ||||||||||||||||||||||||||||||
| 1088 | if (buf
| 24 | ||||||||||||||||||||||||||||||
| 1089 | data[dataIndex] = name; | - | ||||||||||||||||||||||||||||||
| 1090 | data[dataIndex + 1] = argc; | - | ||||||||||||||||||||||||||||||
| 1091 | data[dataIndex + 2] = paramsIndex; | - | ||||||||||||||||||||||||||||||
| 1092 | data[dataIndex + 3] = tag; | - | ||||||||||||||||||||||||||||||
| 1093 | data[dataIndex + 4] = attrs; | - | ||||||||||||||||||||||||||||||
| 1094 | } executed 24 times by 1 test: end of blockExecuted by:
| 24 | ||||||||||||||||||||||||||||||
| 1095 | dataIndex += 5; | - | ||||||||||||||||||||||||||||||
| 1096 | paramsIndex += 1 + argc * 2; | - | ||||||||||||||||||||||||||||||
| 1097 | } executed 48 times by 1 test: end of blockExecuted by:
| 48 | ||||||||||||||||||||||||||||||
| 1098 | - | |||||||||||||||||||||||||||||||
| 1099 | size += strings.blobSize(); | - | ||||||||||||||||||||||||||||||
| 1100 | - | |||||||||||||||||||||||||||||||
| 1101 | if (buf
| 18 | ||||||||||||||||||||||||||||||
| 1102 | strings.writeBlob(str); executed 18 times by 1 test: strings.writeBlob(str);Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 1103 | - | |||||||||||||||||||||||||||||||
| 1104 | - | |||||||||||||||||||||||||||||||
| 1105 | if (buf
| 18 | ||||||||||||||||||||||||||||||
| 1106 | data[enumIndex] = 0; executed 18 times by 1 test: data[enumIndex] = 0;Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 1107 | - | |||||||||||||||||||||||||||||||
| 1108 | - | |||||||||||||||||||||||||||||||
| 1109 | if (d->relatedMetaObjects.size() > 0
| 8-28 | ||||||||||||||||||||||||||||||
| 1110 | (size) = ((size) + sizeof(QMetaObject *) - 1) & ~(sizeof(QMetaObject *) - 1); | - | ||||||||||||||||||||||||||||||
| 1111 | const QMetaObject **objects = | - | ||||||||||||||||||||||||||||||
| 1112 | reinterpret_cast<const QMetaObject **>(buf + size); | - | ||||||||||||||||||||||||||||||
| 1113 | if (buf
| 4 | ||||||||||||||||||||||||||||||
| 1114 | meta->d.relatedMetaObjects = objects; | - | ||||||||||||||||||||||||||||||
| 1115 | for (index = 0; index < d->relatedMetaObjects.size()
| 4 | ||||||||||||||||||||||||||||||
| 1116 | objects[index] = d->relatedMetaObjects[index]; executed 4 times by 1 test: objects[index] = d->relatedMetaObjects[index];Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 1117 | objects[index] = 0; | - | ||||||||||||||||||||||||||||||
| 1118 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||||||||||||||
| 1119 | size += sizeof(QMetaObject *) * (d->relatedMetaObjects.size() + 1); | - | ||||||||||||||||||||||||||||||
| 1120 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 1121 | - | |||||||||||||||||||||||||||||||
| 1122 | - | |||||||||||||||||||||||||||||||
| 1123 | (size) = ((size) + sizeof(void *) - 1) & ~(sizeof(void *) - 1); | - | ||||||||||||||||||||||||||||||
| 1124 | ((!(!buf || size == expectedSize)) ? qt_assert("!buf || size == expectedSize",__FILE__,1482) : qt_noop()); | - | ||||||||||||||||||||||||||||||
| 1125 | return executed 36 times by 1 test: size;return size;Executed by:
executed 36 times by 1 test: return size;Executed by:
| 36 | ||||||||||||||||||||||||||||||
| 1126 | } | - | ||||||||||||||||||||||||||||||
| 1127 | QMetaObject *QMetaObjectBuilder::toMetaObject() const | - | ||||||||||||||||||||||||||||||
| 1128 | { | - | ||||||||||||||||||||||||||||||
| 1129 | int size = buildMetaObject(d, 0, 0, false); | - | ||||||||||||||||||||||||||||||
| 1130 | char *buf = reinterpret_cast<char *>(malloc(size)); | - | ||||||||||||||||||||||||||||||
| 1131 | memset(buf, 0, size); | - | ||||||||||||||||||||||||||||||
| 1132 | buildMetaObject(d, buf, size, false); | - | ||||||||||||||||||||||||||||||
| 1133 | return executed 17 times by 1 test: reinterpret_cast<QMetaObject *>(buf);return reinterpret_cast<QMetaObject *>(buf);Executed by:
executed 17 times by 1 test: return reinterpret_cast<QMetaObject *>(buf);Executed by:
| 17 | ||||||||||||||||||||||||||||||
| 1134 | } | - | ||||||||||||||||||||||||||||||
| 1135 | QByteArray QMetaObjectBuilder::toRelocatableData(bool *ok) const | - | ||||||||||||||||||||||||||||||
| 1136 | { | - | ||||||||||||||||||||||||||||||
| 1137 | int size = buildMetaObject(d, 0, 0, true); | - | ||||||||||||||||||||||||||||||
| 1138 | if (size == -1
| 0-1 | ||||||||||||||||||||||||||||||
| 1139 | if (ok
never executed: ok = false;*ok = false;never executed: *ok = false; | 0 | ||||||||||||||||||||||||||||||
| 1140 | return never executed: QByteArray();return QByteArray();never executed: return QByteArray(); | 0 | ||||||||||||||||||||||||||||||
| 1141 | } | - | ||||||||||||||||||||||||||||||
| 1142 | - | |||||||||||||||||||||||||||||||
| 1143 | QByteArray data; | - | ||||||||||||||||||||||||||||||
| 1144 | data.resize(size); | - | ||||||||||||||||||||||||||||||
| 1145 | char *buf = data.data(); | - | ||||||||||||||||||||||||||||||
| 1146 | memset(buf, 0, size); | - | ||||||||||||||||||||||||||||||
| 1147 | buildMetaObject(d, buf, size, true); | - | ||||||||||||||||||||||||||||||
| 1148 | if (ok
executed 1 time by 1 test: ok = true;*ok = true;Executed by:
executed 1 time by 1 test: *ok = true;Executed by:
| 0-1 | ||||||||||||||||||||||||||||||
| 1149 | return executed 1 time by 1 test: data;return data;Executed by:
executed 1 time by 1 test: return data;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1150 | } | - | ||||||||||||||||||||||||||||||
| 1151 | void QMetaObjectBuilder::fromRelocatableData(QMetaObject *output, | - | ||||||||||||||||||||||||||||||
| 1152 | const QMetaObject *superclass, | - | ||||||||||||||||||||||||||||||
| 1153 | const QByteArray &data) | - | ||||||||||||||||||||||||||||||
| 1154 | { | - | ||||||||||||||||||||||||||||||
| 1155 | if (!output
| 0-1 | ||||||||||||||||||||||||||||||
| 1156 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1157 | - | |||||||||||||||||||||||||||||||
| 1158 | const char *buf = data.constData(); | - | ||||||||||||||||||||||||||||||
| 1159 | const QMetaObject *dataMo = reinterpret_cast<const QMetaObject *>(buf); | - | ||||||||||||||||||||||||||||||
| 1160 | - | |||||||||||||||||||||||||||||||
| 1161 | quintptr stringdataOffset = (quintptr)dataMo->d.stringdata; | - | ||||||||||||||||||||||||||||||
| 1162 | quintptr dataOffset = (quintptr)dataMo->d.data; | - | ||||||||||||||||||||||||||||||
| 1163 | - | |||||||||||||||||||||||||||||||
| 1164 | output->d.superdata = superclass; | - | ||||||||||||||||||||||||||||||
| 1165 | output->d.stringdata = reinterpret_cast<const QByteArrayData *>(buf + stringdataOffset); | - | ||||||||||||||||||||||||||||||
| 1166 | output->d.data = reinterpret_cast<const uint *>(buf + dataOffset); | - | ||||||||||||||||||||||||||||||
| 1167 | output->d.extradata = 0; | - | ||||||||||||||||||||||||||||||
| 1168 | output->d.relatedMetaObjects = 0; | - | ||||||||||||||||||||||||||||||
| 1169 | output->d.static_metacall = 0; | - | ||||||||||||||||||||||||||||||
| 1170 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1171 | QMetaObjectBuilder::StaticMetacallFunction QMetaObjectBuilder::staticMetacallFunction() const | - | ||||||||||||||||||||||||||||||
| 1172 | { | - | ||||||||||||||||||||||||||||||
| 1173 | return executed 15 times by 1 test: d->staticMetacallFunction;return d->staticMetacallFunction;Executed by:
executed 15 times by 1 test: return d->staticMetacallFunction;Executed by:
| 15 | ||||||||||||||||||||||||||||||
| 1174 | } | - | ||||||||||||||||||||||||||||||
| 1175 | - | |||||||||||||||||||||||||||||||
| 1176 | - | |||||||||||||||||||||||||||||||
| 1177 | - | |||||||||||||||||||||||||||||||
| 1178 | - | |||||||||||||||||||||||||||||||
| 1179 | - | |||||||||||||||||||||||||||||||
| 1180 | - | |||||||||||||||||||||||||||||||
| 1181 | - | |||||||||||||||||||||||||||||||
| 1182 | void QMetaObjectBuilder::setStaticMetacallFunction | - | ||||||||||||||||||||||||||||||
| 1183 | (QMetaObjectBuilder::StaticMetacallFunction value) | - | ||||||||||||||||||||||||||||||
| 1184 | { | - | ||||||||||||||||||||||||||||||
| 1185 | d->staticMetacallFunction = value; | - | ||||||||||||||||||||||||||||||
| 1186 | } executed 16 times by 1 test: end of blockExecuted by:
| 16 | ||||||||||||||||||||||||||||||
| 1187 | void QMetaObjectBuilder::serialize(QDataStream& stream) const | - | ||||||||||||||||||||||||||||||
| 1188 | { | - | ||||||||||||||||||||||||||||||
| 1189 | int index; | - | ||||||||||||||||||||||||||||||
| 1190 | - | |||||||||||||||||||||||||||||||
| 1191 | - | |||||||||||||||||||||||||||||||
| 1192 | stream << d->className; | - | ||||||||||||||||||||||||||||||
| 1193 | if (d->superClass
| 0-2 | ||||||||||||||||||||||||||||||
| 1194 | stream << QByteArray(d->superClass->className()); executed 2 times by 1 test: stream << QByteArray(d->superClass->className());Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 1195 | else | - | ||||||||||||||||||||||||||||||
| 1196 | stream << QByteArray(); never executed: stream << QByteArray(); | 0 | ||||||||||||||||||||||||||||||
| 1197 | - | |||||||||||||||||||||||||||||||
| 1198 | - | |||||||||||||||||||||||||||||||
| 1199 | stream << d->classInfoNames.size(); | - | ||||||||||||||||||||||||||||||
| 1200 | stream << d->methods.size(); | - | ||||||||||||||||||||||||||||||
| 1201 | stream << d->properties.size(); | - | ||||||||||||||||||||||||||||||
| 1202 | stream << d->enumerators.size(); | - | ||||||||||||||||||||||||||||||
| 1203 | stream << d->constructors.size(); | - | ||||||||||||||||||||||||||||||
| 1204 | stream << d->relatedMetaObjects.size(); | - | ||||||||||||||||||||||||||||||
| 1205 | - | |||||||||||||||||||||||||||||||
| 1206 | - | |||||||||||||||||||||||||||||||
| 1207 | for (index = 0; index < d->classInfoNames.size()
| 2 | ||||||||||||||||||||||||||||||
| 1208 | stream << d->classInfoNames[index]; | - | ||||||||||||||||||||||||||||||
| 1209 | stream << d->classInfoValues[index]; | - | ||||||||||||||||||||||||||||||
| 1210 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1211 | - | |||||||||||||||||||||||||||||||
| 1212 | - | |||||||||||||||||||||||||||||||
| 1213 | for (index = 0; index < d->methods.size()
| 2-10 | ||||||||||||||||||||||||||||||
| 1214 | const QMetaMethodBuilderPrivate *method = &(d->methods[index]); | - | ||||||||||||||||||||||||||||||
| 1215 | stream << method->signature; | - | ||||||||||||||||||||||||||||||
| 1216 | stream << method->returnType; | - | ||||||||||||||||||||||||||||||
| 1217 | stream << method->parameterNames; | - | ||||||||||||||||||||||||||||||
| 1218 | stream << method->tag; | - | ||||||||||||||||||||||||||||||
| 1219 | stream << method->attributes; | - | ||||||||||||||||||||||||||||||
| 1220 | if (method->revision
| 1-9 | ||||||||||||||||||||||||||||||
| 1221 | stream << method->revision; executed 1 time by 1 test: stream << method->revision;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1222 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||||||||
| 1223 | - | |||||||||||||||||||||||||||||||
| 1224 | - | |||||||||||||||||||||||||||||||
| 1225 | for (index = 0; index < d->properties.size()
| 2-7 | ||||||||||||||||||||||||||||||
| 1226 | const QMetaPropertyBuilderPrivate *property = &(d->properties[index]); | - | ||||||||||||||||||||||||||||||
| 1227 | stream << property->name; | - | ||||||||||||||||||||||||||||||
| 1228 | stream << property->type; | - | ||||||||||||||||||||||||||||||
| 1229 | stream << property->flags; | - | ||||||||||||||||||||||||||||||
| 1230 | stream << property->notifySignal; | - | ||||||||||||||||||||||||||||||
| 1231 | if (property->revision
| 1-6 | ||||||||||||||||||||||||||||||
| 1232 | stream << property->revision; executed 1 time by 1 test: stream << property->revision;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1233 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||
| 1234 | - | |||||||||||||||||||||||||||||||
| 1235 | - | |||||||||||||||||||||||||||||||
| 1236 | for (index = 0; index < d->enumerators.size()
| 2 | ||||||||||||||||||||||||||||||
| 1237 | const QMetaEnumBuilderPrivate *enumerator = &(d->enumerators[index]); | - | ||||||||||||||||||||||||||||||
| 1238 | stream << enumerator->name; | - | ||||||||||||||||||||||||||||||
| 1239 | stream << enumerator->isFlag; | - | ||||||||||||||||||||||||||||||
| 1240 | stream << enumerator->keys; | - | ||||||||||||||||||||||||||||||
| 1241 | stream << enumerator->values; | - | ||||||||||||||||||||||||||||||
| 1242 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1243 | - | |||||||||||||||||||||||||||||||
| 1244 | - | |||||||||||||||||||||||||||||||
| 1245 | for (index = 0; index < d->constructors.size()
| 1-2 | ||||||||||||||||||||||||||||||
| 1246 | const QMetaMethodBuilderPrivate *method = &(d->constructors[index]); | - | ||||||||||||||||||||||||||||||
| 1247 | stream << method->signature; | - | ||||||||||||||||||||||||||||||
| 1248 | stream << method->returnType; | - | ||||||||||||||||||||||||||||||
| 1249 | stream << method->parameterNames; | - | ||||||||||||||||||||||||||||||
| 1250 | stream << method->tag; | - | ||||||||||||||||||||||||||||||
| 1251 | stream << method->attributes; | - | ||||||||||||||||||||||||||||||
| 1252 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1253 | - | |||||||||||||||||||||||||||||||
| 1254 | - | |||||||||||||||||||||||||||||||
| 1255 | for (index = 0; index < d->relatedMetaObjects.size()
| 1-2 | ||||||||||||||||||||||||||||||
| 1256 | const QMetaObject *meta = d->relatedMetaObjects[index]; | - | ||||||||||||||||||||||||||||||
| 1257 | stream << QByteArray(meta->className()); | - | ||||||||||||||||||||||||||||||
| 1258 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1259 | - | |||||||||||||||||||||||||||||||
| 1260 | - | |||||||||||||||||||||||||||||||
| 1261 | - | |||||||||||||||||||||||||||||||
| 1262 | - | |||||||||||||||||||||||||||||||
| 1263 | stream << QByteArray(); | - | ||||||||||||||||||||||||||||||
| 1264 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1265 | - | |||||||||||||||||||||||||||||||
| 1266 | - | |||||||||||||||||||||||||||||||
| 1267 | static const QMetaObject *resolveClassName | - | ||||||||||||||||||||||||||||||
| 1268 | (const QMap<QByteArray, const QMetaObject *>& references, | - | ||||||||||||||||||||||||||||||
| 1269 | const QByteArray& name) | - | ||||||||||||||||||||||||||||||
| 1270 | { | - | ||||||||||||||||||||||||||||||
| 1271 | if (name == QByteArray("QObject")
| 1-2 | ||||||||||||||||||||||||||||||
| 1272 | return executed 2 times by 1 test: &QObject::staticMetaObject;return &QObject::staticMetaObject;Executed by:
executed 2 times by 1 test: return &QObject::staticMetaObject;Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 1273 | else | - | ||||||||||||||||||||||||||||||
| 1274 | return executed 1 time by 1 test: references.value(name, 0);return references.value(name, 0);Executed by:
executed 1 time by 1 test: return references.value(name, 0);Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1275 | } | - | ||||||||||||||||||||||||||||||
| 1276 | void QMetaObjectBuilder::deserialize | - | ||||||||||||||||||||||||||||||
| 1277 | (QDataStream& stream, | - | ||||||||||||||||||||||||||||||
| 1278 | const QMap<QByteArray, const QMetaObject *>& references) | - | ||||||||||||||||||||||||||||||
| 1279 | { | - | ||||||||||||||||||||||||||||||
| 1280 | QByteArray name; | - | ||||||||||||||||||||||||||||||
| 1281 | const QMetaObject *cl; | - | ||||||||||||||||||||||||||||||
| 1282 | int index; | - | ||||||||||||||||||||||||||||||
| 1283 | - | |||||||||||||||||||||||||||||||
| 1284 | - | |||||||||||||||||||||||||||||||
| 1285 | d->className.clear(); | - | ||||||||||||||||||||||||||||||
| 1286 | d->superClass = &QObject::staticMetaObject; | - | ||||||||||||||||||||||||||||||
| 1287 | d->classInfoNames.clear(); | - | ||||||||||||||||||||||||||||||
| 1288 | d->classInfoValues.clear(); | - | ||||||||||||||||||||||||||||||
| 1289 | d->methods.clear(); | - | ||||||||||||||||||||||||||||||
| 1290 | d->properties.clear(); | - | ||||||||||||||||||||||||||||||
| 1291 | d->enumerators.clear(); | - | ||||||||||||||||||||||||||||||
| 1292 | d->constructors.clear(); | - | ||||||||||||||||||||||||||||||
| 1293 | d->relatedMetaObjects.clear(); | - | ||||||||||||||||||||||||||||||
| 1294 | d->staticMetacallFunction = 0; | - | ||||||||||||||||||||||||||||||
| 1295 | - | |||||||||||||||||||||||||||||||
| 1296 | - | |||||||||||||||||||||||||||||||
| 1297 | stream >> d->className; | - | ||||||||||||||||||||||||||||||
| 1298 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1299 | if (name.isEmpty()
| 0-2 | ||||||||||||||||||||||||||||||
| 1300 | d->superClass = 0; | - | ||||||||||||||||||||||||||||||
| 1301 | } never executed: else if ((end of block
| 0-2 | ||||||||||||||||||||||||||||||
| 1302 | d->superClass = cl; | - | ||||||||||||||||||||||||||||||
| 1303 | } executed 2 times by 1 test: else {end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1304 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1305 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1306 | } | - | ||||||||||||||||||||||||||||||
| 1307 | - | |||||||||||||||||||||||||||||||
| 1308 | - | |||||||||||||||||||||||||||||||
| 1309 | int classInfoCount, methodCount, propertyCount; | - | ||||||||||||||||||||||||||||||
| 1310 | int enumeratorCount, constructorCount, relatedMetaObjectCount; | - | ||||||||||||||||||||||||||||||
| 1311 | stream >> classInfoCount; | - | ||||||||||||||||||||||||||||||
| 1312 | stream >> methodCount; | - | ||||||||||||||||||||||||||||||
| 1313 | stream >> propertyCount; | - | ||||||||||||||||||||||||||||||
| 1314 | stream >> enumeratorCount; | - | ||||||||||||||||||||||||||||||
| 1315 | stream >> constructorCount; | - | ||||||||||||||||||||||||||||||
| 1316 | stream >> relatedMetaObjectCount; | - | ||||||||||||||||||||||||||||||
| 1317 | if (classInfoCount < 0
| 0-2 | ||||||||||||||||||||||||||||||
| 1318 | propertyCount < 0
| 0-2 | ||||||||||||||||||||||||||||||
| 1319 | constructorCount < 0
| 0-2 | ||||||||||||||||||||||||||||||
| 1320 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1321 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1322 | } | - | ||||||||||||||||||||||||||||||
| 1323 | - | |||||||||||||||||||||||||||||||
| 1324 | - | |||||||||||||||||||||||||||||||
| 1325 | for (index = 0; index < classInfoCount
| 2 | ||||||||||||||||||||||||||||||
| 1326 | if (stream.status() != QDataStream::Ok
| 0-2 | ||||||||||||||||||||||||||||||
| 1327 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1328 | QByteArray value; | - | ||||||||||||||||||||||||||||||
| 1329 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1330 | stream >> value; | - | ||||||||||||||||||||||||||||||
| 1331 | addClassInfo(name, value); | - | ||||||||||||||||||||||||||||||
| 1332 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1333 | - | |||||||||||||||||||||||||||||||
| 1334 | - | |||||||||||||||||||||||||||||||
| 1335 | for (index = 0; index < methodCount
| 2-10 | ||||||||||||||||||||||||||||||
| 1336 | if (stream.status() != QDataStream::Ok
| 0-10 | ||||||||||||||||||||||||||||||
| 1337 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1338 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1339 | addMethod(name); | - | ||||||||||||||||||||||||||||||
| 1340 | QMetaMethodBuilderPrivate *method = &(d->methods[index]); | - | ||||||||||||||||||||||||||||||
| 1341 | stream >> method->returnType; | - | ||||||||||||||||||||||||||||||
| 1342 | stream >> method->parameterNames; | - | ||||||||||||||||||||||||||||||
| 1343 | stream >> method->tag; | - | ||||||||||||||||||||||||||||||
| 1344 | stream >> method->attributes; | - | ||||||||||||||||||||||||||||||
| 1345 | if (method->attributes & MethodRevisioned
| 1-9 | ||||||||||||||||||||||||||||||
| 1346 | stream >> method->revision; executed 1 time by 1 test: stream >> method->revision;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1347 | if (method->methodType() == QMetaMethod::Constructor
| 0-10 | ||||||||||||||||||||||||||||||
| 1348 | - | |||||||||||||||||||||||||||||||
| 1349 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1350 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1351 | } | - | ||||||||||||||||||||||||||||||
| 1352 | } executed 10 times by 1 test: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||||||||
| 1353 | - | |||||||||||||||||||||||||||||||
| 1354 | - | |||||||||||||||||||||||||||||||
| 1355 | for (index = 0; index < propertyCount
| 2-7 | ||||||||||||||||||||||||||||||
| 1356 | if (stream.status() != QDataStream::Ok
| 0-7 | ||||||||||||||||||||||||||||||
| 1357 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1358 | QByteArray type; | - | ||||||||||||||||||||||||||||||
| 1359 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1360 | stream >> type; | - | ||||||||||||||||||||||||||||||
| 1361 | addProperty(name, type); | - | ||||||||||||||||||||||||||||||
| 1362 | QMetaPropertyBuilderPrivate *property = &(d->properties[index]); | - | ||||||||||||||||||||||||||||||
| 1363 | stream >> property->flags; | - | ||||||||||||||||||||||||||||||
| 1364 | stream >> property->notifySignal; | - | ||||||||||||||||||||||||||||||
| 1365 | if (property->notifySignal < -1
| 0-7 | ||||||||||||||||||||||||||||||
| 1366 | property->notifySignal >= d->methods.size()
| 0-7 | ||||||||||||||||||||||||||||||
| 1367 | - | |||||||||||||||||||||||||||||||
| 1368 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1369 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1370 | } | - | ||||||||||||||||||||||||||||||
| 1371 | if (property->notifySignal >= 0
| 1-6 | ||||||||||||||||||||||||||||||
| 1372 | d->methods[property->notifySignal].methodType() != QMetaMethod::Signal
| 0-1 | ||||||||||||||||||||||||||||||
| 1373 | - | |||||||||||||||||||||||||||||||
| 1374 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1375 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1376 | } | - | ||||||||||||||||||||||||||||||
| 1377 | if (property->flags & Revisioned
| 1-6 | ||||||||||||||||||||||||||||||
| 1378 | stream >> property->revision; executed 1 time by 1 test: stream >> property->revision;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1379 | } executed 7 times by 1 test: end of blockExecuted by:
| 7 | ||||||||||||||||||||||||||||||
| 1380 | - | |||||||||||||||||||||||||||||||
| 1381 | - | |||||||||||||||||||||||||||||||
| 1382 | for (index = 0; index < enumeratorCount
| 2 | ||||||||||||||||||||||||||||||
| 1383 | if (stream.status() != QDataStream::Ok
| 0-2 | ||||||||||||||||||||||||||||||
| 1384 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1385 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1386 | addEnumerator(name); | - | ||||||||||||||||||||||||||||||
| 1387 | QMetaEnumBuilderPrivate *enumerator = &(d->enumerators[index]); | - | ||||||||||||||||||||||||||||||
| 1388 | stream >> enumerator->isFlag; | - | ||||||||||||||||||||||||||||||
| 1389 | stream >> enumerator->keys; | - | ||||||||||||||||||||||||||||||
| 1390 | stream >> enumerator->values; | - | ||||||||||||||||||||||||||||||
| 1391 | if (enumerator->keys.size() != enumerator->values.size()
| 0-2 | ||||||||||||||||||||||||||||||
| 1392 | - | |||||||||||||||||||||||||||||||
| 1393 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1394 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1395 | } | - | ||||||||||||||||||||||||||||||
| 1396 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1397 | - | |||||||||||||||||||||||||||||||
| 1398 | - | |||||||||||||||||||||||||||||||
| 1399 | for (index = 0; index < constructorCount
| 1-2 | ||||||||||||||||||||||||||||||
| 1400 | if (stream.status() != QDataStream::Ok
| 0-1 | ||||||||||||||||||||||||||||||
| 1401 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1402 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1403 | addConstructor(name); | - | ||||||||||||||||||||||||||||||
| 1404 | QMetaMethodBuilderPrivate *method = &(d->constructors[index]); | - | ||||||||||||||||||||||||||||||
| 1405 | stream >> method->returnType; | - | ||||||||||||||||||||||||||||||
| 1406 | stream >> method->parameterNames; | - | ||||||||||||||||||||||||||||||
| 1407 | stream >> method->tag; | - | ||||||||||||||||||||||||||||||
| 1408 | stream >> method->attributes; | - | ||||||||||||||||||||||||||||||
| 1409 | if (method->methodType() != QMetaMethod::Constructor
| 0-1 | ||||||||||||||||||||||||||||||
| 1410 | - | |||||||||||||||||||||||||||||||
| 1411 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1412 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1413 | } | - | ||||||||||||||||||||||||||||||
| 1414 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1415 | - | |||||||||||||||||||||||||||||||
| 1416 | - | |||||||||||||||||||||||||||||||
| 1417 | for (index = 0; index < relatedMetaObjectCount
| 1-2 | ||||||||||||||||||||||||||||||
| 1418 | if (stream.status() != QDataStream::Ok
| 0-1 | ||||||||||||||||||||||||||||||
| 1419 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1420 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1421 | cl = resolveClassName(references, name); | - | ||||||||||||||||||||||||||||||
| 1422 | if (!cl
| 0-1 | ||||||||||||||||||||||||||||||
| 1423 | stream.setStatus(QDataStream::ReadCorruptData); | - | ||||||||||||||||||||||||||||||
| 1424 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||
| 1425 | } | - | ||||||||||||||||||||||||||||||
| 1426 | addRelatedMetaObject(cl); | - | ||||||||||||||||||||||||||||||
| 1427 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1428 | - | |||||||||||||||||||||||||||||||
| 1429 | - | |||||||||||||||||||||||||||||||
| 1430 | stream >> name; | - | ||||||||||||||||||||||||||||||
| 1431 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||||||||
| 1432 | QMetaMethodBuilderPrivate *QMetaMethodBuilder::d_func() const | - | ||||||||||||||||||||||||||||||
| 1433 | { | - | ||||||||||||||||||||||||||||||
| 1434 | - | |||||||||||||||||||||||||||||||
| 1435 | if (_mobj
| 0-631 | ||||||||||||||||||||||||||||||
| 1436 | return executed 528 times by 1 test: &(_mobj->d->methods[_index]);return &(_mobj->d->methods[_index]);Executed by:
executed 528 times by 1 test: return &(_mobj->d->methods[_index]);Executed by:
| 528 | ||||||||||||||||||||||||||||||
| 1437 | else if (_mobj
| 0-103 | ||||||||||||||||||||||||||||||
| 1438 | return executed 103 times by 1 test: &(_mobj->d->constructors[(-_index) - 1]);return &(_mobj->d->constructors[(-_index) - 1]);Executed by:
executed 103 times by 1 test: return &(_mobj->d->constructors[(-_index) - 1]);Executed by:
| 103 | ||||||||||||||||||||||||||||||
| 1439 | else | - | ||||||||||||||||||||||||||||||
| 1440 | return executed 11 times by 1 test: 0;return 0;Executed by:
executed 11 times by 1 test: return 0;Executed by:
| 11 | ||||||||||||||||||||||||||||||
| 1441 | } | - | ||||||||||||||||||||||||||||||
| 1442 | int QMetaMethodBuilder::index() const | - | ||||||||||||||||||||||||||||||
| 1443 | { | - | ||||||||||||||||||||||||||||||
| 1444 | if (_index >= 0
| 8-19 | ||||||||||||||||||||||||||||||
| 1445 | return executed 19 times by 1 test: _index;return _index;Executed by:
executed 19 times by 1 test: return _index;Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 1446 | else | - | ||||||||||||||||||||||||||||||
| 1447 | return executed 8 times by 1 test: (-_index) - 1;return (-_index) - 1;Executed by:
executed 8 times by 1 test: return (-_index) - 1;Executed by:
| 8 | ||||||||||||||||||||||||||||||
| 1448 | } | - | ||||||||||||||||||||||||||||||
| 1449 | - | |||||||||||||||||||||||||||||||
| 1450 | - | |||||||||||||||||||||||||||||||
| 1451 | - | |||||||||||||||||||||||||||||||
| 1452 | - | |||||||||||||||||||||||||||||||
| 1453 | QMetaMethod::MethodType QMetaMethodBuilder::methodType() const | - | ||||||||||||||||||||||||||||||
| 1454 | { | - | ||||||||||||||||||||||||||||||
| 1455 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1456 | if (d
| 1-19 | ||||||||||||||||||||||||||||||
| 1457 | return executed 19 times by 1 test: d->methodType();return d->methodType();Executed by:
executed 19 times by 1 test: return d->methodType();Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 1458 | else | - | ||||||||||||||||||||||||||||||
| 1459 | return executed 1 time by 1 test: QMetaMethod::Method;return QMetaMethod::Method;Executed by:
executed 1 time by 1 test: return QMetaMethod::Method;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1460 | } | - | ||||||||||||||||||||||||||||||
| 1461 | - | |||||||||||||||||||||||||||||||
| 1462 | - | |||||||||||||||||||||||||||||||
| 1463 | - | |||||||||||||||||||||||||||||||
| 1464 | - | |||||||||||||||||||||||||||||||
| 1465 | - | |||||||||||||||||||||||||||||||
| 1466 | - | |||||||||||||||||||||||||||||||
| 1467 | QByteArray QMetaMethodBuilder::signature() const | - | ||||||||||||||||||||||||||||||
| 1468 | { | - | ||||||||||||||||||||||||||||||
| 1469 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1470 | if (d
| 3-23 | ||||||||||||||||||||||||||||||
| 1471 | return executed 23 times by 1 test: d->signature;return d->signature;Executed by:
executed 23 times by 1 test: return d->signature;Executed by:
| 23 | ||||||||||||||||||||||||||||||
| 1472 | else | - | ||||||||||||||||||||||||||||||
| 1473 | return executed 3 times by 1 test: QByteArray();return QByteArray();Executed by:
executed 3 times by 1 test: return QByteArray();Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 1474 | } | - | ||||||||||||||||||||||||||||||
| 1475 | - | |||||||||||||||||||||||||||||||
| 1476 | - | |||||||||||||||||||||||||||||||
| 1477 | - | |||||||||||||||||||||||||||||||
| 1478 | - | |||||||||||||||||||||||||||||||
| 1479 | - | |||||||||||||||||||||||||||||||
| 1480 | - | |||||||||||||||||||||||||||||||
| 1481 | - | |||||||||||||||||||||||||||||||
| 1482 | QByteArray QMetaMethodBuilder::returnType() const | - | ||||||||||||||||||||||||||||||
| 1483 | { | - | ||||||||||||||||||||||||||||||
| 1484 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1485 | if (d
| 1-19 | ||||||||||||||||||||||||||||||
| 1486 | return executed 19 times by 1 test: d->returnType;return d->returnType;Executed by:
executed 19 times by 1 test: return d->returnType;Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 1487 | else | - | ||||||||||||||||||||||||||||||
| 1488 | return executed 1 time by 1 test: QByteArray();return QByteArray();Executed by:
executed 1 time by 1 test: return QByteArray();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1489 | } | - | ||||||||||||||||||||||||||||||
| 1490 | void QMetaMethodBuilder::setReturnType(const QByteArray& value) | - | ||||||||||||||||||||||||||||||
| 1491 | { | - | ||||||||||||||||||||||||||||||
| 1492 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1493 | if (d
| 0-83 | ||||||||||||||||||||||||||||||
| 1494 | d->returnType = QMetaObject::normalizedType(value); executed 83 times by 1 test: d->returnType = QMetaObject::normalizedType(value);Executed by:
| 83 | ||||||||||||||||||||||||||||||
| 1495 | } executed 83 times by 1 test: end of blockExecuted by:
| 83 | ||||||||||||||||||||||||||||||
| 1496 | - | |||||||||||||||||||||||||||||||
| 1497 | - | |||||||||||||||||||||||||||||||
| 1498 | - | |||||||||||||||||||||||||||||||
| 1499 | - | |||||||||||||||||||||||||||||||
| 1500 | - | |||||||||||||||||||||||||||||||
| 1501 | - | |||||||||||||||||||||||||||||||
| 1502 | QList<QByteArray> QMetaMethodBuilder::parameterTypes() const | - | ||||||||||||||||||||||||||||||
| 1503 | { | - | ||||||||||||||||||||||||||||||
| 1504 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1505 | if (d
| 1-19 | ||||||||||||||||||||||||||||||
| 1506 | return executed 19 times by 1 test: d->parameterTypes();return d->parameterTypes();Executed by:
executed 19 times by 1 test: return d->parameterTypes();Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 1507 | else | - | ||||||||||||||||||||||||||||||
| 1508 | return executed 1 time by 1 test: QList<QByteArray>();return QList<QByteArray>();Executed by:
executed 1 time by 1 test: return QList<QByteArray>();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1509 | } | - | ||||||||||||||||||||||||||||||
| 1510 | - | |||||||||||||||||||||||||||||||
| 1511 | - | |||||||||||||||||||||||||||||||
| 1512 | - | |||||||||||||||||||||||||||||||
| 1513 | - | |||||||||||||||||||||||||||||||
| 1514 | - | |||||||||||||||||||||||||||||||
| 1515 | - | |||||||||||||||||||||||||||||||
| 1516 | QList<QByteArray> QMetaMethodBuilder::parameterNames() const | - | ||||||||||||||||||||||||||||||
| 1517 | { | - | ||||||||||||||||||||||||||||||
| 1518 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1519 | if (d
| 1-18 | ||||||||||||||||||||||||||||||
| 1520 | return executed 18 times by 1 test: d->parameterNames;return d->parameterNames;Executed by:
executed 18 times by 1 test: return d->parameterNames;Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 1521 | else | - | ||||||||||||||||||||||||||||||
| 1522 | return executed 1 time by 1 test: QList<QByteArray>();return QList<QByteArray>();Executed by:
executed 1 time by 1 test: return QList<QByteArray>();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1523 | } | - | ||||||||||||||||||||||||||||||
| 1524 | - | |||||||||||||||||||||||||||||||
| 1525 | - | |||||||||||||||||||||||||||||||
| 1526 | - | |||||||||||||||||||||||||||||||
| 1527 | - | |||||||||||||||||||||||||||||||
| 1528 | - | |||||||||||||||||||||||||||||||
| 1529 | - | |||||||||||||||||||||||||||||||
| 1530 | void QMetaMethodBuilder::setParameterNames(const QList<QByteArray>& value) | - | ||||||||||||||||||||||||||||||
| 1531 | { | - | ||||||||||||||||||||||||||||||
| 1532 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1533 | if (d
| 0-103 | ||||||||||||||||||||||||||||||
| 1534 | d->parameterNames = value; executed 103 times by 1 test: d->parameterNames = value;Executed by:
| 103 | ||||||||||||||||||||||||||||||
| 1535 | } executed 103 times by 1 test: end of blockExecuted by:
| 103 | ||||||||||||||||||||||||||||||
| 1536 | - | |||||||||||||||||||||||||||||||
| 1537 | - | |||||||||||||||||||||||||||||||
| 1538 | - | |||||||||||||||||||||||||||||||
| 1539 | - | |||||||||||||||||||||||||||||||
| 1540 | - | |||||||||||||||||||||||||||||||
| 1541 | - | |||||||||||||||||||||||||||||||
| 1542 | QByteArray QMetaMethodBuilder::tag() const | - | ||||||||||||||||||||||||||||||
| 1543 | { | - | ||||||||||||||||||||||||||||||
| 1544 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1545 | if (d
| 1-18 | ||||||||||||||||||||||||||||||
| 1546 | return executed 18 times by 1 test: d->tag;return d->tag;Executed by:
executed 18 times by 1 test: return d->tag;Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 1547 | else | - | ||||||||||||||||||||||||||||||
| 1548 | return executed 1 time by 1 test: QByteArray();return QByteArray();Executed by:
executed 1 time by 1 test: return QByteArray();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1549 | } | - | ||||||||||||||||||||||||||||||
| 1550 | - | |||||||||||||||||||||||||||||||
| 1551 | - | |||||||||||||||||||||||||||||||
| 1552 | - | |||||||||||||||||||||||||||||||
| 1553 | - | |||||||||||||||||||||||||||||||
| 1554 | - | |||||||||||||||||||||||||||||||
| 1555 | - | |||||||||||||||||||||||||||||||
| 1556 | void QMetaMethodBuilder::setTag(const QByteArray& value) | - | ||||||||||||||||||||||||||||||
| 1557 | { | - | ||||||||||||||||||||||||||||||
| 1558 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1559 | if (d
| 0-73 | ||||||||||||||||||||||||||||||
| 1560 | d->tag = value; executed 73 times by 1 test: d->tag = value;Executed by:
| 73 | ||||||||||||||||||||||||||||||
| 1561 | } executed 73 times by 1 test: end of blockExecuted by:
| 73 | ||||||||||||||||||||||||||||||
| 1562 | QMetaMethod::Access QMetaMethodBuilder::access() const | - | ||||||||||||||||||||||||||||||
| 1563 | { | - | ||||||||||||||||||||||||||||||
| 1564 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1565 | if (d
| 1-19 | ||||||||||||||||||||||||||||||
| 1566 | return executed 19 times by 1 test: d->access();return d->access();Executed by:
executed 19 times by 1 test: return d->access();Executed by:
| 19 | ||||||||||||||||||||||||||||||
| 1567 | else | - | ||||||||||||||||||||||||||||||
| 1568 | return executed 1 time by 1 test: QMetaMethod::Public;return QMetaMethod::Public;Executed by:
executed 1 time by 1 test: return QMetaMethod::Public;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1569 | } | - | ||||||||||||||||||||||||||||||
| 1570 | void QMetaMethodBuilder::setAccess(QMetaMethod::Access value) | - | ||||||||||||||||||||||||||||||
| 1571 | { | - | ||||||||||||||||||||||||||||||
| 1572 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1573 | if (d
| 0-73 | ||||||||||||||||||||||||||||||
| 1574 | d->setAccess(value); executed 60 times by 1 test: d->setAccess(value);Executed by:
| 60 | ||||||||||||||||||||||||||||||
| 1575 | } executed 73 times by 1 test: end of blockExecuted by:
| 73 | ||||||||||||||||||||||||||||||
| 1576 | - | |||||||||||||||||||||||||||||||
| 1577 | - | |||||||||||||||||||||||||||||||
| 1578 | - | |||||||||||||||||||||||||||||||
| 1579 | - | |||||||||||||||||||||||||||||||
| 1580 | - | |||||||||||||||||||||||||||||||
| 1581 | - | |||||||||||||||||||||||||||||||
| 1582 | int QMetaMethodBuilder::attributes() const | - | ||||||||||||||||||||||||||||||
| 1583 | { | - | ||||||||||||||||||||||||||||||
| 1584 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1585 | if (d
| 1-18 | ||||||||||||||||||||||||||||||
| 1586 | return executed 18 times by 1 test: (d->attributes >> 4);return (d->attributes >> 4);Executed by:
executed 18 times by 1 test: return (d->attributes >> 4);Executed by:
| 18 | ||||||||||||||||||||||||||||||
| 1587 | else | - | ||||||||||||||||||||||||||||||
| 1588 | return executed 1 time by 1 test: 0;return 0;Executed by:
executed 1 time by 1 test: return 0;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1589 | } | - | ||||||||||||||||||||||||||||||
| 1590 | - | |||||||||||||||||||||||||||||||
| 1591 | - | |||||||||||||||||||||||||||||||
| 1592 | - | |||||||||||||||||||||||||||||||
| 1593 | - | |||||||||||||||||||||||||||||||
| 1594 | - | |||||||||||||||||||||||||||||||
| 1595 | - | |||||||||||||||||||||||||||||||
| 1596 | void QMetaMethodBuilder::setAttributes(int value) | - | ||||||||||||||||||||||||||||||
| 1597 | { | - | ||||||||||||||||||||||||||||||
| 1598 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1599 | if (d
| 0-73 | ||||||||||||||||||||||||||||||
| 1600 | d->attributes = ((d->attributes & 0x0f) | (value << 4)); executed 73 times by 1 test: d->attributes = ((d->attributes & 0x0f) | (value << 4));Executed by:
| 73 | ||||||||||||||||||||||||||||||
| 1601 | } executed 73 times by 1 test: end of blockExecuted by:
| 73 | ||||||||||||||||||||||||||||||
| 1602 | - | |||||||||||||||||||||||||||||||
| 1603 | - | |||||||||||||||||||||||||||||||
| 1604 | - | |||||||||||||||||||||||||||||||
| 1605 | - | |||||||||||||||||||||||||||||||
| 1606 | - | |||||||||||||||||||||||||||||||
| 1607 | - | |||||||||||||||||||||||||||||||
| 1608 | int QMetaMethodBuilder::revision() const | - | ||||||||||||||||||||||||||||||
| 1609 | { | - | ||||||||||||||||||||||||||||||
| 1610 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1611 | if (d
| 1-7 | ||||||||||||||||||||||||||||||
| 1612 | return executed 7 times by 1 test: d->revision;return d->revision;Executed by:
executed 7 times by 1 test: return d->revision;Executed by:
| 7 | ||||||||||||||||||||||||||||||
| 1613 | return executed 1 time by 1 test: 0;return 0;Executed by:
executed 1 time by 1 test: return 0;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1614 | - | |||||||||||||||||||||||||||||||
| 1615 | } | - | ||||||||||||||||||||||||||||||
| 1616 | - | |||||||||||||||||||||||||||||||
| 1617 | - | |||||||||||||||||||||||||||||||
| 1618 | - | |||||||||||||||||||||||||||||||
| 1619 | - | |||||||||||||||||||||||||||||||
| 1620 | - | |||||||||||||||||||||||||||||||
| 1621 | - | |||||||||||||||||||||||||||||||
| 1622 | void QMetaMethodBuilder::setRevision(int revision) | - | ||||||||||||||||||||||||||||||
| 1623 | { | - | ||||||||||||||||||||||||||||||
| 1624 | QMetaMethodBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1625 | if (d
| 0-66 | ||||||||||||||||||||||||||||||
| 1626 | d->revision = revision; | - | ||||||||||||||||||||||||||||||
| 1627 | if (revision
| 5-61 | ||||||||||||||||||||||||||||||
| 1628 | d->attributes |= MethodRevisioned; executed 5 times by 1 test: d->attributes |= MethodRevisioned;Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 1629 | else | - | ||||||||||||||||||||||||||||||
| 1630 | d->attributes &= ~MethodRevisioned; executed 61 times by 1 test: d->attributes &= ~MethodRevisioned;Executed by:
| 61 | ||||||||||||||||||||||||||||||
| 1631 | } | - | ||||||||||||||||||||||||||||||
| 1632 | } executed 66 times by 1 test: end of blockExecuted by:
| 66 | ||||||||||||||||||||||||||||||
| 1633 | QMetaPropertyBuilderPrivate *QMetaPropertyBuilder::d_func() const | - | ||||||||||||||||||||||||||||||
| 1634 | { | - | ||||||||||||||||||||||||||||||
| 1635 | if (_mobj
| 0-840 | ||||||||||||||||||||||||||||||
| 1636 | return executed 840 times by 1 test: &(_mobj->d->properties[_index]);return &(_mobj->d->properties[_index]);Executed by:
executed 840 times by 1 test: return &(_mobj->d->properties[_index]);Executed by:
| 840 | ||||||||||||||||||||||||||||||
| 1637 | else | - | ||||||||||||||||||||||||||||||
| 1638 | return executed 17 times by 1 test: 0;return 0;Executed by:
executed 17 times by 1 test: return 0;Executed by:
| 17 | ||||||||||||||||||||||||||||||
| 1639 | } | - | ||||||||||||||||||||||||||||||
| 1640 | QByteArray QMetaPropertyBuilder::name() const | - | ||||||||||||||||||||||||||||||
| 1641 | { | - | ||||||||||||||||||||||||||||||
| 1642 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1643 | if (d
| 2-9 | ||||||||||||||||||||||||||||||
| 1644 | return executed 9 times by 1 test: d->name;return d->name;Executed by:
executed 9 times by 1 test: return d->name;Executed by:
| 9 | ||||||||||||||||||||||||||||||
| 1645 | else | - | ||||||||||||||||||||||||||||||
| 1646 | return executed 2 times by 1 test: QByteArray();return QByteArray();Executed by:
executed 2 times by 1 test: return QByteArray();Executed by:
| 2 | ||||||||||||||||||||||||||||||
| 1647 | } | - | ||||||||||||||||||||||||||||||
| 1648 | - | |||||||||||||||||||||||||||||||
| 1649 | - | |||||||||||||||||||||||||||||||
| 1650 | - | |||||||||||||||||||||||||||||||
| 1651 | - | |||||||||||||||||||||||||||||||
| 1652 | - | |||||||||||||||||||||||||||||||
| 1653 | - | |||||||||||||||||||||||||||||||
| 1654 | QByteArray QMetaPropertyBuilder::type() const | - | ||||||||||||||||||||||||||||||
| 1655 | { | - | ||||||||||||||||||||||||||||||
| 1656 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1657 | if (d
| 1-7 | ||||||||||||||||||||||||||||||
| 1658 | return executed 7 times by 1 test: d->type;return d->type;Executed by:
executed 7 times by 1 test: return d->type;Executed by:
| 7 | ||||||||||||||||||||||||||||||
| 1659 | else | - | ||||||||||||||||||||||||||||||
| 1660 | return executed 1 time by 1 test: QByteArray();return QByteArray();Executed by:
executed 1 time by 1 test: return QByteArray();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1661 | } | - | ||||||||||||||||||||||||||||||
| 1662 | - | |||||||||||||||||||||||||||||||
| 1663 | - | |||||||||||||||||||||||||||||||
| 1664 | - | |||||||||||||||||||||||||||||||
| 1665 | - | |||||||||||||||||||||||||||||||
| 1666 | - | |||||||||||||||||||||||||||||||
| 1667 | - | |||||||||||||||||||||||||||||||
| 1668 | bool QMetaPropertyBuilder::hasNotifySignal() const | - | ||||||||||||||||||||||||||||||
| 1669 | { | - | ||||||||||||||||||||||||||||||
| 1670 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1671 | if (d
| 1-10 | ||||||||||||||||||||||||||||||
| 1672 | return executed 10 times by 1 test: d->flag(Notify);return d->flag(Notify);Executed by:
executed 10 times by 1 test: return d->flag(Notify);Executed by:
| 10 | ||||||||||||||||||||||||||||||
| 1673 | else | - | ||||||||||||||||||||||||||||||
| 1674 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1675 | } | - | ||||||||||||||||||||||||||||||
| 1676 | - | |||||||||||||||||||||||||||||||
| 1677 | - | |||||||||||||||||||||||||||||||
| 1678 | - | |||||||||||||||||||||||||||||||
| 1679 | - | |||||||||||||||||||||||||||||||
| 1680 | - | |||||||||||||||||||||||||||||||
| 1681 | - | |||||||||||||||||||||||||||||||
| 1682 | QMetaMethodBuilder QMetaPropertyBuilder::notifySignal() const | - | ||||||||||||||||||||||||||||||
| 1683 | { | - | ||||||||||||||||||||||||||||||
| 1684 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1685 | if (d
| 0-7 | ||||||||||||||||||||||||||||||
| 1686 | return executed 4 times by 1 test: QMetaMethodBuilder(_mobj, d->notifySignal);return QMetaMethodBuilder(_mobj, d->notifySignal);Executed by:
executed 4 times by 1 test: return QMetaMethodBuilder(_mobj, d->notifySignal);Executed by:
| 4 | ||||||||||||||||||||||||||||||
| 1687 | else | - | ||||||||||||||||||||||||||||||
| 1688 | return executed 3 times by 1 test: QMetaMethodBuilder();return QMetaMethodBuilder();Executed by:
executed 3 times by 1 test: return QMetaMethodBuilder();Executed by:
| 3 | ||||||||||||||||||||||||||||||
| 1689 | } | - | ||||||||||||||||||||||||||||||
| 1690 | - | |||||||||||||||||||||||||||||||
| 1691 | - | |||||||||||||||||||||||||||||||
| 1692 | - | |||||||||||||||||||||||||||||||
| 1693 | - | |||||||||||||||||||||||||||||||
| 1694 | - | |||||||||||||||||||||||||||||||
| 1695 | - | |||||||||||||||||||||||||||||||
| 1696 | void QMetaPropertyBuilder::setNotifySignal(const QMetaMethodBuilder& value) | - | ||||||||||||||||||||||||||||||
| 1697 | { | - | ||||||||||||||||||||||||||||||
| 1698 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1699 | if (d
| 0-14 | ||||||||||||||||||||||||||||||
| 1700 | if (value._mobj
| 1-13 | ||||||||||||||||||||||||||||||
| 1701 | d->notifySignal = value._index; | - | ||||||||||||||||||||||||||||||
| 1702 | d->setFlag(Notify, true); | - | ||||||||||||||||||||||||||||||
| 1703 | } executed 13 times by 1 test: else {end of blockExecuted by:
| 13 | ||||||||||||||||||||||||||||||
| 1704 | d->notifySignal = -1; | - | ||||||||||||||||||||||||||||||
| 1705 | d->setFlag(Notify, false); | - | ||||||||||||||||||||||||||||||
| 1706 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1707 | } | - | ||||||||||||||||||||||||||||||
| 1708 | } executed 14 times by 1 test: end of blockExecuted by:
| 14 | ||||||||||||||||||||||||||||||
| 1709 | - | |||||||||||||||||||||||||||||||
| 1710 | - | |||||||||||||||||||||||||||||||
| 1711 | - | |||||||||||||||||||||||||||||||
| 1712 | - | |||||||||||||||||||||||||||||||
| 1713 | - | |||||||||||||||||||||||||||||||
| 1714 | - | |||||||||||||||||||||||||||||||
| 1715 | void QMetaPropertyBuilder::removeNotifySignal() | - | ||||||||||||||||||||||||||||||
| 1716 | { | - | ||||||||||||||||||||||||||||||
| 1717 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1718 | if (d
| 0-1 | ||||||||||||||||||||||||||||||
| 1719 | d->notifySignal = -1; | - | ||||||||||||||||||||||||||||||
| 1720 | d->setFlag(Notify, false); | - | ||||||||||||||||||||||||||||||
| 1721 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1722 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 1723 | - | |||||||||||||||||||||||||||||||
| 1724 | - | |||||||||||||||||||||||||||||||
| 1725 | - | |||||||||||||||||||||||||||||||
| 1726 | - | |||||||||||||||||||||||||||||||
| 1727 | - | |||||||||||||||||||||||||||||||
| 1728 | - | |||||||||||||||||||||||||||||||
| 1729 | - | |||||||||||||||||||||||||||||||
| 1730 | bool QMetaPropertyBuilder::isReadable() const | - | ||||||||||||||||||||||||||||||
| 1731 | { | - | ||||||||||||||||||||||||||||||
| 1732 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1733 | if (d
| 1-29 | ||||||||||||||||||||||||||||||
| 1734 | return executed 29 times by 1 test: d->flag(Readable);return d->flag(Readable);Executed by:
executed 29 times by 1 test: return d->flag(Readable);Executed by:
| 29 | ||||||||||||||||||||||||||||||
| 1735 | else | - | ||||||||||||||||||||||||||||||
| 1736 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1737 | } | - | ||||||||||||||||||||||||||||||
| 1738 | - | |||||||||||||||||||||||||||||||
| 1739 | - | |||||||||||||||||||||||||||||||
| 1740 | - | |||||||||||||||||||||||||||||||
| 1741 | - | |||||||||||||||||||||||||||||||
| 1742 | - | |||||||||||||||||||||||||||||||
| 1743 | - | |||||||||||||||||||||||||||||||
| 1744 | - | |||||||||||||||||||||||||||||||
| 1745 | bool QMetaPropertyBuilder::isWritable() const | - | ||||||||||||||||||||||||||||||
| 1746 | { | - | ||||||||||||||||||||||||||||||
| 1747 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1748 | if (d
| 1-29 | ||||||||||||||||||||||||||||||
| 1749 | return executed 29 times by 1 test: d->flag(Writable);return d->flag(Writable);Executed by:
executed 29 times by 1 test: return d->flag(Writable);Executed by:
| 29 | ||||||||||||||||||||||||||||||
| 1750 | else | - | ||||||||||||||||||||||||||||||
| 1751 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1752 | } | - | ||||||||||||||||||||||||||||||
| 1753 | - | |||||||||||||||||||||||||||||||
| 1754 | - | |||||||||||||||||||||||||||||||
| 1755 | - | |||||||||||||||||||||||||||||||
| 1756 | - | |||||||||||||||||||||||||||||||
| 1757 | - | |||||||||||||||||||||||||||||||
| 1758 | - | |||||||||||||||||||||||||||||||
| 1759 | - | |||||||||||||||||||||||||||||||
| 1760 | bool QMetaPropertyBuilder::isResettable() const | - | ||||||||||||||||||||||||||||||
| 1761 | { | - | ||||||||||||||||||||||||||||||
| 1762 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1763 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1764 | return executed 30 times by 1 test: d->flag(Resettable);return d->flag(Resettable);Executed by:
executed 30 times by 1 test: return d->flag(Resettable);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1765 | else | - | ||||||||||||||||||||||||||||||
| 1766 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1767 | } | - | ||||||||||||||||||||||||||||||
| 1768 | - | |||||||||||||||||||||||||||||||
| 1769 | - | |||||||||||||||||||||||||||||||
| 1770 | - | |||||||||||||||||||||||||||||||
| 1771 | - | |||||||||||||||||||||||||||||||
| 1772 | - | |||||||||||||||||||||||||||||||
| 1773 | - | |||||||||||||||||||||||||||||||
| 1774 | - | |||||||||||||||||||||||||||||||
| 1775 | bool QMetaPropertyBuilder::isDesignable() const | - | ||||||||||||||||||||||||||||||
| 1776 | { | - | ||||||||||||||||||||||||||||||
| 1777 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1778 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1779 | return executed 30 times by 1 test: d->flag(Designable);return d->flag(Designable);Executed by:
executed 30 times by 1 test: return d->flag(Designable);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1780 | else | - | ||||||||||||||||||||||||||||||
| 1781 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1782 | } | - | ||||||||||||||||||||||||||||||
| 1783 | - | |||||||||||||||||||||||||||||||
| 1784 | - | |||||||||||||||||||||||||||||||
| 1785 | - | |||||||||||||||||||||||||||||||
| 1786 | - | |||||||||||||||||||||||||||||||
| 1787 | - | |||||||||||||||||||||||||||||||
| 1788 | - | |||||||||||||||||||||||||||||||
| 1789 | - | |||||||||||||||||||||||||||||||
| 1790 | bool QMetaPropertyBuilder::isScriptable() const | - | ||||||||||||||||||||||||||||||
| 1791 | { | - | ||||||||||||||||||||||||||||||
| 1792 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1793 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1794 | return executed 30 times by 1 test: d->flag(Scriptable);return d->flag(Scriptable);Executed by:
executed 30 times by 1 test: return d->flag(Scriptable);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1795 | else | - | ||||||||||||||||||||||||||||||
| 1796 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1797 | } | - | ||||||||||||||||||||||||||||||
| 1798 | - | |||||||||||||||||||||||||||||||
| 1799 | - | |||||||||||||||||||||||||||||||
| 1800 | - | |||||||||||||||||||||||||||||||
| 1801 | - | |||||||||||||||||||||||||||||||
| 1802 | - | |||||||||||||||||||||||||||||||
| 1803 | - | |||||||||||||||||||||||||||||||
| 1804 | - | |||||||||||||||||||||||||||||||
| 1805 | bool QMetaPropertyBuilder::isStored() const | - | ||||||||||||||||||||||||||||||
| 1806 | { | - | ||||||||||||||||||||||||||||||
| 1807 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1808 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1809 | return executed 30 times by 1 test: d->flag(Stored);return d->flag(Stored);Executed by:
executed 30 times by 1 test: return d->flag(Stored);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1810 | else | - | ||||||||||||||||||||||||||||||
| 1811 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1812 | } | - | ||||||||||||||||||||||||||||||
| 1813 | - | |||||||||||||||||||||||||||||||
| 1814 | - | |||||||||||||||||||||||||||||||
| 1815 | - | |||||||||||||||||||||||||||||||
| 1816 | - | |||||||||||||||||||||||||||||||
| 1817 | - | |||||||||||||||||||||||||||||||
| 1818 | - | |||||||||||||||||||||||||||||||
| 1819 | - | |||||||||||||||||||||||||||||||
| 1820 | bool QMetaPropertyBuilder::isEditable() const | - | ||||||||||||||||||||||||||||||
| 1821 | { | - | ||||||||||||||||||||||||||||||
| 1822 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1823 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1824 | return executed 30 times by 1 test: d->flag(Editable);return d->flag(Editable);Executed by:
executed 30 times by 1 test: return d->flag(Editable);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1825 | else | - | ||||||||||||||||||||||||||||||
| 1826 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1827 | } | - | ||||||||||||||||||||||||||||||
| 1828 | bool QMetaPropertyBuilder::isUser() const | - | ||||||||||||||||||||||||||||||
| 1829 | { | - | ||||||||||||||||||||||||||||||
| 1830 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1831 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1832 | return executed 30 times by 1 test: d->flag(User);return d->flag(User);Executed by:
executed 30 times by 1 test: return d->flag(User);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1833 | else | - | ||||||||||||||||||||||||||||||
| 1834 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1835 | } | - | ||||||||||||||||||||||||||||||
| 1836 | bool QMetaPropertyBuilder::hasStdCppSet() const | - | ||||||||||||||||||||||||||||||
| 1837 | { | - | ||||||||||||||||||||||||||||||
| 1838 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1839 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1840 | return executed 30 times by 1 test: d->flag(StdCppSet);return d->flag(StdCppSet);Executed by:
executed 30 times by 1 test: return d->flag(StdCppSet);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1841 | else | - | ||||||||||||||||||||||||||||||
| 1842 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1843 | } | - | ||||||||||||||||||||||||||||||
| 1844 | - | |||||||||||||||||||||||||||||||
| 1845 | - | |||||||||||||||||||||||||||||||
| 1846 | - | |||||||||||||||||||||||||||||||
| 1847 | - | |||||||||||||||||||||||||||||||
| 1848 | - | |||||||||||||||||||||||||||||||
| 1849 | - | |||||||||||||||||||||||||||||||
| 1850 | - | |||||||||||||||||||||||||||||||
| 1851 | bool QMetaPropertyBuilder::isEnumOrFlag() const | - | ||||||||||||||||||||||||||||||
| 1852 | { | - | ||||||||||||||||||||||||||||||
| 1853 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1854 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1855 | return executed 30 times by 1 test: d->flag(EnumOrFlag);return d->flag(EnumOrFlag);Executed by:
executed 30 times by 1 test: return d->flag(EnumOrFlag);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1856 | else | - | ||||||||||||||||||||||||||||||
| 1857 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1858 | } | - | ||||||||||||||||||||||||||||||
| 1859 | - | |||||||||||||||||||||||||||||||
| 1860 | - | |||||||||||||||||||||||||||||||
| 1861 | - | |||||||||||||||||||||||||||||||
| 1862 | - | |||||||||||||||||||||||||||||||
| 1863 | - | |||||||||||||||||||||||||||||||
| 1864 | bool QMetaPropertyBuilder::isConstant() const | - | ||||||||||||||||||||||||||||||
| 1865 | { | - | ||||||||||||||||||||||||||||||
| 1866 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1867 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1868 | return executed 30 times by 1 test: d->flag(Constant);return d->flag(Constant);Executed by:
executed 30 times by 1 test: return d->flag(Constant);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1869 | else | - | ||||||||||||||||||||||||||||||
| 1870 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1871 | } | - | ||||||||||||||||||||||||||||||
| 1872 | - | |||||||||||||||||||||||||||||||
| 1873 | - | |||||||||||||||||||||||||||||||
| 1874 | - | |||||||||||||||||||||||||||||||
| 1875 | - | |||||||||||||||||||||||||||||||
| 1876 | - | |||||||||||||||||||||||||||||||
| 1877 | bool QMetaPropertyBuilder::isFinal() const | - | ||||||||||||||||||||||||||||||
| 1878 | { | - | ||||||||||||||||||||||||||||||
| 1879 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1880 | if (d
| 1-30 | ||||||||||||||||||||||||||||||
| 1881 | return executed 30 times by 1 test: d->flag(Final);return d->flag(Final);Executed by:
executed 30 times by 1 test: return d->flag(Final);Executed by:
| 30 | ||||||||||||||||||||||||||||||
| 1882 | else | - | ||||||||||||||||||||||||||||||
| 1883 | return executed 1 time by 1 test: false;return false;Executed by:
executed 1 time by 1 test: return false;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 1884 | } | - | ||||||||||||||||||||||||||||||
| 1885 | - | |||||||||||||||||||||||||||||||
| 1886 | - | |||||||||||||||||||||||||||||||
| 1887 | - | |||||||||||||||||||||||||||||||
| 1888 | - | |||||||||||||||||||||||||||||||
| 1889 | - | |||||||||||||||||||||||||||||||
| 1890 | - | |||||||||||||||||||||||||||||||
| 1891 | void QMetaPropertyBuilder::setReadable(bool value) | - | ||||||||||||||||||||||||||||||
| 1892 | { | - | ||||||||||||||||||||||||||||||
| 1893 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1894 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1895 | d->setFlag(Readable, value); executed 34 times by 1 test: d->setFlag(Readable, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1896 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1897 | - | |||||||||||||||||||||||||||||||
| 1898 | - | |||||||||||||||||||||||||||||||
| 1899 | - | |||||||||||||||||||||||||||||||
| 1900 | - | |||||||||||||||||||||||||||||||
| 1901 | - | |||||||||||||||||||||||||||||||
| 1902 | - | |||||||||||||||||||||||||||||||
| 1903 | void QMetaPropertyBuilder::setWritable(bool value) | - | ||||||||||||||||||||||||||||||
| 1904 | { | - | ||||||||||||||||||||||||||||||
| 1905 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1906 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1907 | d->setFlag(Writable, value); executed 34 times by 1 test: d->setFlag(Writable, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1908 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1909 | - | |||||||||||||||||||||||||||||||
| 1910 | - | |||||||||||||||||||||||||||||||
| 1911 | - | |||||||||||||||||||||||||||||||
| 1912 | - | |||||||||||||||||||||||||||||||
| 1913 | - | |||||||||||||||||||||||||||||||
| 1914 | - | |||||||||||||||||||||||||||||||
| 1915 | void QMetaPropertyBuilder::setResettable(bool value) | - | ||||||||||||||||||||||||||||||
| 1916 | { | - | ||||||||||||||||||||||||||||||
| 1917 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1918 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1919 | d->setFlag(Resettable, value); executed 34 times by 1 test: d->setFlag(Resettable, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1920 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1921 | - | |||||||||||||||||||||||||||||||
| 1922 | - | |||||||||||||||||||||||||||||||
| 1923 | - | |||||||||||||||||||||||||||||||
| 1924 | - | |||||||||||||||||||||||||||||||
| 1925 | - | |||||||||||||||||||||||||||||||
| 1926 | - | |||||||||||||||||||||||||||||||
| 1927 | void QMetaPropertyBuilder::setDesignable(bool value) | - | ||||||||||||||||||||||||||||||
| 1928 | { | - | ||||||||||||||||||||||||||||||
| 1929 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1930 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1931 | d->setFlag(Designable, value); executed 34 times by 1 test: d->setFlag(Designable, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1932 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1933 | - | |||||||||||||||||||||||||||||||
| 1934 | - | |||||||||||||||||||||||||||||||
| 1935 | - | |||||||||||||||||||||||||||||||
| 1936 | - | |||||||||||||||||||||||||||||||
| 1937 | - | |||||||||||||||||||||||||||||||
| 1938 | - | |||||||||||||||||||||||||||||||
| 1939 | void QMetaPropertyBuilder::setScriptable(bool value) | - | ||||||||||||||||||||||||||||||
| 1940 | { | - | ||||||||||||||||||||||||||||||
| 1941 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1942 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1943 | d->setFlag(Scriptable, value); executed 34 times by 1 test: d->setFlag(Scriptable, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1944 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1945 | - | |||||||||||||||||||||||||||||||
| 1946 | - | |||||||||||||||||||||||||||||||
| 1947 | - | |||||||||||||||||||||||||||||||
| 1948 | - | |||||||||||||||||||||||||||||||
| 1949 | - | |||||||||||||||||||||||||||||||
| 1950 | - | |||||||||||||||||||||||||||||||
| 1951 | void QMetaPropertyBuilder::setStored(bool value) | - | ||||||||||||||||||||||||||||||
| 1952 | { | - | ||||||||||||||||||||||||||||||
| 1953 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1954 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1955 | d->setFlag(Stored, value); executed 34 times by 1 test: d->setFlag(Stored, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1956 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1957 | - | |||||||||||||||||||||||||||||||
| 1958 | - | |||||||||||||||||||||||||||||||
| 1959 | - | |||||||||||||||||||||||||||||||
| 1960 | - | |||||||||||||||||||||||||||||||
| 1961 | - | |||||||||||||||||||||||||||||||
| 1962 | - | |||||||||||||||||||||||||||||||
| 1963 | void QMetaPropertyBuilder::setEditable(bool value) | - | ||||||||||||||||||||||||||||||
| 1964 | { | - | ||||||||||||||||||||||||||||||
| 1965 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1966 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1967 | d->setFlag(Editable, value); executed 34 times by 1 test: d->setFlag(Editable, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1968 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1969 | - | |||||||||||||||||||||||||||||||
| 1970 | - | |||||||||||||||||||||||||||||||
| 1971 | - | |||||||||||||||||||||||||||||||
| 1972 | - | |||||||||||||||||||||||||||||||
| 1973 | - | |||||||||||||||||||||||||||||||
| 1974 | - | |||||||||||||||||||||||||||||||
| 1975 | void QMetaPropertyBuilder::setUser(bool value) | - | ||||||||||||||||||||||||||||||
| 1976 | { | - | ||||||||||||||||||||||||||||||
| 1977 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1978 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1979 | d->setFlag(User, value); executed 34 times by 1 test: d->setFlag(User, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1980 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1981 | void QMetaPropertyBuilder::setStdCppSet(bool value) | - | ||||||||||||||||||||||||||||||
| 1982 | { | - | ||||||||||||||||||||||||||||||
| 1983 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1984 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1985 | d->setFlag(StdCppSet, value); executed 34 times by 1 test: d->setFlag(StdCppSet, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1986 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 1987 | - | |||||||||||||||||||||||||||||||
| 1988 | - | |||||||||||||||||||||||||||||||
| 1989 | - | |||||||||||||||||||||||||||||||
| 1990 | - | |||||||||||||||||||||||||||||||
| 1991 | - | |||||||||||||||||||||||||||||||
| 1992 | - | |||||||||||||||||||||||||||||||
| 1993 | - | |||||||||||||||||||||||||||||||
| 1994 | void QMetaPropertyBuilder::setEnumOrFlag(bool value) | - | ||||||||||||||||||||||||||||||
| 1995 | { | - | ||||||||||||||||||||||||||||||
| 1996 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 1997 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 1998 | d->setFlag(EnumOrFlag, value); executed 34 times by 1 test: d->setFlag(EnumOrFlag, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 1999 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 2000 | - | |||||||||||||||||||||||||||||||
| 2001 | - | |||||||||||||||||||||||||||||||
| 2002 | - | |||||||||||||||||||||||||||||||
| 2003 | - | |||||||||||||||||||||||||||||||
| 2004 | - | |||||||||||||||||||||||||||||||
| 2005 | - | |||||||||||||||||||||||||||||||
| 2006 | void QMetaPropertyBuilder::setConstant(bool value) | - | ||||||||||||||||||||||||||||||
| 2007 | { | - | ||||||||||||||||||||||||||||||
| 2008 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2009 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 2010 | d->setFlag(Constant, value); executed 34 times by 1 test: d->setFlag(Constant, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 2011 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 2012 | - | |||||||||||||||||||||||||||||||
| 2013 | - | |||||||||||||||||||||||||||||||
| 2014 | - | |||||||||||||||||||||||||||||||
| 2015 | - | |||||||||||||||||||||||||||||||
| 2016 | - | |||||||||||||||||||||||||||||||
| 2017 | - | |||||||||||||||||||||||||||||||
| 2018 | void QMetaPropertyBuilder::setFinal(bool value) | - | ||||||||||||||||||||||||||||||
| 2019 | { | - | ||||||||||||||||||||||||||||||
| 2020 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2021 | if (d
| 0-34 | ||||||||||||||||||||||||||||||
| 2022 | d->setFlag(Final, value); executed 34 times by 1 test: d->setFlag(Final, value);Executed by:
| 34 | ||||||||||||||||||||||||||||||
| 2023 | } executed 34 times by 1 test: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||||||||
| 2024 | - | |||||||||||||||||||||||||||||||
| 2025 | - | |||||||||||||||||||||||||||||||
| 2026 | - | |||||||||||||||||||||||||||||||
| 2027 | - | |||||||||||||||||||||||||||||||
| 2028 | - | |||||||||||||||||||||||||||||||
| 2029 | - | |||||||||||||||||||||||||||||||
| 2030 | int QMetaPropertyBuilder::revision() const | - | ||||||||||||||||||||||||||||||
| 2031 | { | - | ||||||||||||||||||||||||||||||
| 2032 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2033 | if (d
| 1-5 | ||||||||||||||||||||||||||||||
| 2034 | return executed 5 times by 1 test: d->revision;return d->revision;Executed by:
executed 5 times by 1 test: return d->revision;Executed by:
| 5 | ||||||||||||||||||||||||||||||
| 2035 | return executed 1 time by 1 test: 0;return 0;Executed by:
executed 1 time by 1 test: return 0;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 2036 | - | |||||||||||||||||||||||||||||||
| 2037 | } | - | ||||||||||||||||||||||||||||||
| 2038 | - | |||||||||||||||||||||||||||||||
| 2039 | - | |||||||||||||||||||||||||||||||
| 2040 | - | |||||||||||||||||||||||||||||||
| 2041 | - | |||||||||||||||||||||||||||||||
| 2042 | - | |||||||||||||||||||||||||||||||
| 2043 | - | |||||||||||||||||||||||||||||||
| 2044 | void QMetaPropertyBuilder::setRevision(int revision) | - | ||||||||||||||||||||||||||||||
| 2045 | { | - | ||||||||||||||||||||||||||||||
| 2046 | QMetaPropertyBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2047 | if (d
| 0-21 | ||||||||||||||||||||||||||||||
| 2048 | d->revision = revision; | - | ||||||||||||||||||||||||||||||
| 2049 | d->setFlag(Revisioned, revision != 0); | - | ||||||||||||||||||||||||||||||
| 2050 | } executed 21 times by 1 test: end of blockExecuted by:
| 21 | ||||||||||||||||||||||||||||||
| 2051 | } executed 21 times by 1 test: end of blockExecuted by:
| 21 | ||||||||||||||||||||||||||||||
| 2052 | QMetaEnumBuilderPrivate *QMetaEnumBuilder::d_func() const | - | ||||||||||||||||||||||||||||||
| 2053 | { | - | ||||||||||||||||||||||||||||||
| 2054 | if (_mobj
| 0-89 | ||||||||||||||||||||||||||||||
| 2055 | return executed 89 times by 1 test: &(_mobj->d->enumerators[_index]);return &(_mobj->d->enumerators[_index]);Executed by:
executed 89 times by 1 test: return &(_mobj->d->enumerators[_index]);Executed by:
| 89 | ||||||||||||||||||||||||||||||
| 2056 | else | - | ||||||||||||||||||||||||||||||
| 2057 | return executed 1 time by 1 test: 0;return 0;Executed by:
executed 1 time by 1 test: return 0;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 2058 | } | - | ||||||||||||||||||||||||||||||
| 2059 | QByteArray QMetaEnumBuilder::name() const | - | ||||||||||||||||||||||||||||||
| 2060 | { | - | ||||||||||||||||||||||||||||||
| 2061 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2062 | if (d
| 1-10 | ||||||||||||||||||||||||||||||
| 2063 | return executed 10 times by 1 test: d->name;return d->name;Executed by:
executed 10 times by 1 test: return d->name;Executed by:
| 10 | ||||||||||||||||||||||||||||||
| 2064 | else | - | ||||||||||||||||||||||||||||||
| 2065 | return executed 1 time by 1 test: QByteArray();return QByteArray();Executed by:
executed 1 time by 1 test: return QByteArray();Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 2066 | } | - | ||||||||||||||||||||||||||||||
| 2067 | - | |||||||||||||||||||||||||||||||
| 2068 | - | |||||||||||||||||||||||||||||||
| 2069 | - | |||||||||||||||||||||||||||||||
| 2070 | - | |||||||||||||||||||||||||||||||
| 2071 | - | |||||||||||||||||||||||||||||||
| 2072 | - | |||||||||||||||||||||||||||||||
| 2073 | - | |||||||||||||||||||||||||||||||
| 2074 | bool QMetaEnumBuilder::isFlag() const | - | ||||||||||||||||||||||||||||||
| 2075 | { | - | ||||||||||||||||||||||||||||||
| 2076 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2077 | if (d
| 0-9 | ||||||||||||||||||||||||||||||
| 2078 | return executed 9 times by 1 test: d->isFlag;return d->isFlag;Executed by:
executed 9 times by 1 test: return d->isFlag;Executed by:
| 9 | ||||||||||||||||||||||||||||||
| 2079 | else | - | ||||||||||||||||||||||||||||||
| 2080 | return never executed: false;return false;never executed: return false; | 0 | ||||||||||||||||||||||||||||||
| 2081 | } | - | ||||||||||||||||||||||||||||||
| 2082 | - | |||||||||||||||||||||||||||||||
| 2083 | - | |||||||||||||||||||||||||||||||
| 2084 | - | |||||||||||||||||||||||||||||||
| 2085 | - | |||||||||||||||||||||||||||||||
| 2086 | - | |||||||||||||||||||||||||||||||
| 2087 | - | |||||||||||||||||||||||||||||||
| 2088 | void QMetaEnumBuilder::setIsFlag(bool value) | - | ||||||||||||||||||||||||||||||
| 2089 | { | - | ||||||||||||||||||||||||||||||
| 2090 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2091 | if (d
| 0-8 | ||||||||||||||||||||||||||||||
| 2092 | d->isFlag = value; executed 8 times by 1 test: d->isFlag = value;Executed by:
| 8 | ||||||||||||||||||||||||||||||
| 2093 | } executed 8 times by 1 test: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||||||||
| 2094 | - | |||||||||||||||||||||||||||||||
| 2095 | - | |||||||||||||||||||||||||||||||
| 2096 | - | |||||||||||||||||||||||||||||||
| 2097 | - | |||||||||||||||||||||||||||||||
| 2098 | - | |||||||||||||||||||||||||||||||
| 2099 | - | |||||||||||||||||||||||||||||||
| 2100 | int QMetaEnumBuilder::keyCount() const | - | ||||||||||||||||||||||||||||||
| 2101 | { | - | ||||||||||||||||||||||||||||||
| 2102 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2103 | if (d
| 0-9 | ||||||||||||||||||||||||||||||
| 2104 | return executed 9 times by 1 test: d->keys.size();return d->keys.size();Executed by:
executed 9 times by 1 test: return d->keys.size();Executed by:
| 9 | ||||||||||||||||||||||||||||||
| 2105 | else | - | ||||||||||||||||||||||||||||||
| 2106 | return never executed: 0;return 0;never executed: return 0; | 0 | ||||||||||||||||||||||||||||||
| 2107 | } | - | ||||||||||||||||||||||||||||||
| 2108 | - | |||||||||||||||||||||||||||||||
| 2109 | - | |||||||||||||||||||||||||||||||
| 2110 | - | |||||||||||||||||||||||||||||||
| 2111 | - | |||||||||||||||||||||||||||||||
| 2112 | - | |||||||||||||||||||||||||||||||
| 2113 | - | |||||||||||||||||||||||||||||||
| 2114 | - | |||||||||||||||||||||||||||||||
| 2115 | QByteArray QMetaEnumBuilder::key(int index) const | - | ||||||||||||||||||||||||||||||
| 2116 | { | - | ||||||||||||||||||||||||||||||
| 2117 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2118 | if (d
| 0-20 | ||||||||||||||||||||||||||||||
| 2119 | return executed 14 times by 1 test: d->keys[index];return d->keys[index];Executed by:
executed 14 times by 1 test: return d->keys[index];Executed by:
| 14 | ||||||||||||||||||||||||||||||
| 2120 | else | - | ||||||||||||||||||||||||||||||
| 2121 | return executed 6 times by 1 test: QByteArray();return QByteArray();Executed by:
executed 6 times by 1 test: return QByteArray();Executed by:
| 6 | ||||||||||||||||||||||||||||||
| 2122 | } | - | ||||||||||||||||||||||||||||||
| 2123 | - | |||||||||||||||||||||||||||||||
| 2124 | - | |||||||||||||||||||||||||||||||
| 2125 | - | |||||||||||||||||||||||||||||||
| 2126 | - | |||||||||||||||||||||||||||||||
| 2127 | - | |||||||||||||||||||||||||||||||
| 2128 | - | |||||||||||||||||||||||||||||||
| 2129 | - | |||||||||||||||||||||||||||||||
| 2130 | int QMetaEnumBuilder::value(int index) const | - | ||||||||||||||||||||||||||||||
| 2131 | { | - | ||||||||||||||||||||||||||||||
| 2132 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2133 | if (d
| 0-15 | ||||||||||||||||||||||||||||||
| 2134 | return executed 14 times by 1 test: d->values[index];return d->values[index];Executed by:
executed 14 times by 1 test: return d->values[index];Executed by:
| 14 | ||||||||||||||||||||||||||||||
| 2135 | else | - | ||||||||||||||||||||||||||||||
| 2136 | return executed 1 time by 1 test: -1;return -1;Executed by:
executed 1 time by 1 test: return -1;Executed by:
| 1 | ||||||||||||||||||||||||||||||
| 2137 | } | - | ||||||||||||||||||||||||||||||
| 2138 | - | |||||||||||||||||||||||||||||||
| 2139 | - | |||||||||||||||||||||||||||||||
| 2140 | - | |||||||||||||||||||||||||||||||
| 2141 | - | |||||||||||||||||||||||||||||||
| 2142 | - | |||||||||||||||||||||||||||||||
| 2143 | - | |||||||||||||||||||||||||||||||
| 2144 | - | |||||||||||||||||||||||||||||||
| 2145 | int QMetaEnumBuilder::addKey(const QByteArray& name, int value) | - | ||||||||||||||||||||||||||||||
| 2146 | { | - | ||||||||||||||||||||||||||||||
| 2147 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2148 | if (d
| 0-17 | ||||||||||||||||||||||||||||||
| 2149 | int index = d->keys.size(); | - | ||||||||||||||||||||||||||||||
| 2150 | d->keys += name; | - | ||||||||||||||||||||||||||||||
| 2151 | d->values += value; | - | ||||||||||||||||||||||||||||||
| 2152 | return executed 17 times by 1 test: index;return index;Executed by:
executed 17 times by 1 test: return index;Executed by:
| 17 | ||||||||||||||||||||||||||||||
| 2153 | } else { | - | ||||||||||||||||||||||||||||||
| 2154 | return never executed: -1;return -1;never executed: return -1; | 0 | ||||||||||||||||||||||||||||||
| 2155 | } | - | ||||||||||||||||||||||||||||||
| 2156 | } | - | ||||||||||||||||||||||||||||||
| 2157 | - | |||||||||||||||||||||||||||||||
| 2158 | - | |||||||||||||||||||||||||||||||
| 2159 | - | |||||||||||||||||||||||||||||||
| 2160 | - | |||||||||||||||||||||||||||||||
| 2161 | - | |||||||||||||||||||||||||||||||
| 2162 | - | |||||||||||||||||||||||||||||||
| 2163 | void QMetaEnumBuilder::removeKey(int index) | - | ||||||||||||||||||||||||||||||
| 2164 | { | - | ||||||||||||||||||||||||||||||
| 2165 | QMetaEnumBuilderPrivate *d = d_func(); | - | ||||||||||||||||||||||||||||||
| 2166 | if (d
| 0-1 | ||||||||||||||||||||||||||||||
| 2167 | d->keys.removeAt(index); | - | ||||||||||||||||||||||||||||||
| 2168 | d->values.removeAt(index); | - | ||||||||||||||||||||||||||||||
| 2169 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 2170 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||
| 2171 | - | |||||||||||||||||||||||||||||||
| 2172 | - | |||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |