[Extractor] Remove IdleStateMonitor wrapper class
ClosedPublic

Authored by bruns on Apr 15 2020, 10:21 PM.

Details

Summary

IdleStateMonitor is just a wrapper around KIdleTime, which can be
implemented in a few lines inline.

Diff Detail

Repository
R293 Baloo
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 15 2020, 10:21 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptApr 15 2020, 10:21 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Apr 15 2020, 10:21 PM

It used to be 2 minutes, now it's 1?

src/file/extractor/app.cpp
59

Why the member variable? It's a singleton after all

63

Coding style

bruns added a comment.EditedApr 16 2020, 10:07 AM

It used to be 2 minutes, now it's 1?

It used to be 0 minutes ... 1 minute is completely sufficient.

src/file/extractor/app.cpp
59

Because its used recurrently in a slot in a later patch

bruns marked an inline comment as done.Apr 16 2020, 10:08 AM
bruns added inline comments.Apr 16 2020, 4:50 PM
src/file/extractor/app.cpp
63

Side note - both the Frameworks and the reference Qt coding style say nothing about lambdas.

If you read the connect(...); as a single statement, it should stay as is.

If you read the lambda as a function, the closing brace should go on a separate line.

bruns updated this revision to Diff 80295.Apr 16 2020, 4:52 PM

add line break before closing brace in lambda, use 2 minutes

ngraham accepted this revision.Apr 16 2020, 4:58 PM
This revision is now accepted and ready to land.Apr 16 2020, 4:58 PM
This revision was automatically updated to reflect the committed changes.