python QgsField.__len__() fix; fixes PyQgsMemoryProvider and PyQgsVectorLayer test on platforms with SIP < 4.10.3

This commit is contained in:
Radim Blazek 2013-04-20 11:19:10 +02:00
parent f0e6b7564e
commit e5366b06c6

View File

@ -127,7 +127,13 @@ public:
void remove( int fieldIdx );
bool isEmpty() const;
int count() const /__len__/;
// __len__ annotation since sip 4.10.3
//int count() const /__len__/;
int count() const;
int __len__() const;
%MethodCode
sipRes = sipCpp->count();
%End
int size() const;
//const QgsField& operator[](int i) const;
//QgsField& operator[](int i);