rkflx created this revision.
rkflx added reviewers: Frameworks, dhaumann, cfeck.
Restricted Application added a project: Frameworks.

REVISION SUMMARY
  When the label is not able to resize in a given layout and calls to
  `setIndent` or `setMargin` further reduce the space available, the text
  should be squeezed. Qt does not send a resize event which would notify
  us to squeeze the text. Therefore, these functions need
  reimplementations adding manual calls to `squeezeTextToLabel`.
  
  This fixes the autotest `testChrome` failing only on the CI (see 
https://phabricator.kde.org/T6982).

TEST PLAN
  - `ksqueezedtextlabelautotest` passes locally and with `xvfb-run -s '-screen 
0 800x600x24'`
  - `abi-compliance-checker` suggests the changes are binary compatible

REPOSITORY
  R236 KWidgetsAddons

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D7977

AFFECTED FILES
  autotests/ksqueezedtextlabelautotest.cpp
  src/ksqueezedtextlabel.cpp
  src/ksqueezedtextlabel.h

To: rkflx, #frameworks, dhaumann, cfeck

Reply via email to