Skip to content

Commit

Permalink
Merge pull request #8864 from 3nids/qproperty
Browse files Browse the repository at this point in the history
add Q_PROPERTY for QgsCoordinateReferenceSytem::isGeographic and QgsGeometry::isNull
  • Loading branch information
3nids authored Jan 15, 2019
2 parents c885cd7 + 4e31597 commit 97fef53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/geometry/qgsgeometry.h
Original file line number Diff line number Diff line change
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
1 change: 1 addition & 0 deletions src/core/qgscoordinatereferencesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
Q_GADGET

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

public:

Expand Down

0 comments on commit 97fef53

Please sign in to comment.