Skip to content
Permalink
Browse files

Remove invalid return from API doc, remove some redundant inclusions

  • Loading branch information
nyalldawson committed Aug 2, 2017
1 parent fa1d2be commit 820e3422c81abc80ff4bab756cad1e868969250a
Showing with 2 additions and 10 deletions.
  1. +1 −5 python/core/qgsmaplayer.sip
  2. +1 −5 src/core/qgsmaplayer.h
@@ -90,8 +90,7 @@ Returns the layer's unique ID, which is used to access this layer from QgsProjec

void setName( const QString &name );
%Docstring
Set the display name of the layer
\param name new name for the layer
Set the display ``name`` of the layer.
.. versionadded:: 2.16
.. seealso:: name()
%End
@@ -114,7 +113,6 @@ Returns the layer's unique ID, which is used to access this layer from QgsProjec
QString originalName() const;
%Docstring
Returns the original name of the layer.
:return: the original layer name
:rtype: str
%End

@@ -130,7 +128,6 @@ Returns the layer's unique ID, which is used to access this layer from QgsProjec
%Docstring
Returns the short name of the layer
used by QGIS Server to identify the layer.
:return: the layer short name
.. seealso:: setShortName()
:rtype: str
%End
@@ -139,7 +136,6 @@ Returns the layer's unique ID, which is used to access this layer from QgsProjec
%Docstring
Sets the title of the layer
used by QGIS Server in GetCapabilities request.
:return: the layer title
.. seealso:: title()
%End

@@ -125,8 +125,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
QString id() const;

/**
* Set the display name of the layer
* \param name new name for the layer
* Set the display \a name of the layer.
* \since QGIS 2.16
* \see name()
*/
@@ -150,7 +149,6 @@ class CORE_EXPORT QgsMapLayer : public QObject
virtual const QgsDataProvider *dataProvider() const SIP_SKIP;

/** Returns the original name of the layer.
* \returns the original layer name
*/
QString originalName() const;

@@ -163,14 +161,12 @@ class CORE_EXPORT QgsMapLayer : public QObject

/** Returns the short name of the layer
* used by QGIS Server to identify the layer.
* \returns the layer short name
* \see setShortName()
*/
QString shortName() const { return mShortName; }

/** Sets the title of the layer
* used by QGIS Server in GetCapabilities request.
* \returns the layer title
* \see title()
*/
void setTitle( const QString &title ) { mTitle = title; }

0 comments on commit 820e342

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