D7977: KSqueezedTextLabel: Squeeze text when changing indent or margin
Henrik Fehlauer
noreply at phabricator.kde.org
Sun Sep 24 20:24:11 UTC 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170924/f930ee1f/attachment.html>
More information about the Kde-frameworks-devel
mailing list