Skip to content

Commit

Permalink
use Q_PROPERTY instead of Q_INVOKABLE for QgsGeometry::isNull
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 15, 2019
1 parent 63a3445 commit 683dbff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/geometry/qgsgeometry.h
Expand Up @@ -106,6 +106,8 @@ struct QgsGeometryPrivate;
class CORE_EXPORT QgsGeometry
{
Q_GADGET
Q_PROPERTY( bool isNull READ isNull )

public:

/**
Expand Down Expand Up @@ -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 );
Expand Down

0 comments on commit 683dbff

Please sign in to comment.