Skip to content
Permalink
Browse files

pass nullRepresentation to QgsFilterLineEdit

  • Loading branch information
signedav committed Oct 25, 2018
1 parent d3c861e commit e37f1d11272a3170b2335ea67c5b4d24a54594a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsfeaturelistcombobox.cpp
@@ -51,7 +51,7 @@ QgsFeatureListComboBox::QgsFeatureListComboBox( QWidget *parent )

connect( this, static_cast<void( QgsFeatureListComboBox::* )( int )>( &QgsFeatureListComboBox::currentIndexChanged ), this, &QgsFeatureListComboBox::onCurrentIndexChanged );

mLineEdit = new QgsFilterLineEdit();
mLineEdit = new QgsFilterLineEdit( nullptr, QgsApplication::nullRepresentation() );
mLineEdit->setSelectOnFocus( true );
//set value of combo to null if delete button is pressed
connect( mLineEdit, &QgsFilterLineEdit::cleared, this, [ = ] { if ( allowNull() ) setCurrentIndex( nullIndex() ); } );

0 comments on commit e37f1d1

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