Skip to content

Commit 6f9af58

Browse files
committedMay 28, 2020
ValueMap widget: show unmatched items in ()
Fixes #32756
1 parent 0496ce5 commit 6f9af58

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/gui/editorwidgets/qgsvaluemapwidgetwrapper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,11 @@ void QgsValueMapWidgetWrapper::updateValues( const QVariant &value, const QVaria
7878
v = value.toString();
7979

8080
if ( mComboBox )
81+
{
82+
if ( mComboBox->findData( v ) == -1 )
83+
{
84+
mComboBox->addItem( v.prepend( '(' ).append( ')' ), v );
85+
}
8186
mComboBox->setCurrentIndex( mComboBox->findData( v ) );
87+
}
8288
}

0 commit comments

Comments
 (0)
Please sign in to comment.