| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickrectangle_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | class __attribute__((visibility("default"))) QQuickPen : public QObject | - |
| 7 | { | - |
| 8 | public: | - |
| 9 | #pragma GCC diagnostic push | - |
| 10 | - | |
| 11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 12 | 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: | - |
| 13 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 15 | #pragma GCC diagnostic pop | - |
| 16 | struct QPrivateSignal {}; | - |
| 17 | - | |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | public: | - |
| 22 | QQuickPen(QObject *parent=nullptr); | - |
| 23 | - | |
| 24 | qreal width() const; | - |
| 25 | void setWidth(qreal w); | - |
| 26 | - | |
| 27 | QColor color() const; | - |
| 28 | void setColor(const QColor &c); | - |
| 29 | - | |
| 30 | bool pixelAligned() const; | - |
| 31 | void setPixelAligned(bool aligned); | - |
| 32 | - | |
| 33 | bool isValid() const; | - |
| 34 | - | |
| 35 | public : | - |
| 36 | void penChanged(); | - |
| 37 | - | |
| 38 | private: | - |
| 39 | qreal m_width; | - |
| 40 | QColor m_color; | - |
| 41 | bool m_aligned : 1; | - |
| 42 | bool m_valid : 1; | - |
| 43 | }; | - |
| 44 | - | |
| 45 | class __attribute__((visibility("default"))) QQuickGradientStop : public QObject | - |
| 46 | { | - |
| 47 | public: | - |
| 48 | #pragma GCC diagnostic push | - |
| 49 | - | |
| 50 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 51 | 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: | - |
| 52 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 53 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 54 | #pragma GCC diagnostic pop | - |
| 55 | struct QPrivateSignal {}; | - |
| 56 | - | |
| 57 | - | |
| 58 | - | |
| 59 | - | |
| 60 | public: | - |
| 61 | QQuickGradientStop(QObject *parent=nullptr); | - |
| 62 | - | |
| 63 | qreal position() const; | - |
| 64 | void setPosition(qreal position); | - |
| 65 | - | |
| 66 | QColor color() const; | - |
| 67 | void setColor(const QColor &color); | - |
| 68 | - | |
| 69 | private: | - |
| 70 | void updateGradient(); | - |
| 71 | - | |
| 72 | private: | - |
| 73 | qreal m_position; | - |
| 74 | QColor m_color; | - |
| 75 | }; | - |
| 76 | - | |
| 77 | class __attribute__((visibility("default"))) QQuickGradient : public QObject | - |
| 78 | { | - |
| 79 | public: | - |
| 80 | #pragma GCC diagnostic push | - |
| 81 | - | |
| 82 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 83 | 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: | - |
| 84 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 85 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 86 | #pragma GCC diagnostic pop | - |
| 87 | struct QPrivateSignal {}; | - |
| 88 | - | |
| 89 | - | |
| 90 | - | |
| 91 | - | |
| 92 | - | |
| 93 | public: | - |
| 94 | QQuickGradient(QObject *parent=nullptr); | - |
| 95 | ~QQuickGradient() override; | - |
| 96 | - | |
| 97 | enum Orientation { Vertical = Qt::Vertical, | - |
| 98 | Horizontal = Qt::Horizontal }; | - |
| 99 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Orientation) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Orientation) noexcept { return "Orientation"; } | - |
| 100 | - | |
| 101 | QQmlListProperty<QQuickGradientStop> stops(); | - |
| 102 | - | |
| 103 | Orientation orientation() const { return executed 535 times by 6 tests: m_orientation;return m_orientation;Executed by:
executed 535 times by 6 tests: }return m_orientation;Executed by:
| 535 |
| 104 | void setOrientation(Orientation orientation); | - |
| 105 | - | |
| 106 | QGradientStops gradientStops() const; | - |
| 107 | - | |
| 108 | public : | - |
| 109 | void updated(); | - |
| 110 | void orientationChanged(); | - |
| 111 | - | |
| 112 | private: | - |
| 113 | void doUpdate(); | - |
| 114 | - | |
| 115 | private: | - |
| 116 | QList<QQuickGradientStop *> m_stops; | - |
| 117 | Orientation m_orientation = Vertical; | - |
| 118 | friend class QQuickRectangle; | - |
| 119 | friend class QQuickGradientStop; | - |
| 120 | }; | - |
| 121 | - | |
| 122 | class QQuickRectanglePrivate; | - |
| 123 | class __attribute__((visibility("default"))) QQuickRectangle : public QQuickItem | - |
| 124 | { | - |
| 125 | public: | - |
| 126 | #pragma GCC diagnostic push | - |
| 127 | - | |
| 128 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 129 | 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: | - |
| 130 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 131 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 132 | #pragma GCC diagnostic pop | - |
| 133 | struct QPrivateSignal {}; | - |
| 134 | - | |
| 135 | - | |
| 136 | - | |
| 137 | - | |
| 138 | - | |
| 139 | public: | - |
| 140 | QQuickRectangle(QQuickItem *parent=nullptr); | - |
| 141 | - | |
| 142 | QColor color() const; | - |
| 143 | void setColor(const QColor &); | - |
| 144 | - | |
| 145 | QQuickPen *border(); | - |
| 146 | - | |
| 147 | QQuickGradient *gradient() const; | - |
| 148 | void setGradient(QQuickGradient *gradient); | - |
| 149 | void resetGradient(); | - |
| 150 | - | |
| 151 | qreal radius() const; | - |
| 152 | void setRadius(qreal radius); | - |
| 153 | - | |
| 154 | public : | - |
| 155 | void colorChanged(); | - |
| 156 | void radiusChanged(); | - |
| 157 | - | |
| 158 | protected: | - |
| 159 | QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override; | - |
| 160 | - | |
| 161 | private : | - |
| 162 | void doUpdate(); | - |
| 163 | - | |
| 164 | private: | - |
| 165 | QQuickRectangle(const QQuickRectangle &) = delete; QQuickRectangle &operator=(const QQuickRectangle &) = delete; | - |
| 166 | inline QQuickRectanglePrivate* d_func() { return executed 229753 times by 81 tests: reinterpret_cast<QQuickRectanglePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickRectanglePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 229753 times by 81 tests: } inline const QQuickRectanglePrivate* d_func() const { returnreturn reinterpret_cast<QQuickRectanglePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 5190 times by 19 tests: reinterpret_cast<const QQuickRectanglePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickRectanglePrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 5190 times by 19 tests: } friend class QQuickRectanglePrivate;return reinterpret_cast<const QQuickRectanglePrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 5190-229753 |
| 167 | }; | - |
| 168 | - | |
| 169 | - | |
| 170 | - | |
| 171 | template <> struct QMetaTypeId< QQuickPen * > { 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< QQuickPen * >("QQuickPen *", reinterpret_cast< QQuickPen * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPen> > { 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<QQuickPen> >("QQmlListProperty<QQuickPen>", reinterpret_cast< QQmlListProperty<QQuickPen> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| 172 | template <> struct QMetaTypeId< QQuickGradientStop * > { 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< QQuickGradientStop * >("QQuickGradientStop *", reinterpret_cast< QQuickGradientStop * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickGradientStop> > { 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<QQuickGradientStop> >("QQmlListProperty<QQuickGradientStop>", reinterpret_cast< QQmlListProperty<QQuickGradientStop> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| 173 | template <> struct QMetaTypeId< QQuickGradient * > { 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< QQuickGradient * >("QQuickGradient *", reinterpret_cast< QQuickGradient * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickGradient> > { 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<QQuickGradient> >("QQmlListProperty<QQuickGradient>", reinterpret_cast< QQmlListProperty<QQuickGradient> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| 174 | template <> struct QMetaTypeId< QQuickRectangle * > { 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< QQuickRectangle * >("QQuickRectangle *", reinterpret_cast< QQuickRectangle * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickRectangle> > { 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<QQuickRectangle> >("QQmlListProperty<QQuickRectangle>", reinterpret_cast< QQmlListProperty<QQuickRectangle> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| Switch to Source code | Preprocessed file |