From 21adcd401b00ad127a0b9e8ca5866058f5e8ea97 Mon Sep 17 00:00:00 2001 From: Luciano Montanaro Date: Fri, 8 Jun 2007 21:52:46 +0000 Subject: [PATCH] Adjujst again titlebar layout. svn path=/trunk/KDE/kdebase/workspace/; revision=673065 --- clients/b2/b2client.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clients/b2/b2client.cpp b/clients/b2/b2client.cpp index ffdaf30e35..ac202c2b5e 100644 --- a/clients/b2/b2client.cpp +++ b/clients/b2/b2client.cpp @@ -113,7 +113,7 @@ static void read_config(B2ClientFactory *f) { // Force button size to be in a reasonable range. // If the frame width is large, the button size must be large too. - buttonSize = (QFontMetrics(options()->font(true)).height()) & 0x3e; + buttonSize = (QFontMetrics(options()->font(true)).height() + 1) & 0x3e; if (buttonSize < 16) buttonSize = 16; KConfig _conf( "kwinb2rc" ); @@ -440,9 +440,9 @@ void B2Client::init() addButtons("IAX", tips, titlebar, titleLayout); } - titleLayout->addSpacing(3); + titleLayout->addSpacing(2); - QColor c = options()->palette(KDecoration::ColorTitleBar, isActive()).color( QPalette::Active, QPalette::Button ); + QColor c = options()->palette(KDecoration::ColorTitleBar, isActive()).color(QPalette::Active, QPalette::Button); for (int i = 0; i < BtnCount; i++) { if (button[i]) @@ -1436,7 +1436,7 @@ void B2Titlebar::drawTitlebar(QPainter &p, bool state) p.setPen(options()->color(KDecoration::ColorFont, state)); p.setFont(options()->font(state)); t = captionSpacer->geometry(); - p.drawText(t, Qt::AlignLeft | Qt::AlignVCenter, client->caption()); + p.drawText(t, Qt::AlignCenter | Qt::AlignVCenter, client->caption()); } void B2Titlebar::recalcBuffer()