Refactor timer plasmoid
ClosedPublic

Authored by abrahams on Jan 20 2016, 4:25 AM.

Details

Reviewers
mart
Group Reviewers
Plasma
Commits
R114:10c489b6b90b: Refactor timer plasmoid
Summary

This splits the timer plasmoid into main.qml and TimerView.qml. The
main difference is that the plasmoid can define compactRepresentation.

BUG: 353090

Diff Detail

Repository
R114 Plasma Addons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
abrahams updated this revision to Diff 2029.Jan 20 2016, 4:25 AM
abrahams updated this revision to Diff 2030.
abrahams retitled this revision from to Refactor timer plasmoid.
abrahams updated this object.
abrahams edited the test plan for this revision. (Show Details)
abrahams added a reviewer: Plasma.

Update copyright year

This is my first attempt at writing QML. I was not sure of how to idiomatically call methods in the TimerView subobject from the Main.qml Plasmoid. I used signal opacityNeedsReset() and signal digitHasChanged() and connected them to slots in the subobject. The plasmoid seems to work as expected, and bug https://bugs.kde.org/show_bug.cgi?id=353090 is fixed.

mart accepted this revision.Feb 9 2016, 11:21 AM
mart added a reviewer: mart.
This revision is now accepted and ready to land.Feb 9 2016, 11:21 AM
This revision was automatically updated to reflect the committed changes.