| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlproperty.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | class QObject; | - |
| 6 | class QVariant; | - |
| 7 | class QQmlContext; | - |
| 8 | class QQmlEngine; | - |
| 9 | - | |
| 10 | class QQmlPropertyPrivate; | - |
| 11 | class __attribute__((visibility("default"))) QQmlProperty | - |
| 12 | { | - |
| 13 | public: | - |
| 14 | enum PropertyTypeCategory { | - |
| 15 | InvalidCategory, | - |
| 16 | List, | - |
| 17 | Object, | - |
| 18 | Normal | - |
| 19 | }; | - |
| 20 | - | |
| 21 | enum Type { | - |
| 22 | Invalid, | - |
| 23 | Property, | - |
| 24 | SignalProperty | - |
| 25 | }; | - |
| 26 | - | |
| 27 | QQmlProperty(); | - |
| 28 | ~QQmlProperty(); | - |
| 29 | - | |
| 30 | QQmlProperty(QObject *); | - |
| 31 | QQmlProperty(QObject *, QQmlContext *); | - |
| 32 | QQmlProperty(QObject *, QQmlEngine *); | - |
| 33 | - | |
| 34 | QQmlProperty(QObject *, const QString &); | - |
| 35 | QQmlProperty(QObject *, const QString &, QQmlContext *); | - |
| 36 | QQmlProperty(QObject *, const QString &, QQmlEngine *); | - |
| 37 | - | |
| 38 | QQmlProperty(const QQmlProperty &); | - |
| 39 | QQmlProperty &operator=(const QQmlProperty &); | - |
| 40 | - | |
| 41 | bool operator==(const QQmlProperty &) const; | - |
| 42 | - | |
| 43 | Type type() const; | - |
| 44 | bool isValid() const; | - |
| 45 | bool isProperty() const; | - |
| 46 | bool isSignalProperty() const; | - |
| 47 | - | |
| 48 | int propertyType() const; | - |
| 49 | PropertyTypeCategory propertyTypeCategory() const; | - |
| 50 | const char *propertyTypeName() const; | - |
| 51 | - | |
| 52 | QString name() const; | - |
| 53 | - | |
| 54 | QVariant read() const; | - |
| 55 | static QVariant read(const QObject *, const QString &); | - |
| 56 | static QVariant read(const QObject *, const QString &, QQmlContext *); | - |
| 57 | static QVariant read(const QObject *, const QString &, QQmlEngine *); | - |
| 58 | - | |
| 59 | bool write(const QVariant &) const; | - |
| 60 | static bool write(QObject *, const QString &, const QVariant &); | - |
| 61 | static bool write(QObject *, const QString &, const QVariant &, QQmlContext *); | - |
| 62 | static bool write(QObject *, const QString &, const QVariant &, QQmlEngine *); | - |
| 63 | - | |
| 64 | bool reset() const; | - |
| 65 | - | |
| 66 | bool hasNotifySignal() const; | - |
| 67 | bool needsNotifySignal() const; | - |
| 68 | bool connectNotifySignal(QObject *dest, const char *slot) const; | - |
| 69 | bool connectNotifySignal(QObject *dest, int method) const; | - |
| 70 | - | |
| 71 | bool isWritable() const; | - |
| 72 | bool isDesignable() const; | - |
| 73 | bool isResettable() const; | - |
| 74 | QObject *object() const; | - |
| 75 | - | |
| 76 | int index() const; | - |
| 77 | QMetaProperty property() const; | - |
| 78 | QMetaMethod method() const; | - |
| 79 | - | |
| 80 | private: | - |
| 81 | friend class QQmlPropertyPrivate; | - |
| 82 | QQmlPropertyPrivate *d; | - |
| 83 | }; | - |
| 84 | typedef QList<QQmlProperty> QQmlProperties; | - |
| 85 | - | |
| 86 | inline uint qHash (const QQmlProperty &key) | - |
| 87 | { | - |
| 88 | return executed 192 times by 6 tests: qHash(key.object()) + qHash(key.name());return qHash(key.object()) + qHash(key.name());Executed by:
executed 192 times by 6 tests: return qHash(key.object()) + qHash(key.name());Executed by:
| 192 |
| 89 | } | - |
| 90 | - | |
| 91 | template<> class QTypeInfo<QQmlProperty > { public: enum { isSpecialized = true, isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QQmlProperty)>sizeof(void*)), isPointer = false, isIntegral = std::is_integral< QQmlProperty >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QQmlProperty) }; static inline const char *name() { return "QQmlProperty"; } }; | - |
| 92 | - | |
| 93 | - | |
| Switch to Source code | Preprocessed file |