| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #ifndef QQMLPROPERTY_H | - |
| 41 | #define QQMLPROPERTY_H | - |
| 42 | | - |
| 43 | #include <QtQml/qtqmlglobal.h> | - |
| 44 | #include <QtCore/qmetaobject.h> | - |
| 45 | | - |
| 46 | QT_BEGIN_NAMESPACE | - |
| 47 | | - |
| 48 | | - |
| 49 | class QObject; | - |
| 50 | class QVariant; | - |
| 51 | class QQmlContext; | - |
| 52 | class QQmlEngine; | - |
| 53 | | - |
| 54 | class QQmlPropertyPrivate; | - |
| 55 | class Q_QML_EXPORT QQmlProperty | - |
| 56 | { | - |
| 57 | public: | - |
| 58 | enum PropertyTypeCategory { | - |
| 59 | InvalidCategory, | - |
| 60 | List, | - |
| 61 | Object, | - |
| 62 | Normal | - |
| 63 | }; | - |
| 64 | | - |
| 65 | enum Type { | - |
| 66 | Invalid, | - |
| 67 | Property, | - |
| 68 | SignalProperty | - |
| 69 | }; | - |
| 70 | | - |
| 71 | QQmlProperty(); | - |
| 72 | ~QQmlProperty(); | - |
| 73 | | - |
| 74 | QQmlProperty(QObject *); | - |
| 75 | QQmlProperty(QObject *, QQmlContext *); | - |
| 76 | QQmlProperty(QObject *, QQmlEngine *); | - |
| 77 | | - |
| 78 | QQmlProperty(QObject *, const QString &); | - |
| 79 | QQmlProperty(QObject *, const QString &, QQmlContext *); | - |
| 80 | QQmlProperty(QObject *, const QString &, QQmlEngine *); | - |
| 81 | | - |
| 82 | QQmlProperty(const QQmlProperty &); | - |
| 83 | QQmlProperty &operator=(const QQmlProperty &); | - |
| 84 | | - |
| 85 | bool operator==(const QQmlProperty &) const; | - |
| 86 | | - |
| 87 | Type type() const; | - |
| 88 | bool isValid() const; | - |
| 89 | bool isProperty() const; | - |
| 90 | bool isSignalProperty() const; | - |
| 91 | | - |
| 92 | int propertyType() const; | - |
| 93 | PropertyTypeCategory propertyTypeCategory() const; | - |
| 94 | const char *propertyTypeName() const; | - |
| 95 | | - |
| 96 | QString name() const; | - |
| 97 | | - |
| 98 | QVariant read() const; | - |
| 99 | static QVariant read(const QObject *, const QString &); | - |
| 100 | static QVariant read(const QObject *, const QString &, QQmlContext *); | - |
| 101 | static QVariant read(const QObject *, const QString &, QQmlEngine *); | - |
| 102 | | - |
| 103 | bool write(const QVariant &) const; | - |
| 104 | static bool write(QObject *, const QString &, const QVariant &); | - |
| 105 | static bool write(QObject *, const QString &, const QVariant &, QQmlContext *); | - |
| 106 | static bool write(QObject *, const QString &, const QVariant &, QQmlEngine *); | - |
| 107 | | - |
| 108 | bool reset() const; | - |
| 109 | | - |
| 110 | bool hasNotifySignal() const; | - |
| 111 | bool needsNotifySignal() const; | - |
| 112 | bool connectNotifySignal(QObject *dest, const char *slot) const; | - |
| 113 | bool connectNotifySignal(QObject *dest, int method) const; | - |
| 114 | | - |
| 115 | bool isWritable() const; | - |
| 116 | bool isDesignable() const; | - |
| 117 | bool isResettable() const; | - |
| 118 | QObject *object() const; | - |
| 119 | | - |
| 120 | int index() const; | - |
| 121 | QMetaProperty property() const; | - |
| 122 | QMetaMethod method() const; | - |
| 123 | | - |
| 124 | private: | - |
| 125 | friend class QQmlPropertyPrivate; | - |
| 126 | QQmlPropertyPrivate *d; | - |
| 127 | }; | - |
| 128 | typedef QList<QQmlProperty> QQmlProperties; | - |
| 129 | | - |
| 130 | inline uint qHash (const QQmlProperty &key) | - |
| 131 | { | - |
| 132 | return qHash(key.object()) + qHash(key.name());executed 192 times by 6 tests: return qHash(key.object()) + qHash(key.name());Executed by:- tst_examples
- tst_qquickanimations
- tst_qquickbehaviors
- tst_qquicklistview
- tst_qquicksmoothedanimation
- tst_qquickspringanimation
| 192 |
| 133 | } | - |
| 134 | | - |
| 135 | Q_DECLARE_TYPEINFO(QQmlProperty, Q_MOVABLE_TYPE); | - |
| 136 | | - |
| 137 | QT_END_NAMESPACE | - |
| 138 | | - |
| 139 | #endif // QQMLPROPERTY_H | - |
| | |