File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ SET(QGIS_CORE_MOC_HDRS
449
449
qgsapplication.h
450
450
qgsbrowsermodel.h
451
451
qgscontexthelp.h
452
+ qgscoordinatereferencesystem.h
452
453
qgscredentials.h
453
454
qgsdataitem.h
454
455
qgsdataprovider.h
@@ -616,7 +617,6 @@ SET(QGIS_CORE_HDRS
616
617
qgsconnectionpool.h
617
618
qgscontexthelp.h
618
619
qgsconditionalstyle.h
619
- qgscoordinatereferencesystem.h
620
620
qgscoordinatetransform.h
621
621
qgscoordinateutils.h
622
622
qgscrscache.h
Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ typedef void ( *CUSTOM_CRS_VALIDATION )( QgsCoordinateReferenceSystem& );
184
184
*/
185
185
class CORE_EXPORT QgsCoordinateReferenceSystem
186
186
{
187
+ Q_GADGET
188
+
187
189
public:
188
190
189
191
// ! Enumeration of types of IDs accepted in createFromId() method
@@ -246,7 +248,7 @@ class CORE_EXPORT QgsCoordinateReferenceSystem
246
248
* @returns matching CRS, or an invalid CRS if string could not be matched
247
249
* @note added in QGIS 3.0
248
250
*/
249
- static QgsCoordinateReferenceSystem fromEpsgId ( long epsg );
251
+ Q_INVOKABLE static QgsCoordinateReferenceSystem fromEpsgId ( long epsg );
250
252
251
253
/* * Creates a CRS from a proj4 style formatted string.
252
254
* @param proj4 proj4 format string
You can’t perform that action at this time.
0 commit comments