[QGIS Commit] r12885 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Feb 5 06:49:48 EST 2010


Author: rblazek
Date: 2010-02-05 06:49:47 -0500 (Fri, 05 Feb 2010)
New Revision: 12885

Modified:
   trunk/qgis/src/plugins/grass/qgsgrassbrowser.cpp
   trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
Log:
use GRASS raster provider everywhere

Modified: trunk/qgis/src/plugins/grass/qgsgrassbrowser.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassbrowser.cpp	2010-02-05 08:52:35 UTC (rev 12884)
+++ trunk/qgis/src/plugins/grass/qgsgrassbrowser.cpp	2010-02-05 11:49:47 UTC (rev 12885)
@@ -149,7 +149,9 @@
     if ( type == QgsGrassModel::Raster )
     {
       QgsDebugMsg( QString( "add raster: %1" ).arg( uri ) );
-      mIface->addRasterLayer( uri, map );
+      //mIface->addRasterLayer( uri, map );
+      mIface->addRasterLayer( uri, map, "grassraster", QStringList(), QStringList(),
+                                   QString(), QString() );
       mapSelected = true;
     }
     else if ( type == QgsGrassModel::Vector )

Modified: trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp
===================================================================
--- trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2010-02-05 08:52:35 UTC (rev 12884)
+++ trunk/qgis/src/plugins/grass/qgsgrassmodule.cpp	2010-02-05 11:49:47 UTC (rev 12885)
@@ -1548,7 +1548,9 @@
                   + QgsGrass::getDefaultMapset()
                   + "/cellhd/" + map;
 
-    mIface->addRasterLayer( uri, map );
+    //mIface->addRasterLayer( uri, map );
+    mIface->addRasterLayer( uri, map, "grassraster", QStringList(), QStringList(),
+                                   QString(), QString() );
   }
 }
 



More information about the QGIS-commit mailing list