Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickanimatedimage_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | static_assert(bool(1 == 1), "Required feature " "quick_animatedimage" " for file " __FILE__ " not available."); | - |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | class QMovie; | - |
9 | class QQuickAnimatedImagePrivate; | - |
10 | - | |
11 | class __attribute__((visibility("default"))) QQuickAnimatedImage : public QQuickImage | - |
12 | { | - |
13 | public: | - |
14 | #pragma GCC diagnostic push | - |
15 | - | |
16 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
17 | 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: | - |
18 | #pragma GCC diagnostic ignored "-Wattributes" | - |
19 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
20 | #pragma GCC diagnostic pop | - |
21 | struct QPrivateSignal {}; | - |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | - | |
27 | - | |
28 | - | |
29 | - | |
30 | - | |
31 | - | |
32 | public: | - |
33 | QQuickAnimatedImage(QQuickItem *parent=nullptr); | - |
34 | ~QQuickAnimatedImage(); | - |
35 | - | |
36 | bool isPlaying() const; | - |
37 | void setPlaying(bool play); | - |
38 | - | |
39 | bool isPaused() const; | - |
40 | void setPaused(bool pause); | - |
41 | - | |
42 | int currentFrame() const; | - |
43 | void setCurrentFrame(int frame); | - |
44 | - | |
45 | int frameCount() const; | - |
46 | - | |
47 | qreal speed() const; | - |
48 | void setSpeed(qreal speed); | - |
49 | - | |
50 | - | |
51 | void setSource(const QUrl&) override; | - |
52 | virtual QSize sourceSize(); | - |
53 | - | |
54 | public : | - |
55 | void playingChanged(); | - |
56 | void pausedChanged(); | - |
57 | void frameChanged(); | - |
58 | void frameCountChanged(); | - |
59 | void speedChanged(); | - |
60 | - | |
61 | private : | - |
62 | void movieUpdate(); | - |
63 | void movieRequestFinished(); | - |
64 | void playingStatusChanged(); | - |
65 | void onCacheChanged(); | - |
66 | - | |
67 | protected: | - |
68 | void load() override; | - |
69 | void componentComplete() override; | - |
70 | - | |
71 | private: | - |
72 | QQuickAnimatedImage(const QQuickAnimatedImage &) = delete; QQuickAnimatedImage &operator=(const QQuickAnimatedImage &) = delete; | - |
73 | inline QQuickAnimatedImagePrivate* d_func() { return executed 1176 times by 2 tests: reinterpret_cast<QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1176 times by 2 tests: } inline const QQuickAnimatedImagePrivate* d_func() const { returnreturn reinterpret_cast<QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1134 times by 2 tests: reinterpret_cast<const QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1134 times by 2 tests: } friend class QQuickAnimatedImagePrivate;return reinterpret_cast<const QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 1134-1176 |
74 | }; | - |
75 | - | |
76 | - | |
77 | - | |
78 | template <> struct QMetaTypeId< QQuickAnimatedImage * > { 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< QQuickAnimatedImage * >("QQuickAnimatedImage *", reinterpret_cast< QQuickAnimatedImage * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickAnimatedImage> > { 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<QQuickAnimatedImage> >("QQmlListProperty<QQuickAnimatedImage>", reinterpret_cast< QQmlListProperty<QQuickAnimatedImage> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |