Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix overlapping widgets with dnd designer and toplevel fields
  • Loading branch information
m-kuhn committed Jun 21, 2016
1 parent 679cab2 commit 5a43971
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -1104,6 +1104,7 @@ void QgsAttributeForm::init()
{
tabWidget = new QTabWidget();
layout->addWidget( tabWidget, row, column, 1, 2 );
column += 2;
}

QWidget* tabPage = new QWidget( tabWidget );
Expand Down Expand Up @@ -1136,8 +1137,8 @@ void QgsAttributeForm::init()
{
QVBoxLayout* c = new QVBoxLayout();
label->setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed );
c->layout()->addWidget( label );
c->layout()->addWidget( widgetInfo.widget );
c->addWidget( label );
c->addWidget( widgetInfo.widget );
layout->addLayout( c, row, column, 1, 2 );
column += 2;
}
Expand Down

0 comments on commit 5a43971

Please sign in to comment.