Change the size policy of IdealToolButton to preferred instead of the
default to allow being shrinked by any layout.
Instead of simply truncating text, elide text while painting.
Items will be shrinked in the IdealButtonBarLayout, instead of
overflowing or tryand forcing to use a new linehe window larger.
Geometries are calculated so that only the bigger will be contracted
while items smaller than a relative threshold won't contract.
Consequently, the window will no longer grow when changing from Debug to Code.
Previously the layout attached to IdealButtonBarWidget was being used to add
buttons, which for the bottom bar meant a super-layout while theIdealToolButtons: Instead of simply truncating text, they will elide text while painting.
IdealButtonBarWidget: Previously the layout attached to the object was being used to add
IdealBbuttonBarLayout added to this super-layout was being ignored.
Left Bar: https://i.imgur.com/ozslwvB.pngs, which for the bottom bar meant a super-layout while the
Bottom Bar: https://i.imgur.com/DtmVE9R.pngIdealButtonBarLayout added to this super-layout was being ignored, introduced a new
https://i.imgur.com/RpujIxM.pngmember to use a the proper layout for all orientations.
BUG: 384711