Fix headerview height when the text contains '\n'

(cherry picked from commit 8556cb4aeb)
wilder-5.24
David Faure 4 years ago
parent caabd5e0eb
commit 9540eac4dd
  1. 2
      kstyle/breezestyle.cpp

@ -3189,7 +3189,7 @@ namespace Breeze
}
// contents height
int contentsHeight( headerOption->fontMetrics.height() );
int contentsHeight( hasText ? textSize.height() : headerOption->fontMetrics.height() );
if( hasIcon ) contentsHeight = qMax( contentsHeight, iconSize.height() );
if( horizontal && headerOption->sortIndicator != QStyleOptionHeader::None )

Loading…
Cancel
Save