SVN_SILENT: comment update, since I convinced Lubos kwin should nicely set palette group, but haven't gotten around to fixing kwin yet :-(

Bah, should've done at least this a long time ago, sorry Lubos.

svn path=/trunk/KDE/kdebase/workspace/; revision=733209
icc-effect-5.14.5
Matthew Woehlke 2007-11-05 21:10:59 +00:00
parent a2a55254c7
commit b60d4e187a
2 changed files with 4 additions and 6 deletions

View File

@ -163,9 +163,8 @@ void OxygenButton::paintEvent(QPaintEvent *)
return;
}
// Set palette to the right group. Lubos disagrees with this being a kwin
// bug, but anyway, we need the palette group to match the current window.
// Since kwin doesn't set it correctly, we have to do it ourselves.
// Set palette to the right group.
// TODO - fix KWin to do this for us :-).
if (client_.isActive())
pal.setCurrentColorGroup(QPalette::Active);
else

View File

@ -251,9 +251,8 @@ void OxygenClient::paintEvent(QPaintEvent *e)
QPalette palette = widget()->palette();
QPainter painter(widget());
// Set palette to the right group. Lubos disagrees with this being a kwin
// bug, but anyway, we need the palette group to match the current window.
// Since kwin doesn't set it correctly, we have to do it ourselves.
// Set palette to the right group.
// TODO - fix KWin to do this for us :-).
if (isActive())
palette.setCurrentColorGroup(QPalette::Active);
else