Skip to content
Permalink
Browse files

Merge pull request #8864 from 3nids/qproperty

add Q_PROPERTY for QgsCoordinateReferenceSytem::isGeographic and QgsGeometry::isNull
  • Loading branch information
3nids committed Jan 15, 2019
2 parents c885cd7 + 4e31597 commit 97fef536ea42426d884da7631859f03c238f7423
Showing with 4 additions and 1 deletion.
  1. +3 −1 src/core/geometry/qgsgeometry.h
  2. +1 −0 src/core/qgscoordinatereferencesystem.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 );
@@ -191,6 +191,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
Q_GADGET

Q_PROPERTY( QgsUnitTypes::DistanceUnit mapUnits READ mapUnits )
Q_PROPERTY( bool isGeographic READ isGeographic )

public:

0 comments on commit 97fef53

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