Skip to content
Permalink
Browse files

Add spacer under attributes in autogenerated attribute form

  • Loading branch information
blazek committed Sep 30, 2015
1 parent d64a46f commit d6b8b3c022e1604cb995848019f6a9e675b39494
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsattributeform.cpp
@@ -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 )

0 comments on commit d6b8b3c

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