Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquicktext_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||||||||
2 | - | |||||||||||||||||||||||||
3 | - | |||||||||||||||||||||||||
4 | class QQuickTextPrivate; | - | ||||||||||||||||||||||||
5 | class QQuickTextLine; | - | ||||||||||||||||||||||||
6 | class __attribute__((visibility("default"))) QQuickText : public QQuickImplicitSizeItem | - | ||||||||||||||||||||||||
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 | - | |||||||||||||||||||||||||
22 | - | |||||||||||||||||||||||||
23 | - | |||||||||||||||||||||||||
24 | - | |||||||||||||||||||||||||
25 | - | |||||||||||||||||||||||||
26 | - | |||||||||||||||||||||||||
27 | - | |||||||||||||||||||||||||
28 | - | |||||||||||||||||||||||||
29 | - | |||||||||||||||||||||||||
30 | - | |||||||||||||||||||||||||
31 | - | |||||||||||||||||||||||||
32 | - | |||||||||||||||||||||||||
33 | - | |||||||||||||||||||||||||
34 | - | |||||||||||||||||||||||||
35 | - | |||||||||||||||||||||||||
36 | - | |||||||||||||||||||||||||
37 | - | |||||||||||||||||||||||||
38 | - | |||||||||||||||||||||||||
39 | - | |||||||||||||||||||||||||
40 | - | |||||||||||||||||||||||||
41 | - | |||||||||||||||||||||||||
42 | - | |||||||||||||||||||||||||
43 | - | |||||||||||||||||||||||||
44 | - | |||||||||||||||||||||||||
45 | - | |||||||||||||||||||||||||
46 | - | |||||||||||||||||||||||||
47 | - | |||||||||||||||||||||||||
48 | - | |||||||||||||||||||||||||
49 | - | |||||||||||||||||||||||||
50 | - | |||||||||||||||||||||||||
51 | - | |||||||||||||||||||||||||
52 | - | |||||||||||||||||||||||||
53 | - | |||||||||||||||||||||||||
54 | - | |||||||||||||||||||||||||
55 | - | |||||||||||||||||||||||||
56 | public: | - | ||||||||||||||||||||||||
57 | QQuickText(QQuickItem *parent=nullptr); | - | ||||||||||||||||||||||||
58 | ~QQuickText() override; | - | ||||||||||||||||||||||||
59 | - | |||||||||||||||||||||||||
60 | enum HAlignment { AlignLeft = Qt::AlignLeft, | - | ||||||||||||||||||||||||
61 | AlignRight = Qt::AlignRight, | - | ||||||||||||||||||||||||
62 | AlignHCenter = Qt::AlignHCenter, | - | ||||||||||||||||||||||||
63 | AlignJustify = Qt::AlignJustify }; | - | ||||||||||||||||||||||||
64 | friend constexpr const QMetaObject *qt_getEnumMetaObject(HAlignment) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(HAlignment) noexcept { return "HAlignment"; } | - | ||||||||||||||||||||||||
65 | enum VAlignment { AlignTop = Qt::AlignTop, | - | ||||||||||||||||||||||||
66 | AlignBottom = Qt::AlignBottom, | - | ||||||||||||||||||||||||
67 | AlignVCenter = Qt::AlignVCenter }; | - | ||||||||||||||||||||||||
68 | friend constexpr const QMetaObject *qt_getEnumMetaObject(VAlignment) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(VAlignment) noexcept { return "VAlignment"; } | - | ||||||||||||||||||||||||
69 | enum TextStyle { Normal, | - | ||||||||||||||||||||||||
70 | Outline, | - | ||||||||||||||||||||||||
71 | Raised, | - | ||||||||||||||||||||||||
72 | Sunken }; | - | ||||||||||||||||||||||||
73 | friend constexpr const QMetaObject *qt_getEnumMetaObject(TextStyle) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(TextStyle) noexcept { return "TextStyle"; } | - | ||||||||||||||||||||||||
74 | enum TextFormat { PlainText = Qt::PlainText, | - | ||||||||||||||||||||||||
75 | RichText = Qt::RichText, | - | ||||||||||||||||||||||||
76 | AutoText = Qt::AutoText, | - | ||||||||||||||||||||||||
77 | StyledText = 4 }; | - | ||||||||||||||||||||||||
78 | friend constexpr const QMetaObject *qt_getEnumMetaObject(TextFormat) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(TextFormat) noexcept { return "TextFormat"; } | - | ||||||||||||||||||||||||
79 | enum TextElideMode { ElideLeft = Qt::ElideLeft, | - | ||||||||||||||||||||||||
80 | ElideRight = Qt::ElideRight, | - | ||||||||||||||||||||||||
81 | ElideMiddle = Qt::ElideMiddle, | - | ||||||||||||||||||||||||
82 | ElideNone = Qt::ElideNone }; | - | ||||||||||||||||||||||||
83 | friend constexpr const QMetaObject *qt_getEnumMetaObject(TextElideMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(TextElideMode) noexcept { return "TextElideMode"; } | - | ||||||||||||||||||||||||
84 | - | |||||||||||||||||||||||||
85 | enum WrapMode { NoWrap = QTextOption::NoWrap, | - | ||||||||||||||||||||||||
86 | WordWrap = QTextOption::WordWrap, | - | ||||||||||||||||||||||||
87 | WrapAnywhere = QTextOption::WrapAnywhere, | - | ||||||||||||||||||||||||
88 | WrapAtWordBoundaryOrAnywhere = QTextOption::WrapAtWordBoundaryOrAnywhere, | - | ||||||||||||||||||||||||
89 | Wrap = QTextOption::WrapAtWordBoundaryOrAnywhere | - | ||||||||||||||||||||||||
90 | }; | - | ||||||||||||||||||||||||
91 | friend constexpr const QMetaObject *qt_getEnumMetaObject(WrapMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(WrapMode) noexcept { return "WrapMode"; } | - | ||||||||||||||||||||||||
92 | - | |||||||||||||||||||||||||
93 | enum RenderType { QtRendering, | - | ||||||||||||||||||||||||
94 | NativeRendering | - | ||||||||||||||||||||||||
95 | }; | - | ||||||||||||||||||||||||
96 | friend constexpr const QMetaObject *qt_getEnumMetaObject(RenderType) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(RenderType) noexcept { return "RenderType"; } | - | ||||||||||||||||||||||||
97 | - | |||||||||||||||||||||||||
98 | enum LineHeightMode { ProportionalHeight, FixedHeight }; | - | ||||||||||||||||||||||||
99 | friend constexpr const QMetaObject *qt_getEnumMetaObject(LineHeightMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(LineHeightMode) noexcept { return "LineHeightMode"; } | - | ||||||||||||||||||||||||
100 | - | |||||||||||||||||||||||||
101 | enum FontSizeMode { FixedSize = 0x0, HorizontalFit = 0x01, VerticalFit = 0x02, | - | ||||||||||||||||||||||||
102 | Fit = HorizontalFit | VerticalFit }; | - | ||||||||||||||||||||||||
103 | friend constexpr const QMetaObject *qt_getEnumMetaObject(FontSizeMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(FontSizeMode) noexcept { return "FontSizeMode"; } | - | ||||||||||||||||||||||||
104 | - | |||||||||||||||||||||||||
105 | QString text() const; | - | ||||||||||||||||||||||||
106 | void setText(const QString &); | - | ||||||||||||||||||||||||
107 | - | |||||||||||||||||||||||||
108 | QFont font() const; | - | ||||||||||||||||||||||||
109 | void setFont(const QFont &font); | - | ||||||||||||||||||||||||
110 | - | |||||||||||||||||||||||||
111 | QColor color() const; | - | ||||||||||||||||||||||||
112 | void setColor(const QColor &c); | - | ||||||||||||||||||||||||
113 | - | |||||||||||||||||||||||||
114 | QColor linkColor() const; | - | ||||||||||||||||||||||||
115 | void setLinkColor(const QColor &color); | - | ||||||||||||||||||||||||
116 | - | |||||||||||||||||||||||||
117 | TextStyle style() const; | - | ||||||||||||||||||||||||
118 | void setStyle(TextStyle style); | - | ||||||||||||||||||||||||
119 | - | |||||||||||||||||||||||||
120 | QColor styleColor() const; | - | ||||||||||||||||||||||||
121 | void setStyleColor(const QColor &c); | - | ||||||||||||||||||||||||
122 | - | |||||||||||||||||||||||||
123 | HAlignment hAlign() const; | - | ||||||||||||||||||||||||
124 | void setHAlign(HAlignment align); | - | ||||||||||||||||||||||||
125 | void resetHAlign(); | - | ||||||||||||||||||||||||
126 | HAlignment effectiveHAlign() const; | - | ||||||||||||||||||||||||
127 | - | |||||||||||||||||||||||||
128 | VAlignment vAlign() const; | - | ||||||||||||||||||||||||
129 | void setVAlign(VAlignment align); | - | ||||||||||||||||||||||||
130 | - | |||||||||||||||||||||||||
131 | WrapMode wrapMode() const; | - | ||||||||||||||||||||||||
132 | void setWrapMode(WrapMode w); | - | ||||||||||||||||||||||||
133 | - | |||||||||||||||||||||||||
134 | int lineCount() const; | - | ||||||||||||||||||||||||
135 | bool truncated() const; | - | ||||||||||||||||||||||||
136 | - | |||||||||||||||||||||||||
137 | int maximumLineCount() const; | - | ||||||||||||||||||||||||
138 | void setMaximumLineCount(int lines); | - | ||||||||||||||||||||||||
139 | void resetMaximumLineCount(); | - | ||||||||||||||||||||||||
140 | - | |||||||||||||||||||||||||
141 | TextFormat textFormat() const; | - | ||||||||||||||||||||||||
142 | void setTextFormat(TextFormat format); | - | ||||||||||||||||||||||||
143 | - | |||||||||||||||||||||||||
144 | TextElideMode elideMode() const; | - | ||||||||||||||||||||||||
145 | void setElideMode(TextElideMode); | - | ||||||||||||||||||||||||
146 | - | |||||||||||||||||||||||||
147 | qreal lineHeight() const; | - | ||||||||||||||||||||||||
148 | void setLineHeight(qreal lineHeight); | - | ||||||||||||||||||||||||
149 | - | |||||||||||||||||||||||||
150 | LineHeightMode lineHeightMode() const; | - | ||||||||||||||||||||||||
151 | void setLineHeightMode(LineHeightMode); | - | ||||||||||||||||||||||||
152 | - | |||||||||||||||||||||||||
153 | - | |||||||||||||||||||||||||
154 | QUrl baseUrl() const; | - | ||||||||||||||||||||||||
155 | void setBaseUrl(const QUrl &url); | - | ||||||||||||||||||||||||
156 | void resetBaseUrl(); | - | ||||||||||||||||||||||||
157 | - | |||||||||||||||||||||||||
158 | int minimumPixelSize() const; | - | ||||||||||||||||||||||||
159 | void setMinimumPixelSize(int size); | - | ||||||||||||||||||||||||
160 | - | |||||||||||||||||||||||||
161 | int minimumPointSize() const; | - | ||||||||||||||||||||||||
162 | void setMinimumPointSize(int size); | - | ||||||||||||||||||||||||
163 | - | |||||||||||||||||||||||||
164 | FontSizeMode fontSizeMode() const; | - | ||||||||||||||||||||||||
165 | void setFontSizeMode(FontSizeMode mode); | - | ||||||||||||||||||||||||
166 | - | |||||||||||||||||||||||||
167 | void componentComplete() override; | - | ||||||||||||||||||||||||
168 | - | |||||||||||||||||||||||||
169 | int resourcesLoading() const; | - | ||||||||||||||||||||||||
170 | - | |||||||||||||||||||||||||
171 | qreal contentWidth() const; | - | ||||||||||||||||||||||||
172 | qreal contentHeight() const; | - | ||||||||||||||||||||||||
173 | - | |||||||||||||||||||||||||
174 | QRectF boundingRect() const override; | - | ||||||||||||||||||||||||
175 | QRectF clipRect() const override; | - | ||||||||||||||||||||||||
176 | void doLayout(); | - | ||||||||||||||||||||||||
177 | void forceLayout(); | - | ||||||||||||||||||||||||
178 | - | |||||||||||||||||||||||||
179 | RenderType renderType() const; | - | ||||||||||||||||||||||||
180 | void setRenderType(RenderType renderType); | - | ||||||||||||||||||||||||
181 | - | |||||||||||||||||||||||||
182 | QString hoveredLink() const; | - | ||||||||||||||||||||||||
183 | - | |||||||||||||||||||||||||
184 | QString linkAt(qreal x, qreal y) const; | - | ||||||||||||||||||||||||
185 | - | |||||||||||||||||||||||||
186 | qreal padding() const; | - | ||||||||||||||||||||||||
187 | void setPadding(qreal padding); | - | ||||||||||||||||||||||||
188 | void resetPadding(); | - | ||||||||||||||||||||||||
189 | - | |||||||||||||||||||||||||
190 | qreal topPadding() const; | - | ||||||||||||||||||||||||
191 | void setTopPadding(qreal padding); | - | ||||||||||||||||||||||||
192 | void resetTopPadding(); | - | ||||||||||||||||||||||||
193 | - | |||||||||||||||||||||||||
194 | qreal leftPadding() const; | - | ||||||||||||||||||||||||
195 | void setLeftPadding(qreal padding); | - | ||||||||||||||||||||||||
196 | void resetLeftPadding(); | - | ||||||||||||||||||||||||
197 | - | |||||||||||||||||||||||||
198 | qreal rightPadding() const; | - | ||||||||||||||||||||||||
199 | void setRightPadding(qreal padding); | - | ||||||||||||||||||||||||
200 | void resetRightPadding(); | - | ||||||||||||||||||||||||
201 | - | |||||||||||||||||||||||||
202 | qreal bottomPadding() const; | - | ||||||||||||||||||||||||
203 | void setBottomPadding(qreal padding); | - | ||||||||||||||||||||||||
204 | void resetBottomPadding(); | - | ||||||||||||||||||||||||
205 | - | |||||||||||||||||||||||||
206 | QJSValue fontInfo() const; | - | ||||||||||||||||||||||||
207 | QSizeF advance() const; | - | ||||||||||||||||||||||||
208 | - | |||||||||||||||||||||||||
209 | public : | - | ||||||||||||||||||||||||
210 | void textChanged(const QString &text); | - | ||||||||||||||||||||||||
211 | void linkActivated(const QString &link); | - | ||||||||||||||||||||||||
212 | void linkHovered(const QString &link); | - | ||||||||||||||||||||||||
213 | void fontChanged(const QFont &font); | - | ||||||||||||||||||||||||
214 | void colorChanged(); | - | ||||||||||||||||||||||||
215 | void linkColorChanged(); | - | ||||||||||||||||||||||||
216 | void styleChanged(QQuickText::TextStyle style); | - | ||||||||||||||||||||||||
217 | void styleColorChanged(); | - | ||||||||||||||||||||||||
218 | void horizontalAlignmentChanged(QQuickText::HAlignment alignment); | - | ||||||||||||||||||||||||
219 | void verticalAlignmentChanged(QQuickText::VAlignment alignment); | - | ||||||||||||||||||||||||
220 | void wrapModeChanged(); | - | ||||||||||||||||||||||||
221 | void lineCountChanged(); | - | ||||||||||||||||||||||||
222 | void truncatedChanged(); | - | ||||||||||||||||||||||||
223 | void maximumLineCountChanged(); | - | ||||||||||||||||||||||||
224 | void textFormatChanged(QQuickText::TextFormat textFormat); | - | ||||||||||||||||||||||||
225 | void elideModeChanged(QQuickText::TextElideMode mode); | - | ||||||||||||||||||||||||
226 | void contentSizeChanged(); | - | ||||||||||||||||||||||||
227 | void lineHeightChanged(qreal lineHeight); | - | ||||||||||||||||||||||||
228 | void lineHeightModeChanged(LineHeightMode mode); | - | ||||||||||||||||||||||||
229 | void fontSizeModeChanged(); | - | ||||||||||||||||||||||||
230 | void minimumPixelSizeChanged(); | - | ||||||||||||||||||||||||
231 | void minimumPointSizeChanged(); | - | ||||||||||||||||||||||||
232 | void effectiveHorizontalAlignmentChanged(); | - | ||||||||||||||||||||||||
233 | void lineLaidOut(QQuickTextLine *line); | - | ||||||||||||||||||||||||
234 | void baseUrlChanged(); | - | ||||||||||||||||||||||||
235 | void renderTypeChanged(); | - | ||||||||||||||||||||||||
236 | void paddingChanged(); | - | ||||||||||||||||||||||||
237 | void topPaddingChanged(); | - | ||||||||||||||||||||||||
238 | void leftPaddingChanged(); | - | ||||||||||||||||||||||||
239 | void rightPaddingChanged(); | - | ||||||||||||||||||||||||
240 | void bottomPaddingChanged(); | - | ||||||||||||||||||||||||
241 | void fontInfoChanged(); | - | ||||||||||||||||||||||||
242 | - | |||||||||||||||||||||||||
243 | protected: | - | ||||||||||||||||||||||||
244 | QQuickText(QQuickTextPrivate &dd, QQuickItem *parent = nullptr); | - | ||||||||||||||||||||||||
245 | - | |||||||||||||||||||||||||
246 | void mousePressEvent(QMouseEvent *event) override; | - | ||||||||||||||||||||||||
247 | void mouseReleaseEvent(QMouseEvent *event) override; | - | ||||||||||||||||||||||||
248 | void itemChange(ItemChange change, const ItemChangeData &value) override; | - | ||||||||||||||||||||||||
249 | void geometryChanged(const QRectF &newGeometry, | - | ||||||||||||||||||||||||
250 | const QRectF &oldGeometry) override; | - | ||||||||||||||||||||||||
251 | QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override; | - | ||||||||||||||||||||||||
252 | - | |||||||||||||||||||||||||
253 | void updatePolish() override; | - | ||||||||||||||||||||||||
254 | - | |||||||||||||||||||||||||
255 | void hoverEnterEvent(QHoverEvent *event) override; | - | ||||||||||||||||||||||||
256 | void hoverMoveEvent(QHoverEvent *event) override; | - | ||||||||||||||||||||||||
257 | void hoverLeaveEvent(QHoverEvent *event) override; | - | ||||||||||||||||||||||||
258 | void invalidateFontCaches(); | - | ||||||||||||||||||||||||
259 | - | |||||||||||||||||||||||||
260 | private : | - | ||||||||||||||||||||||||
261 | void q_updateLayout(); | - | ||||||||||||||||||||||||
262 | void triggerPreprocess(); | - | ||||||||||||||||||||||||
263 | void imageDownloadFinished(); | - | ||||||||||||||||||||||||
264 | - | |||||||||||||||||||||||||
265 | private: | - | ||||||||||||||||||||||||
266 | QQuickText(const QQuickText &) = delete; QQuickText &operator=(const QQuickText &) = delete; | - | ||||||||||||||||||||||||
267 | inline QQuickTextPrivate* d_func() { return executed 3861929 times by 36 tests: reinterpret_cast<QQuickTextPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickTextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 3861929 times by 36 tests: } inline const QQuickTextPrivate* d_func() const { returnreturn reinterpret_cast<QQuickTextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 10487203 times by 36 tests: reinterpret_cast<const QQuickTextPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickTextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 10487203 times by 36 tests: } friend class QQuickTextPrivate;return reinterpret_cast<const QQuickTextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 3861929-10487203 | ||||||||||||||||||||||||
268 | }; | - | ||||||||||||||||||||||||
269 | - | |||||||||||||||||||||||||
270 | class QTextLine; | - | ||||||||||||||||||||||||
271 | class QQuickTextLine : public QObject | - | ||||||||||||||||||||||||
272 | { | - | ||||||||||||||||||||||||
273 | public: | - | ||||||||||||||||||||||||
274 | #pragma GCC diagnostic push | - | ||||||||||||||||||||||||
275 | - | |||||||||||||||||||||||||
276 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - | ||||||||||||||||||||||||
277 | 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: | - | ||||||||||||||||||||||||
278 | #pragma GCC diagnostic ignored "-Wattributes" | - | ||||||||||||||||||||||||
279 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - | ||||||||||||||||||||||||
280 | #pragma GCC diagnostic pop | - | ||||||||||||||||||||||||
281 | struct QPrivateSignal {}; | - | ||||||||||||||||||||||||
282 | - | |||||||||||||||||||||||||
283 | - | |||||||||||||||||||||||||
284 | - | |||||||||||||||||||||||||
285 | - | |||||||||||||||||||||||||
286 | - | |||||||||||||||||||||||||
287 | - | |||||||||||||||||||||||||
288 | public: | - | ||||||||||||||||||||||||
289 | QQuickTextLine(); | - | ||||||||||||||||||||||||
290 | - | |||||||||||||||||||||||||
291 | void setLine(QTextLine* line); | - | ||||||||||||||||||||||||
292 | void setLineOffset(int offset); | - | ||||||||||||||||||||||||
293 | int number() const; | - | ||||||||||||||||||||||||
294 | - | |||||||||||||||||||||||||
295 | qreal width() const; | - | ||||||||||||||||||||||||
296 | void setWidth(qreal width); | - | ||||||||||||||||||||||||
297 | - | |||||||||||||||||||||||||
298 | qreal height() const; | - | ||||||||||||||||||||||||
299 | void setHeight(qreal height); | - | ||||||||||||||||||||||||
300 | - | |||||||||||||||||||||||||
301 | qreal x() const; | - | ||||||||||||||||||||||||
302 | void setX(qreal x); | - | ||||||||||||||||||||||||
303 | - | |||||||||||||||||||||||||
304 | qreal y() const; | - | ||||||||||||||||||||||||
305 | void setY(qreal y); | - | ||||||||||||||||||||||||
306 | - | |||||||||||||||||||||||||
307 | private: | - | ||||||||||||||||||||||||
308 | QTextLine *m_line; | - | ||||||||||||||||||||||||
309 | qreal m_height; | - | ||||||||||||||||||||||||
310 | int m_lineOffset; | - | ||||||||||||||||||||||||
311 | }; | - | ||||||||||||||||||||||||
312 | - | |||||||||||||||||||||||||
313 | - | |||||||||||||||||||||||||
314 | - | |||||||||||||||||||||||||
315 | template <> struct QMetaTypeId< QQuickText * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const
never executed: id;return id; never executed: const int newId = qRegisterMetaType< QQuickText * >("QQuickText *", reinterpret_cast< QQuickText * *>(quintptr(-1))); metatype_id.storeRelease(newId); returnreturn id; never executed: newId;return newId; never executed: } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickText> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (constreturn newId;
never executed: id;return id; never executed: const int newId = qRegisterMetaType< QQmlListProperty<QQuickText> >("QQmlListProperty<QQuickText>", reinterpret_cast< QQmlListProperty<QQuickText> *>(quintptr(-1))); metatype_id.storeRelease(newId); returnreturn id; never executed: newId;return newId; never executed: } };return newId; | 0 | ||||||||||||||||||||||||
316 | template <> struct QMetaTypeId< QQuickTextLine * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const
never executed: id;return id; never executed: const int newId = qRegisterMetaType< QQuickTextLine * >("QQuickTextLine *", reinterpret_cast< QQuickTextLine * *>(quintptr(-1))); metatype_id.storeRelease(newId); returnreturn id; never executed: newId;return newId; never executed: } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickTextLine> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (constreturn newId;
never executed: id;return id; never executed: const int newId = qRegisterMetaType< QQmlListProperty<QQuickTextLine> >("QQmlListProperty<QQuickTextLine>", reinterpret_cast< QQmlListProperty<QQuickTextLine> *>(quintptr(-1))); metatype_id.storeRelease(newId); returnreturn id; never executed: newId;return newId; never executed: } };return newId; | 0 | ||||||||||||||||||||||||
Switch to Source code | Preprocessed file |