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.
Attachments
For Gerrit Dashboard: QTBUG-40315 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
489016,2 | doc: Make docs for ElideNone a bit more precise | dev | qt/qtbase | Status: MERGED | +2 | 0 |
495487,2 | doc: Make docs for ElideNone a bit more precise | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
495488,2 | doc: Make docs for ElideNone a bit more precise | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
495497,2 | doc: Make docs for ElideNone a bit more precise | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
495498,2 | doc: Make docs for ElideNone a bit more precise | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |