Skip to content
Permalink
Browse files

can create relation reference in a widget (for custom UI forms)

  • Loading branch information
3nids committed Aug 20, 2014
1 parent f9b15d3 commit 68bb52ffe38cab8ca086620f0a48412cd97e8291
@@ -174,7 +174,7 @@ void QgsRelationReferenceWidget::setRelationEditable( bool editable )

void QgsRelationReferenceWidget::setRelatedFeature( const QVariant& value )
{
QgsFeatureId fid = mFidFkMap.key( value );
const QgsFeatureId fid = mFidFkMap.key( value );
if ( mReferencedLayer )
setRelatedFeature( fid );
}
@@ -36,7 +36,9 @@ void QgsRelationReferenceWidgetWrapper::initWidget( QWidget* editor )
{
QgsRelationReferenceWidget* w = dynamic_cast<QgsRelationReferenceWidget*>( editor );
if ( !w )
return;
{
w = new QgsRelationReferenceWidget( editor );
}

mWidget = w;

0 comments on commit 68bb52f

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