[Folder View Filter Config] Use TableView for mime types
ClosedPublic

Authored by broulik on Nov 16 2017, 3:41 PM.

Details

Summary
  • Implements proper keyboard navigation (up/down) as well as space to goggle check box
  • Makes list sortable by name, comment, and "checked" (so you easily get an overview of types you enabled)
  • Add mime type "comment" which is more user-friendly
Test Plan
  • The checkbox becomes hardly visible on a selected row. In QWidgets Breeze has a hack to paint in white in this case but it cannot be done int QQC :/
  • Tested keyboard up and down as well as space to toggle
  • Sorting and filtering (the filter still only searches the name, not the comment) doesn't seem to confuse the table view or model

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Nov 16 2017, 3:41 PM
Restricted Application added a project: Plasma. · View Herald TranscriptNov 16 2017, 3:41 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
hein added a comment.Nov 17 2017, 4:26 AM

I like it, but should the default sort column be the name so that there's no awkward arrow in the header element for the checkboxes?

I feel like QWidget views or rather QStandardItemDelegate avoid this by embedding the checkbox into the column for Qt::DisplayRole or something ... maybe I misremember though.

abetts added a subscriber: abetts.Nov 17 2017, 4:46 AM
In D8849#168791, @hein wrote:

I like it, but should the default sort column be the name so that there's no awkward arrow in the header element for the checkboxes?

I feel like QWidget views or rather QStandardItemDelegate avoid this by embedding the checkbox into the column for Qt::DisplayRole or something ... maybe I misremember though.

The sorter for checkboxes makes no sense. It is not necessary unless you feel the need to sort by ckecboxes checked or cleared. I imagine it would make more sense when there are hundreds of options. But you also have a sorting field. So no need.

The default sorting is by name. I was just demonstrating in the screenshot that you could also sort by checked in order to quickly find the checked ones, sorry. There are hundreds of options.

How about this?

hein accepted this revision.Nov 17 2017, 1:31 PM

If the default sorting isn't on the checkbox, then I'm OK with and accept the original ver (not-so-fond of the variant).

This revision is now accepted and ready to land.Nov 17 2017, 1:31 PM
This revision was automatically updated to reflect the committed changes.