aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickview_p.h
diff options
context:
space:
mode:
authorFabian Kosmale <[email protected]>2023-12-04 18:11:49 +0100
committerFabian Kosmale <[email protected]>2023-12-06 09:48:09 +0100
commit9d01b20648173251850b2c7ab7762f96d93977d6 (patch)
tree5c6daad076d3b5ec9627eac97de61433c11b41a5 /src/quick/items/qquickview_p.h
parentf36289024ac9c9cb8060aeb7a9150eaabb6bafdb (diff)
Introduce QQuickView loadFromModule
...as well as its ctor equivalent. This unifies the API with what is provided in QQmlApplicationEngine and QQmlComponent. If the type is composite, we update source accordingly. C++ defined types don't have any source, so we leave source empty – this is fine as source only promises to return something if it has been set. Typename and URI can't be retrieved after they have been passed to QQuickView. This could be changed later if a use case for it arrives. Fixes: QTBUG-111727 Change-Id: I9f8a27a6bf9132a37a2d3d09f90fbea7803342ee Reviewed-by: Mitch Curtis <[email protected]> Reviewed-by: Shawn Rutledge <[email protected]>
Diffstat (limited to 'src/quick/items/qquickview_p.h')
-rw-r--r--src/quick/items/qquickview_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quick/items/qquickview_p.h b/src/quick/items/qquickview_p.h
index 9e495d9139..de1bd6f5ca 100644
--- a/src/quick/items/qquickview_p.h
+++ b/src/quick/items/qquickview_p.h
@@ -46,7 +46,10 @@ public:
QQuickViewPrivate();
~QQuickViewPrivate();
+ enum ExecuteState { Continue, Stop };
+ ExecuteState executeHelper();
void execute();
+ void execute(QAnyStringView uri, QAnyStringView typeName);
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &) override;
void initResize();
void updateSize();