Skip to content

Commit

Permalink
Improve documentation of QgsRasterLayer constructor
Browse files Browse the repository at this point in the history
 - baseName is just passed on to the parent constructor to be the display
   name, use a literal string in the example to avoid misunderstanding.

 - Remove stray bullet.
  • Loading branch information
cjmayo authored and nyalldawson committed Aug 23, 2018
1 parent 51ec333 commit 2a72eda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions python/core/auto_generated/raster/qgsrasterlayer.sip.in
Expand Up @@ -130,8 +130,6 @@ The main tasks carried out by the constructor are:
-Determine whether the layer is gray, paletted or multiband.

-Assign sensible defaults for the red, green, blue and gray bands.

-
%End

~QgsRasterLayer();
Expand Down
5 changes: 1 addition & 4 deletions src/core/raster/qgsrasterlayer.h
Expand Up @@ -93,8 +93,7 @@ typedef QList < QPair< QString, QColor > > QgsLegendColorList;
*
* \code{.cpp}
* QString myFileNameQString = "/path/to/file";
* QFileInfo myFileInfo(myFileNameQString);
* QString myBaseNameQString = myFileInfo.baseName();
* QString myBaseNameQString = "my layer";
* QgsRasterLayer *myRasterLayer = new QgsRasterLayer(myFileNameQString, myBaseNameQString);
* \endcode
*
Expand Down Expand Up @@ -197,8 +196,6 @@ class CORE_EXPORT QgsRasterLayer : public QgsMapLayer
* -Determine whether the layer is gray, paletted or multiband.
*
* -Assign sensible defaults for the red, green, blue and gray bands.
*
* -
* */
explicit QgsRasterLayer( const QString &uri,
const QString &baseName = QString(),
Expand Down

0 comments on commit 2a72eda

Please sign in to comment.