use hard-coded iconscale for menu button, and fixed centering to match oxygen windeco

svn path=/trunk/KDE/kdebase/workspace/; revision=1016858
icc-effect-5.14.5
Hugo Pereira Da Costa 2009-08-29 05:39:55 +00:00
parent f17068e815
commit f825e35471
1 changed files with 2 additions and 5 deletions

View File

@ -168,12 +168,9 @@ namespace Nitrogen
if (type_ == ButtonMenu)
{
// we paint the mini icon using 0.72xbuttonsize() as a scale
// this roughtly corresponds to 16 for default button size
double scale = 0.72;
const QPixmap& pixmap( client_.icon().pixmap( scale*width() ) );
const QPixmap& pixmap( client_.icon().pixmap( client_.configuration().iconScale() ) );
double offset = 0.5*(width()-pixmap.width() );
painter.drawPixmap(offset, offset, pixmap );
painter.drawPixmap(offset, offset-1, pixmap );
return;
}