Skip to content
Permalink
Browse files
[AttributeForm] always put tab widget content into a scroll area (#44708
)
  • Loading branch information
domi4484 committed Aug 17, 2021
1 parent 72ddc9e commit 6bbb10e64b541f6a763b9b7ce5d161d9dee44574
Showing with 6 additions and 14 deletions.
  1. +6 −14 src/gui/qgsattributeform.cpp
@@ -2094,22 +2094,14 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
{
myContainer = new QWidget();

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

scrollArea->setWidget( myContainer );
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );
widgetName = QStringLiteral( "QScrollArea QWidget" );
scrollArea->setWidget( myContainer );
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );
widgetName = QStringLiteral( "QScrollArea QWidget" );

newWidgetInfo.widget = scrollArea;
}
else
{
newWidgetInfo.widget = myContainer;
widgetName = QStringLiteral( "QWidget" );
}
newWidgetInfo.widget = scrollArea;
}

if ( container->backgroundColor().isValid() )

0 comments on commit 6bbb10e

Please sign in to comment.