davidhurka added a comment.
Couldn’t the whole class ToolAction be replaced by KActionMenu now? Just set the default action at startup and connect triggered(QAction*) to setDefaultAction(QAction*) and Okular::Settings. Seen here: https://www.walletfox.com/course/customqtoolbutton.php REPOSITORY R223 Okular REVISION DETAIL https://phabricator.kde.org/D21622 To: ngraham, #okular, #vdg, ndavis Cc: davidhurka, aacid, ndavis, abetts, filipf, okular-devel, joaonetto, tfella, ngraham, darcyshen