Improve drawing of header separators

Fabian Vogt requested to merge work/fixheader into master

This avoids a double wide edges between headers and the surrounding frame. As a side effect this fixes drawing of some separators, like between A and B in the RTL screenshot.

Only downside is that the last separator is now drawn 1px further outside, so doesn't perfectly align with the table in the third screenshot. I only notice that because I was actively looking for it though.

The spreadsheet application is from qtbase's examples, with the window size forced to 631x427 (any smaller would need scrollbars) with gammaray.

Currently built on top of !54 (merged)

Before After
Kate Before Kate After
Kate + Scrollbar Before Kate + Scollbar After
Screenshot_20201118_202732 Screenshot_20201118_202821
Spreadsheet Before LTR Spreadsheet After LTR
Spreadsheet Before RTL Spreadsheet After RTL
Edited by Fabian Vogt

Merge request reports