OpenCoverage

qquickview.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickview.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQmlEngine;-
5class QQmlContext;-
6class QQmlError;-
7class QQuickItem;-
8class QQmlComponent;-
9-
10class QQuickViewPrivate;-
11class __attribute__((visibility("default"))) QQuickView : public QQuickWindow-
12{-
13 public:-
14#pragma GCC diagnostic push-
15 -
16#pragma GCC diagnostic ignored "-Wsuggest-override"-
17 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); } static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private:-
18#pragma GCC diagnostic ignored "-Wattributes"-
19 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
20#pragma GCC diagnostic pop-
21 struct QPrivateSignal {};-
22 -
23 -
24 -
25public:-
26 explicit QQuickView(QWindow *parent = nullptr);-
27 QQuickView(QQmlEngine* engine, QWindow *parent);-
28 explicit QQuickView(const QUrl &source, QWindow *parent = nullptr);-
29 QQuickView(const QUrl &source, QQuickRenderControl *renderControl);-
30 ~QQuickView() override;-
31-
32 QUrl source() const;-
33-
34 QQmlEngine* engine() const;-
35 QQmlContext* rootContext() const;-
36-
37 QQuickItem *rootObject() const;-
38-
39 enum ResizeMode { SizeViewToRootObject, SizeRootObjectToView };-
40 friend constexpr const QMetaObject *qt_getEnumMetaObject(ResizeMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(ResizeMode) noexcept { return "ResizeMode"; }-
41 ResizeMode resizeMode() const;-
42 void setResizeMode(ResizeMode);-
43-
44 enum Status { Null, Ready, Loading, Error };-
45 friend constexpr const QMetaObject *qt_getEnumMetaObject(Status) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Status) noexcept { return "Status"; }-
46 Status status() const;-
47-
48 QList<QQmlError> errors() const;-
49-
50 QSize sizeHint() const;-
51 QSize initialSize() const;-
52-
53public :-
54 void setSource(const QUrl&);-
55 void setContent(const QUrl& url, QQmlComponent *component, QObject *item);-
56-
57public :-
58 void statusChanged(QQuickView::Status);-
59-
60private :-
61 void continueExecute();-
62-
63protected:-
64 void resizeEvent(QResizeEvent *) override;-
65 void timerEvent(QTimerEvent*) override;-
66-
67 void keyPressEvent(QKeyEvent *) override;-
68 void keyReleaseEvent(QKeyEvent *) override;-
69 void mousePressEvent(QMouseEvent *) override;-
70 void mouseReleaseEvent(QMouseEvent *) override;-
71 void mouseMoveEvent(QMouseEvent *) override;-
72private:-
73 QQuickView(const QQuickView &) = delete; QQuickView &operator=(const QQuickView &) = delete;-
74 inline QQuickViewPrivate* d_func() { return
executed 25630 times by 83 tests: return reinterpret_cast<QQuickViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
reinterpret_cast<QQuickViewPrivate *>(qGetPtrHelper(d_ptr));
executed 25630 times by 83 tests: return reinterpret_cast<QQuickViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
} inline const QQuickViewPrivate* d_func() const { return
executed 27993 times by 83 tests: return reinterpret_cast<const QQuickViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
reinterpret_cast<const QQuickViewPrivate *>(qGetPtrHelper(d_ptr));
executed 27993 times by 83 tests: return reinterpret_cast<const QQuickViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmldebugjs
  • tst_qqmlimport
  • tst_qqmltypeloader
  • tst_qquickaccessible
  • tst_qquickage
  • tst_qquickanchors
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickapplication
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdesignersupport
  • tst_qquickdraghandler
  • tst_qquickdynamicpropertyanimation
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickflipable
  • ...
} friend class QQuickViewPrivate;
25630-27993
75};-
76-
77-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0