Skip to content
Permalink
Browse files

fix #2236

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12392 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 10, 2009
1 parent 6cb23cc commit 2bd8a4be40cac1ec297b8dc741782c53563d4cc1
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/app/qgsprojectproperties.cpp
@@ -232,7 +232,9 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
twi->setData( Qt::UserRole, it.key() );
twIdentifyLayers->setVerticalHeaderItem( i, twi );

twIdentifyLayers->setItem( i, 0, new QTableWidgetItem( currentLayer->name() ) );
twi = new QTableWidgetItem( currentLayer->name() );
twi->setFlags( twi->flags() & ~Qt::ItemIsEditable );
twIdentifyLayers->setItem( i, 0, twi );

QString type;
if ( currentLayer->type() == QgsMapLayer::VectorLayer )
@@ -253,7 +255,9 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas* mapCanvas, QWidget *pa
}
}

twIdentifyLayers->setItem( i, 1, new QTableWidgetItem( type ) );
twi = new QTableWidgetItem( type );
twi->setFlags( twi->flags() & ~Qt::ItemIsEditable );
twIdentifyLayers->setItem( i, 1, twi );

QCheckBox *cb = new QCheckBox();
cb->setChecked( !noIdentifyLayerIdList.contains( currentLayer->getLayerID() ) );

0 comments on commit 2bd8a4b

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