mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
Layout
This commit is contained in:
parent
430124498d
commit
b9bfaf5c49
@ -920,31 +920,31 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa
|
|||||||
twWFSLayers->setCellWidget( j, 2, psb );
|
twWFSLayers->setCellWidget( j, 2, psb );
|
||||||
|
|
||||||
QCheckBox *cbu = new QCheckBox();
|
QCheckBox *cbu = new QCheckBox();
|
||||||
cbu->setEnabled(false);
|
cbu->setEnabled( false );
|
||||||
if ( ( provider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues ) )
|
if ( ( provider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues ) )
|
||||||
{
|
{
|
||||||
if ( ! currentLayer->isSpatial() or ( provider->capabilities() & QgsVectorDataProvider::ChangeGeometries ) )
|
if ( ! currentLayer->isSpatial() or ( provider->capabilities() & QgsVectorDataProvider::ChangeGeometries ) )
|
||||||
{
|
{
|
||||||
cbu->setEnabled(true);
|
cbu->setEnabled( true );
|
||||||
cbu->setChecked( wfstUpdateLayerIdList.contains( currentLayer->id() ) );
|
cbu->setChecked( wfstUpdateLayerIdList.contains( currentLayer->id() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
twWFSLayers->setCellWidget( j, 3, cbu );
|
twWFSLayers->setCellWidget( j, 3, cbu );
|
||||||
|
|
||||||
QCheckBox *cbi = new QCheckBox();
|
QCheckBox *cbi = new QCheckBox();
|
||||||
cbi->setEnabled(false);
|
cbi->setEnabled( false );
|
||||||
if ( ( provider->capabilities() & QgsVectorDataProvider::AddFeatures ) )
|
if ( ( provider->capabilities() & QgsVectorDataProvider::AddFeatures ) )
|
||||||
{
|
{
|
||||||
cbi->setEnabled(true);
|
cbi->setEnabled( true );
|
||||||
cbi->setChecked( wfstInsertLayerIdList.contains( currentLayer->id() ) );
|
cbi->setChecked( wfstInsertLayerIdList.contains( currentLayer->id() ) );
|
||||||
}
|
}
|
||||||
twWFSLayers->setCellWidget( j, 4, cbi );
|
twWFSLayers->setCellWidget( j, 4, cbi );
|
||||||
|
|
||||||
QCheckBox *cbd = new QCheckBox();
|
QCheckBox *cbd = new QCheckBox();
|
||||||
cbd->setEnabled(false);
|
cbd->setEnabled( false );
|
||||||
if ( ( provider->capabilities() & QgsVectorDataProvider::DeleteFeatures ) )
|
if ( ( provider->capabilities() & QgsVectorDataProvider::DeleteFeatures ) )
|
||||||
{
|
{
|
||||||
cbd->setEnabled(true);
|
cbd->setEnabled( true );
|
||||||
cbd->setChecked( wfstDeleteLayerIdList.contains( currentLayer->id() ) );
|
cbd->setChecked( wfstDeleteLayerIdList.contains( currentLayer->id() ) );
|
||||||
}
|
}
|
||||||
twWFSLayers->setCellWidget( j, 5, cbd );
|
twWFSLayers->setCellWidget( j, 5, cbd );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user