Cocoa: don't show window when calling raise()
authorBradley T. Hughes <bradley.hughes@nokia.com>
Wed, 21 Mar 2012 08:43:45 +0000 (09:43 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 26 Mar 2012 09:41:07 +0000 (11:41 +0200)
commit9581e5895a89f9a4f28449ade4e2590e99903eeb
tree4ba45334e605f8eb31a6ab4467abe709dd9ccce9
parent8660f6e385b2070db1b33dab85b5686a00fec06b
Cocoa: don't show window when calling raise()

Calling raise() on a hidden window should not show it. The setVisible()
function will ensure that the window is raised (since we use orderFront
or makeKeyAndOrderFront). This fixes the failing
tst_QDockWidget::task169808_setFloating() test as well.

Task-number: QTBUG-24774
Change-Id: If34472ebbcd615c10654efafd54c84c03d10bc8c
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/cocoa/qcocoawindow.mm
tests/auto/widgets/widgets/qdockwidget/tst_qdockwidget.cpp