From 2cc0f8ba2da50ca3efa500ebdcc3655c8d0e47f8 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Tue, 6 Jun 2017 17:46:20 +0200 Subject: [PATCH] use fontMetrics.height() rather than boundingRect(...).height() the height of the title bar should not depend on the caption content. CCBUG: 380391 --- kdecoration/breezedecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdecoration/breezedecoration.cpp b/kdecoration/breezedecoration.cpp index 35421c5e..b1867988 100644 --- a/kdecoration/breezedecoration.cpp +++ b/kdecoration/breezedecoration.cpp @@ -326,7 +326,7 @@ namespace Breeze else { QFontMetrics fm(s->font()); - top += qMax(fm.boundingRect(c->caption()).height(), buttonHeight() ); + top += qMax(fm.height(), buttonHeight() ); // padding below // extra pixel is used for the active window outline