Skip to content
Permalink
Browse files

Expand size of RelationReference when custom .ui is defined with a QW…

…idget

Fix #11698
  • Loading branch information
m-kuhn committed Jan 5, 2015
1 parent 48b1fc6 commit 0afdedeb024b278cfc0db933a0ce3ebdc2cbb6e1
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
@@ -46,6 +46,12 @@ void QgsRelationWidgetWrapper::initWidget( QWidget* editor )
if ( !w )
{
w = new QgsRelationEditorWidget( editor );
w->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
if ( ! editor->layout() )
{
editor->setLayout( new QGridLayout() );
}
editor->layout()->addWidget( w );
}

QgsAttributeEditorContext myContext( QgsAttributeEditorContext( context(), mRelation, QgsAttributeEditorContext::Multiple, QgsAttributeEditorContext::Embed ) );

0 comments on commit 0afdede

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