Skip to content
Permalink
Browse files

set enabled flags of single tableitems

  • Loading branch information
signedav committed Jan 21, 2019
1 parent 6957009 commit ad9613ff0a01c8dda3ffa357996ea072d50ff495
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
@@ -193,6 +193,7 @@ void QgsValueRelationWidgetWrapper::setValue( const QVariant &value )
if ( item )
{
item->setCheckState( checkList.contains( item->data( Qt::UserRole ).toString() ) ? Qt::Checked : Qt::Unchecked );
item->setFlags( mEnabled ? item->flags() | Qt::ItemIsEnabled : item->flags() & ~Qt::ItemIsEnabled );
lastChangedItem = item;
}
}

0 comments on commit ad9613f

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