D21195: [RFC] Create a Change Colors menu (with toolbar button)
David Hurka
noreply at phabricator.kde.org
Wed May 15 17:38:35 BST 2019
davidhurka marked an inline comment as done.
davidhurka added a comment.
I have figured out, what was going on in the QToolButton.
KActionMenu::createWidget() added itself as default action. Then, CheckableActionMenu::createWidget() adds another action as default action. Then, the QToolButton has two actions, and builds a menu of them, instead of using the given menu.
Now I remove the KActionMenu in CheckableActionMenu::createWidget(), so there is only my default action left. Then, QToolButton::setMenu() apparently works.
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D21195
To: davidhurka, #okular, #vdg
Cc: GB_2, davidre, aacid, ngraham, okular-devel, joaonetto, tfella, darcyshen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190515/66fd8283/attachment.html>
More information about the Okular-devel
mailing list