D10246: Toggle search and filter bar

Marijo Mustac noreply at phabricator.kde.org
Fri Feb 9 15:54:31 GMT 2018


mmustac added a comment.


  Okay I don't know what to do now. I wanted to add a new setting to dolphins general settings menu -> no problem at all.
  Then I wanted to extend the find() and showfilterbar() function with an optional parameter so that I would be able to set them active then the shortcut was used (and the option off which would be the default) or toggle them when the button in the toolbar or menu was clicked.
  First I tried to extend the connect() call with this parameter but I noticed that this is not so easy possible and then I tought "Is this the right way at all? This will not help at all because the signal will be forwarded anyway if the shortcut was pressed or the button was clicked ..."
  My next idea was to make a new Action out of it but I don't want to have two actions in the menus and furthermore the shortcut could only handle one of it which would be really weird and confusing.
  And so I am sticked and searching for a way to find out if the call from find() or showfilterbar() was made trough a button or the shortcut to make this different behavior possible. Any ideas?

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D10246

To: mmustac, #dolphin
Cc: elvisangelaccio, rkflx, broulik, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180209/6486872c/attachment.htm>


More information about the kfm-devel mailing list