Skip to content

Commit

Permalink
make QgsTolerance a Q_GADGET
Browse files Browse the repository at this point in the history
to use Q_ENUM
  • Loading branch information
3nids committed Feb 17, 2018
1 parent 2f385da commit f112350
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/core_auto.sip
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Expand Up @@ -622,6 +622,7 @@ SET(QGIS_CORE_MOC_HDRS
qgssnappingconfig.h
qgssnappingutils.h
qgstaskmanager.h
qgstolerance.h
qgstracer.h
qgstrackedvectorlayertools.h
qgstransaction.h
Expand Down Expand Up @@ -907,7 +908,6 @@ SET(QGIS_CORE_HDRS
qgstextlabelfeature.h
qgstextrenderer.h
qgstextrenderer_p.h
qgstolerance.h
qgstracer.h

qgsvectordataprovider.h
Expand Down
3 changes: 2 additions & 1 deletion src/core/qgstolerance.h
Expand Up @@ -29,7 +29,7 @@ class QgsPointXY;
*/
class CORE_EXPORT QgsTolerance
{

Q_GADGET
public:

/**
Expand All @@ -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.
Expand Down

0 comments on commit f112350

Please sign in to comment.