@@ -1070,7 +1070,8 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
1070
1070
int width = ( int )( scale * br.width () );
1071
1071
if ( width <= 0 ) width = height; // should not happen
1072
1072
QPixmap pixmap ( width, height );
1073
- pixmap.fill ( QColor ( 255 , 255 , 255 ) );
1073
+ pixmap.fill ( Qt::transparent );
1074
+ // pixmap.fill( QColor( 255, 255, 255 ) );
1074
1075
QPainter painter ( &pixmap );
1075
1076
painter.setRenderHint ( QPainter::Antialiasing );
1076
1077
@@ -1118,10 +1119,11 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
1118
1119
if ( pixmaps.size () > 2 ) width += plusWidth + 2 * buffer; // +
1119
1120
1120
1121
QPixmap pixmap ( width, height );
1121
- pixmap.fill ( QColor ( 255 , 255 , 255 ) );
1122
+ pixmap.fill ( Qt::transparent );
1123
+ // pixmap.fill( QColor( 255, 255, 255 ) );
1122
1124
QPainter painter ( &pixmap );
1123
1125
1124
- QColor color ( 200 , 200 , 200 );
1126
+ QColor color ( 255 , 255 , 255 );
1125
1127
painter.setBrush ( QBrush ( color ) );
1126
1128
1127
1129
painter.setRenderHint ( QPainter::Antialiasing );
0 commit comments