mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Reduced margins on controls in dialog. Removed frame from scroll area
This commit is contained in:
parent
2034d59a2f
commit
cbd275698e
@ -94,12 +94,12 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
|
||||
mDialog->resize( 447, 343 );
|
||||
gridLayout = new QGridLayout( mDialog );
|
||||
gridLayout->setSpacing( 6 );
|
||||
gridLayout->setMargin( 11 );
|
||||
gridLayout->setMargin( 2 );
|
||||
gridLayout->setObjectName( QString::fromUtf8( "gridLayout" ) );
|
||||
mFrame = new QFrame( mDialog );
|
||||
mFrame->setObjectName( QString::fromUtf8( "mFrame" ) );
|
||||
mFrame->setFrameShape( QFrame::StyledPanel );
|
||||
mFrame->setFrameShadow( QFrame::Raised );
|
||||
mFrame->setFrameShape( QFrame::NoFrame );
|
||||
mFrame->setFrameShadow( QFrame::Plain );
|
||||
|
||||
gridLayout->addWidget( mFrame, 0, 0, 1, 1 );
|
||||
|
||||
@ -116,6 +116,8 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
|
||||
|
||||
mFrame->setLayout( mypOuterLayout );
|
||||
QScrollArea *mypScrollArea = new QScrollArea();
|
||||
mypScrollArea->setFrameShape( QFrame::NoFrame );
|
||||
mypScrollArea->setFrameShadow( QFrame::Plain );
|
||||
//transfers scroll area ownership so no need to call delete
|
||||
mypOuterLayout->addWidget( mypScrollArea );
|
||||
QFrame *mypInnerFrame = new QFrame();
|
||||
@ -169,6 +171,7 @@ QgsAttributeDialog::QgsAttributeDialog( QgsVectorLayer *vl, QgsFeature *thepFeat
|
||||
mpWidgets << myWidget;
|
||||
++index;
|
||||
}
|
||||
|
||||
// Set focus to first widget in list, to help entering data without moving the mouse.
|
||||
if ( mpWidgets.size() > 0 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user