Skip to content
Permalink
Browse files
Value Relation Widget: Save and load "Allow NULL" configuration
Fix #10690
  • Loading branch information
m-kuhn committed Jun 24, 2014
1 parent e75206b commit bbb9700
Showing 1 changed file with 2 additions and 0 deletions.
@@ -52,6 +52,7 @@ QgsEditorWidgetConfig QgsValueRelationWidgetFactory::readConfig( const QDomEleme
cfg.insert( "FilterExpression", configElement.attribute( "FilterExpression" ) );
cfg.insert( "OrderByValue", configElement.attribute( "OrderByValue" ) );
cfg.insert( "AllowMulti", configElement.attribute( "AllowMulti" ) );
cfg.insert( "AllowNull", configElement.attribute( "AllowNull" ) );

return cfg;
}
@@ -68,6 +69,7 @@ void QgsValueRelationWidgetFactory::writeConfig( const QgsEditorWidgetConfig& co
configElement.setAttribute( "FilterExpression", config.value( "FilterExpression" ).toString() );
configElement.setAttribute( "OrderByValue", config.value( "OrderByValue" ).toBool() );
configElement.setAttribute( "AllowMulti", config.value( "AllowMulti" ).toBool() );
configElement.setAttribute( "AllowNull", config.value( "AllowNull" ).toBool() );
}

QString QgsValueRelationWidgetFactory::representValue( QgsVectorLayer* vl, int fieldIdx, const QgsEditorWidgetConfig& config, const QVariant& cache, const QVariant& value ) const

0 comments on commit bbb9700

Please sign in to comment.