diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-05 15:40:03 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-11-08 21:26:52 +0100 |
commit | 2010df52d4c805557255b90da4aaae8c54c443ea (patch) | |
tree | 81772651bf41b836b5b7d693f051bce0494be6e0 /src/corelib/io/qfileinfo_p.h | |
parent | d2c5494c3d5412bfc1dc3e819e88a636407025fc (diff) |
Draw QTableView grid lines centered between table cells
We were reserving space between table cells corresponding to one logical
pixel, which on retina screen results in two device pixels. By drawing
the grid line with a cosmetic pen, we were only filling one of these
pixels, leaving space for leftover pixel dust from earlier blits.
By drawing with a non-cosmetic pen of size 1, and ensuring that the grid
line is drawn at the center of the grid, we end up filling the entire
grid line, without overdrawing the table cells.
Pick-to: 6.2
Change-Id: I7f4d2b27380e5a3d221e265a25f7531fdc4a02b3
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/corelib/io/qfileinfo_p.h')
0 files changed, 0 insertions, 0 deletions