In various cases, we may want some or all grid delegates to have a subtitle. This patch
adds such a capability. In order to make room, the vertical spacing between rows is
slightly increased.
Details
Details
- Reviewers
davidedmundson ndavis - Group Reviewers
VDG Plasma - Commits
- R296:0dda5f9566cf: Add optional subtitle to grid delegate
Apply D25785 and add subtitle: model.followsSystemColors ? i18n("Follows color scheme") : undef to the gridDelegate:
Diff Detail
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.
Comment Actions
Thanks, I'll tweak my patch to use this.
Does the implementation increase the horizontal spacing between delegates even if there are no subtitles present?
Comment Actions
It does, because we can't know in advance whether or not any delegates will set a subtitle. Actually... can we know this?
src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml | ||
---|---|---|
193 | what is the first clause for? |
Comment Actions
Yeah if we could it wouldn't be bad to add a condition.
Although honestly after testing this live I don't really mind the added padding from a visual POV.
There's a content overflow problem in the colors KCM now though:
It's only related to the change in GridViewInternal.qml.
src/qmlcontrols/kcmcontrols/qml/GridDelegate.qml | ||
---|---|---|
81 | This change breaks colors KCM thumbnail size |