Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmltimer_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | static_assert(bool(1 == 1), "Required feature " "qml_animation" " for file " __FILE__ " not available."); | - |
5 | - | |
6 | - | |
7 | - | |
8 | class QQmlTimerPrivate; | - |
9 | class __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: reinterpret_cast<QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlTimerPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1902 times by 16 tests: } inline const QQmlTimerPrivate* d_func() const { returnreturn reinterpret_cast<QQmlTimerPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 52 times by 1 test: reinterpret_cast<const QQmlTimerPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlTimerPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 52 times by 1 test: } friend class QQmlTimerPrivate;return reinterpret_cast<const QQmlTimerPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 52-1902 |
21 | - | |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | - | |
27 | - | |
28 | public: | - |
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 | - | |
43 | protected: | - |
44 | void classBegin() override; | - |
45 | void componentComplete() override; | - |
46 | - | |
47 | bool event(QEvent *) override; | - |
48 | - | |
49 | public : | - |
50 | void start(); | - |
51 | void stop(); | - |
52 | void restart(); | - |
53 | - | |
54 | public : | - |
55 | void triggered(); | - |
56 | void runningChanged(); | - |
57 | void intervalChanged(); | - |
58 | void repeatChanged(); | - |
59 | void triggeredOnStartChanged(); | - |
60 | - | |
61 | private: | - |
62 | void update(); | - |
63 | - | |
64 | private : | - |
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 code | Preprocessed file |