Skip to content

Commit

Permalink
Merge pull request #9290 from pblottiere/fix_doc_2
Browse files Browse the repository at this point in the history
Update doc
  • Loading branch information
pblottiere committed Feb 26, 2019
2 parents 7bcba35 + 3fbda69 commit 1e49bb1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/raster/qgsrasterlayer.sip.in
Expand Up @@ -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):

Expand Down
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgsmapcanvas.sip.in
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterlayer.h
Expand Up @@ -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()) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.h
Expand Up @@ -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
Expand Down

0 comments on commit 1e49bb1

Please sign in to comment.