ScrollViewKCM
ClosedPublic

Authored by mart on Apr 25 2018, 8:50 AM.

Details

Reviewers
hein
Group Reviewers
Plasma
Commits
R296:c175bbfc8861: ScrollViewKCM
Summary

ScrollViewKCM component to be used when a kcm has a main component which is a generic scrollview
margins are now in charge of the kcm's qml intead of the outer widget

Test Plan

made it work with the language kcm

Diff Detail

Repository
R296 KDeclarative
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.Apr 25 2018, 8:50 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 25 2018, 8:50 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
mart requested review of this revision.Apr 25 2018, 8:50 AM
hein added a subscriber: hein.Apr 25 2018, 10:06 AM

Does the magic pixel size number for the padding get scaled correctly on hidpi?

And where does System Settings have the magic pixel number from - is it hardcoded there as well or is it a QStyle thing that could change with the style engine?

Could System Settings inject the magic number as a context prop?

mart added a comment.Apr 25 2018, 12:45 PM
In D12512#253498, @hein wrote:

Does the magic pixel size number for the padding get scaled correctly on hidpi?

on the current way we have to scale in the kcm yes, it will be scaled

And where does System Settings have the magic pixel number from - is it hardcoded there as well or is it a QStyle thing that could change with the style engine?

yeah, qstyle pixelmetric i fear...

Could System Settings inject the magic number as a context prop?

not really systemsettings doesn't have any access to the kcm engine

hein added a comment.Apr 25 2018, 1:24 PM

It looks good otherwise and I really want to accept this so I can progress on the Language KCM, but this magic value thing gives me a headache. It's going to break with other QStyles with a different value. We need some sort of fix for that ...

mart updated this revision to Diff 33111.Apr 25 2018, 10:23 PM
  • use paddings from Control
hein accepted this revision.Apr 26 2018, 10:40 AM
This revision is now accepted and ready to land.Apr 26 2018, 10:40 AM
This revision was automatically updated to reflect the committed changes.