Make the FileMetadataWidget stretch vertically in a sensible way
ClosedPublic

Authored by bruns on Apr 18 2019, 2:59 PM.

Details

Summary

When the widget size is larger than the required size, the QGridLayout
distributes the extra space evenly between rows, leading awkward blank
areas between rows.
Though this can be avoided by wrapping the widget into e.g. a VBoxLayout
with a spacer at the bottom it leads to unnecessarily complicated
layouts where the widget is used.
It is much simpler to just insert a spacer as the last row in the
QGridLayout.

Depends on D20524

Diff Detail

Repository
R824 Baloo Widgets
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Apr 18 2019, 2:59 PM
Restricted Application added a project: Baloo. · View Herald TranscriptApr 18 2019, 2:59 PM
bruns requested review of this revision.Apr 18 2019, 2:59 PM
bruns edited the summary of this revision. (Show Details)Apr 18 2019, 3:01 PM
bruns retitled this revision from Make the FileMetadataWidget vertical stretch in a sensible way to Make the FileMetadataWidget stretch vertically in a sensible way.
ngraham accepted this revision.Apr 18 2019, 7:55 PM
This revision is now accepted and ready to land.Apr 18 2019, 7:55 PM
This revision was automatically updated to reflect the committed changes.