| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickstate_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | class QQuickStateActionEvent; | - |
| 5 | class QQmlBinding; | - |
| 6 | class QQmlExpression; | - |
| 7 | - | |
| 8 | class __attribute__((visibility("default"))) QQuickStateAction | - |
| 9 | { | - |
| 10 | public: | - |
| 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 | - | |
| 36 | class __attribute__((visibility("default"))) QQuickStateActionEvent | - |
| 37 | { | - |
| 38 | public: | - |
| 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: false;return false;never executed: }return false; | 0 |
| 50 | virtual void copyOriginals(QQuickStateActionEvent *) {} | - |
| 51 | - | |
| 52 | virtual bool isRewindable() { return executed 44 times by 3 tests: isReversable();return isReversable();Executed by:
executed 44 times by 3 tests: }return isReversable();Executed by:
| 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 | - | |
| 63 | class QQuickStateGroup; | - |
| 64 | class QQuickState; | - |
| 65 | class QQuickStateOperationPrivate; | - |
| 66 | class __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 {}; | - |
| 77 | public: | - |
| 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 | - | |
| 87 | protected: | - |
| 88 | QQuickStateOperation(QObjectPrivate &dd, QObject *parent = nullptr); | - |
| 89 | - | |
| 90 | private: | - |
| 91 | inline QQuickStateOperationPrivate* d_func() { return executed 622 times by 18 tests: reinterpret_cast<QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 622 times by 18 tests: } inline const QQuickStateOperationPrivate* d_func() const { returnreturn reinterpret_cast<QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 60 times by 3 tests: reinterpret_cast<const QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 60 times by 3 tests: } friend class QQuickStateOperationPrivate;return reinterpret_cast<const QQuickStateOperationPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 60-622 |
| 92 | QQuickStateOperation(const QQuickStateOperation &) = delete; QQuickStateOperation &operator=(const QQuickStateOperation &) = delete; | - |
| 93 | }; | - |
| 94 | - | |
| 95 | typedef QQuickStateOperation::ActionList QQuickStateActions; | - |
| 96 | - | |
| 97 | class QQuickTransition; | - |
| 98 | class QQuickStatePrivate; | - |
| 99 | class __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 | - | |
| 118 | public: | - |
| 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 | - | |
| 159 | public : | - |
| 160 | void completed(); | - |
| 161 | - | |
| 162 | private: | - |
| 163 | inline QQuickStatePrivate* d_func() { return executed 9926 times by 20 tests: reinterpret_cast<QQuickStatePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickStatePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 9926 times by 20 tests: } inline const QQuickStatePrivate* d_func() const { returnreturn reinterpret_cast<QQuickStatePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 6286 times by 19 tests: reinterpret_cast<const QQuickStatePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickStatePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 6286 times by 19 tests: } friend class QQuickStatePrivate;return reinterpret_cast<const QQuickStatePrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 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 code | Preprocessed file |