Skip to content

Commit

Permalink
SIP: add factory for layer()
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jul 8, 2020
1 parent f2858b2 commit 0981644
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions python/core/auto_generated/qgsdataitem.sip.in
Expand Up @@ -957,10 +957,9 @@ Returns the table name
Returns the connection URI
%End

QgsVectorLayer *layer();
QgsVectorLayer *layer() /Factory/;
%Docstring
Creates and returns a (possibly NULL) layer instance
from the connection URI and schema/table information
Creates and returns a (possibly NULL) layer from the connection URI and schema/table information
%End


Expand Down
5 changes: 2 additions & 3 deletions src/core/qgsdataitem.h
Expand Up @@ -949,10 +949,9 @@ class CORE_EXPORT QgsFieldsItem : public QgsDataItem
QString connectionUri() const;

/**
* Creates and returns a (possibly NULL) layer instance
* from the connection URI and schema/table information
* Creates and returns a (possibly NULL) layer from the connection URI and schema/table information
*/
QgsVectorLayer *layer();
QgsVectorLayer *layer() SIP_FACTORY;


private:
Expand Down

0 comments on commit 0981644

Please sign in to comment.