Cocoa: Add basic support for Qt::SubWindow.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Fri, 4 Jan 2013 11:50:40 +0000 (12:50 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 22 Feb 2013 20:25:45 +0000 (21:25 +0100)
commit3dc634be36326bc5e60f3baa4c5b8904e22347f2
tree8bdb4db09c99baa8115468b113d40424978003bf
parentbfce04fe5bef507ed1360198d1b0b71665aa8a25
Cocoa: Add basic support for Qt::SubWindow.

This allows embedding a QWindow in a foreign NSView
hierarchy.

Don't create a NSWindow. Add code paths for handling
the embedded window case. Avoid changing the other
window cases. There is potential for merging some of
these cases but that can be done at a later point in
time.

Change-Id: I54c7b4eb82fad268f90ea6b716fc650ae31bd3af
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/plugins/platforms/cocoa/qcocoawindow.h
src/plugins/platforms/cocoa/qcocoawindow.mm
src/plugins/platforms/cocoa/qnsview.mm