Skip to content
Permalink
Browse files

Fix #10527 (put auto-generated layout into scroll area)

  • Loading branch information
wonder-sk committed Jun 12, 2014
1 parent 21f0b4f commit bb21b4a23c3f50e591dd9f4543b2feaa6763d126
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/gui/qgsattributeform.cpp
@@ -351,7 +351,14 @@ void QgsAttributeForm::init()
formWidget = new QWidget( this );
QGridLayout* gridLayout = new QGridLayout( formWidget );
formWidget->setLayout( gridLayout );
layout()->addWidget( formWidget );

// put the form into a scroll area to nicely handle cases with lots of attributes
QScrollArea* scrollArea = new QScrollArea( this );
scrollArea->setWidget( formWidget );
scrollArea->setWidgetResizable( true );
scrollArea->setFrameShape( QFrame::NoFrame );
scrollArea->setFrameShadow( QFrame::Plain );
layout()->addWidget( scrollArea );

int row = 0;
Q_FOREACH( const QgsField& field, mLayer->pendingFields().toList() )

0 comments on commit bb21b4a

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