[QGIS Commit] r14617 - in trunk/qgis/src/plugins/grass: . themes/gis

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Nov 13 15:10:55 EST 2010


Author: brushtyler
Date: 2010-11-13 12:10:55 -0800 (Sat, 13 Nov 2010)
New Revision: 14617

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
   trunk/qgis/src/plugins/grass/qgsgrasstools.cpp
   trunk/qgis/src/plugins/grass/themes/gis/grass_arrow.png
   trunk/qgis/src/plugins/grass/themes/gis/grass_plus.png
Log:
Better png arrow and + sign for GRASS


Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2010-11-13 18:31:14 UTC (rev 14616)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2010-11-13 20:10:55 UTC (rev 14617)
@@ -1144,7 +1144,7 @@
     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; // +
 

Modified: trunk/qgis/src/plugins/grass/qgsgrasstools.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrasstools.cpp	2010-11-13 18:31:14 UTC (rev 14616)
+++ trunk/qgis/src/plugins/grass/qgsgrasstools.cpp	2010-11-13 20:10:55 UTC (rev 14617)
@@ -291,7 +291,7 @@
 
         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 ) );

Modified: trunk/qgis/src/plugins/grass/themes/gis/grass_arrow.png
===================================================================
(Binary files differ)

Modified: trunk/qgis/src/plugins/grass/themes/gis/grass_plus.png
===================================================================
(Binary files differ)



More information about the QGIS-commit mailing list