Skip to content
Permalink
Browse files

Restore qRegisterMetaType for Q_ENUMed enums

It's odd - because one reason to swap to Q_ENUM is to gain
automatic registration of these types, so it should work
without the manual registration. Might be a SIP binding issue...
  • Loading branch information
nyalldawson committed Aug 29, 2017
1 parent d2fe658 commit b370a39497b9cf2d957630ccf086585fc3c5cd72
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsapplication.cpp
@@ -146,7 +146,9 @@ void QgsApplication::init( QString profileFolder )
qRegisterMetaType<QgsGeometry::Error>( "QgsGeometry::Error" );
qRegisterMetaType<QgsProcessingFeatureSourceDefinition>( "QgsProcessingFeatureSourceDefinition" );
qRegisterMetaType<QgsProcessingOutputLayerDefinition>( "QgsProcessingOutputLayerDefinition" );
qRegisterMetaType<QgsUnitTypes::LayoutUnit>( "QgsUnitTypes::LayoutUnit" );
qRegisterMetaType<QgsFeatureIds>( "QgsFeatureIds" );
qRegisterMetaType<QgsMessageLog::MessageLevel>( "QgsMessageLog::MessageLevel" );

QString prefixPath( getenv( "QGIS_PREFIX_PATH" ) ? getenv( "QGIS_PREFIX_PATH" ) : applicationDirPath() );
// QgsDebugMsg( QString( "prefixPath(): %1" ).arg( prefixPath ) );

0 comments on commit b370a39

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