Review Request 127054: Add a Filter Toolbar Button for Dolphin
Thomas Lübking
thomas.luebking at gmail.com
Sat Mar 12 23:10:33 GMT 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127054/#review93458
-----------------------------------------------------------
dolphinmainwindow.cpp (line 541)
<https://git.reviewboard.kde.org/r/127054/#comment63717>
This does not cover the case of the shortcut being invoked while the filterbar is visible, but does not have the focus - afaics, in that case the focus should move there and only on a third invocation, the filterbar be hidden to preserve present behavior itr)
for this, you'll have to override the virtual ::event(QEvent), check whether the events type is QEvent::Shortcut, statically cast the event and match the keysequence to the one assigned to the action.
If it matches *exactly*, the next relevant *trigger* signal is caused by the shortcut (in which case you want to apply the special handling)
Should be enough task for a sunday? ;-)
If you get stuck, ask =)
dolphinmainwindow.cpp (line 1086)
<https://git.reviewboard.kde.org/r/127054/#comment63718>
What exactly was the problem with
QAction *showFilterBar ...;
showFilterBar->setCheckable(true);
?
- Thomas Lübking
On März 12, 2016, 7:11 nachm., arnav dhamija wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127054/
> -----------------------------------------------------------
>
> (Updated März 12, 2016, 7:11 nachm.)
>
>
> Review request for Dolphin, KDE Usability and Emmanuel Pescosta.
>
>
> Repository: dolphin
>
>
> Description
> -------
>
> This patch was created to implement the feature suggested here: [https://todo.kde.org/?controller=task&action=show&task_id=966](https://todo.kde.org/?controller=task&action=show&task_id=966)
>
> This patch adds a Filter Button to the toolbar of Dolphin. This button can be toggled to show/hide the Filter Bar.
>
> In this patch, one might notice that there is now show_filter_bar and show_filter_bar_button in dolphinui.rc file. This was done because I found that using the same action for the menu entry and the toolbar entry would cause something to break (eg, shortcuts would stop working).
>
> A screenshot of the toolbar is also attached.
>
>
> Diffs
> -----
>
> dolphinmainwindow.h 7003e94
> dolphinmainwindow.cpp f7a7613
> dolphinui.rc f197af4
>
> Diff: https://git.reviewboard.kde.org/r/127054/diff/
>
>
> Testing
> -------
>
> manual
>
>
> File Attachments
> ----------------
>
> dolphintoolbar.png
> https://git.reviewboard.kde.org/media/uploaded/files/2016/02/12/d936e5d0-557c-45c5-9a2d-f849e5d284a6__dolphintoolbar.png
>
>
> Thanks,
>
> arnav dhamija
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20160312/e4ef91da/attachment.htm>
More information about the kfm-devel
mailing list