support userBackgroundhints in the scripting ui
ClosedPublic

Authored by mart on Dec 4 2019, 3:29 PM.

Details

Summary

bind userBackgroundHints to the desktopscript interface

Test Plan

from the scripting console is possible to correctly change applets background and
it gets immediately applied

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.Dec 4 2019, 3:29 PM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 4 2019, 3:29 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart requested review of this revision.Dec 4 2019, 3:29 PM
apol added a subscriber: apol.Dec 4 2019, 3:38 PM
apol added inline comments.
shell/scripting/widget.h
71

const&

or should it be Plasma::Types::BackgroundHints?

mart added inline comments.Dec 4 2019, 3:42 PM
shell/scripting/widget.h
71

everthing else presents strings to the engine.

i don't know if it's possible making enums work correctly with qjsengine (that is without qml)

This revision was not accepted when it landed; it landed in state Needs Review.Dec 5 2019, 10:00 AM
This revision was automatically updated to reflect the committed changes.