Skip to content
Permalink
Browse files
PyQIS: subclassing code for QgsDataProvider
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14911 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 14, 2010
1 parent 8655c44 commit 92c220bc53c38aed3dbdd8742000826263db530c
Showing with 16 additions and 0 deletions.
  1. +16 −0 python/core/qgsdataprovider.sip
@@ -5,6 +5,22 @@ class QgsDataProvider : QObject
%TypeHeaderCode
#include <qgsdataprovider.h>
%End

%ConvertToSubClassCode
if (sipCpp->inherits("QgsVectorDataProvider"))
{
sipClass = sipClass_QgsVectorDataProvider;
}
else if (sipCpp->inherits("QgsRasterDataProvider"))
{
sipClass = sipClass_QgsRasterDataProvider;
}
else
{
sipClass = 0;
}
%End


public:

0 comments on commit 92c220b

Please sign in to comment.