fix QgsAbstractGeometry Q_GADGET position

This commit is contained in:
Denis Rouzaud 2018-05-16 07:31:22 -04:00
parent e8cf8c2f1c
commit 5790bbcad6
2 changed files with 6 additions and 4 deletions

View File

@ -25,9 +25,6 @@ class QgsAbstractGeometry
%TypeHeaderCode
#include "qgsabstractgeometry.h"
%End
public:
static const QMetaObject staticMetaObject;
%ConvertToSubClassCode
if ( qgsgeometry_cast<QgsPoint *>( sipCpp ) != nullptr )
sipType = sipType_QgsPoint;
@ -58,6 +55,9 @@ class QgsAbstractGeometry
else
sipType = 0;
%End
public:
static const QMetaObject staticMetaObject;
public:
enum SegmentationToleranceType

View File

@ -52,7 +52,6 @@ typedef QVector< QVector< QVector< QgsPoint > > > QgsCoordinateSequence;
*/
class CORE_EXPORT QgsAbstractGeometry
{
Q_GADGET
#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
@ -86,6 +85,9 @@ class CORE_EXPORT QgsAbstractGeometry
sipType = 0;
SIP_END
#endif
Q_GADGET
public:
//! Segmentation tolerance as maximum angle or maximum difference between approximation and circle