As long as the inactive window font can't be configured, use the active window

font for inactive windows too.

svn path=/trunk/kdebase/kwin/; revision=69261
This commit is contained in:
Wilco Greven 2000-10-29 10:19:23 +00:00
parent c00caa16d8
commit ff6b3156c4

View file

@ -737,8 +737,8 @@ void KDEClient::paintEvent( QPaintEvent* )
options->color(Options::TitleBar, false)); options->color(Options::TitleBar, false));
} }
r = titlebar->geometry(); r = titlebar->geometry();
QFontMetrics fm(options->font(false)); QFontMetrics fm(options->font(true)); // font(false) doesn't work yet.
p.setFont(options->font(false)); p.setFont(options->font(true));
p.setPen(options->color(Options::Font, false)); p.setPen(options->color(Options::Font, false));
p.drawText(r.x(), r.y(), r.width(), r.height()-1, p.drawText(r.x(), r.y(), r.width(), r.height()-1,
AlignLeft, caption() ); AlignLeft, caption() );