Skip to content
Permalink
Browse files

SIP: add factory for layer()

  • Loading branch information
elpaso committed Jul 8, 2020
1 parent f2858b2 commit 0981644c223e84f6c6ddeaa928a5e3e50d3ae7c0
Showing with 4 additions and 6 deletions.
  1. +2 −3 python/core/auto_generated/qgsdataitem.sip.in
  2. +2 −3 src/core/qgsdataitem.h
@@ -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


@@ -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:

0 comments on commit 0981644

Please sign in to comment.
You can’t perform that action at this time.