From 13cb34c1b10bb00d19f2327f7e5709ac2bda02e1 Mon Sep 17 00:00:00 2001 From: Gabriel de Dietrich Date: Thu, 29 Mar 2018 12:49:29 -0700 Subject: QNSView: Remove isMenuView property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is always NO and no longer needed. Change-Id: I32a3dca6cc427cb074ee3d58bf2202f57af4c623 Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/cocoa/qnsview.mm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/plugins/platforms/cocoa/qnsview.mm') diff --git a/src/plugins/platforms/cocoa/qnsview.mm b/src/plugins/platforms/cocoa/qnsview.mm index bd44f6568a..8fc6482f36 100644 --- a/src/plugins/platforms/cocoa/qnsview.mm +++ b/src/plugins/platforms/cocoa/qnsview.mm @@ -136,7 +136,6 @@ bool m_scrolling; bool m_updatingDrag; NSEvent *m_currentlyInterpretedKeyEvent; - bool m_isMenuView; QSet m_acceptedKeyDowns; bool m_updateRequested; } @@ -161,7 +160,6 @@ m_scrolling = false; m_updatingDrag = false; m_currentlyInterpretedKeyEvent = 0; - m_isMenuView = false; self.focusRingType = NSFocusRingTypeNone; self.cursor = nil; m_updateRequested = false; @@ -296,7 +294,7 @@ return NO; if ([self isTransparentForUserInput]) return NO; - if (!m_platformWindow->windowIsPopupType() && !m_isMenuView) + if (!m_platformWindow->windowIsPopupType()) QWindowSystemInterface::handleWindowActivated([self topLevelWindow]); return YES; } @@ -305,8 +303,6 @@ { if (!m_platformWindow) return NO; - if (m_isMenuView) - return NO; if (m_platformWindow->shouldRefuseKeyWindowAndFirstResponder()) return NO; if ([self isTransparentForUserInput]) @@ -375,9 +371,4 @@ return m_platformWindow.data();; } -- (BOOL)isMenuView -{ - return m_isMenuView; -} - @end -- cgit v1.2.3