D27188: KCM Notifications : Manage app-specific notifications with KCconfigXT's magic
Kevin Ottens
noreply at phabricator.kde.org
Wed Apr 22 13:11:05 BST 2020
ervin requested changes to this revision.
ervin added inline comments.
This revision now requires changes to proceed.
INLINE COMMENTS
> kcm.cpp:315
> ManagedConfigModule::defaults();
> - m_settings->defaults();
> + for (auto *behaviorSettings : m_behaviorSettingsList) {
> + behaviorSettings->setDefaults();
qAsConst(m_behaviorSettingsList), otherwise it will unfortunately detach.
> kcm.cpp:334
> + bool notDefault = std::any_of(m_behaviorSettingsList.cbegin(),
> + m_behaviorSettingsList.cend(),
> + [](const NotificationManager::BehaviorSettings *settings) { return !settings->isDefaults(); });
I'd align that (and the next line) with the previous parameter.
> kcm.cpp:335
> + m_behaviorSettingsList.cend(),
> + [](const NotificationManager::BehaviorSettings *settings) { return !settings->isDefaults(); });
> + return !notDefault;
This starts being a long line, please break it after the opening brace and again after the first semicolon.
REPOSITORY
R119 Plasma Desktop
REVISION DETAIL
https://phabricator.kde.org/D27188
To: crossi, #plasma, ervin, broulik, bport, meven
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200422/3069ee5b/attachment-0001.html>
More information about the Plasma-devel
mailing list