Skip to content

Commit

Permalink
Don't show scrollbar in embedded drag and drop designer form
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 3, 2016
1 parent 90d3c8b commit d01bfd1
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -1548,15 +1548,22 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
}
else
{
QScrollArea *scrollArea = new QScrollArea( parent );
myContainer = new QWidget();

myContainer = new QWidget( scrollArea );
if ( context.formMode() != QgsAttributeEditorContext::Embed )
{
QScrollArea *scrollArea = new QScrollArea( parent );

scrollArea->setWidget( myContainer );
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );
scrollArea->setWidget( myContainer );
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );

newWidgetInfo.widget = scrollArea;
newWidgetInfo.widget = scrollArea;
}
else
{
newWidgetInfo.widget = myContainer;
}
}

QGridLayout* gbLayout = new QGridLayout();
Expand Down

0 comments on commit d01bfd1

Please sign in to comment.