diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-03-25 18:06:31 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-03-26 14:56:57 +0100 |
commit | 5f87fb881383f6170ca2cf82958709b04372aae6 (patch) | |
tree | fc846069b89e228739b80ebfa664d73ad85c87fb /src/gui/kernel | |
parent | b3b51a7665dae78db352ccdeb5f25f0e5df43c09 (diff) |
QLineEdit: Include the horizontal margin in minimumSizeHint
The margin is respected in the sizeHint, but not in the minimumSizeHint.
Since the latter should be the former for a single character (as per the
documentation promising enough space for one character), the margin
calculation needs to be identical.
Adjusting the documentation nevertheless, as there are characters that
won't fit either way. As reported, the permyriad character doesn't fit
even with this fix on macOS, as the core graphics API we are using
doesn't report a glyph-index for U+2031 (so our existing assumption
that 'W' is the widest character is still the best we can do).
Change-Id: I30573960c316cc7b8c9bbe3c3f4c6351792bed36
Fixes: QTBUG-82970
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions