Work around 1px empty header area in a horizonal header RTL

The 1px offset qtbase uses there results in a 1px empty header area at the end,
even if it fits perfectly. Don't draw a separator there.
wilder-5.24
Fabian Vogt 5 years ago
parent a480bd3844
commit ac67125685
  1. 5
      kstyle/breezestyle.cpp

@ -5591,8 +5591,9 @@ namespace Breeze
if( horizontal )
{
if( reverseLayout ) painter->drawLine( rect.topRight(), rect.bottomRight() - QPoint( 0, 1 ) );
else painter->drawLine( rect.topLeft(), rect.bottomLeft() - QPoint( 0, 1 ) );
// 26aa20407d in qtbase introduced a 1px empty area in reversed horizontal headers. Ignore it.
if( reverseLayout && rect.width() != 1 ) painter->drawLine( rect.topRight(), rect.bottomRight() - QPoint( 0, 1 ) );
else if ( !reverseLayout ) painter->drawLine( rect.topLeft(), rect.bottomLeft() - QPoint( 0, 1 ) );
} else {

Loading…
Cancel
Save