davidhurka added a comment.

  I could imagine to add a parameter ToggleActionMenu::MenuLogic to the 
constructor.
  
    enum MenuLogic {
        DefaultLogic = 0x0,
        /**
         * Automatically makes the triggered action the default action, even if 
in a submenu.
         * When a toolbar button is constructed, the default action is set to 
the first checked action in the menu.
         * setDefaultAction() provides a fallback if no action is checked.
         */
        ImplicitDefaultAction = 0x1
    };
  
  The integrated QActionGroup (for mutually exclusive actions) requires to 
subclass ToggleActionMenu, to shadow addAction(). addAction() would need to add 
the action to the action group.

REPOSITORY
  R223 Okular

REVISION DETAIL
  https://phabricator.kde.org/D21755

To: davidhurka, #okular
Cc: simgunz, aacid, #vdg, okular-devel, fbampaloukas, joaonetto, tfella, 
ngraham, darcyshen

Reply via email to