mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
python QgsField.__len__() fix; fixes PyQgsMemoryProvider and PyQgsVectorLayer test on platforms with SIP < 4.10.3
This commit is contained in:
parent
f0e6b7564e
commit
e5366b06c6
@ -127,7 +127,13 @@ public:
|
|||||||
void remove( int fieldIdx );
|
void remove( int fieldIdx );
|
||||||
|
|
||||||
bool isEmpty() const;
|
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;
|
int size() const;
|
||||||
//const QgsField& operator[](int i) const;
|
//const QgsField& operator[](int i) const;
|
||||||
//QgsField& operator[](int i);
|
//QgsField& operator[](int i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user