Skip to content

Commit

Permalink
Improving the appearance of GRASS toolbox - take 1
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14585 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
pcav committed Nov 13, 2010
1 parent 8665515 commit 68a228b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plugins/grass/qgsgrassmodule.cpp
Expand Up @@ -1070,7 +1070,8 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
int width = ( int )( scale * br.width() );
if ( width <= 0 ) width = height; // should not happen
QPixmap pixmap( width, height );
pixmap.fill( QColor( 255, 255, 255 ) );
pixmap.fill( Qt::transparent );
//pixmap.fill( QColor( 255, 255, 255 ) );
QPainter painter( &pixmap );
painter.setRenderHint( QPainter::Antialiasing );

Expand Down Expand Up @@ -1118,10 +1119,11 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
if ( pixmaps.size() > 2 ) width += plusWidth + 2 * buffer; // +

QPixmap pixmap( width, height );
pixmap.fill( QColor( 255, 255, 255 ) );
pixmap.fill( Qt::transparent );
//pixmap.fill( QColor( 255, 255, 255 ) );
QPainter painter( &pixmap );

QColor color( 200, 200, 200 );
QColor color( 255, 255, 255 );
painter.setBrush( QBrush( color ) );

painter.setRenderHint( QPainter::Antialiasing );
Expand Down

0 comments on commit 68a228b

Please sign in to comment.