Don't force create the platform window.
This causes all sorts of unintended side effects and is generally a bad idea. Task-number: QTBUG-32988 Change-Id: Iebdae34764be4cfd9ced47aa93789871e0455ab3 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
This commit is contained in:
parent
6fd205d579
commit
263fdd15da
@ -268,11 +268,6 @@ void QCocoaNativeInterface::registerTouchWindow(QWindow *window, bool enable)
|
|||||||
if (!window)
|
if (!window)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Make sure the QCocoaWindow is created when enabling. Disabling might
|
|
||||||
// happen on window destruction, don't (re)create the QCocoaWindow then.
|
|
||||||
if (enable)
|
|
||||||
window->create();
|
|
||||||
|
|
||||||
QCocoaWindow *cocoaWindow = static_cast<QCocoaWindow *>(window->handle());
|
QCocoaWindow *cocoaWindow = static_cast<QCocoaWindow *>(window->handle());
|
||||||
if (cocoaWindow)
|
if (cocoaWindow)
|
||||||
cocoaWindow->registerTouch(enable);
|
cocoaWindow->registerTouch(enable);
|
||||||
|
Loading…
Reference in New Issue
Block a user