[QGIS Commit] r13334 - trunk/qgis/src/providers/memory

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Apr 20 09:51:25 EDT 2010


Author: wonder
Date: 2010-04-20 09:51:23 -0400 (Tue, 20 Apr 2010)
New Revision: 13334

Modified:
   trunk/qgis/src/providers/memory/qgsmemoryprovider.cpp
Log:
added description of native types to memory provider (to allow adding columns in GUI)


Modified: trunk/qgis/src/providers/memory/qgsmemoryprovider.cpp
===================================================================
--- trunk/qgis/src/providers/memory/qgsmemoryprovider.cpp	2010-04-20 12:25:42 UTC (rev 13333)
+++ trunk/qgis/src/providers/memory/qgsmemoryprovider.cpp	2010-04-20 13:51:23 UTC (rev 13334)
@@ -47,6 +47,12 @@
     mWkbType = QGis::WKBUnknown;
 
   mNextFeatureId = 1;
+
+  mNativeTypes
+  << QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "integer", QVariant::Int, 1, 10 )
+  << QgsVectorDataProvider::NativeType( tr( "Decimal number (real)" ), "double", QVariant::Double, 1, 20, 0, 5 )
+  << QgsVectorDataProvider::NativeType( tr( "Text (string)" ), "string", QVariant::String, 1, 255 )
+  ;
 }
 
 QgsMemoryProvider::~QgsMemoryProvider()



More information about the QGIS-commit mailing list