D7602: [ConfigModel] Allow programmatically adding and removing ConfigCategory
Kai Uwe Broulik
noreply at phabricator.kde.org
Tue Aug 29 12:38:39 UTC 2017
broulik created this revision.
Restricted Application added projects: Plasma, Frameworks.
Restricted Application added subscribers: Frameworks, plasma-devel.
REVISION 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 and you cannot pass null as QString from QML anyway.
REPOSITORY
R242 Plasma Framework (Library)
REVISION DETAIL
https://phabricator.kde.org/D7602
AFFECTED FILES
src/plasmaquick/configmodel.cpp
src/plasmaquick/configmodel.h
To: broulik, #plasma
Cc: plasma-devel, #frameworks, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170829/12f381e5/attachment.html>
More information about the Kde-frameworks-devel
mailing list