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