Skip to content

Commit

Permalink
Add missing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 18, 2017
1 parent 023ad46 commit 1805a70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/core/layertree/qgslayertreelayer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class QgsLayerTreeLayer : QgsLayerTreeNode


explicit QgsLayerTreeLayer( const QString &layerId, const QString &name = QString(), const QString &source = QString(), const QString &provider = QString() );
%Docstring
Constructor for QgsLayerTreeLayer using weak references to layer ID, name, public source, and provider key.
%End

QString layerId() const;
%Docstring
Expand Down
3 changes: 3 additions & 0 deletions src/core/layertree/qgslayertreelayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class CORE_EXPORT QgsLayerTreeLayer : public QgsLayerTreeNode
QgsLayerTreeLayer( const QgsLayerTreeLayer &other );
#endif

/**
* Constructor for QgsLayerTreeLayer using weak references to layer ID, \a name, public \a source, and \a provider key.
*/
explicit QgsLayerTreeLayer( const QString &layerId, const QString &name = QString(), const QString &source = QString(), const QString &provider = QString() );

QString layerId() const { return mRef.layerId; }
Expand Down

0 comments on commit 1805a70

Please sign in to comment.