Skip to content
Permalink
Browse files

Improving the appearance of GRASS toolbox - take 1

git-svn-id: http://svn.osgeo.org/qgis/trunk@14585 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
pcav
pcav committed Nov 13, 2010
1 parent 8665515 commit 68a228b6a5cb06dc8e173e3888c5d729b05fd7d7
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/plugins/grass/qgsgrassmodule.cpp
@@ -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 );

@@ -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 );

0 comments on commit 68a228b

Please sign in to comment.
You can’t perform that action at this time.