"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsrelationreferencesearchwidgetwrapper.cpp  (QGIS-final-3_14_15):qgsrelationreferencesearchwidgetwrapper.cpp  (QGIS-final-3_14_16)
skipping to change at line 146 skipping to change at line 146
return true; return true;
} }
void QgsRelationReferenceSearchWidgetWrapper::onValueChanged( const QVariant &va lue ) void QgsRelationReferenceSearchWidgetWrapper::onValueChanged( const QVariant &va lue )
{ {
onValuesChanged( QVariantList() << value ); onValuesChanged( QVariantList() << value );
} }
void QgsRelationReferenceSearchWidgetWrapper::onValuesChanged( const QVariantLis t &values ) void QgsRelationReferenceSearchWidgetWrapper::onValuesChanged( const QVariantLis t &values )
{ {
if ( !values.isEmpty() ) if ( values.isEmpty() )
{ {
clearExpression(); clearExpression();
emit valueCleared(); emit valueCleared();
} }
else else
{ {
QgsSettings settings; QgsSettings settings;
// TODO: adapt for composite keys // TODO: adapt for composite keys
QVariant value = values.at( 0 ); QVariant value = values.at( 0 );
setExpression( value.isNull() ? QgsApplication::nullRepresentation() : value .toString() ); setExpression( value.isNull() ? QgsApplication::nullRepresentation() : value .toString() );
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)