Skip to content
Permalink
Browse files

Fix overlapping widgets with dnd designer and toplevel fields

  • Loading branch information
m-kuhn committed Jun 21, 2016
1 parent 679cab2 commit 5a4397189cc6a2169b279808776a23dcb5c8b7e4
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/qgsattributeform.cpp
@@ -1104,6 +1104,7 @@ void QgsAttributeForm::init()
{
tabWidget = new QTabWidget();
layout->addWidget( tabWidget, row, column, 1, 2 );
column += 2;
}

QWidget* tabPage = new QWidget( tabWidget );
@@ -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;
}

0 comments on commit 5a43971

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