Clean up not needed Q_INVOKABLE
ClosedPublic

Authored by meven on Aug 24 2019, 7:05 AM.

Details

Diff Detail

Repository
R102 KInfoCenter
Branch
clean-up
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 15562
Build 15580: arc lint + arc unit
meven created this revision.Aug 24 2019, 7:05 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 24 2019, 7:05 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
meven requested review of this revision.Aug 24 2019, 7:05 AM
broulik accepted this revision.Aug 31 2019, 7:55 AM

Lovely!

Modules/energy/package/contents/ui/main.qml
97

You could probably move that into a function initCurrent() or similar and call it in both this and the change handler

You can also probably cache the index in a variable to only query it once

This revision is now accepted and ready to land.Aug 31 2019, 7:55 AM
meven updated this revision to Diff 65035.Aug 31 2019, 8:17 AM

Add a function initCurrentBattery to initialize currentBattery property and associated ones

meven marked an inline comment as done.Aug 31 2019, 8:20 AM
meven updated this revision to Diff 65038.Aug 31 2019, 8:24 AM

Remove unnecessary root.

This revision was automatically updated to reflect the committed changes.