<table><tr><td style="">davidhurka created this revision.<br />davidhurka added a project: Okular.<br />davidhurka requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21971">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>(This is not a merge request.)</p>
<p>This allows to use ToggleActionMenu as nearly drop-in replacement for ToolAction,<br />
without additional code statements.</p>
<p>ImplicitDefaultAction mode means that the default action of the toolbar buttons<br />
is determined by the last triggered action,<br />
or the first checked action in the menu.</p>
<p>This patch is not fully tested.</p>
<p><a href="https://phabricator.kde.org/p/simgunz/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@simgunz</a> asked about a functionality somewhere near this in <a href="https://phabricator.kde.org/D21755#482896" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D21755#482896</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>BRANCH</strong><div><div>create-configurable-toggleactionmenu</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21971">https://phabricator.kde.org/D21971</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
ui/pageview.cpp<br />
ui/toggleactionmenu.cpp<br />
ui/toggleactionmenu.h<br />
ui/toolaction.cpp<br />
ui/toolaction.h</div></div></div><br /><div><strong>To: </strong>davidhurka<br /><strong>Cc: </strong>simgunz, okular-devel, fbampaloukas, joaonetto, tfella, ngraham, darcyshen, aacid<br /></div>