Skip to content
Permalink
Browse files

use Q_PROPERTY instead of Q_INVOKABLE for QgsGeometry::isNull

  • Loading branch information
3nids committed Jan 15, 2019
1 parent 63a3445 commit 683dbff8adc0e259a6b0ea646712aaa6e3b445f2
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/geometry/qgsgeometry.h
@@ -106,6 +106,8 @@ struct QgsGeometryPrivate;
class CORE_EXPORT QgsGeometry
{
Q_GADGET
Q_PROPERTY( bool isNull READ isNull )

public:

/**
@@ -207,7 +209,7 @@ class CORE_EXPORT QgsGeometry
* \see isEmpty()
* \since QGIS 2.10
*/
Q_INVOKABLE bool isNull() const;
bool isNull() const;

//! Creates a new geometry from a WKT string
static QgsGeometry fromWkt( const QString &wkt );

0 comments on commit 683dbff

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