QCococaWindow: Add NSView hosting support.
authorMorten Johan Sørvig <morten.sorvig@digia.com>
Tue, 8 Jan 2013 12:45:37 +0000 (13:45 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 23 Feb 2013 07:03:03 +0000 (08:03 +0100)
commitd9b04f8575745f699e39256c3c428e5c08d3bb70
tree492b970e2714283691e092160d73be617e75b982
parentd7dfab8cacff688b2f048097dc1a50eee81885f1
QCococaWindow: Add NSView hosting support.

Add and export QCCoocaView::setContentView(NSView *),
making it possible to host a foreign NSView in a QWindow.

Change QCoocaWindow::m_contentView to be a generic
NSView, instead of a QNSView. Add a separate m_qtView
for code paths that expect a QNSView.

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