Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/qquickitemparticle_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | class QQuickVisualDataModel; | - | ||||||
4 | class QQuickItemParticleAttached; | - | ||||||
5 | - | |||||||
6 | class QQuickItemParticle : public QQuickParticlePainter | - | ||||||
7 | { | - | ||||||
8 | public: | - | ||||||
9 | #pragma GCC diagnostic push | - | ||||||
10 | - | |||||||
11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
12 | 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: | - | ||||||
13 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
15 | #pragma GCC diagnostic pop | - | ||||||
16 | struct QPrivateSignal {}; | - | ||||||
17 | - | |||||||
18 | - | |||||||
19 | public: | - | ||||||
20 | explicit QQuickItemParticle(QQuickItem *parent = 0); | - | ||||||
21 | ~QQuickItemParticle(); | - | ||||||
22 | - | |||||||
23 | bool fade() const { return never executed: m_fade;return m_fade; never executed: }return m_fade; | 0 | ||||||
24 | - | |||||||
25 | QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override; | - | ||||||
26 | - | |||||||
27 | static QQuickItemParticleAttached *qmlAttachedProperties(QObject *object); | - | ||||||
28 | QQmlComponent* delegate() const | - | ||||||
29 | { | - | ||||||
30 | return never executed: m_delegate;return m_delegate; never executed: return m_delegate; | 0 | ||||||
31 | } | - | ||||||
32 | - | |||||||
33 | public : | - | ||||||
34 | void fadeChanged(); | - | ||||||
35 | - | |||||||
36 | void delegateChanged(QQmlComponent* arg); | - | ||||||
37 | - | |||||||
38 | public : | - | ||||||
39 | - | |||||||
40 | void freeze(QQuickItem* item); | - | ||||||
41 | void unfreeze(QQuickItem* item); | - | ||||||
42 | void take(QQuickItem* item,bool prioritize=false); | - | ||||||
43 | void give(QQuickItem* item); | - | ||||||
44 | - | |||||||
45 | void setFade(bool arg){if (arg == m_fade
never executed: m_fade = arg; fadeChanged();}return; never executed: end of block | 0 | ||||||
46 | void setDelegate(QQmlComponent* arg) | - | ||||||
47 | { | - | ||||||
48 | if (m_delegate != arg
| 0-6 | ||||||
49 | m_delegate = arg; | - | ||||||
50 | delegateChanged(arg); | - | ||||||
51 | } executed 6 times by 2 tests: end of block Executed by:
| 6 | ||||||
52 | } executed 6 times by 2 tests: end of block Executed by:
| 6 | ||||||
53 | - | |||||||
54 | protected: | - | ||||||
55 | void reset() override; | - | ||||||
56 | void commit(int gIdx, int pIdx) override; | - | ||||||
57 | void initialize(int gIdx, int pIdx) override; | - | ||||||
58 | void prepareNextFrame(); | - | ||||||
59 | private: | - | ||||||
60 | void processDeletables(); | - | ||||||
61 | void tick(int time = 0); | - | ||||||
62 | QList<QQuickItem* > m_deletables; | - | ||||||
63 | QList<QQuickItem* > m_managed; | - | ||||||
64 | QList< QQuickParticleData* > m_loadables; | - | ||||||
65 | bool m_fade; | - | ||||||
66 | - | |||||||
67 | QList<QQuickItem*> m_pendingItems; | - | ||||||
68 | QList<int> m_available; | - | ||||||
69 | QSet<QQuickItem*> m_stasis; | - | ||||||
70 | qreal m_lastT; | - | ||||||
71 | int m_activeCount; | - | ||||||
72 | QQmlComponent* m_delegate; | - | ||||||
73 | - | |||||||
74 | typedef QTickAnimationProxy<QQuickItemParticle, &QQuickItemParticle::tick> Clock; | - | ||||||
75 | Clock *clock; | - | ||||||
76 | }; | - | ||||||
77 | - | |||||||
78 | class QQuickItemParticleAttached : public QObject | - | ||||||
79 | { | - | ||||||
80 | public: | - | ||||||
81 | #pragma GCC diagnostic push | - | ||||||
82 | - | |||||||
83 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||
84 | 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: | - | ||||||
85 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||
86 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||
87 | #pragma GCC diagnostic pop | - | ||||||
88 | struct QPrivateSignal {}; | - | ||||||
89 | ; | - | ||||||
90 | public: | - | ||||||
91 | QQuickItemParticleAttached(QObject* parent) | - | ||||||
92 | : QObject(parent), m_mp(0) | - | ||||||
93 | {;} executed 2472 times by 1 test: end of block Executed by:
| 2472 | ||||||
94 | QQuickItemParticle* particle() const { return never executed: m_mp;return m_mp; never executed: }return m_mp; | 0 | ||||||
95 | void detach(){ detached();} executed 1716 times by 1 test: end of block Executed by:
| 1716 | ||||||
96 | void attach(){ attached();} executed 3176 times by 1 test: end of block Executed by:
| 3176 | ||||||
97 | private: | - | ||||||
98 | QQuickItemParticle* m_mp; | - | ||||||
99 | friend class QQuickItemParticle; | - | ||||||
100 | public : | - | ||||||
101 | void detached(); | - | ||||||
102 | void attached(); | - | ||||||
103 | }; | - | ||||||
104 | - | |||||||
105 | - | |||||||
106 | - | |||||||
107 | template <> class QQmlTypeInfo<QQuickItemParticle > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; }; | - | ||||||
Switch to Source code | Preprocessed file |