Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickitem.h |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /**************************************************************************** | - |
2 | ** | - |
3 | ** Copyright (C) 2016 The Qt Company Ltd. | - |
4 | ** Contact: https://www.qt.io/licensing/ | - |
5 | ** | - |
6 | ** This file is part of the QtQuick module of the Qt Toolkit. | - |
7 | ** | - |
8 | ** $QT_BEGIN_LICENSE:LGPL$ | - |
9 | ** Commercial License Usage | - |
10 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
11 | ** accordance with the commercial license agreement provided with the | - |
12 | ** Software or, alternatively, in accordance with the terms contained in | - |
13 | ** a written agreement between you and The Qt Company. For licensing terms | - |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further | - |
15 | ** information use the contact form at https://www.qt.io/contact-us. | - |
16 | ** | - |
17 | ** GNU Lesser General Public License Usage | - |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
19 | ** General Public License version 3 as published by the Free Software | - |
20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the | - |
21 | ** packaging of this file. Please review the following information to | - |
22 | ** ensure the GNU Lesser General Public License version 3 requirements | - |
23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. | - |
24 | ** | - |
25 | ** GNU General Public License Usage | - |
26 | ** Alternatively, this file may be used under the terms of the GNU | - |
27 | ** General Public License version 2.0 or (at your option) the GNU General | - |
28 | ** Public license version 3 or any later version approved by the KDE Free | - |
29 | ** Qt Foundation. The licenses are as published by the Free Software | - |
30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 | - |
31 | ** included in the packaging of this file. Please review the following | - |
32 | ** information to ensure the GNU General Public License requirements will | - |
33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and | - |
34 | ** https://www.gnu.org/licenses/gpl-3.0.html. | - |
35 | ** | - |
36 | ** $QT_END_LICENSE$ | - |
37 | ** | - |
38 | ****************************************************************************/ | - |
39 | - | |
40 | #ifndef QQUICKITEM_H | - |
41 | #define QQUICKITEM_H | - |
42 | - | |
43 | #include <QtQuick/qtquickglobal.h> | - |
44 | #include <QtQml/qqml.h> | - |
45 | #include <QtQml/qqmlcomponent.h> | - |
46 | - | |
47 | #include <QtCore/QObject> | - |
48 | #include <QtCore/QList> | - |
49 | #include <QtGui/qevent.h> | - |
50 | #include <QtGui/qfont.h> | - |
51 | #include <QtGui/qaccessible.h> | - |
52 | - | |
53 | - | |
54 | QT_BEGIN_NAMESPACE | - |
55 | - | |
56 | class QQuickItem; | - |
57 | class QQuickTransformPrivate; | - |
58 | class Q_QUICK_EXPORT QQuickTransform : public QObject | - |
59 | { | - |
60 | Q_OBJECT | - |
61 | public: | - |
62 | explicit QQuickTransform(QObject *parent = nullptr); | - |
63 | ~QQuickTransform() override; | - |
64 | - | |
65 | void appendToItem(QQuickItem *); | - |
66 | void prependToItem(QQuickItem *); | - |
67 | - | |
68 | virtual void applyTo(QMatrix4x4 *matrix) const = 0; | - |
69 | - | |
70 | protected Q_SLOTS: | - |
71 | void update(); | - |
72 | - | |
73 | protected: | - |
74 | QQuickTransform(QQuickTransformPrivate &dd, QObject *parent); | - |
75 | - | |
76 | private: | - |
77 | Q_DECLARE_PRIVATE(QQuickTransform) executed 5178 times by 7 tests: return reinterpret_cast<QQuickTransformPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
never executed: return reinterpret_cast<const QQuickTransformPrivate *>(qGetPtrHelper(d_ptr)); | 0-5178 |
78 | }; | - |
79 | - | |
80 | class QCursor; | - |
81 | class QQuickItemLayer; | - |
82 | class QQmlV4Function; | - |
83 | class QQuickState; | - |
84 | class QQuickAnchorLine; | - |
85 | class QQuickTransition; | - |
86 | class QQuickKeyEvent; | - |
87 | class QQuickAnchors; | - |
88 | class QQuickItemPrivate; | - |
89 | class QQuickWindow; | - |
90 | class QTouchEvent; | - |
91 | class QSGNode; | - |
92 | class QSGTransformNode; | - |
93 | class QSGTextureProvider; | - |
94 | class QQuickItemGrabResult; | - |
95 | - | |
96 | class Q_QUICK_EXPORT QQuickItem : public QObject, public QQmlParserStatus | - |
97 | { | - |
98 | Q_OBJECT | - |
99 | Q_INTERFACES(QQmlParserStatus) | - |
100 | - | |
101 | Q_PROPERTY(QQuickItem *parent READ parentItem WRITE setParentItem NOTIFY parentChanged DESIGNABLE false FINAL) | - |
102 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQmlListProperty<QObject> data READ data DESIGNABLE false) | - |
103 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQmlListProperty<QObject> resources READ resources DESIGNABLE false) | - |
104 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQmlListProperty<QQuickItem> children READ children NOTIFY childrenChanged DESIGNABLE false) | - |
105 | - | |
106 | Q_PROPERTY(qreal x READ x WRITE setX NOTIFY xChanged FINAL) | - |
107 | Q_PROPERTY(qreal y READ y WRITE setY NOTIFY yChanged FINAL) | - |
108 | Q_PROPERTY(qreal z READ z WRITE setZ NOTIFY zChanged FINAL) | - |
109 | Q_PROPERTY(qreal width READ width WRITE setWidth NOTIFY widthChanged RESET resetWidth FINAL) | - |
110 | Q_PROPERTY(qreal height READ height WRITE setHeight NOTIFY heightChanged RESET resetHeight FINAL) | - |
111 | - | |
112 | Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged FINAL) | - |
113 | Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged) | - |
114 | Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL) | - |
115 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQmlListProperty<QQuickItem> visibleChildren READ visibleChildren NOTIFY visibleChildrenChanged DESIGNABLE false) | - |
116 | - | |
117 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQmlListProperty<QQuickState> states READ states DESIGNABLE false) | - |
118 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQmlListProperty<QQuickTransition> transitions READ transitions DESIGNABLE false) | - |
119 | Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged) | - |
120 | Q_PROPERTY(QRectF childrenRect READ childrenRect NOTIFY childrenRectChanged DESIGNABLE false FINAL) | - |
121 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchors * anchors READ anchors DESIGNABLE false CONSTANT FINAL) | - |
122 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine left READ left CONSTANT FINAL) | - |
123 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine right READ right CONSTANT FINAL) | - |
124 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine horizontalCenter READ horizontalCenter CONSTANT FINAL) | - |
125 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine top READ top CONSTANT FINAL) | - |
126 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine bottom READ bottom CONSTANT FINAL) | - |
127 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine verticalCenter READ verticalCenter CONSTANT FINAL) | - |
128 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickAnchorLine baseline READ baseline CONSTANT FINAL) | - |
129 | Q_PROPERTY(qreal baselineOffset READ baselineOffset WRITE setBaselineOffset NOTIFY baselineOffsetChanged) | - |
130 | - | |
131 | Q_PROPERTY(bool clip READ clip WRITE setClip NOTIFY clipChanged) | - |
132 | - | |
133 | Q_PROPERTY(bool focus READ hasFocus WRITE setFocus NOTIFY focusChanged FINAL) | - |
134 | Q_PROPERTY(bool activeFocus READ hasActiveFocus NOTIFY activeFocusChanged FINAL) | - |
135 | Q_PROPERTY(bool activeFocusOnTab READ activeFocusOnTab WRITE setActiveFocusOnTab NOTIFY activeFocusOnTabChanged FINAL REVISION 1) | - |
136 | - | |
137 | Q_PROPERTY(qreal rotation READ rotation WRITE setRotation NOTIFY rotationChanged) | - |
138 | Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged) | - |
139 | Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin NOTIFY transformOriginChanged) | - |
140 | Q_PROPERTY(QPointF transformOriginPoint READ transformOriginPoint) // deprecated - see QTBUG-26423 | - |
141 | Q_PROPERTY(QQmlListProperty<QQuickTransform> transform READ transform DESIGNABLE false FINAL) | - |
142 | - | |
143 | Q_PROPERTY(bool smooth READ smooth WRITE setSmooth NOTIFY smoothChanged) | - |
144 | Q_PROPERTY(bool antialiasing READ antialiasing WRITE setAntialiasing NOTIFY antialiasingChanged RESET resetAntialiasing) | - |
145 | Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged) | - |
146 | Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged) | - |
147 | Q_PROPERTY(QObject *containmentMask READ containmentMask WRITE setContainmentMask NOTIFY containmentMaskChanged REVISION 11) | - |
148 | - | |
149 | Q_PRIVATE_PROPERTY(QQuickItem::d_func(), QQuickItemLayer *layer READ layer DESIGNABLE false CONSTANT FINAL) | - |
150 | - | |
151 | Q_CLASSINFO("DefaultProperty", "data") | - |
152 | Q_CLASSINFO("qt_QmlJSWrapperFactoryMethod", "_q_createJSWrapper(QV4::ExecutionEngine*)") | - |
153 | - | |
154 | public: | - |
155 | enum Flag { | - |
156 | ItemClipsChildrenToShape = 0x01, | - |
157 | #if QT_CONFIG(im) | - |
158 | ItemAcceptsInputMethod = 0x02, | - |
159 | #endif | - |
160 | ItemIsFocusScope = 0x04, | - |
161 | ItemHasContents = 0x08, | - |
162 | ItemAcceptsDrops = 0x10 | - |
163 | // Remember to increment the size of QQuickItemPrivate::flags | - |
164 | }; | - |
165 | Q_DECLARE_FLAGS(Flags, Flag) | - |
166 | - | |
167 | enum ItemChange { | - |
168 | ItemChildAddedChange, // value.item | - |
169 | ItemChildRemovedChange, // value.item | - |
170 | ItemSceneChange, // value.window | - |
171 | ItemVisibleHasChanged, // value.boolValue | - |
172 | ItemParentHasChanged, // value.item | - |
173 | ItemOpacityHasChanged, // value.realValue | - |
174 | ItemActiveFocusHasChanged, // value.boolValue | - |
175 | ItemRotationHasChanged, // value.realValue | - |
176 | ItemAntialiasingHasChanged, // value.boolValue | - |
177 | ItemDevicePixelRatioHasChanged, // value.realValue | - |
178 | ItemEnabledHasChanged // value.boolValue | - |
179 | }; | - |
180 | - | |
181 | union ItemChangeData { | - |
182 | ItemChangeData(QQuickItem *v) : item(v) {} executed 1634904 times by 107 tests: end of block Executed by:
| 1634904 |
183 | ItemChangeData(QQuickWindow *v) : window(v) {} executed 807166 times by 91 tests: end of block Executed by:
| 807166 |
184 | ItemChangeData(qreal v) : realValue(v) {} executed 29177 times by 26 tests: end of block Executed by:
| 29177 |
185 | ItemChangeData(bool v) : boolValue(v) {} executed 18690 times by 45 tests: end of block Executed by:
| 18690 |
186 | - | |
187 | QQuickItem *item; | - |
188 | QQuickWindow *window; | - |
189 | qreal realValue; | - |
190 | bool boolValue; | - |
191 | }; | - |
192 | - | |
193 | enum TransformOrigin { | - |
194 | TopLeft, Top, TopRight, | - |
195 | Left, Center, Right, | - |
196 | BottomLeft, Bottom, BottomRight | - |
197 | }; | - |
198 | Q_ENUM(TransformOrigin) | - |
199 | - | |
200 | explicit QQuickItem(QQuickItem *parent = nullptr); | - |
201 | ~QQuickItem() override; | - |
202 | - | |
203 | QQuickWindow *window() const; | - |
204 | QQuickItem *parentItem() const; | - |
205 | void setParentItem(QQuickItem *parent); | - |
206 | void stackBefore(const QQuickItem *); | - |
207 | void stackAfter(const QQuickItem *); | - |
208 | - | |
209 | QRectF childrenRect(); | - |
210 | QList<QQuickItem *> childItems() const; | - |
211 | - | |
212 | bool clip() const; | - |
213 | void setClip(bool); | - |
214 | - | |
215 | QString state() const; | - |
216 | void setState(const QString &); | - |
217 | - | |
218 | qreal baselineOffset() const; | - |
219 | void setBaselineOffset(qreal); | - |
220 | - | |
221 | QQmlListProperty<QQuickTransform> transform(); | - |
222 | - | |
223 | qreal x() const; | - |
224 | qreal y() const; | - |
225 | QPointF position() const; | - |
226 | void setX(qreal); | - |
227 | void setY(qreal); | - |
228 | void setPosition(const QPointF &); | - |
229 | - | |
230 | qreal width() const; | - |
231 | void setWidth(qreal); | - |
232 | void resetWidth(); | - |
233 | void setImplicitWidth(qreal); | - |
234 | qreal implicitWidth() const; | - |
235 | - | |
236 | qreal height() const; | - |
237 | void setHeight(qreal); | - |
238 | void resetHeight(); | - |
239 | void setImplicitHeight(qreal); | - |
240 | qreal implicitHeight() const; | - |
241 | - | |
242 | QSizeF size() const; | - |
243 | void setSize(const QSizeF &size); | - |
244 | - | |
245 | TransformOrigin transformOrigin() const; | - |
246 | void setTransformOrigin(TransformOrigin); | - |
247 | QPointF transformOriginPoint() const; | - |
248 | void setTransformOriginPoint(const QPointF &); | - |
249 | - | |
250 | qreal z() const; | - |
251 | void setZ(qreal); | - |
252 | - | |
253 | qreal rotation() const; | - |
254 | void setRotation(qreal); | - |
255 | qreal scale() const; | - |
256 | void setScale(qreal); | - |
257 | - | |
258 | qreal opacity() const; | - |
259 | void setOpacity(qreal); | - |
260 | - | |
261 | bool isVisible() const; | - |
262 | void setVisible(bool); | - |
263 | - | |
264 | bool isEnabled() const; | - |
265 | void setEnabled(bool); | - |
266 | - | |
267 | bool smooth() const; | - |
268 | void setSmooth(bool); | - |
269 | - | |
270 | bool activeFocusOnTab() const; | - |
271 | void setActiveFocusOnTab(bool); | - |
272 | - | |
273 | bool antialiasing() const; | - |
274 | void setAntialiasing(bool); | - |
275 | void resetAntialiasing(); | - |
276 | - | |
277 | Flags flags() const; | - |
278 | void setFlag(Flag flag, bool enabled = true); | - |
279 | void setFlags(Flags flags); | - |
280 | - | |
281 | virtual QRectF boundingRect() const; | - |
282 | virtual QRectF clipRect() const; | - |
283 | - | |
284 | bool hasActiveFocus() const; | - |
285 | bool hasFocus() const; | - |
286 | void setFocus(bool); | - |
287 | void setFocus(bool focus, Qt::FocusReason reason); | - |
288 | bool isFocusScope() const; | - |
289 | QQuickItem *scopedFocusItem() const; | - |
290 | - | |
291 | bool isAncestorOf(const QQuickItem *child) const; | - |
292 | - | |
293 | Qt::MouseButtons acceptedMouseButtons() const; | - |
294 | void setAcceptedMouseButtons(Qt::MouseButtons buttons); | - |
295 | bool acceptHoverEvents() const; | - |
296 | void setAcceptHoverEvents(bool enabled); | - |
297 | bool acceptTouchEvents() const; | - |
298 | void setAcceptTouchEvents(bool accept); | - |
299 | - | |
300 | #if QT_CONFIG(cursor) | - |
301 | QCursor cursor() const; | - |
302 | void setCursor(const QCursor &cursor); | - |
303 | void unsetCursor(); | - |
304 | #endif | - |
305 | - | |
306 | bool isUnderMouse() const; | - |
307 | void grabMouse(); | - |
308 | void ungrabMouse(); | - |
309 | bool keepMouseGrab() const; | - |
310 | void setKeepMouseGrab(bool); | - |
311 | bool filtersChildMouseEvents() const; | - |
312 | void setFiltersChildMouseEvents(bool filter); | - |
313 | - | |
314 | void grabTouchPoints(const QVector<int> &ids); | - |
315 | void ungrabTouchPoints(); | - |
316 | bool keepTouchGrab() const; | - |
317 | void setKeepTouchGrab(bool); | - |
318 | - | |
319 | // implemented in qquickitemgrabresult.cpp | - |
320 | Q_REVISION(2) Q_INVOKABLE bool grabToImage(const QJSValue &callback, const QSize &targetSize = QSize()); | - |
321 | QSharedPointer<QQuickItemGrabResult> grabToImage(const QSize &targetSize = QSize()); | - |
322 | - | |
323 | Q_INVOKABLE virtual bool contains(const QPointF &point) const; | - |
324 | QObject *containmentMask() const; | - |
325 | void setContainmentMask(QObject *mask); | - |
326 | - | |
327 | QTransform itemTransform(QQuickItem *, bool *) const; | - |
328 | QPointF mapToItem(const QQuickItem *item, const QPointF &point) const; | - |
329 | QPointF mapToScene(const QPointF &point) const; | - |
330 | QPointF mapToGlobal(const QPointF &point) const; | - |
331 | QRectF mapRectToItem(const QQuickItem *item, const QRectF &rect) const; | - |
332 | QRectF mapRectToScene(const QRectF &rect) const; | - |
333 | QPointF mapFromItem(const QQuickItem *item, const QPointF &point) const; | - |
334 | QPointF mapFromScene(const QPointF &point) const; | - |
335 | QPointF mapFromGlobal(const QPointF &point) const; | - |
336 | QRectF mapRectFromItem(const QQuickItem *item, const QRectF &rect) const; | - |
337 | QRectF mapRectFromScene(const QRectF &rect) const; | - |
338 | - | |
339 | void polish(); | - |
340 | - | |
341 | Q_INVOKABLE void mapFromItem(QQmlV4Function*) const; | - |
342 | Q_INVOKABLE void mapToItem(QQmlV4Function*) const; | - |
343 | Q_REVISION(7) Q_INVOKABLE void mapFromGlobal(QQmlV4Function*) const; | - |
344 | Q_REVISION(7) Q_INVOKABLE void mapToGlobal(QQmlV4Function*) const; | - |
345 | Q_INVOKABLE void forceActiveFocus(); | - |
346 | Q_INVOKABLE void forceActiveFocus(Qt::FocusReason reason); | - |
347 | Q_REVISION(1) Q_INVOKABLE QQuickItem *nextItemInFocusChain(bool forward = true); | - |
348 | Q_INVOKABLE QQuickItem *childAt(qreal x, qreal y) const; | - |
349 | - | |
350 | #if QT_CONFIG(im) | - |
351 | virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; | - |
352 | #endif | - |
353 | - | |
354 | struct UpdatePaintNodeData { | - |
355 | QSGTransformNode *transformNode; | - |
356 | private: | - |
357 | friend class QQuickWindowPrivate; | - |
358 | UpdatePaintNodeData(); | - |
359 | }; | - |
360 | - | |
361 | virtual bool isTextureProvider() const; | - |
362 | virtual QSGTextureProvider *textureProvider() const; | - |
363 | - | |
364 | public Q_SLOTS: | - |
365 | void update(); | - |
366 | - | |
367 | Q_SIGNALS: | - |
368 | void childrenRectChanged(const QRectF &); | - |
369 | void baselineOffsetChanged(qreal); | - |
370 | void stateChanged(const QString &); | - |
371 | void focusChanged(bool); | - |
372 | void activeFocusChanged(bool); | - |
373 | Q_REVISION(1) void activeFocusOnTabChanged(bool); | - |
374 | void parentChanged(QQuickItem *); | - |
375 | void transformOriginChanged(TransformOrigin); | - |
376 | void smoothChanged(bool); | - |
377 | void antialiasingChanged(bool); | - |
378 | void clipChanged(bool); | - |
379 | Q_REVISION(1) void windowChanged(QQuickWindow* window); | - |
380 | - | |
381 | void childrenChanged(); | - |
382 | void opacityChanged(); | - |
383 | void enabledChanged(); | - |
384 | void visibleChanged(); | - |
385 | void visibleChildrenChanged(); | - |
386 | void rotationChanged(); | - |
387 | void scaleChanged(); | - |
388 | - | |
389 | void xChanged(); | - |
390 | void yChanged(); | - |
391 | void widthChanged(); | - |
392 | void heightChanged(); | - |
393 | void zChanged(); | - |
394 | void implicitWidthChanged(); | - |
395 | void implicitHeightChanged(); | - |
396 | Q_REVISION(11) void containmentMaskChanged(); | - |
397 | - | |
398 | protected: | - |
399 | bool event(QEvent *) override; | - |
400 | - | |
401 | bool isComponentComplete() const; | - |
402 | virtual void itemChange(ItemChange, const ItemChangeData &); | - |
403 | - | |
404 | #if QT_CONFIG(im) | - |
405 | void updateInputMethod(Qt::InputMethodQueries queries = Qt::ImQueryInput); | - |
406 | #endif | - |
407 | - | |
408 | bool widthValid() const; // ### better name? | - |
409 | bool heightValid() const; // ### better name? | - |
410 | void setImplicitSize(qreal, qreal); | - |
411 | - | |
412 | void classBegin() override; | - |
413 | void componentComplete() override; | - |
414 | - | |
415 | virtual void keyPressEvent(QKeyEvent *event); | - |
416 | virtual void keyReleaseEvent(QKeyEvent *event); | - |
417 | #if QT_CONFIG(im) | - |
418 | virtual void inputMethodEvent(QInputMethodEvent *); | - |
419 | #endif | - |
420 | virtual void focusInEvent(QFocusEvent *); | - |
421 | virtual void focusOutEvent(QFocusEvent *); | - |
422 | virtual void mousePressEvent(QMouseEvent *event); | - |
423 | virtual void mouseMoveEvent(QMouseEvent *event); | - |
424 | virtual void mouseReleaseEvent(QMouseEvent *event); | - |
425 | virtual void mouseDoubleClickEvent(QMouseEvent *event); | - |
426 | virtual void mouseUngrabEvent(); // XXX todo - params? | - |
427 | virtual void touchUngrabEvent(); | - |
428 | #if QT_CONFIG(wheelevent) | - |
429 | virtual void wheelEvent(QWheelEvent *event); | - |
430 | #endif | - |
431 | virtual void touchEvent(QTouchEvent *event); | - |
432 | virtual void hoverEnterEvent(QHoverEvent *event); | - |
433 | virtual void hoverMoveEvent(QHoverEvent *event); | - |
434 | virtual void hoverLeaveEvent(QHoverEvent *event); | - |
435 | #if QT_CONFIG(draganddrop) | - |
436 | virtual void dragEnterEvent(QDragEnterEvent *); | - |
437 | virtual void dragMoveEvent(QDragMoveEvent *); | - |
438 | virtual void dragLeaveEvent(QDragLeaveEvent *); | - |
439 | virtual void dropEvent(QDropEvent *); | - |
440 | #endif | - |
441 | virtual bool childMouseEventFilter(QQuickItem *, QEvent *); | - |
442 | virtual void windowDeactivateEvent(); | - |
443 | - | |
444 | virtual void geometryChanged(const QRectF &newGeometry, | - |
445 | const QRectF &oldGeometry); | - |
446 | - | |
447 | virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *); | - |
448 | virtual void releaseResources(); | - |
449 | virtual void updatePolish(); | - |
450 | - | |
451 | protected: | - |
452 | QQuickItem(QQuickItemPrivate &dd, QQuickItem *parent = nullptr); | - |
453 | - | |
454 | private: | - |
455 | Q_PRIVATE_SLOT(d_func(), void _q_resourceObjectDeleted(QObject *)) | - |
456 | Q_PRIVATE_SLOT(d_func(), quint64 _q_createJSWrapper(QV4::ExecutionEngine *)) | - |
457 | - | |
458 | friend class QQuickEventPoint; | - |
459 | friend class QQuickWindow; | - |
460 | friend class QQuickWindowPrivate; | - |
461 | friend class QSGRenderer; | - |
462 | friend class QAccessibleQuickItem; | - |
463 | friend class QQuickAccessibleAttached; | - |
464 | Q_DISABLE_COPY(QQuickItem) | - |
465 | Q_DECLARE_PRIVATE(QQuickItem) executed 22066964 times by 128 tests: return reinterpret_cast<QQuickItemPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 40630359 times by 125 tests: return reinterpret_cast<const QQuickItemPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 22066964-40630359 |
466 | }; | - |
467 | - | |
468 | Q_DECLARE_OPERATORS_FOR_FLAGS(QQuickItem::Flags) | - |
469 | - | |
470 | #ifndef QT_NO_DEBUG_STREAM | - |
471 | QDebug Q_QUICK_EXPORT operator<<(QDebug debug, QQuickItem *item); | - |
472 | #endif | - |
473 | - | |
474 | QT_END_NAMESPACE | - |
475 | - | |
476 | QML_DECLARE_TYPE(QQuickItem) | - |
477 | QML_DECLARE_TYPE(QQuickTransform) | - |
478 | - | |
479 | #endif // QQUICKITEM_H | - |
Source code | Switch to Preprocessed file |