Navigation Menu

Skip to content

Commit

Permalink
added description of native types to memory provider (to allow adding…
Browse files Browse the repository at this point in the history
… columns in GUI)

git-svn-id: http://svn.osgeo.org/qgis/trunk@13334 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 20, 2010
1 parent 63c295c commit 2854b74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/memory/qgsmemoryprovider.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 2854b74

Please sign in to comment.