D13124: Add Share action to Dolphin context menu
Mark Gaiser
noreply at phabricator.kde.org
Mon Jul 2 21:50:22 BST 2018
markg added a comment.
In D13124#286263 <https://phabricator.kde.org/D13124#286263>, @elvisangelaccio wrote:
> In D13124#286115 <https://phabricator.kde.org/D13124#286115>, @broulik wrote:
>
> > Check out `KFileItemActions::addServiceActionsTo`
>
>
> Actually, `KFileItemActions::addPluginActionsTo` ;)
Thank you both :)
After looking at that code (KFileItemActions::addPluginActionsTo that is), it's clear to me where and how it happens. That's an interesting approach Dolphin does there with calls to KFileItemActions. It fooled me as it's a local variable.
What i still don't get is how "Share" appears below "Move To" as the call to add the "Share" menu is done before the "Move To" menu is added. Which also fooled me as "Move To" is added using the this pointer.
The only reasoning i can think of is some sorting of menu items being done afterwards (which i don't see...) as the menu appears to be sorted alphabetically.
REPOSITORY
R495 Purpose Library
BRANCH
fiap
REVISION DETAIL
https://phabricator.kde.org/D13124
To: nicolasfella, apol, #dolphin, elvisangelaccio
Cc: markg, broulik, kde-frameworks-devel, elvisangelaccio, ngraham, apol, kfm-devel, #dolphin, michaelh, spoorun, navarromorales, isidorov, firef, andrebarros, bruns, emmanuelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180702/67578167/attachment.htm>
More information about the kfm-devel
mailing list