Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/util/qqmlpropertymap.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | class QQmlPropertyMapPrivate; | - |
7 | class __attribute__((visibility("default"))) QQmlPropertyMap : public QObject | - |
8 | { | - |
9 | public: | - |
10 | #pragma GCC diagnostic push | - |
11 | - | |
12 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
13 | 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: | - |
14 | #pragma GCC diagnostic ignored "-Wattributes" | - |
15 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
16 | #pragma GCC diagnostic pop | - |
17 | struct QPrivateSignal {}; | - |
18 | public: | - |
19 | explicit QQmlPropertyMap(QObject *parent = nullptr); | - |
20 | ~QQmlPropertyMap() override; | - |
21 | - | |
22 | QVariant value(const QString &key) const; | - |
23 | void insert(const QString &key, const QVariant &value); | - |
24 | void clear(const QString &key); | - |
25 | - | |
26 | QStringList keys() const; | - |
27 | - | |
28 | int count() const; | - |
29 | int size() const; | - |
30 | bool isEmpty() const; | - |
31 | bool contains(const QString &key) const; | - |
32 | - | |
33 | QVariant &operator[](const QString &key); | - |
34 | QVariant operator[](const QString &key) const; | - |
35 | - | |
36 | public : | - |
37 | void valueChanged(const QString &key, const QVariant &value); | - |
38 | - | |
39 | protected: | - |
40 | virtual QVariant updateValue(const QString &key, const QVariant &input); | - |
41 | - | |
42 | template<class DerivedType> | - |
43 | QQmlPropertyMap(DerivedType *derived, QObject *parentObj) | - |
44 | : QQmlPropertyMap(&DerivedType::staticMetaObject, parentObj) | - |
45 | { | - |
46 | (void)derived; | - |
47 | } executed 14 times by 2 tests: end of block Executed by:
| 14 |
48 | - | |
49 | private: | - |
50 | QQmlPropertyMap(const QMetaObject *staticMetaObject, QObject *parent); | - |
51 | - | |
52 | inline QQmlPropertyMapPrivate* d_func() { return executed 134 times by 6 tests: reinterpret_cast<QQmlPropertyMapPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlPropertyMapPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 134 times by 6 tests: } inline const QQmlPropertyMapPrivate* d_func() const { returnreturn reinterpret_cast<QQmlPropertyMapPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 98 times by 1 test: reinterpret_cast<const QQmlPropertyMapPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlPropertyMapPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 98 times by 1 test: } friend class QQmlPropertyMapPrivate;return reinterpret_cast<const QQmlPropertyMapPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 98-134 |
53 | QQmlPropertyMap(const QQmlPropertyMap &) = delete; QQmlPropertyMap &operator=(const QQmlPropertyMap &) = delete; | - |
54 | }; | - |
55 | - | |
56 | - | |
Switch to Source code | Preprocessed file |