Skip to content
Permalink
Browse files

Merge pull request #9290 from pblottiere/fix_doc_2

Update doc
  • Loading branch information
pblottiere committed Feb 26, 2019
2 parents 7bcba35 + 3fbda69 commit 1e49bb15431f884fa88537f583523579de4ea4d1
@@ -55,7 +55,7 @@ so the rasterlayer class appends the band number in brackets behind each band na

Sample usage of the QgsRasterLayer class:

In order to automate redrawing of a raster layer, you should like it to a map canvas like this :
In order to automate redrawing of a raster layer, you should link it to a map canvas like this :

Once a layer has been created you can find out what type of layer it is (GrayOrUndefined, Palette or Multiband):

@@ -739,7 +739,7 @@ Receives signal about selection change, and pass it on with layer info

void saveAsImage( const QString &fileName, QPixmap *QPixmap = 0, const QString & = "PNG" );
%Docstring
Save the convtents of the map canvas to disk as an image
Save the contents of the map canvas to disk as an image
%End

void layerStateChange();
@@ -97,7 +97,7 @@ typedef QList < QPair< QString, QColor > > QgsLegendColorList;
* QgsRasterLayer *myRasterLayer = new QgsRasterLayer(myFileNameQString, myBaseNameQString);
* \endcode
*
* In order to automate redrawing of a raster layer, you should like it to a map canvas like this :
* In order to automate redrawing of a raster layer, you should link it to a map canvas like this :
*
* \code{.cpp}
* QObject::connect( myRasterLayer, SIGNAL(repaintRequested()), mapCanvas, SLOT(refresh()) );
@@ -651,7 +651,7 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
//! Receives signal about selection change, and pass it on with layer info
void selectionChangedSlot();

//! Save the convtents of the map canvas to disk as an image
//! Save the contents of the map canvas to disk as an image
void saveAsImage( const QString &fileName, QPixmap *QPixmap = nullptr, const QString & = "PNG" );

//! This slot is connected to the visibility change of one or more layers

0 comments on commit 1e49bb1

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