summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/io.pri
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-09-10 14:02:52 +0200
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-09-22 00:05:53 +0000
commit827d0c023222c58443bd825c6287949a2cc07de7 (patch)
tree95fcc97a4dfa02f102bd4bf37b08f6044e36d220 /src/corelib/io/io.pri
parenta0aad95f5ad1ff044f5e46cf2d3302c42d058f6a (diff)
QLineEdit: Don't include left and right minimum bearing when drawing text
The naturalTextWidth() of the QTextLayout already includes the left and right bearing of the actual text in the line edit, there's no need to shift the text based on the minimum left and right bearings as well. This may result in text that is closer to the edges of the line edit on platforms that relied on this flawed logic, but that should be adjusted back using the corresponding style hints. Change-Id: I1d5edbeda7afe3e69b972841d280eb9e573675f5 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/corelib/io/io.pri')
0 files changed, 0 insertions, 0 deletions