Skip to content

Commit

Permalink
Make QgsPoint a Q_GADGET
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 20, 2016
1 parent 64d3c78 commit 8064148
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -479,6 +479,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsofflineediting.h
qgsowsconnection.h
qgspluginlayer.h
qgspoint.h
qgspointlocator.h
qgsproject.h
qgsrelationmanager.h
Expand Down Expand Up @@ -674,7 +675,6 @@ SET(QGIS_CORE_HDRS
qgspainting.h
qgspallabeling.h
qgspluginlayerregistry.h
qgspoint.h
qgspointlocator.h
qgsproject.h
qgsprojectfiletransform.h
Expand Down
5 changes: 5 additions & 0 deletions src/core/qgspoint.h
Expand Up @@ -110,6 +110,11 @@ class CORE_EXPORT QgsVector
*/
class CORE_EXPORT QgsPoint
{
Q_GADGET

Q_PROPERTY( double x READ x WRITE setX )
Q_PROPERTY( double y READ y WRITE setY )

public:
/// Default constructor
QgsPoint()
Expand Down

0 comments on commit 8064148

Please sign in to comment.