[FileMetaDataWidget] Allow inline configuration of visible properties
ClosedPublic

Authored by bruns on Apr 14 2019, 3:52 AM.

Details

Summary

Instead of opening an additional dialog, allow selection and deselection
of visible properties directly in the widget.

CCBUG: 389571

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Apr 14 2019, 3:52 AM
Restricted Application added a project: Baloo. · View Herald TranscriptApr 14 2019, 3:52 AM
bruns requested review of this revision.Apr 14 2019, 3:52 AM
elvisangelaccio added inline comments.
src/filemetadatawidget.cpp
53

I'd call it checkBox for better clarity.

113–114

Missing braces

src/filemetadatawidget.h
47–49

Can you add some apidox for this enum? In particular, it's not so clear what ReStart is used for.

Hmm, it seems you need to rebase this patch:

$ arc patch D20524
 INFO  Base commit is not in local repository; trying to fetch.
Created and checked out branch arcpatch-D20524.


    This diff is against commit b26a3680b04cb9877721d693eb79ccb321fe40aa, but
    the commit is nowhere in the working copy. Try to apply it against the
    current working copy state? (49e778edf7bd70842879cc338fb85c1a178ecf7f)
    [Y/n] Y

( I tried to apply it on current master)

bruns added inline comments.Apr 14 2019, 1:50 PM
src/filemetadatawidget.h
47–49

Sure, just wanted to see if the (UI) design itself is deemed appropriate.

bruns edited the summary of this revision. (Show Details)Apr 14 2019, 1:51 PM

Hmm, it seems you need to rebase this patch:

Worked for me:

 INFO  Base commit is not in local repository; trying to fetch.
Created and checked out branch arcpatch-D20524.


    This diff is against commit b26a3680b04cb9877721d693eb79ccb321fe40aa, but
    the commit is nowhere in the working copy. Try to apply it against the
    current working copy state? (5f2ab5c62dd56e5a1dae468355c9e72d84d94398)
    [Y/n] y

Checking patch src/filemetadatawidget.h...
Checking patch src/filemetadatawidget.cpp...
Applied patch src/filemetadatawidget.h cleanly.
Applied patch src/filemetadatawidget.cpp cleanly.
 OKAY  Successfully committed patch.
bruns added a comment.Apr 14 2019, 2:52 PM

Hmm, it seems you need to rebase this patch:

Worked for me:

 INFO  Base commit is not in local repository; trying to fetch.
Created and checked out branch arcpatch-D20524.


    This diff is against commit b26a3680b04cb9877721d693eb79ccb321fe40aa, but
    the commit is nowhere in the working copy. Try to apply it against the
    current working copy state? (5f2ab5c62dd56e5a1dae468355c9e72d84d94398)
    [Y/n] y

Checking patch src/filemetadatawidget.h...
Checking patch src/filemetadatawidget.cpp...
Applied patch src/filemetadatawidget.h cleanly.
Applied patch src/filemetadatawidget.cpp cleanly.
 OKAY  Successfully committed patch.

I have some debug output lower in the commit stack, which is likely responsible for the SHA hash mismatch, although it should apply with just the warning.

Note, D20523 was commited in the mean time.

bruns updated this revision to Diff 56206.Apr 14 2019, 3:01 PM

add apidox, cleanup

bruns marked 4 inline comments as done.Apr 14 2019, 3:02 PM
src/filemetadatawidget.h
93

Should be @since 19.08.0 (baloo-widgets follows the KDE Applications versioning)

bruns updated this revision to Diff 56337.Apr 15 2019, 11:09 PM

correct since version

bruns marked an inline comment as done.Apr 15 2019, 11:10 PM
bruns updated this revision to Diff 56536.Apr 18 2019, 2:53 PM

Layout cleanup

  • remove extra spacer
  • keep checkbox near label (align right)
bruns updated this revision to Diff 56545.Apr 18 2019, 3:41 PM

reset column stretch

ngraham accepted this revision.Apr 18 2019, 7:54 PM
This revision is now accepted and ready to land.Apr 18 2019, 7:54 PM
elvisangelaccio accepted this revision.Apr 20 2019, 2:36 PM
This revision was automatically updated to reflect the committed changes.