| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickanchors_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | class QQuickItem; | - |
| 7 | class QQuickAnchorsPrivate; | - |
| 8 | class QQuickAnchorLine; | - |
| 9 | class __attribute__((visibility("default"))) QQuickAnchors : public QObject | - |
| 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 | - | |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | - | |
| 25 | - | |
| 26 | - | |
| 27 | - | |
| 28 | - | |
| 29 | - | |
| 30 | - | |
| 31 | - | |
| 32 | - | |
| 33 | - | |
| 34 | - | |
| 35 | - | |
| 36 | - | |
| 37 | - | |
| 38 | - | |
| 39 | - | |
| 40 | public: | - |
| 41 | QQuickAnchors(QQuickItem *item, QObject *parent=nullptr); | - |
| 42 | ~QQuickAnchors() override; | - |
| 43 | - | |
| 44 | enum Anchor | - |
| 45 | - | |
| 46 | - | |
| 47 | - | |
| 48 | - | |
| 49 | - | |
| 50 | { | - |
| 51 | InvalidAnchor = 0x0, | - |
| 52 | LeftAnchor = 0x01, | - |
| 53 | RightAnchor = 0x02, | - |
| 54 | TopAnchor = 0x04, | - |
| 55 | BottomAnchor = 0x08, | - |
| 56 | HCenterAnchor = 0x10, | - |
| 57 | VCenterAnchor = 0x20, | - |
| 58 | BaselineAnchor = 0x40, | - |
| 59 | Horizontal_Mask = LeftAnchor | RightAnchor | HCenterAnchor, | - |
| 60 | Vertical_Mask = TopAnchor | BottomAnchor | VCenterAnchor | BaselineAnchor | - |
| 61 | }; | - |
| 62 | typedef QFlags<Anchor> Anchors; | - |
| 63 | - | |
| 64 | QQuickAnchorLine left() const; | - |
| 65 | void setLeft(const QQuickAnchorLine &edge); | - |
| 66 | void resetLeft(); | - |
| 67 | - | |
| 68 | QQuickAnchorLine right() const; | - |
| 69 | void setRight(const QQuickAnchorLine &edge); | - |
| 70 | void resetRight(); | - |
| 71 | - | |
| 72 | QQuickAnchorLine horizontalCenter() const; | - |
| 73 | void setHorizontalCenter(const QQuickAnchorLine &edge); | - |
| 74 | void resetHorizontalCenter(); | - |
| 75 | - | |
| 76 | QQuickAnchorLine top() const; | - |
| 77 | void setTop(const QQuickAnchorLine &edge); | - |
| 78 | void resetTop(); | - |
| 79 | - | |
| 80 | QQuickAnchorLine bottom() const; | - |
| 81 | void setBottom(const QQuickAnchorLine &edge); | - |
| 82 | void resetBottom(); | - |
| 83 | - | |
| 84 | QQuickAnchorLine verticalCenter() const; | - |
| 85 | void setVerticalCenter(const QQuickAnchorLine &edge); | - |
| 86 | void resetVerticalCenter(); | - |
| 87 | - | |
| 88 | QQuickAnchorLine baseline() const; | - |
| 89 | void setBaseline(const QQuickAnchorLine &edge); | - |
| 90 | void resetBaseline(); | - |
| 91 | - | |
| 92 | qreal leftMargin() const; | - |
| 93 | void setLeftMargin(qreal); | - |
| 94 | void resetLeftMargin(); | - |
| 95 | - | |
| 96 | qreal rightMargin() const; | - |
| 97 | void setRightMargin(qreal); | - |
| 98 | void resetRightMargin(); | - |
| 99 | - | |
| 100 | qreal horizontalCenterOffset() const; | - |
| 101 | void setHorizontalCenterOffset(qreal); | - |
| 102 | - | |
| 103 | qreal topMargin() const; | - |
| 104 | void setTopMargin(qreal); | - |
| 105 | void resetTopMargin(); | - |
| 106 | - | |
| 107 | qreal bottomMargin() const; | - |
| 108 | void setBottomMargin(qreal); | - |
| 109 | void resetBottomMargin(); | - |
| 110 | - | |
| 111 | qreal margins() const; | - |
| 112 | void setMargins(qreal); | - |
| 113 | - | |
| 114 | qreal verticalCenterOffset() const; | - |
| 115 | void setVerticalCenterOffset(qreal); | - |
| 116 | - | |
| 117 | qreal baselineOffset() const; | - |
| 118 | void setBaselineOffset(qreal); | - |
| 119 | - | |
| 120 | QQuickItem *fill() const; | - |
| 121 | void setFill(QQuickItem *); | - |
| 122 | void resetFill(); | - |
| 123 | - | |
| 124 | QQuickItem *centerIn() const; | - |
| 125 | void setCenterIn(QQuickItem *); | - |
| 126 | void resetCenterIn(); | - |
| 127 | - | |
| 128 | Anchors usedAnchors() const; | - |
| 129 | Qt::Orientations activeDirections() const; | - |
| 130 | - | |
| 131 | bool mirrored(); | - |
| 132 | - | |
| 133 | bool alignWhenCentered() const; | - |
| 134 | void setAlignWhenCentered(bool); | - |
| 135 | - | |
| 136 | void classBegin(); | - |
| 137 | void componentComplete(); | - |
| 138 | - | |
| 139 | public : | - |
| 140 | void leftChanged(); | - |
| 141 | void rightChanged(); | - |
| 142 | void topChanged(); | - |
| 143 | void bottomChanged(); | - |
| 144 | void verticalCenterChanged(); | - |
| 145 | void horizontalCenterChanged(); | - |
| 146 | void baselineChanged(); | - |
| 147 | void fillChanged(); | - |
| 148 | void centerInChanged(); | - |
| 149 | void leftMarginChanged(); | - |
| 150 | void rightMarginChanged(); | - |
| 151 | void topMarginChanged(); | - |
| 152 | void bottomMarginChanged(); | - |
| 153 | void marginsChanged(); | - |
| 154 | void verticalCenterOffsetChanged(); | - |
| 155 | void horizontalCenterOffsetChanged(); | - |
| 156 | void baselineOffsetChanged(); | - |
| 157 | void centerAlignedChanged(); | - |
| 158 | - | |
| 159 | private: | - |
| 160 | friend class QQuickItemPrivate; | - |
| 161 | QQuickAnchors(const QQuickAnchors &) = delete; QQuickAnchors &operator=(const QQuickAnchors &) = delete; | - |
| 162 | inline QQuickAnchorsPrivate* d_func() { return executed 81368 times by 84 tests: reinterpret_cast<QQuickAnchorsPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickAnchorsPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 81368 times by 84 tests: } inline const QQuickAnchorsPrivate* d_func() const { returnreturn reinterpret_cast<QQuickAnchorsPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 5475 times by 28 tests: reinterpret_cast<const QQuickAnchorsPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickAnchorsPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 5475 times by 28 tests: } friend class QQuickAnchorsPrivate;return reinterpret_cast<const QQuickAnchorsPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 5475-81368 |
| 163 | }; | - |
| 164 | constexpr inline QFlags<QQuickAnchors::Anchors::enum_type> operator|(QQuickAnchors::Anchors::enum_type f1, QQuickAnchors::Anchors::enum_type f2) noexcept { return QFlags<QQuickAnchors::Anchors::enum_type>(f1) | f2; } constexpr inline QFlags<QQuickAnchors::Anchors::enum_type> operator|(QQuickAnchors::Anchors::enum_type f1, QFlags<QQuickAnchors::Anchors::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QQuickAnchors::Anchors::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
| 165 | - | |
| 166 | - | |
| 167 | - | |
| 168 | template <> struct QMetaTypeId< QQuickAnchors * > { 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< QQuickAnchors * >("QQuickAnchors *", reinterpret_cast< QQuickAnchors * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickAnchors> > { 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<QQuickAnchors> >("QQmlListProperty<QQuickAnchors>", reinterpret_cast< QQmlListProperty<QQuickAnchors> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| Switch to Source code | Preprocessed file |