Commit ac671256 authored by Fabian Vogt's avatar Fabian Vogt

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.
parent a480bd38
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment