path: root/src/corelib/global/qoperatingsystemversion_win.cpp
diff options
authorTor Arne Vestbø <>2021-11-05 15:40:03 +0100
committerTor Arne Vestbø <>2021-11-08 21:26:52 +0100
commit2010df52d4c805557255b90da4aaae8c54c443ea (patch)
tree81772651bf41b836b5b7d693f051bce0494be6e0 /src/corelib/global/qoperatingsystemversion_win.cpp
parentd2c5494c3d5412bfc1dc3e819e88a636407025fc (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 <> Reviewed-by: Timur Pocheptsov <>
Diffstat (limited to 'src/corelib/global/qoperatingsystemversion_win.cpp')
0 files changed, 0 insertions, 0 deletions