Rework InlineMessages to address a number of issues
ClosedPublic

Authored by hein on Apr 25 2018, 1:15 PM.

Details

Summary
  • Rework the reveal animation to work multiple times (previously on Qt 5.10 the content would stay hidden on a second visible=true.
  • Fix height self-adjustment outside of layouts.
  • Fix warning from setting implicitWidth - InlineMessage users should manage always manage the width of InlineMessage (with a layout or any other way).
  • More correct padding around content item (background border width + one small spacing), makes InlineMessage a few px less tall overall.
  • Get rid of a binding loop for height (by no longer using Control. contentItem).
  • Overall simplify code a little bit.

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
hein created this revision.Apr 25 2018, 1:15 PM
Restricted Application added a project: Kirigami. Β· View Herald TranscriptApr 25 2018, 1:15 PM
hein requested review of this revision.Apr 25 2018, 1:15 PM
hein updated this revision to Diff 33066.Apr 25 2018, 1:22 PM

Fix the animating prop

Seems to work well in Kirigami gallery and the KCMs

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

Seems to work well in Kirigami gallery and the KCMs

Gimme a +1 then! πŸ˜›

hein updated this revision to Diff 33069.Apr 25 2018, 1:59 PM

Expand documentation as requested by Marco.

Remove a now-unused bool prop.

mart accepted this revision.Apr 25 2018, 2:09 PM
This revision is now accepted and ready to land.Apr 25 2018, 2:09 PM
This revision was automatically updated to reflect the committed changes.