KSqueezedTextLabel: Respect indent, margin and frame width

Authored by rkflx on Aug 9 2017, 9:13 PM.

Description

KSqueezedTextLabel: Respect indent, margin and frame width

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.

Depends on D7163

Test Plan: Previously expect-failing autotests now pass.

Reviewers: Frameworks, cfeck, dhaumann

Reviewed By: dhaumann

Subscribers: cfeck, dhaumann

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D7164

Details

Committed
rkflxSep 10 2017, 7:10 PM
Reviewer
dhaumann
Differential Revision
D7164: KSqueezedTextLabel: Respect indent, margin and frame width
Parents
R236:ee67903f1369: KSqueezedTextLabel: Add several autotests
Branches
Unknown
Tags
Unknown