From 9540eac4ddbb1ec88b1e59c1908dfdd66efb1097 Mon Sep 17 00:00:00 2001 From: David Faure Date: Wed, 2 Feb 2022 12:55:59 +0100 Subject: [PATCH] Fix headerview height when the text contains '\n' (cherry picked from commit 8556cb4aeb38baed13c57e018d40b4ee57cd5ab1) --- kstyle/breezestyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 7d99f163..c2b76b23 100644 --- a/kstyle/breezestyle.cpp +++ b/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 )