KCM Fonts port anti aliasing part to KPropertySkeletonItem
ClosedPublic

Authored by bport on Feb 4 2020, 4:32 PM.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 22613
Build 22631: arc lint + arc unit
bport created this revision.Feb 4 2020, 4:32 PM
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 4 2020, 4:32 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
bport requested review of this revision.Feb 4 2020, 4:32 PM
crossi added inline comments.Feb 5 2020, 11:11 AM
kcms/fonts/fonts.cpp
201
antiAliasingItem->isSaveNeeded() ?
kcms/fonts/fontssettingsaa.cpp
154 ↗(On Diff #75000)

static_cast<> instead of c-style cast

Also, you can move closer the declaration of spType

161 ↗(On Diff #75000)

static_cast<> instead of c-style cast

Also, you can move closer the declaration of hStyle

kcms/krdb/krdb.cpp
774 ↗(On Diff #75000)

static_cast<>

788 ↗(On Diff #75000)

static_cast<>

bport updated this revision to Diff 75442.Feb 11 2020, 9:52 AM

Take in consideration Cyril's feedbacks

bport updated this revision to Diff 75446.Feb 11 2020, 10:50 AM

coding style

bport updated this revision to Diff 75465.Feb 11 2020, 12:38 PM

fix coding style

usta added a subscriber: usta.Feb 11 2020, 1:54 PM
usta added inline comments.
kcms/fonts/package/contents/ui/main.qml
242

I am really away from qml thing but are you sure this one correct ? I mean isnt this should be
kcm.dpi instead of kcm.fontsAASettings.dpi ??

bport added inline comments.Feb 11 2020, 2:00 PM
kcms/fonts/package/contents/ui/main.qml
242

No dpi is declared inside fontsAASettings

ervin requested changes to this revision.Feb 11 2020, 2:48 PM
ervin added inline comments.
kcms/fonts/fonts.cpp
131

Please no C cast, use static_cast instead.
Also was a good place to use auto (DRY and all that) ;-)

136

ditto (and no space after *)

kcms/fonts/fontsaasettings.cpp
71

Wrong indentation

225

I'd go for the enums all the way until here of course

kcms/fonts/fontsaasettings.h
36

Why int here and for the next property and not the enum types directly? This would avoid the static_cast in KRDB.

This revision now requires changes to proceed.Feb 11 2020, 2:48 PM
bport updated this revision to Diff 75541.Feb 12 2020, 10:39 AM

Fix reset and default button for Anti Aliasing area (states were ok, but UI values were not updated after clicking them)

depends on https://phabricator.kde.org/D27342

ervin requested changes to this revision.Feb 12 2020, 11:11 AM
ervin added inline comments.
kcms/fonts/fonts.cpp
136

This C cast is unnecessary. Also the * is merely redundant with auto (you can keep it but it's not necessary).

This revision now requires changes to proceed.Feb 12 2020, 11:11 AM
bport updated this revision to Diff 75813.Feb 17 2020, 9:56 AM

Add kconfupdate script to remove unused keys

ervin accepted this revision.Feb 17 2020, 11:50 AM

Looks good to me now, maybe try to get more reviewers before pushing though.

This revision is now accepted and ready to land.Feb 17 2020, 11:50 AM
crossi added inline comments.Feb 17 2020, 1:54 PM
kcms/fonts/fontsaasettings.cpp
306

add space between if and ( please

bport updated this revision to Diff 75844.Feb 17 2020, 4:33 PM

Add missing space

crossi accepted this revision.Feb 17 2020, 4:34 PM
bport marked an inline comment as done.Feb 17 2020, 4:36 PM
meven accepted this revision.Feb 18 2020, 8:21 AM
bport updated this revision to Diff 75890.Feb 18 2020, 8:58 AM

fix build. KRDB can't use Kxftconfig directly so we can't avoid stuff in kdeglobals

meven accepted this revision.Feb 19 2020, 9:35 AM
ervin accepted this revision.Feb 24 2020, 2:52 PM

Seems ready to land

This revision was automatically updated to reflect the committed changes.