[KCM][WIP] Add KCModuleData
Needs RevisionPublic

Authored by bport on Mar 31 2020, 9:41 AM.

Details

Reviewers
ervin
meven
crossi
hchain
Group Reviewers
Plasma
Summary

Add KCModuleData for fonts, colors, cursors and spellchecking

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 25285
Build 25303: arc lint + arc unit
bport created this revision.Mar 31 2020, 9:41 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 31 2020, 9:41 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
bport requested review of this revision.Mar 31 2020, 9:41 AM

You reckon we should do a simple base class that just does settings->isDefaults() since that will be quite a common thing?

bport updated this revision to Diff 79497.Apr 6 2020, 3:42 PM

Adapt to kcmutils update and add cursor, fonts, spellchecking example

ervin requested changes to this revision.Apr 7 2020, 5:08 PM
ervin added inline comments.
kcms/colors/colorsstateprobe.cpp
29 ↗(On Diff #79497)

I'm not sure I see the point of doing this... You don't need that member variable anyway. You could just have in the ctor body the following:
registerSetting(new ColorsSettings(this));

This revision now requires changes to proceed.Apr 7 2020, 5:08 PM
bport updated this revision to Diff 79781.Apr 10 2020, 5:32 PM

Rename state probe to data and use them in KCM

And fix defaultness of spellchecking inside data (default at loading without widget state)

bport updated this revision to Diff 80215.Apr 15 2020, 3:57 PM

fix build

bport retitled this revision from [KCM] Add color state probe to allow system settings to display current default state to [KCM][WIP] Add KCModuleData .Apr 15 2020, 4:35 PM
bport edited the summary of this revision. (Show Details)
ervin requested changes to this revision.Apr 21 2020, 6:37 PM

Only a small thing left I think

kcms/cursortheme/cursorthemedata.h
33

Needs a cleanup I guess

This revision now requires changes to proceed.Apr 21 2020, 6:37 PM

+1 for a simple base class so we can avoid so much boilerplate