Skip to content

Commit

Permalink
Restore qRegisterMetaType for Q_ENUMed enums
Browse files Browse the repository at this point in the history
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 b370a39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsapplication.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit b370a39

Please sign in to comment.