Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.3.1
-
None
-
Ubuntu Precise (12.04 LTS)
-
e7507d6cb (dev), 6680b8a81 (6.5), b66fc29fb (6.6), 68dcabd58 (tqtc/lts-5.15), 11af8ebb4 (tqtc/lts-6.2)
Description
Issue: QFontMetrics::elidedText(myString, Qt::ElideNone, myWidth) returns myString (i.e., unchanged), even if myString does not fit into myWidth (code works fine with Qt::ElideRight).
Expected return value: truncated myString, so that it just fills myWidth (without ellipsis appended).
Solution: either change/correct the implementation. Or, if this is intentional, please clarify in the documentation that Qt::ElideNone does not only prevent an ellipsis to be appended, but disables string clipping altogether.