use fontMetrics.height() rather than boundingRect(...).height()

the height of the title bar should not depend on the caption content.

CCBUG: 380391
wilder-pre-rebase
Hugo Pereira Da Costa 9 years ago
parent 1fe4c5edf8
commit 2cc0f8ba2d
  1. 2
      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

Loading…
Cancel
Save