Expose QgsCoordinateReferenceSystem to QML

This commit is contained in:
Matthias Kuhn 2016-08-30 16:07:42 +02:00
parent 15dd29564c
commit d6a4ab1c0b
2 changed files with 4 additions and 2 deletions

View File

@ -449,6 +449,7 @@ SET(QGIS_CORE_MOC_HDRS
qgsapplication.h
qgsbrowsermodel.h
qgscontexthelp.h
qgscoordinatereferencesystem.h
qgscredentials.h
qgsdataitem.h
qgsdataprovider.h
@ -616,7 +617,6 @@ SET(QGIS_CORE_HDRS
qgsconnectionpool.h
qgscontexthelp.h
qgsconditionalstyle.h
qgscoordinatereferencesystem.h
qgscoordinatetransform.h
qgscoordinateutils.h
qgscrscache.h

View File

@ -184,6 +184,8 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem& );
*/
class CORE_EXPORT QgsCoordinateReferenceSystem
{
Q_GADGET
public:
//! Enumeration of types of IDs accepted in createFromId() method
@ -246,7 +248,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
* @returns matching CRS, or an invalid CRS if string could not be matched
* @note added in QGIS 3.0
*/
static QgsCoordinateReferenceSystem fromEpsgId( long epsg );
Q_INVOKABLE static QgsCoordinateReferenceSystem fromEpsgId( long epsg );
/** Creates a CRS from a proj4 style formatted string.
* @param proj4 proj4 format string