From a2091e91aff68500fb7d64a6bb4e6599c710a1d4 Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Mon, 21 May 2001 23:51:02 +0000 Subject: [PATCH] Center window titles vertically. Especially usefull when using large fonts. - AlignLeft, caption() ); + AlignLeft|AlignVCenter, caption() ); svn path=/trunk/kdebase/kwin/; revision=98182 --- default/kdedefault.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/default/kdedefault.cpp b/default/kdedefault.cpp index 0bc7e6d949..ce574c5626 100644 --- a/default/kdedefault.cpp +++ b/default/kdedefault.cpp @@ -757,7 +757,7 @@ void KDEClient::paintEvent( QPaintEvent* ) p.setFont(options->font(true)); p.setPen(options->color(Options::Font, true)); p.drawText(r.x(), r.y(), r.width(), r.height()-1, - AlignLeft, caption() ); + AlignLeft|AlignVCenter, caption() ); p.drawTiledPixmap(r.x()+fm.width(caption()), 2, r.width()-fm.width(caption())-2, r.height(), *titlePix); @@ -778,7 +778,7 @@ void KDEClient::paintEvent( QPaintEvent* ) p.setFont(options->font(true)); p.setPen(options->color(Options::Font, false)); p.drawText(r.x(), r.y(), r.width(), r.height()-1, - AlignLeft, caption() ); + AlignLeft|AlignVCenter, caption() ); } } @@ -930,7 +930,7 @@ void KDEClient::updateActiveBuffer( ) p.setFont(options->font(true)); p.setPen(options->color(Options::Font, true)); p.drawText(r.x(), r.y(), r.width(), r.height()-1, - AlignLeft, caption() ); + AlignLeft|AlignVCenter, caption() ); p.drawTiledPixmap(r.x()+fm.width(caption()), 2, r.width()-fm.width(caption())-2, r.height(), *titlePix);