Allow the baloo widgets to display creation date and access date.
ClosedPublic

Authored by meven on Apr 9 2019, 11:58 AM.

Details

Summary

New fields accessed and created in dolphin/baloo-widgets information panel:

GUI: New fields accessed and created in dolphin/baloo-widgets information panel
CCBUG: 286689

Test Plan

Tested locally

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.
meven created this revision.Apr 9 2019, 11:58 AM
Restricted Application added a project: Baloo. · View Herald TranscriptApr 9 2019, 11:58 AM
Restricted Application added a subscriber: Baloo. · View Herald Transcript
meven requested review of this revision.Apr 9 2019, 11:58 AM
meven edited the summary of this revision. (Show Details)Apr 9 2019, 12:01 PM
meven added a reviewer: ngraham.
meven added a reviewer: elvisangelaccio.
ngraham requested changes to this revision.Apr 9 2019, 3:18 PM

Thanks! Please make the dependency explicit and bump the minimum Frameworks version to 5.58 in the CMakeLists.txt file, or else guard these with ifdefs.

This revision now requires changes to proceed.Apr 9 2019, 3:18 PM
meven added a comment.Apr 9 2019, 4:53 PM

KDE Frameworks 5.58 is expected to be released on Sat May 11th, 2019.
Given this will ship in Applications 19/08, I would favor bumping the dependency, as it is easier on me and on the code.

meven updated this revision to Diff 55837.Apr 9 2019, 5:00 PM

Bump KF5 dependency to 5.58

ngraham accepted this revision.Apr 9 2019, 5:14 PM

Thanks, please don't land this until Frameworks 5.58 is released and D20096 has landed. :)

This revision is now accepted and ready to land.Apr 9 2019, 5:14 PM
elvisangelaccio accepted this revision.Apr 9 2019, 8:59 PM
meven added a comment.Apr 10 2019, 7:25 AM

Thanks, please don't land this until Frameworks 5.58 is released and D20096 has landed. :)

That's what I meant all along ;)

So, if KF5 5.58 is not delayed, after May 11th.

meven added a comment.Apr 10 2019, 7:35 AM

One thing that I would have wanted to do though, is mask by default the accessed time as it seems to me less useful for most users.
But this is handled by the baloofileinformationrc kconfig file.

I could add a check for when reading baloofileinformationrc, if "kfileitem#accessed" is missing add it as false, do nothing otherwise.
I don't know if there a better way to do this like a default baloofileinformationrc or that could be a distribution issue.

What do you think ?

bruns requested changes to this revision.Apr 10 2019, 12:56 PM
bruns added a subscriber: bruns.
bruns added inline comments.
CMakeLists.txt
11 ↗(On Diff #55837)

Actually, this is not necessary:
KFileItem::CreationTime is part of KF5.0 already.

You *should* check for KFileItem::time(which) != QDateTime()though

src/filemetadataprovider.cpp
179

item.time(...) may return QDateTime() (default initialized), depending on the filesystem.

This revision now requires changes to proceed.Apr 10 2019, 12:56 PM
meven updated this revision to Diff 55905.Apr 10 2019, 2:47 PM

Check CreatimeTime is Valid instead of bumping KF5 dependency

meven marked an inline comment as done.Apr 10 2019, 2:48 PM
meven edited the summary of this revision. (Show Details)
meven updated this revision to Diff 55907.Apr 10 2019, 2:52 PM

update commit message

meven added a comment.Apr 14 2019, 1:06 PM

D20096 was merged, and now the patch does not even depend on KF5 5.58.
So I would consider it to be mergeable.

bruns accepted this revision.Apr 14 2019, 1:13 PM
This revision is now accepted and ready to land.Apr 14 2019, 1:13 PM
meven edited the summary of this revision. (Show Details)Apr 14 2019, 1:28 PM
This revision was automatically updated to reflect the committed changes.