Skip to content
Permalink
Browse files

Don't show scrollbar in embedded drag and drop designer form

  • Loading branch information
m-kuhn committed Aug 4, 2016
1 parent 3fed3cf commit 982eaa5b36309f005d416f7f0d97bfeb867d3285
Showing with 13 additions and 6 deletions.
  1. +13 −6 src/gui/qgsattributeform.cpp
@@ -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();

0 comments on commit 982eaa5

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