OpenCoverage

qquickstate_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickstate_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQuickStateActionEvent;-
5class QQmlBinding;-
6class QQmlExpression;-
7-
8class __attribute__((visibility("default"))) QQuickStateAction-
9{-
10public:-
11 QQuickStateAction();-
12 QQuickStateAction(QObject *, const QString &, const QVariant &);-
13 QQuickStateAction(QObject *, const QQmlProperty &property, const QString &,-
14 const QVariant &);-
15-
16 bool restore:1;-
17 bool actionDone:1;-
18 bool reverseEvent:1;-
19 bool deletableToBinding:1;-
20-
21 QQmlProperty property;-
22 QVariant fromValue;-
23 QVariant toValue;-
24-
25 QQmlAbstractBinding::Ptr fromBinding;-
26 QQmlAbstractBinding::Ptr toBinding;-
27 QQuickStateActionEvent *event;-
28-
29-
30 QObject *specifiedObject;-
31 QString specifiedProperty;-
32-
33 void deleteFromBinding();-
34};-
35-
36class __attribute__((visibility("default"))) QQuickStateActionEvent-
37{-
38public:-
39 virtual ~QQuickStateActionEvent();-
40-
41 enum EventType { Script, SignalHandler, ParentChange, AnchorChanges };-
42-
43 virtual EventType type() const = 0;-
44-
45 virtual void execute();-
46 virtual bool isReversable();-
47 virtual void reverse();-
48 virtual void saveOriginals() {}-
49 virtual bool needsCopy() { return
never executed: return false;
false;
never executed: return false;
}
0
50 virtual void copyOriginals(QQuickStateActionEvent *) {}-
51-
52 virtual bool isRewindable() { return
executed 44 times by 3 tests: return isReversable();
Executed by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
isReversable();
executed 44 times by 3 tests: return isReversable();
Executed by:
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickstates
}
44
53 virtual void rewind() {}-
54 virtual void saveCurrentValues() {}-
55 virtual void saveTargetValues() {}-
56-
57 virtual bool changesBindings();-
58 virtual void clearBindings();-
59 virtual bool mayOverride(QQuickStateActionEvent*other);-
60};-
61-
62-
63class QQuickStateGroup;-
64class QQuickState;-
65class QQuickStateOperationPrivate;-
66class __attribute__((visibility("default"))) QQuickStateOperation : public QObject-
67{-
68 public:-
69#pragma GCC diagnostic push-
70 -
71#pragma GCC diagnostic ignored "-Wsuggest-override"-
72 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:-
73#pragma GCC diagnostic ignored "-Wattributes"-
74 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
75#pragma GCC diagnostic pop-
76 struct QPrivateSignal {};-
77public:-
78 QQuickStateOperation(QObject *parent = nullptr)-
79 : QObject(parent) {}
never executed: end of block
0
80 typedef QList<QQuickStateAction> ActionList;-
81-
82 virtual ActionList actions();-
83-
84 QQuickState *state() const;-
85 void setState(QQuickState *state);-
86-
87protected:-
88 QQuickStateOperation(QObjectPrivate &dd, QObject *parent = nullptr);-
89-
90private:-
91 inline QQuickStateOperationPrivate* d_func() { return
executed 622 times by 18 tests: return reinterpret_cast<QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
reinterpret_cast<QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));
executed 622 times by 18 tests: return reinterpret_cast<QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
} inline const QQuickStateOperationPrivate* d_func() const { return
executed 60 times by 3 tests: return reinterpret_cast<const QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
reinterpret_cast<const QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));
executed 60 times by 3 tests: return reinterpret_cast<const QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmlenginedebugservice
  • tst_qquickdesignersupport
  • tst_qquickstates
} friend class QQuickStateOperationPrivate;
60-622
92 QQuickStateOperation(const QQuickStateOperation &) = delete; QQuickStateOperation &operator=(const QQuickStateOperation &) = delete;-
93};-
94-
95typedef QQuickStateOperation::ActionList QQuickStateActions;-
96-
97class QQuickTransition;-
98class QQuickStatePrivate;-
99class __attribute__((visibility("default"))) QQuickState : public QObject-
100{-
101 public:-
102#pragma GCC diagnostic push-
103 -
104#pragma GCC diagnostic ignored "-Wsuggest-override"-
105 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:-
106#pragma GCC diagnostic ignored "-Wattributes"-
107 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
108#pragma GCC diagnostic pop-
109 struct QPrivateSignal {};-
110-
111 -
112 -
113 -
114 -
115 -
116 -
117-
118public:-
119 QQuickState(QObject *parent=nullptr);-
120 ~QQuickState() override;-
121-
122 QString name() const;-
123 void setName(const QString &);-
124 bool isNamed() const;-
125-
126-
127-
128 bool isWhenKnown() const;-
129 QQmlBinding *when() const;-
130 void setWhen(QQmlBinding *);-
131-
132 QString extends() const;-
133 void setExtends(const QString &);-
134-
135 QQmlListProperty<QQuickStateOperation> changes();-
136 int operationCount() const;-
137 QQuickStateOperation *operationAt(int) const;-
138-
139 QQuickState &operator<<(QQuickStateOperation *);-
140-
141 void apply(QQuickTransition *, QQuickState *revert);-
142 void cancel();-
143-
144 QQuickStateGroup *stateGroup() const;-
145 void setStateGroup(QQuickStateGroup *);-
146-
147 bool containsPropertyInRevertList(QObject *target, const QString &name) const;-
148 bool changeValueInRevertList(QObject *target, const QString &name, const QVariant &revertValue);-
149 bool changeBindingInRevertList(QObject *target, const QString &name, QQmlAbstractBinding *binding);-
150 bool removeEntryFromRevertList(QObject *target, const QString &name);-
151 void addEntryToRevertList(const QQuickStateAction &action);-
152 void removeAllEntriesFromRevertList(QObject *target);-
153 void addEntriesToRevertList(const QList<QQuickStateAction> &actions);-
154 QVariant valueInRevertList(QObject *target, const QString &name) const;-
155 QQmlAbstractBinding *bindingInRevertList(QObject *target, const QString &name) const;-
156-
157 bool isStateActive() const;-
158-
159public :-
160 void completed();-
161-
162private:-
163 inline QQuickStatePrivate* d_func() { return
executed 9926 times by 20 tests: return reinterpret_cast<QQuickStatePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
reinterpret_cast<QQuickStatePrivate *>(qGetPtrHelper(d_ptr));
executed 9926 times by 20 tests: return reinterpret_cast<QQuickStatePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
} inline const QQuickStatePrivate* d_func() const { return
executed 6286 times by 19 tests: return reinterpret_cast<const QQuickStatePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
reinterpret_cast<const QQuickStatePrivate *>(qGetPtrHelper(d_ptr));
executed 6286 times by 19 tests: return reinterpret_cast<const QQuickStatePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
} friend class QQuickStatePrivate;
6286-9926
164 QQuickState(const QQuickState &) = delete; QQuickState &operator=(const QQuickState &) = delete;-
165};-
166-
167-
168-
169 template <> struct QMetaTypeId< QQuickStateOperation * > { 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< QQuickStateOperation * >("QQuickStateOperation *", reinterpret_cast< QQuickStateOperation * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickStateOperation> > { 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<QQuickStateOperation> >("QQmlListProperty<QQuickStateOperation>", reinterpret_cast< QQmlListProperty<QQuickStateOperation> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
170 template <> struct QMetaTypeId< QQuickState * > { 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< QQuickState * >("QQuickState *", reinterpret_cast< QQuickState * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickState> > { 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<QQuickState> >("QQmlListProperty<QQuickState>", reinterpret_cast< QQmlListProperty<QQuickState> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0