OpenCoverage

qqmltimer_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmltimer_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static_assert(bool(1 == 1), "Required feature " "qml_animation" " for file " __FILE__ " not available.");-
5-
6-
7-
8class QQmlTimerPrivate;-
9class __attribute__((visibility("default"))) QQmlTimer : public QObject, public QQmlParserStatus-
10{-
11 public:-
12#pragma GCC diagnostic push-
13 -
14#pragma GCC diagnostic ignored "-Wsuggest-override"-
15 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:-
16#pragma GCC diagnostic ignored "-Wattributes"-
17 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
18#pragma GCC diagnostic pop-
19 struct QPrivateSignal {};-
20 inline QQmlTimerPrivate* d_func() { return
executed 1902 times by 16 tests: return reinterpret_cast<QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
reinterpret_cast<QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));
executed 1902 times by 16 tests: return reinterpret_cast<QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qtqmlmodules
  • tst_scenegraph
} inline const QQmlTimerPrivate* d_func() const { return
executed 52 times by 1 test: return reinterpret_cast<const QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmltimer
reinterpret_cast<const QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));
executed 52 times by 1 test: return reinterpret_cast<const QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qqmltimer
} friend class QQmlTimerPrivate;
52-1902
21 -
22 -
23 -
24 -
25 -
26 -
27-
28public:-
29 QQmlTimer(QObject *parent=nullptr);-
30-
31 void setInterval(int interval);-
32 int interval() const;-
33-
34 bool isRunning() const;-
35 void setRunning(bool running);-
36-
37 bool isRepeating() const;-
38 void setRepeating(bool repeating);-
39-
40 bool triggeredOnStart() const;-
41 void setTriggeredOnStart(bool triggeredOnStart);-
42-
43protected:-
44 void classBegin() override;-
45 void componentComplete() override;-
46-
47 bool event(QEvent *) override;-
48-
49public :-
50 void start();-
51 void stop();-
52 void restart();-
53-
54public :-
55 void triggered();-
56 void runningChanged();-
57 void intervalChanged();-
58 void repeatChanged();-
59 void triggeredOnStartChanged();-
60-
61private:-
62 void update();-
63-
64private :-
65 void ticked();-
66};-
67-
68-
69-
70 template <> struct QMetaTypeId< QQmlTimer * > { 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< QQmlTimer * >("QQmlTimer *", reinterpret_cast< QQmlTimer * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQmlTimer> > { 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<QQmlTimer> >("QQmlListProperty<QQmlTimer>", reinterpret_cast< QQmlListProperty<QQmlTimer> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0