Skip to content

Commit

Permalink
fix #2236
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12392 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Dec 10, 2009
1 parent 0c5ea3a commit e4ee39f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -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 )
Expand All @@ -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() ) );
Expand Down

0 comments on commit e4ee39f

Please sign in to comment.