OSX: a window which has WindowDoesNotAcceptFocus isn't first responder

Change-Id: If02ce190d93fcae18f1e1b41bc73c83b3226d4e7
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
bb10
Shawn Rutledge 2013-03-18 15:03:06 +01:00 committed by The Qt Project
parent 79e729e111
commit bd8630763c
1 changed files with 2 additions and 0 deletions

View File

@ -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;