Skip to content

Commit ad9613f

Browse files
committedJan 21, 2019
set enabled flags of single tableitems
1 parent 6957009 commit ad9613f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ void QgsValueRelationWidgetWrapper::setValue( const QVariant &value )
193193
if ( item )
194194
{
195195
item->setCheckState( checkList.contains( item->data( Qt::UserRole ).toString() ) ? Qt::Checked : Qt::Unchecked );
196+
item->setFlags( mEnabled ? item->flags() | Qt::ItemIsEnabled : item->flags() & ~Qt::ItemIsEnabled );
196197
lastChangedItem = item;
197198
}
198199
}

0 commit comments

Comments
 (0)
Please sign in to comment.