D19770: Use placeholder for search action

Elvis Angelaccio noreply at phabricator.kde.org
Mon Apr 22 16:37:47 BST 2019


elvisangelaccio added a comment.


  In D19770#453747 <https://phabricator.kde.org/D19770#453747>, @ngraham wrote:
  
  > In D19770#453371 <https://phabricator.kde.org/D19770#453371>, @elvisangelaccio wrote:
  >
  > > I still think that the rename from "Search" to "Find" should be done either upstream/globally or not at all.
  > >
  > > Anyway, it's unrelated from this commit, which is just about moving to placeholders everywhere (which I agree with).
  >
  >
  > Search and Find have different meanings because they do different things: locating files or items that match the given text in a data set of indeterminate or unclear size is "Search"; locating instances of text within the open document or page is "Find". But they should both have the same common [ctrl] + [F] keyboard shortcut. So it cannot be done globally.
  >
  > Any idea how we move forward with this?
  
  
  Fair enough. Another thing I didn't consider is that the menubar is hidden by default, so most dolphin users probably never even see the text of the search action.
  
  @ognarb Please rename the variables as mentioned inline and then we can ship it.

INLINE COMMENTS

> dolphinmainwindow.cpp:932
> +    // Overwrite Find action to Search action
> +    QAction *search = ac->action(KStandardAction::name(KStandardAction::Find));
> +    search->setText(i18n("Search..."));

Please call this variable `searchAction`.

> dolphinmainwindow.cpp:1144
>  
> -    KStandardAction::find(this, &DolphinMainWindow::find, actionCollection());
> +    QAction *search = KStandardAction::find(this, &DolphinMainWindow::find, actionCollection());
> +    search->setText(i18n("Search..."));

And this one too.

REPOSITORY
  R318 Dolphin

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

To: ognarb, #dolphin, #vdg, ngraham, elvisangelaccio
Cc: GB_2, kde-doc-english, elvisangelaccio, ngraham, yurchor, kfm-devel, gennad, alexde, feverfew, meven, spoorun, navarromorales, firef, andrebarros, skadinna, emmanuelp, mikesomov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20190422/789faa74/attachment.htm>


More information about the kfm-devel mailing list