mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Improve documentation of QgsRasterLayer constructor
- 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.
This commit is contained in:
parent
51ec333199
commit
2a72eda514
@ -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();
|
||||
|
@ -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
|
||||
*
|
||||
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user