Skip to content

Commit

Permalink
Add spacer under attributes in autogenerated attribute form
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Sep 30, 2015
1 parent d64a46f commit d6b8b3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,12 @@ void QgsAttributeForm::init()
gridLayout->addWidget( rww->widget(), row++, 0, 1, 2 );
mWidgets.append( rww );
}

if ( QgsProject::instance()->relationManager()->referencedRelations( mLayer ).size() == 0 )
{
QSpacerItem *spacerItem = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
gridLayout->addItem( spacerItem, row++, 0 );
}
}

if ( !mButtonBox )
Expand Down

0 comments on commit d6b8b3c

Please sign in to comment.