Skip to content
Permalink
Browse files

Move spacer to end in attribute dialog

  • Loading branch information
NathanW2 committed Jul 12, 2013
1 parent cb35c89 commit 52dd890a6661f196c3de4f15b0d7b9bad52798fb
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgsattributedialog.cpp
@@ -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 );
@@ -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.
@@ -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
{

0 comments on commit 52dd890

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