diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-02-25 11:14:36 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-02-25 11:53:34 +0100 |
commit | bbe3f976c3426fea5dd305feff79288b9719fcd5 (patch) | |
tree | 9617d0b446579a80c2633d03b6d2b2bfc9f15238 | |
parent | 11ff5c314682258b6eb26e90847210662eb0f533 (diff) |
Export QQuickRootItem to QML
It was exported in 5.14, so we should probably still do so.
Change-Id: Id44783c72fff50aee63d7c5a72f12ff9ca895a6b
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/imports/window/plugin.h | 7 | ||||
-rw-r--r-- | src/quick/items/qquickwindow_p.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/imports/window/plugin.h b/src/imports/window/plugin.h index 9f58ca9ac7..3bc2d91ddb 100644 --- a/src/imports/window/plugin.h +++ b/src/imports/window/plugin.h @@ -116,6 +116,13 @@ struct QQuickWindowQmlImplForeign QML_ADDED_IN_MINOR_VERSION(1) }; +struct QQuickRootItemForeign +{ + Q_GADGET + QML_FOREIGN(QQuickRootItem) + QML_ANONYMOUS +}; + QT_END_NAMESPACE #endif // PLUGIN_H diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index 86bdaf6396..e1ee7daf1c 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -88,7 +88,7 @@ class QRhiRenderBuffer; class QRhiRenderPassDescriptor; //Make it easy to identify and customize the root item if needed -class QQuickRootItem : public QQuickItem +class Q_QUICK_PRIVATE_EXPORT QQuickRootItem : public QQuickItem { Q_OBJECT public: |