OpenCoverage

qquickanimatedimage_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickanimatedimage_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2static_assert(bool(1 == 1), "Required feature " "quick_animatedimage" " for file " __FILE__ " not available.");-
3-
4-
5-
6-
7-
8class QMovie;-
9class QQuickAnimatedImagePrivate;-
10-
11class __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-
32public:-
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-
54public :-
55 void playingChanged();-
56 void pausedChanged();-
57 void frameChanged();-
58 void frameCountChanged();-
59 void speedChanged();-
60-
61private :-
62 void movieUpdate();-
63 void movieRequestFinished();-
64 void playingStatusChanged();-
65 void onCacheChanged();-
66-
67protected:-
68 void load() override;-
69 void componentComplete() override;-
70-
71private:-
72 QQuickAnimatedImage(const QQuickAnimatedImage &) = delete; QQuickAnimatedImage &operator=(const QQuickAnimatedImage &) = delete;-
73 inline QQuickAnimatedImagePrivate* d_func() { return
executed 1176 times by 2 tests: return reinterpret_cast<QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
reinterpret_cast<QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));
executed 1176 times by 2 tests: return reinterpret_cast<QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
} inline const QQuickAnimatedImagePrivate* d_func() const { return
executed 1134 times by 2 tests: return reinterpret_cast<const QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
reinterpret_cast<const QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));
executed 1134 times by 2 tests: return reinterpret_cast<const QQuickAnimatedImagePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qquickanimatedimage
} friend class QQuickAnimatedImagePrivate;
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 codePreprocessed file

Generated by Squish Coco 4.2.0