Skip to content
  • Gabriel de Dietrich's avatar
    Set NoRole menu role on toggle fullscreen action · 79428126
    Gabriel de Dietrich authored
    
    
    Again, since the default menu role is TextHeuristicRole, and when we
    enter fullscreen the text is set to "Exit Full Screen", the Mac QPA
    menu item syncing will assign this to be the quit menu item.
    
    This would cause two problems. First, pressing Cmd-Q in fullscreen would leave
    fullscreen mode instead of quitting the app. Second, that would make the quit
    menu item to be hidden when leaving fullscreen, since the toggle fullscreen
    action text would change back to "Enter Full Screen", and the make a round
    trip to the menu item heuristic logic.
    
    Task-number: QTBUG-30654
    Change-Id: I7524c54c3bd77cce891c57292825f02e163fd7fa
    Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
    79428126