diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-04-18 20:46:37 +0200 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-09-17 14:01:28 +0000 |
commit | 2b177314139b830ca7e2d5bc414131b0dc9fd5b9 (patch) | |
tree | aeb05bc4b855200456eecb4ca5b42431584dfb53 /src/widgets/itemviews/qitemeditorfactory_p.h | |
parent | 46f1061822fa73cc158b21faf260b20eea16d38b (diff) |
QTableView: fix calculating cells to draw
The width of the bitarray which should avoid redraws of already drawn
cells is sometimes calculated with other parameters then the actual
drawing. This can lead to cells which are not drawn.
The reason for the discrepancy is that for the initial calculation the
headers viewport width is taken which can be smaller than the real
width due to a css border. Since all other QHeaderView operations do not
take the border into account the problem arises.
This will not fix the visual glitch (the header separators are not
painted at the same position as the grid) but will at least draw all
needed cells.
Task-number: QTBUG-20316
Change-Id: I4a1e35ee3ea51b1b458ad3497aab0a34af680cb8
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/widgets/itemviews/qitemeditorfactory_p.h')
0 files changed, 0 insertions, 0 deletions