Skip to content

Commit 52dd890

Browse files
committedJul 12, 2013
Move spacer to end in attribute dialog
1 parent cb35c89 commit 52dd890

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/gui/qgsattributedialog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
159159
//transfers scroll area ownership so no need to call delete
160160
mypOuterLayout->addWidget( mypScrollArea );
161161

162-
QSpacerItem *mypSpacer = new QSpacerItem( 10, 10, QSizePolicy::Fixed, QSizePolicy::Expanding );
163-
mypOuterLayout->addItem( mypSpacer );
164-
165162
QFrame *mypInnerFrame = new QFrame();
166163
mypInnerFrame->setFrameShape( QFrame::NoFrame );
167164
mypInnerFrame->setFrameShadow( QFrame::Plain );
@@ -232,7 +229,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
232229
mypInnerLayout->addWidget( mypLabel, index, 0 );
233230
mypInnerLayout->addWidget( myWidget, index, 1 );
234231
++index;
235-
}
232+
}
236233
}
237234

238235
// 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
242239
if ( widget )
243240
widget->setFocus( Qt::OtherFocusReason );
244241
}
242+
243+
QSpacerItem *mypSpacer = new QSpacerItem( 10, 10, QSizePolicy::Fixed, QSizePolicy::Expanding );
244+
mypInnerLayout->addItem( mypSpacer, mypInnerLayout->rowCount() + 1, 0 );
245245
}
246246
else
247247
{

0 commit comments

Comments
 (0)
Please sign in to comment.