diff options
Diffstat (limited to 'src/qml/qml/qqmlglobal.cpp')
-rw-r--r-- | src/qml/qml/qqmlglobal.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <private/qqmlglobal_p.h> +#include <QtQml/qqmlengine.h> #include <QtCore/qvariant.h> #include <QtCore/qstringlist.h> #include <QtCore/qdebug.h> @@ -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 |