[QGIS Commit] r14585 - trunk/qgis/src/plugins/grass
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Nov 13 06:26:45 EST 2010
Author: pcav
Date: 2010-11-13 03:26:44 -0800 (Sat, 13 Nov 2010)
New Revision: 14585
Modified:
trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
Improving the appearance of GRASS toolbox - take 1
Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp 2010-11-13 11:15:40 UTC (rev 14584)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp 2010-11-13 11:26:44 UTC (rev 14585)
@@ -1070,7 +1070,8 @@
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 @@
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 );
More information about the QGIS-commit
mailing list