Skip to content
Permalink
Browse files

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

  • Loading branch information
m-kuhn committed Aug 3, 2016
1 parent 06a64ac commit 6dbe63fc1ac5cd02c91139a60aa87ed4924eaf2f
Showing with 13 additions and 6 deletions.
  1. +13 −6 src/gui/qgsattributeform.cpp
@@ -1551,15 +1551,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 6dbe63f

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