Skip to content

Commit

Permalink
Move spacer to end in attribute dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 12, 2013
1 parent cb35c89 commit 52dd890
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/qgsattributedialog.cpp
Expand Up @@ -159,9 +159,6 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
//transfers scroll area ownership so no need to call delete
mypOuterLayout->addWidget( mypScrollArea );

QSpacerItem *mypSpacer = new QSpacerItem( 10, 10, QSizePolicy::Fixed, QSizePolicy::Expanding );
mypOuterLayout->addItem( mypSpacer );

QFrame *mypInnerFrame = new QFrame();
mypInnerFrame->setFrameShape( QFrame::NoFrame );
mypInnerFrame->setFrameShadow( QFrame::Plain );
Expand Down Expand Up @@ -232,7 +229,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
mypInnerLayout->addWidget( mypLabel, index, 0 );
mypInnerLayout->addWidget( myWidget, index, 1 );
++index;
}
}
}

// Set focus to first widget in list, to help entering data without moving the mouse.
Expand All @@ -242,6 +239,9 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
if ( widget )
widget->setFocus( Qt::OtherFocusReason );
}

QSpacerItem *mypSpacer = new QSpacerItem( 10, 10, QSizePolicy::Fixed, QSizePolicy::Expanding );
mypInnerLayout->addItem( mypSpacer, mypInnerLayout->rowCount() + 1, 0 );
}
else
{
Expand Down

0 comments on commit 52dd890

Please sign in to comment.