[ColorScope] Work with plain QObjects again
ClosedPublic

Authored by broulik on Dec 11 2019, 3:00 PM.

Details

Summary

Otherwise colorScope doesn't attach to things like Plasma.Svg.
Also remove superfluous cast as parentItem() returns a QQuickItem *.

Test Plan
  • Battery on lock screen gets proper complementary color group again
  • didn't actually test the applet background stuff that this change was originally made for

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Dec 11 2019, 3:00 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptDec 11 2019, 3:00 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
broulik requested review of this revision.Dec 11 2019, 3:00 PM
mart accepted this revision.Dec 11 2019, 3:01 PM
This revision is now accepted and ready to land.Dec 11 2019, 3:01 PM
This revision was automatically updated to reflect the committed changes.