D12067: [Okular Part] Add "Print" action
David Faure
noreply at phabricator.kde.org
Fri Apr 27 10:59:43 UTC 2018
dfaure added a comment.
Hmm that's not how this is supposed to work, no need to look up actions. Look at the connect in kparts browserextension.cpp. The basic idea is: the part derives from BrowserExtension and provides a print slot, the shell calls it. Then the question became "but how does the shell know when to enable/disable the action", which is what actionSlotMapPtr() and isActionEnabled() are about, see KonqMainWindow::connectExtension for sample code.
REPOSITORY
R223 Okular
REVISION DETAIL
https://phabricator.kde.org/D12067
To: broulik, #okular, aacid
Cc: dfaure, ngraham, aacid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20180427/8af669eb/attachment.html>
More information about the Okular-devel
mailing list