Cocoa: remove current contentView when clearing window
authorTeemu Katajisto <teemu.katajisto@digia.com>
Wed, 10 Oct 2012 13:05:22 +0000 (16:05 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 10:55:49 +0000 (12:55 +0200)
commit037d1e18e39f24b8ebb2772c20444d4b44cfb12b
tree5ad868e9db5d163827ba0ba7c4fc845194fcda57
parent932bf57ea284fa7ea2addafc9be6bd4585b1d249
Cocoa: remove current contentView when clearing window

Otherwise they might be still events sent to view with no
proper QWindow. Also, add dealloc QNSView for clean up.

Task-number: QTBUG-26580
Task-number: QTBUG-27456
Change-Id: Icdbe5c39490b72ec82795c2d71e5671cea81921e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/plugins/platforms/cocoa/qcocoawindow.mm
src/plugins/platforms/cocoa/qnsview.mm