D7164: KSqueezedTextLabel: Respect indent, margin and frame width

Henrik F. noreply at phabricator.kde.org
Sun Aug 6 12:35:04 UTC 2017


rkflx created this revision.
Restricted Application added a project: Frameworks.

REVISION SUMMARY
  Text could display cut off when setting indent, margin and/or frame of
  the label. On top of that, even when following the size hint to display
  the complete text, text could be elided.
  
  This is fixed by taking all chrome into account when determining elision
  width and when returning the size hint. For this, the relevant
  implementation from QLabel is used. In addition, reimplemented setter
  functions ensure dynamic updating of the squeezed text.
  
  Depends on https://phabricator.kde.org/D7163

TEST PLAN
  Previously expect-failing autotests now pass.

REPOSITORY
  R236 KWidgetsAddons

BRANCH
  master

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

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

To: rkflx, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170806/84a678ed/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list