Skip to content
Permalink
Browse files

pass nullRepresentation to QgsFilterLineEdit

cherry-picked from e37f1d1
  • Loading branch information
signedav committed Oct 25, 2018
1 parent 1777769 commit 9f6198e13636db6a6fb4ab71d3adf34c442e2f5d
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 9f6198e

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