Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickpropertychanges_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QQuickPropertyChangesPrivate; | - |
5 | class __attribute__((visibility("default"))) QQuickPropertyChanges : public QQuickStateOperation | - |
6 | { | - |
7 | public: | - |
8 | #pragma GCC diagnostic push | - |
9 | - | |
10 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
11 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
12 | #pragma GCC diagnostic ignored "-Wattributes" | - |
13 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
14 | #pragma GCC diagnostic pop | - |
15 | struct QPrivateSignal {}; | - |
16 | inline QQuickPropertyChangesPrivate* d_func() { return executed 1402 times by 17 tests: reinterpret_cast<QQuickPropertyChangesPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickPropertyChangesPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1402 times by 17 tests: } inline const QQuickPropertyChangesPrivate* d_func() const { returnreturn reinterpret_cast<QQuickPropertyChangesPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 816 times by 17 tests: reinterpret_cast<const QQuickPropertyChangesPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickPropertyChangesPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 816 times by 17 tests: } friend class QQuickPropertyChangesPrivate;return reinterpret_cast<const QQuickPropertyChangesPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 816-1402 |
17 | - | |
18 | - | |
19 | - | |
20 | - | |
21 | public: | - |
22 | QQuickPropertyChanges(); | - |
23 | ~QQuickPropertyChanges(); | - |
24 | - | |
25 | QObject *object() const; | - |
26 | void setObject(QObject *); | - |
27 | - | |
28 | bool restoreEntryValues() const; | - |
29 | void setRestoreEntryValues(bool); | - |
30 | - | |
31 | bool isExplicit() const; | - |
32 | void setIsExplicit(bool); | - |
33 | - | |
34 | ActionList actions() override; | - |
35 | - | |
36 | bool containsProperty(const QString &name) const; | - |
37 | bool containsValue(const QString &name) const; | - |
38 | bool containsExpression(const QString &name) const; | - |
39 | void changeValue(const QString &name, const QVariant &value); | - |
40 | void changeExpression(const QString &name, const QString &expression); | - |
41 | void removeProperty(const QString &name); | - |
42 | QVariant value(const QString &name) const; | - |
43 | QString expression(const QString &name) const; | - |
44 | - | |
45 | void detachFromState(); | - |
46 | void attachToState(); | - |
47 | - | |
48 | QVariant property(const QString &name) const; | - |
49 | }; | - |
50 | - | |
51 | class QQuickPropertyChangesParser : public QQmlCustomParser | - |
52 | { | - |
53 | public: | - |
54 | QQuickPropertyChangesParser() | - |
55 | : QQmlCustomParser(AcceptsAttachedProperties) {} executed 374 times by 132 tests: end of block Executed by:
| 374 |
56 | - | |
57 | void verifyList(const QV4::CompiledData::Unit *qmlUnit, const QV4::CompiledData::Binding *binding); | - |
58 | - | |
59 | void verifyBindings(const QV4::CompiledData::Unit *qmlUnit, const QList<const QV4::CompiledData::Binding *> &props) override; | - |
60 | void applyBindings(QObject *obj, QV4::CompiledData::CompilationUnit *compilationUnit, const QList<const QV4::CompiledData::Binding *> &bindings) override; | - |
61 | }; | - |
62 | - | |
63 | - | |
64 | - | |
65 | - | |
66 | template <> struct QMetaTypeId< QQuickPropertyChanges * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPropertyChanges * >("QQuickPropertyChanges *", reinterpret_cast< QQuickPropertyChanges * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPropertyChanges> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPropertyChanges> >("QQmlListProperty<QQuickPropertyChanges>", reinterpret_cast< QQmlListProperty<QQuickPropertyChanges> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |