[QGIS Commit] r11200 - trunk/qgis/src/app/legend

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jul 29 08:48:06 EDT 2009


Author: mhugent
Date: 2009-07-29 08:48:05 -0400 (Wed, 29 Jul 2009)
New Revision: 11200

Modified:
   trunk/qgis/src/app/legend/qgslegendsymbologyitem.cpp
Log:
Make symbology items non-selectable (fix for #1439

Modified: trunk/qgis/src/app/legend/qgslegendsymbologyitem.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegendsymbologyitem.cpp	2009-07-29 11:58:00 UTC (rev 11199)
+++ trunk/qgis/src/app/legend/qgslegendsymbologyitem.cpp	2009-07-29 12:48:05 UTC (rev 11200)
@@ -27,6 +27,7 @@
     mLegend( 0 )
 {
   mType = LEGEND_SYMBOL_ITEM;
+  setFlags( Qt::ItemIsEnabled );
 }
 
 QgsLegendSymbologyItem::QgsLegendSymbologyItem( int pixmapWidth, int pixmapHeight )
@@ -36,6 +37,7 @@
     mLegend( 0 )
 {
   mType = LEGEND_SYMBOL_ITEM;
+  setFlags( Qt::ItemIsEnabled );
 }
 
 QgsLegendSymbologyItem::~QgsLegendSymbologyItem()



More information about the QGIS-commit mailing list