@@ -159,9 +159,6 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
159
159
// transfers scroll area ownership so no need to call delete
160
160
mypOuterLayout->addWidget ( mypScrollArea );
161
161
162
- QSpacerItem *mypSpacer = new QSpacerItem ( 10 , 10 , QSizePolicy::Fixed, QSizePolicy::Expanding );
163
- mypOuterLayout->addItem ( mypSpacer );
164
-
165
162
QFrame *mypInnerFrame = new QFrame ();
166
163
mypInnerFrame->setFrameShape ( QFrame::NoFrame );
167
164
mypInnerFrame->setFrameShadow ( QFrame::Plain );
@@ -232,7 +229,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
232
229
mypInnerLayout->addWidget ( mypLabel, index, 0 );
233
230
mypInnerLayout->addWidget ( myWidget, index, 1 );
234
231
++index;
235
- }
232
+ }
236
233
}
237
234
238
235
// Set focus to first widget in list, to help entering data without moving the mouse.
@@ -242,6 +239,9 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
242
239
if ( widget )
243
240
widget->setFocus ( Qt::OtherFocusReason );
244
241
}
242
+
243
+ QSpacerItem *mypSpacer = new QSpacerItem ( 10 , 10 , QSizePolicy::Fixed, QSizePolicy::Expanding );
244
+ mypInnerLayout->addItem ( mypSpacer, mypInnerLayout->rowCount () + 1 , 0 );
245
245
}
246
246
else
247
247
{
0 commit comments