From f09f3655e4d6076b5b35563fc485fd102a6fc903 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 14 Jan 2015 11:28:06 +0100 Subject: Fix Qt.inputMethod ownership Change-Id: Ic51f9daf17742a421a810d95b2a510caf657e08f Reviewed-by: Simon Hausmann --- src/qml/qml/qqmlglobal.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/qml/qqmlglobal.cpp') diff --git a/src/qml/qml/qqmlglobal.cpp b/src/qml/qml/qqmlglobal.cpp index 82c1b68715..e100b53386 100644 --- a/src/qml/qml/qqmlglobal.cpp +++ b/src/qml/qml/qqmlglobal.cpp @@ -33,6 +33,7 @@ #include +#include #include #include #include @@ -358,6 +359,7 @@ QObject *QQmlGuiProvider::inputMethod() // We don't have any input method code by default QObject *o = new QObject(); o->setObjectName(QString::fromLatin1("No inputMethod available")); + QQmlEngine::setObjectOwnership(o, QQmlEngine::JavaScriptOwnership); return o; } #endif -- cgit v1.2.3