Skip to content
Permalink
Browse files

Make QgsPoint a Q_GADGET

  • Loading branch information
m-kuhn committed Oct 20, 2016
1 parent 64d3c78 commit 80641488e1cd372216a13162ae165606c4b6209a
Showing with 6 additions and 1 deletion.
  1. +1 −1 src/core/CMakeLists.txt
  2. +5 −0 src/core/qgspoint.h
@@ -479,6 +479,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsofflineediting.h
qgsowsconnection.h
qgspluginlayer.h
qgspoint.h
qgspointlocator.h
qgsproject.h
qgsrelationmanager.h
@@ -674,7 +675,6 @@ SET(QGIS_CORE_HDRS
qgspainting.h
qgspallabeling.h
qgspluginlayerregistry.h
qgspoint.h
qgspointlocator.h
qgsproject.h
qgsprojectfiletransform.h
@@ -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()

0 comments on commit 8064148

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