OSX: a window which has WindowDoesNotAcceptFocus isn't first responder
Change-Id: If02ce190d93fcae18f1e1b41bc73c83b3226d4e7 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
79e729e111
commit
bd8630763c
@ -397,6 +397,8 @@ static QTouchDevice *touchDevice = 0;
|
||||
|
||||
- (BOOL)acceptsFirstResponder
|
||||
{
|
||||
if (m_window->flags() & Qt::WindowDoesNotAcceptFocus)
|
||||
return NO;
|
||||
if ((m_window->flags() & Qt::ToolTip) == Qt::ToolTip)
|
||||
return NO;
|
||||
return YES;
|
||||
|
Loading…
Reference in New Issue
Block a user