Skip to content

Commit

Permalink
Make the map layer type a property
Browse files Browse the repository at this point in the history
makes it available from QML
  • Loading branch information
m-kuhn committed Aug 8, 2020
1 parent 2b3b88c commit bafd380
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsmaplayer.h
Expand Up @@ -87,6 +87,7 @@ class CORE_EXPORT QgsMapLayer : public QObject
Q_PROPERTY( int autoRefreshInterval READ autoRefreshInterval WRITE setAutoRefreshInterval NOTIFY autoRefreshIntervalChanged )
Q_PROPERTY( QgsLayerMetadata metadata READ metadata WRITE setMetadata NOTIFY metadataChanged )
Q_PROPERTY( QgsCoordinateReferenceSystem crs READ crs WRITE setCrs NOTIFY crsChanged )
Q_PROPERTY( QgsMapLayerType type READ type CONSTANT )

#ifdef SIP_RUN
SIP_CONVERT_TO_SUBCLASS_CODE
Expand Down

0 comments on commit bafd380

Please sign in to comment.