[QGIS Commit] r12392 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Dec 10 02:59:35 EST 2009


Author: jef
Date: 2009-12-10 02:59:34 -0500 (Thu, 10 Dec 2009)
New Revision: 12392

Modified:
   trunk/qgis/src/app/qgsprojectproperties.cpp
Log:
fix #2236

Modified: trunk/qgis/src/app/qgsprojectproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsprojectproperties.cpp	2009-12-09 21:42:16 UTC (rev 12391)
+++ trunk/qgis/src/app/qgsprojectproperties.cpp	2009-12-10 07:59:34 UTC (rev 12392)
@@ -232,7 +232,9 @@
     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 @@
       }
     }
 
-    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() ) );



More information about the QGIS-commit mailing list