summaryrefslogtreecommitdiffstats
path: root/src/webenginequick/api/qquickwebenginesingleton.cpp
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2025-08-06 13:11:09 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2025-08-26 08:46:13 +0200
commitb02b9fb4346bd99164256f43d02b4bd85637b11b (patch)
tree3a5f1c263c9275d1de42c1c697e8f75d76e7c83e /src/webenginequick/api/qquickwebenginesingleton.cpp
parent8768693c8d45d7c4d99ebc51f226d1baae7a1af1 (diff)
Remove unnecessary QQmlEngine usage
Reverts most of f5fbc34fc16fc9c6e7f7e8bbbf60f5b343b9466d, relying on better implicit QML conversion since. Fixes: QTBUG-138881 Pick-to: 6.10 6.9 6.8 Change-Id: Ic23579e421f737b9a4d85c7e4f1a4019323c4be9 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/webenginequick/api/qquickwebenginesingleton.cpp')
-rw-r--r--src/webenginequick/api/qquickwebenginesingleton.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/webenginequick/api/qquickwebenginesingleton.cpp b/src/webenginequick/api/qquickwebenginesingleton.cpp
index 215d46896..45f306820 100644
--- a/src/webenginequick/api/qquickwebenginesingleton.cpp
+++ b/src/webenginequick/api/qquickwebenginesingleton.cpp
@@ -54,13 +54,7 @@ QQuickWebEngineSettings *QQuickWebEngineSingleton::settings() const
*/
QQuickWebEngineProfile *QQuickWebEngineSingleton::defaultProfile() const
{
- auto profile = QQuickWebEngineProfile::defaultProfile();
-
- // MEMO first ever call to default profile will create one without context
- // it needs something to get qml engine from (WebEngine singleton is created in qml land)
- profile->ensureQmlContext(this);
-
- return profile;
+ return QQuickWebEngineProfile::defaultProfile();
}
/*!