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
This commit is contained in:
parent
a2a55254c7
commit
b60d4e187a
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue