Skip to content

Commit

Permalink
Gadgetize QgsPointV2
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 2, 2017
1 parent 1067239 commit 164e464
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,8 @@ SET(QGIS_CORE_MOC_HDRS
raster/qgsrasterlayer.h
raster/qgsrasterdataprovider.h

geometry/qgspointv2.h

gps/qgsgpsconnection.h
gps/qgsgpsdetector.h
gps/qgsnmeaconnection.h
Expand Down Expand Up @@ -993,7 +995,6 @@ SET(QGIS_CORE_HDRS
geometry/qgsmultipoint.h
geometry/qgsmultipolygon.h
geometry/qgsmultisurface.h
geometry/qgspointv2.h
geometry/qgspolygon.h
geometry/qgsrectangle.h
geometry/qgsregularpolygon.h
Expand Down
7 changes: 7 additions & 0 deletions src/core/geometry/qgspointv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
*/
class CORE_EXPORT QgsPointV2: public QgsAbstractGeometry
{
Q_GADGET

Q_PROPERTY( double x READ x WRITE setX )
Q_PROPERTY( double y READ y WRITE setY )
Q_PROPERTY( double z READ z WRITE setZ )
Q_PROPERTY( double m READ m WRITE setM )

public:

/** Construct a 2 dimensional point with an initial x and y coordinate.
Expand Down

0 comments on commit 164e464

Please sign in to comment.