<table><tr><td style="">rkflx created this revision.<br />rkflx added reviewers: Frameworks, dhaumann, cfeck.<br />Restricted Application added a project: Frameworks.
</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/D7977" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When the label is not able to resize in a given layout and calls to<br />
<tt style="background: #ebebeb; font-size: 13px;">setIndent</tt> or <tt style="background: #ebebeb; font-size: 13px;">setMargin</tt> further reduce the space available, the text<br />
should be squeezed. Qt does not send a resize event which would notify<br />
us to squeeze the text. Therefore, these functions need<br />
reimplementations adding manual calls to <tt style="background: #ebebeb; font-size: 13px;">squeezeTextToLabel</tt>.</p>

<p>This fixes the autotest <tt style="background: #ebebeb; font-size: 13px;">testChrome</tt> failing only on the CI (see <a href="https://phabricator.kde.org/T6982" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">T6982</a>).</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">ksqueezedtextlabelautotest</tt> passes locally and with <tt style="background: #ebebeb; font-size: 13px;">xvfb-run -s '-screen 0 800x600x24'</tt></li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">abi-compliance-checker</tt> suggests the changes are binary compatible</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R236 KWidgetsAddons</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7977" rel="noreferrer">https://phabricator.kde.org/D7977</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/ksqueezedtextlabelautotest.cpp<br />
src/ksqueezedtextlabel.cpp<br />
src/ksqueezedtextlabel.h</div></div></div><br /><div><strong>To: </strong>rkflx, Frameworks, dhaumann, cfeck<br /></div>