[ConfigModel] Allow programmatically adding and removing ConfigCategory
ClosedPublic

Authored by broulik on Aug 29 2017, 12:38 PM.

Details

Summary

The appendCategory(ConfigCategory*) allows to add a category created by e.g. an Instantiator that can use bindings rather than fixed arguments.
The removeCategory methods allow to remove a category when e.g. the model in an Instantiator resets.

CCBUG: 372090

Test Plan

Pre-requisite for dynamically showing and hiding calendar plugin config in digital clock.

Verified that onObjectAdded and onObjectRemoved of an Instantiator work fine with ConfigModel.

Adding an overload shouldn't cause issues as the others require at least four string arguments.

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.Aug 29 2017, 12:38 PM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptAug 29 2017, 12:38 PM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
broulik edited the test plan for this revision. (Show Details)Aug 29 2017, 12:40 PM
mart accepted this revision.Aug 30 2017, 2:40 PM
This revision is now accepted and ready to land.Aug 30 2017, 2:40 PM
This revision was automatically updated to reflect the committed changes.