Backport r988406:

Raise window icon by a single pixel.

svn path=/branches/KDE/4.3/kdebase/workspace/; revision=988407
This commit is contained in:
Lucas Murray 2009-06-28 03:23:54 +00:00
parent 9f24a8951f
commit 2be3875ee2
2 changed files with 2 additions and 2 deletions

View file

@ -209,7 +209,7 @@ void OxygenButton::paintEvent(QPaintEvent *)
{
// we paint the mini icon (which is 16 pixels high)
int dx = (width() - 16) / 2;
int dy = (height() - 16) / 2;
int dy = (height() - 16) / 2 - 1;
painter.drawPixmap(dx, dy, client_.icon().pixmap(16));
return;
}

View file

@ -215,7 +215,7 @@ void OxygenButton::paintEvent(QPaintEvent *)
if (type_ == ButtonMenu) {
// we paint the mini icon (which is 16 pixels high)
int dx = (width() - 16) / 2;
int dy = (height() - 16) / 2;
int dy = (height() - 16) / 2 - 1;
painter.drawPixmap(dx, dy, client_.icon().pixmap(16));
return;
}