Skip to content

Commit 6cb7a0a

Browse files
author
pcav
committedNov 13, 2010
Improving the appearance of GRASS toolbox - take 1
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14585 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎src/plugins/grass/qgsgrassmodule.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,8 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
10701070
int width = ( int )( scale * br.width() );
10711071
if ( width <= 0 ) width = height; // should not happen
10721072
QPixmap pixmap( width, height );
1073-
pixmap.fill( QColor( 255, 255, 255 ) );
1073+
pixmap.fill( Qt::transparent );
1074+
//pixmap.fill( QColor( 255, 255, 255 ) );
10741075
QPainter painter( &pixmap );
10751076
painter.setRenderHint( QPainter::Antialiasing );
10761077

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

11201121
QPixmap pixmap( width, height );
1121-
pixmap.fill( QColor( 255, 255, 255 ) );
1122+
pixmap.fill( Qt::transparent );
1123+
//pixmap.fill( QColor( 255, 255, 255 ) );
11221124
QPainter painter( &pixmap );
11231125

1124-
QColor color( 200, 200, 200 );
1126+
QColor color( 255, 255, 255 );
11251127
painter.setBrush( QBrush( color ) );
11261128

11271129
painter.setRenderHint( QPainter::Antialiasing );

0 commit comments

Comments
 (0)
Please sign in to comment.