use even more resizing
ClosedPublic

Authored by sitter on Jun 7 2019, 10:47 AM.

Details

Summary

since the widget by default has no strings in the designer ui file any
state change injects stuff in qlabels and changes the effective size hint.
to deal with this once and for all the three state changes now always
call a new adjustment helper.
the adjustment helper calls adjustSize iff the hintted dimensions are
larger than the effective one. this way we don't shrink the window
when the backtrace is reloaded, but always grow it if needed for the
backtraced state.

CHANGELOG: The Developer Information tab now correctly resizes to fit the content
FIXED-IN: 5.16.1
BUG: 406748
BUGL 403408

Test Plan
  • no cut off widgets when going to dev info tab while bt is generated
  • neither when the bt is loaded
  • doesn't shrink when clicking reload

Diff Detail

Repository
R871 DrKonqi
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter created this revision.Jun 7 2019, 10:47 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJun 7 2019, 10:47 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sitter requested review of this revision.Jun 7 2019, 10:47 AM
sitter edited the summary of this revision. (Show Details)Jun 7 2019, 11:17 AM
mart accepted this revision.Jun 10 2019, 8:53 AM
This revision is now accepted and ready to land.Jun 10 2019, 8:53 AM
This revision was automatically updated to reflect the committed changes.