[TabBar] Update height when TabButtons are added dynamically
ClosedPublic

Authored by broulik on Mar 20 2019, 5:04 PM.

Details

Summary

When using a Repeater with an asynchronously populated model TabBar fails to initially get a height.

Test Plan
  • Used a Repeater with ActivitiesModel wired up to a TabBar, previously didn't get a height, now it gets a height
  • KWin decoration KCM (which uses hardcoded TabButtons) still works fine

Diff Detail

Repository
R858 Qt Quick Controls 2: Desktop Style
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Mar 20 2019, 5:04 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 20 2019, 5:04 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Mar 20 2019, 5:04 PM
mart accepted this revision.Apr 24 2019, 9:49 AM

the code looks super weird but yeah, seems needed :)

This revision is now accepted and ready to land.Apr 24 2019, 9:49 AM
This revision was automatically updated to reflect the committed changes.