Commit 2cc0f8ba authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa

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

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

CCBUG: 380391
parent 1fe4c5ed
......@@ -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
......
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