Skip to content
Permalink
Browse files

make QgsGeometry a Q_GADGET

so Q_ENUM can be used
  • Loading branch information
3nids committed Feb 17, 2018
1 parent 52585cf commit 710beffd53c42c9689be84d3a5f9fc5547499345
Showing with 5 additions and 1 deletion.
  1. +1 −1 src/core/CMakeLists.txt
  2. +4 −0 src/core/geometry/qgsgeometry.h
@@ -669,6 +669,7 @@ SET(QGIS_CORE_MOC_HDRS
raster/qgsrasterlayerrenderer.h

geometry/qgspoint.h
geometry/qgsgeometry.h

geocms/geonode/qgsgeonoderequest.h

@@ -1090,7 +1091,6 @@ SET(QGIS_CORE_HDRS
geometry/qgsgeometryeditutils.h
geometry/qgsgeometryengine.h
geometry/qgsgeometryfactory.h
geometry/qgsgeometry.h
geometry/qgsgeometryutils.h
geometry/qgsgeos.h
geometry/qgsinternalgeometryengine.h
@@ -110,6 +110,7 @@ struct QgsGeometryPrivate;

class CORE_EXPORT QgsGeometry
{
Q_GADGET
public:

/**
@@ -848,6 +849,7 @@ class CORE_EXPORT QgsGeometry
SideLeft = 0, //!< Buffer to left of line
SideRight, //!< Buffer to right of line
};
Q_ENUM( BufferSide );

//! End cap styles for buffers
enum EndCapStyle
@@ -856,6 +858,7 @@ class CORE_EXPORT QgsGeometry
CapFlat, //!< Flat cap (in line with start/end of line)
CapSquare, //!< Square cap (extends past start/end of line by buffer distance)
};
Q_ENUM( EndCapStyle );

//! Join styles for buffers
enum JoinStyle
@@ -864,6 +867,7 @@ class CORE_EXPORT QgsGeometry
JoinStyleMiter, //!< Use mitered joins
JoinStyleBevel, //!< Use beveled joins
};
Q_ENUM( JoinStyle );

/**
* Returns a buffer region around this geometry having the given width and with a specified number

0 comments on commit 710beff

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