Skip to content
Permalink
Browse files

[relations] Fix autogenerated feature forms

  • Loading branch information
m-kuhn committed Dec 18, 2013
1 parent ffc1aba commit 6dff9e4fa559ee3ac343782a1857e260cb8b314a
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgsattributedialog.cpp
@@ -271,14 +271,14 @@ void QgsAttributeDialog::init()

foreach ( const QgsRelation& relation, relations )
{
QWidget *myWidget = new QWidget();
myWidget->setProperty( "qgisRelation", relation.id() );
myWidget->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
QgsRelationEditorWidget *myWidget = QgsRelationEditorWidget::createRelationEditor( relation, *mFeature, mContext, mDialog );
if ( !myWidget )
continue;

myWidget->setProperty( "qgisRelation", relation.id() );
myWidget->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
mypInnerLayout->addWidget( myWidget, index, 0, 1, 2 );
mypInnerLayout->setRowStretch( index, 1 );
mypInnerLayout->setRowStretch( index, 2 );
++index;
}

0 comments on commit 6dff9e4

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