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>bb10
parent
403b15488b
commit
afd66b3cb0
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue