| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlproperty_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | class QQmlContext; | - |
| 5 | class QQmlEnginePrivate; | - |
| 6 | class QQmlJavaScriptExpression; | - |
| 7 | - | |
| 8 | class __attribute__((visibility("default"))) QQmlPropertyPrivate : public QQmlRefCount | - |
| 9 | { | - |
| 10 | public: | - |
| 11 | QQmlContextData *context; | - |
| 12 | QPointer<QQmlEngine> engine; | - |
| 13 | QPointer<QObject> object; | - |
| 14 | - | |
| 15 | QQmlPropertyData core; | - |
| 16 | QQmlPropertyData valueTypeData; | - |
| 17 | - | |
| 18 | bool isNameCached:1; | - |
| 19 | QString nameCache; | - |
| 20 | - | |
| 21 | QQmlPropertyPrivate(); | - |
| 22 | - | |
| 23 | QQmlPropertyIndex encodedIndex() const | - |
| 24 | { return executed 1082 times by 18 tests: encodedIndex(core, valueTypeData);return encodedIndex(core, valueTypeData);Executed by:
executed 1082 times by 18 tests: }return encodedIndex(core, valueTypeData);Executed by:
| 1082 |
| 25 | static QQmlPropertyIndex encodedIndex(const QQmlPropertyData &core, const QQmlPropertyData &valueTypeData) | - |
| 26 | { return executed 2068 times by 26 tests: QQmlPropertyIndex(core.coreIndex(), valueTypeData.coreIndex());return QQmlPropertyIndex(core.coreIndex(), valueTypeData.coreIndex());Executed by:
executed 2068 times by 26 tests: }return QQmlPropertyIndex(core.coreIndex(), valueTypeData.coreIndex());Executed by:
| 2068 |
| 27 | - | |
| 28 | inline QQmlContextData *effectiveContext() const; | - |
| 29 | - | |
| 30 | void initProperty(QObject *obj, const QString &name); | - |
| 31 | void initDefault(QObject *obj); | - |
| 32 | - | |
| 33 | bool isValueType() const; | - |
| 34 | int propertyType() const; | - |
| 35 | QQmlProperty::Type type() const; | - |
| 36 | QQmlProperty::PropertyTypeCategory propertyTypeCategory() const; | - |
| 37 | - | |
| 38 | QVariant readValueProperty(); | - |
| 39 | bool writeValueProperty(const QVariant &, QQmlPropertyData::WriteFlags); | - |
| 40 | - | |
| 41 | static QQmlMetaObject rawMetaObjectForType(QQmlEnginePrivate *, int); | - |
| 42 | static bool writeEnumProperty(const QMetaProperty &prop, int idx, QObject *object, | - |
| 43 | const QVariant &value, int flags); | - |
| 44 | static bool writeValueProperty(QObject *, | - |
| 45 | const QQmlPropertyData &, const QQmlPropertyData &valueTypeData, | - |
| 46 | const QVariant &, QQmlContextData *, | - |
| 47 | QQmlPropertyData::WriteFlags flags = nullptr); | - |
| 48 | static bool write(QObject *, const QQmlPropertyData &, const QVariant &, | - |
| 49 | QQmlContextData *, QQmlPropertyData::WriteFlags flags = nullptr); | - |
| 50 | static void findAliasTarget(QObject *, QQmlPropertyIndex, QObject **, QQmlPropertyIndex *); | - |
| 51 | - | |
| 52 | enum BindingFlag { | - |
| 53 | None = 0, | - |
| 54 | DontEnable = 0x1 | - |
| 55 | }; | - |
| 56 | typedef QFlags<BindingFlag> BindingFlags; | - |
| 57 | - | |
| 58 | static void setBinding(QQmlAbstractBinding *binding, BindingFlags flags = None, | - |
| 59 | QQmlPropertyData::WriteFlags writeFlags = QQmlPropertyData::DontRemoveBinding); | - |
| 60 | - | |
| 61 | static void removeBinding(const QQmlProperty &that); | - |
| 62 | static void removeBinding(QObject *o, QQmlPropertyIndex index); | - |
| 63 | static void removeBinding(QQmlAbstractBinding *b); | - |
| 64 | static QQmlAbstractBinding *binding(QObject *, QQmlPropertyIndex index); | - |
| 65 | - | |
| 66 | static QQmlProperty restore(QObject *, const QQmlPropertyData &, const QQmlPropertyData *, QQmlContextData *); | - |
| 67 | - | |
| 68 | int signalIndex() const; | - |
| 69 | - | |
| 70 | static inline QQmlPropertyPrivate *get(const QQmlProperty &p) { return executed 676 times by 21 tests: p.d;return p.d;Executed by:
executed 676 times by 21 tests: }return p.d;Executed by:
| 676 |
| 71 | - | |
| 72 | - | |
| 73 | static QQmlAbstractBinding *binding(const QQmlProperty &that); | - |
| 74 | static void setBinding(const QQmlProperty &that, QQmlAbstractBinding *); | - |
| 75 | static QQmlBoundSignalExpression *signalExpression(const QQmlProperty &that); | - |
| 76 | static void setSignalExpression(const QQmlProperty &that, QQmlBoundSignalExpression *); | - |
| 77 | static void takeSignalExpression(const QQmlProperty &that, QQmlBoundSignalExpression *); | - |
| 78 | static bool write(const QQmlProperty &that, const QVariant &, QQmlPropertyData::WriteFlags); | - |
| 79 | static QQmlPropertyIndex propertyIndex(const QQmlProperty &that); | - |
| 80 | static QMetaMethod findSignalByName(const QMetaObject *mo, const QByteArray &); | - |
| 81 | static bool connect(const QObject *sender, int signal_index, | - |
| 82 | const QObject *receiver, int method_index, | - |
| 83 | int type = 0, int *types = nullptr); | - |
| 84 | static void flushSignal(const QObject *sender, int signal_index); | - |
| 85 | - | |
| 86 | static QVariant resolvedUrlSequence(const QVariant &value, QQmlContextData *context); | - |
| 87 | static QQmlProperty create(QObject *target, const QString &propertyName, QQmlContextData *context); | - |
| 88 | - | |
| 89 | }; | - |
| 90 | - | |
| 91 | constexpr inline QFlags<QQmlPropertyPrivate::BindingFlags::enum_type> operator|(QQmlPropertyPrivate::BindingFlags::enum_type f1, QQmlPropertyPrivate::BindingFlags::enum_type f2) noexcept { return QFlags<QQmlPropertyPrivate::BindingFlags::enum_type>(f1) | f2; } constexpr inline QFlags<QQmlPropertyPrivate::BindingFlags::enum_type> operator|(QQmlPropertyPrivate::BindingFlags::enum_type f1, QFlags<QQmlPropertyPrivate::BindingFlags::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QQmlPropertyPrivate::BindingFlags::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
| 92 | - | |
| 93 | - | |
| Switch to Source code | Preprocessed file |