Skip to content

Commit

Permalink
Adding code example to QgsVectorLayer documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrook committed Apr 12, 2013
1 parent 6bc3749 commit ec2f5c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsvectorlayer.h
Expand Up @@ -153,6 +153,12 @@ struct CORE_EXPORT QgsVectorJoinInfo
* The QgsVectorLayer provides a common interface to the different data types. It also
* manages editing transactions.
*
* Sample usage of the QgsVectorLayer class:
*
* \code
* QString uri = "point?crs=epsg:4326&field=id:integer";
* QgsVectorLayer *scratchLayer = new QgsVectorLayer(uri, "Scratch point layer", "memory");
* \endcode
*
* The main data providers supported by QGis are listed below.
*
Expand Down

0 comments on commit ec2f5c9

Please sign in to comment.