Skip to content
Permalink
Browse files

added description of native types to memory provider (to allow adding…

… columns in GUI)

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13334 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Apr 20, 2010
1 parent 9516c3a commit 38ff0804baaae827e84378270c20ac538dcc454a
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/providers/memory/qgsmemoryprovider.cpp
@@ -47,6 +47,12 @@ QgsMemoryProvider::QgsMemoryProvider( QString uri )
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()

0 comments on commit 38ff080

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