diff options
author | Gabriel de Dietrich <gabriel.dietrich-de@nokia.com> | 2012-10-01 19:16:04 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-03 17:30:52 +0200 |
commit | afd66b3cb0922c1e30cb7d11cd381c5be1149967 (patch) | |
tree | 1efa8faff317e523835fd96fcaefd4d0cd980069 /src/plugins/platforms/cocoa | |
parent | 403b15488b3d687bc2830099f075a5ad12f0ef5f (diff) |
Mac: QComboBox wouldn't receive mouse events when shown within a modal dialog
The mouse events were being stolen by the modal dialog, preventing the
combo box to update itself. Key events were being properly forwarded,
but this was probably due to the different way key events are being
delivered.
Change-Id: I5bfc4800fad9fd4122a212e6fdec13811a7e647b
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoawindow.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm index 4ef445cddd..1524c71f72 100644 --- a/src/plugins/platforms/cocoa/qcocoawindow.mm +++ b/src/plugins/platforms/cocoa/qcocoawindow.mm @@ -291,6 +291,10 @@ void QCocoaWindow::setVisible(bool visible) } else { [m_nsWindow orderFront: nil]; } + + // We want the events to properly reach the popup + if (window()->windowType() == Qt::Popup) + [(NSPanel *)m_nsWindow setWorksWhenModal:YES]; } } } else { |