Skip to content
Permalink
Browse files

make QgsTolerance a Q_GADGET

to use Q_ENUM
  • Loading branch information
3nids committed Feb 17, 2018
1 parent 2f385da commit f1123501d4b5385951f243c5fe82d9b740e4141f
Showing with 4 additions and 3 deletions.
  1. +1 −1 python/core/core_auto.sip
  2. +1 −1 src/core/CMakeLists.txt
  3. +2 −1 src/core/qgstolerance.h
@@ -115,7 +115,6 @@
%Include qgsstringstatisticalsummary.sip
%Include qgsstringutils.sip
%Include qgstextrenderer.sip
%Include qgstolerance.sip
%Include qgstracer.sip
%Include qgsvectordataprovider.sip
%Include qgsvectorlayercache.sip
@@ -342,6 +341,7 @@
%Include qgsrunprocess.sip
%Include qgssnappingconfig.sip
%Include qgstaskmanager.sip
%Include qgstolerance.sip
%Include qgstrackedvectorlayertools.sip
%Include qgstransaction.sip
%Include qgstransactiongroup.sip
@@ -622,6 +622,7 @@ SET(QGIS_CORE_MOC_HDRS
qgssnappingconfig.h
qgssnappingutils.h
qgstaskmanager.h
qgstolerance.h
qgstracer.h
qgstrackedvectorlayertools.h
qgstransaction.h
@@ -907,7 +908,6 @@ SET(QGIS_CORE_HDRS
qgstextlabelfeature.h
qgstextrenderer.h
qgstextrenderer_p.h
qgstolerance.h
qgstracer.h

qgsvectordataprovider.h
@@ -29,7 +29,7 @@ class QgsPointXY;
*/
class CORE_EXPORT QgsTolerance
{

Q_GADGET
public:

/**
@@ -44,6 +44,7 @@ class CORE_EXPORT QgsTolerance
//! Map (project) units. Added in 2.8
ProjectUnits
};
Q_ENUM( UnitType );

/**
* Static function to get vertex tolerance value.

0 comments on commit f112350

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