mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Use full height on attribute form with drag and drop layout
And fix some file permission issues
This commit is contained in:
parent
316210d622
commit
e66dd998d6
0
python/gui/qgscolorswatchgrid.sip
Executable file → Normal file
0
python/gui/qgscolorswatchgrid.sip
Executable file → Normal file
0
python/gui/qgscolorwidgets.sip
Executable file → Normal file
0
python/gui/qgscolorwidgets.sip
Executable file → Normal file
@ -387,7 +387,7 @@ void QgsAttributeForm::init()
|
||||
// Tab layout
|
||||
if ( !formWidget && mLayer->editorLayout() == QgsVectorLayer::TabLayout )
|
||||
{
|
||||
QTabWidget* tabWidget = new QTabWidget( this );
|
||||
QTabWidget* tabWidget = new QTabWidget();
|
||||
layout()->addWidget( tabWidget );
|
||||
|
||||
Q_FOREACH ( QgsAttributeEditorElement *widgDef, mLayer->attributeEditorElements() )
|
||||
@ -395,7 +395,8 @@ void QgsAttributeForm::init()
|
||||
QWidget* tabPage = new QWidget( tabWidget );
|
||||
|
||||
tabWidget->addTab( tabPage, widgDef->name() );
|
||||
QGridLayout *tabPageLayout = new QGridLayout( tabPage );
|
||||
QGridLayout* tabPageLayout = new QGridLayout();
|
||||
tabPage->setLayout( tabPageLayout );
|
||||
|
||||
if ( widgDef->type() == QgsAttributeEditorElement::AeTypeContainer )
|
||||
{
|
||||
@ -645,7 +646,7 @@ QWidget* QgsAttributeForm::createWidgetFromDef( const QgsAttributeEditorElement
|
||||
newWidget = scrollArea;
|
||||
}
|
||||
|
||||
QGridLayout* gbLayout = new QGridLayout( myContainer );
|
||||
QGridLayout* gbLayout = new QGridLayout();
|
||||
myContainer->setLayout( gbLayout );
|
||||
|
||||
int index = 0;
|
||||
@ -680,7 +681,9 @@ QWidget* QgsAttributeForm::createWidgetFromDef( const QgsAttributeEditorElement
|
||||
|
||||
++index;
|
||||
}
|
||||
gbLayout->addItem( new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding ), index, 0 );
|
||||
QWidget* spacer = new QWidget();
|
||||
spacer->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
|
||||
gbLayout->addWidget( spacer, index, 0 );
|
||||
|
||||
labelText = QString::null;
|
||||
labelOnTop = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user