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:
Shawn Rutledge 2013-03-18 15:03:06 +01:00 committed by The Qt Project
parent 79e729e111
commit bd8630763c

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;