Cocoa: Don't consume events when closing tool tips
With change acebf677
we treat Qt::ToolTip similar
to Qt::Popup and close them on a mouse click on the
parent window. This mouse click is not forwarded
to the standard mouse event handler.
Add an exception for Qt::ToolTip.
Task-number: QTBUG-38267
Change-Id: Ie3121f651a6ccc2427040e61db4f63967467604d
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
9216bfbcb1
commit
0be1c4899c
@ -639,8 +639,12 @@ static QTouchDevice *touchDevice = 0;
|
||||
if (m_platformWindow->m_activePopupWindow) {
|
||||
QWindowSystemInterface::handleCloseEvent(m_platformWindow->m_activePopupWindow);
|
||||
QWindowSystemInterface::flushWindowSystemEvents();
|
||||
Qt::WindowType type = m_platformWindow->m_activePopupWindow->type();
|
||||
m_platformWindow->m_activePopupWindow = 0;
|
||||
return;
|
||||
// Consume the mouse event when closing the popup, except for tool tips
|
||||
// were it's expected that the event is processed normally.
|
||||
if (type != Qt::ToolTip)
|
||||
return;
|
||||
}
|
||||
if ([self hasMarkedText]) {
|
||||
NSInputManager* inputManager = [NSInputManager currentInputManager];
|
||||
|
Loading…
Reference in New Issue
Block a user