Use QFormLayout for sliders
ClosedPublic

Authored by volkov on May 16 2017, 2:10 PM.

Details

Summary

QFormLayout is more natural for label/widget pairs and allows
to have uniform label alignment in different styles.

Diff Detail

Repository
R100 KGamma
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
volkov created this revision.May 16 2017, 2:10 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMay 16 2017, 2:10 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.May 16 2017, 11:42 PM
davidedmundson added a subscriber: davidedmundson.

well that's a billion times cleaner.

kcmkgamma/kgamma.cpp
243

look at addItem()

you can add a proper spacer that way.

This revision is now accepted and ready to land.May 16 2017, 11:42 PM
volkov updated this revision to Diff 14627.May 17 2017, 10:19 AM

use QSpacerItem instead of QWidget for spacing

This revision was automatically updated to reflect the committed changes.