<table><tr><td style="">amhndu created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />amhndu requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15450">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Change the size policy of IdealToolButton to preferred instead of the<br />
default to allow being shrinked by any layout.<br />
Instead of simply truncating text, elide text while painting.</p>
<p>Items will be shrinked in the IdealButtonBarLayout, instead of<br />
overflowing or trying to use a new line.<br />
Geometries are calculated so that only the bigger will be contracted<br />
while items smaller than a relative threshold won't contract.<br />
Consequently, the window will no longer grow when changing from Debug to Code.</p>
<p>Previously the layout attached to IdealButtonBarWidget was being used to add<br />
buttons, which for the bottom bar meant a super-layout while the<br />
IdealButtonBarLayout added to this super-layout was being ignored.</p>
<p>Left Bar: <a href="https://i.imgur.com/ozslwvB.png" class="remarkup-link" target="_blank" rel="noreferrer">https://i.imgur.com/ozslwvB.png</a><br />
Bottom Bar: <a href="https://i.imgur.com/DtmVE9R.png" class="remarkup-link" target="_blank" rel="noreferrer">https://i.imgur.com/DtmVE9R.png</a><br />
<a href="https://i.imgur.com/RpujIxM.png" class="remarkup-link" target="_blank" rel="noreferrer">https://i.imgur.com/RpujIxM.png</a></p>
<p>BUG: 384711</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>buttonbar-shrink</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15450">https://phabricator.kde.org/D15450</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kdevplatform/sublime/idealbuttonbarwidget.cpp<br />
kdevplatform/sublime/idealbuttonbarwidget.h<br />
kdevplatform/sublime/ideallayout.cpp<br />
kdevplatform/sublime/idealtoolbutton.cpp</div></div></div><br /><div><strong>To: </strong>amhndu<br /><strong>Cc: </strong>kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>