OpenCoverage

qqmlproperty_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlproperty_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQmlContext;-
5class QQmlEnginePrivate;-
6class QQmlJavaScriptExpression;-
7-
8class __attribute__((visibility("default"))) QQmlPropertyPrivate : public QQmlRefCount-
9{-
10public:-
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: return encodedIndex(core, valueTypeData);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
encodedIndex(core, valueTypeData);
executed 1082 times by 18 tests: return encodedIndex(core, valueTypeData);
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquicksmoothedanimation
  • tst_qquickstates
}
1082
25 static QQmlPropertyIndex encodedIndex(const QQmlPropertyData &core, const QQmlPropertyData &valueTypeData)-
26 { return
executed 2068 times by 26 tests: return QQmlPropertyIndex(core.coreIndex(), valueTypeData.coreIndex());
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • ...
QQmlPropertyIndex(core.coreIndex(), valueTypeData.coreIndex());
executed 2068 times by 26 tests: return QQmlPropertyIndex(core.coreIndex(), valueTypeData.coreIndex());
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickfontloader
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickpositioners
  • tst_qquicksmoothedanimation
  • tst_qquickspringanimation
  • ...
}
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: return p.d;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
p.d;
executed 676 times by 21 tests: return p.d;
Executed by:
  • tst_examples
  • tst_qmlcachegen
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlconnections
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistmodel
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickgridview
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickstates
}
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-
91constexpr 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 codePreprocessed file

Generated by Squish Coco 4.2.0