KSqueezedTextLabel: Add isSqueezed() for convenience

Authored by rkflx on Aug 6 2017, 12:30 PM.



More readable than having to check fullText!=text() again and again.

Will be used in upcoming autotests, but should be useful in general.

Diff Detail

R236 KWidgetsAddons
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
rkflx created this revision.Aug 6 2017, 12:30 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 6 2017, 12:30 PM
rkflx edited the summary of this revision. (Show Details)Aug 6 2017, 1:42 PM
dhaumann accepted this revision.Aug 6 2017, 9:20 PM
dhaumann added a subscriber: dhaumann.

A good patch, and adding new non-virtual functions is binary compatible. So this looks good to me.


Suggestion: "and elide mode is set to a value other than Qt::ElideNone" ?

This revision is now accepted and ready to land.Aug 6 2017, 9:20 PM
rkflx updated this revision to Diff 17970.Aug 10 2017, 4:47 PM

Improve wording to be as elegant as suggested by Dominik.

rkflx marked an inline comment as done.Aug 10 2017, 4:49 PM
dhaumann accepted this revision.Aug 22 2017, 8:05 PM

Please commit (also D7161)

This revision was automatically updated to reflect the committed changes.