D21971: [DEMO] Enhance ToggleActionMenu with ImplicitDefaultAction mode.

David Hurka noreply at phabricator.kde.org
Fri Jun 21 20:08:35 BST 2019


davidhurka created this revision.
davidhurka added a project: Okular.
davidhurka requested review of this revision.

REVISION SUMMARY
  (This is not a merge request.)
  
  This allows to use ToggleActionMenu as nearly drop-in replacement for ToolAction,
  without additional code statements.
  
  ImplicitDefaultAction mode means that the default action of the toolbar buttons
  is determined by the last triggered action,
  or the first checked action in the menu.
  
  This patch is not fully tested.
  
  @simgunz asked about a functionality somewhere near this in D21755#482896 <https://phabricator.kde.org/D21755#482896>

REPOSITORY
  R223 Okular

BRANCH
  create-configurable-toggleactionmenu

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

AFFECTED FILES
  CMakeLists.txt
  ui/pageview.cpp
  ui/toggleactionmenu.cpp
  ui/toggleactionmenu.h
  ui/toolaction.cpp
  ui/toolaction.h

To: davidhurka
Cc: simgunz, okular-devel, fbampaloukas, joaonetto, tfella, ngraham, darcyshen, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190621/5ed3ae18/attachment.html>


More information about the Okular-devel mailing list