Skip to content
Permalink
Browse files

Better png arrow and + sign for GRASS

git-svn-id: http://svn.osgeo.org/qgis/trunk@14617 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Nov 13, 2010
1 parent 1c99de4 commit 10e43de5bf6daf7735134ac5542d4403812f62b0
@@ -1144,7 +1144,7 @@ QPixmap QgsGrassModule::pixmap( QString path, int height )
plusPixmap = QPixmap::fromImage( img );
}

int buffer = 10; // buffer around a sign
int buffer = height/3; // buffer around a sign
if ( pixmaps.size() > 1 ) width += arrowWidth + 2 * buffer; // ->
if ( pixmaps.size() > 2 ) width += plusWidth + 2 * buffer; // +

@@ -291,7 +291,7 @@ void QgsGrassTools::addModules( QTreeWidgetItem *parent, QDomElement &element )

QString path = QgsApplication::pkgDataPath() + "/grass/modules/" + name;
QString label = QgsGrassModule::label( path );
QPixmap pixmap = QgsGrassModule::pixmap( path, 25 );
QPixmap pixmap = QgsGrassModule::pixmap( path, 32 );

item->setText( 0, name + " - " + label );
item->setIcon( 0, QIcon( pixmap ) );
Binary file not shown.
Binary file not shown.

0 comments on commit 10e43de

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