Skip to content

Commit 8e68ed8

Browse files
author
mhugent
committed
Make symbology items non-selectable (fix for #1439
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11200 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 356555b commit 8e68ed8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/legend/qgslegendsymbologyitem.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ QgsLegendSymbologyItem::QgsLegendSymbologyItem( QTreeWidgetItem * theItem, QStri
2727
mLegend( 0 )
2828
{
2929
mType = LEGEND_SYMBOL_ITEM;
30+
setFlags( Qt::ItemIsEnabled );
3031
}
3132

3233
QgsLegendSymbologyItem::QgsLegendSymbologyItem( int pixmapWidth, int pixmapHeight )
@@ -36,6 +37,7 @@ QgsLegendSymbologyItem::QgsLegendSymbologyItem( int pixmapWidth, int pixmapHeigh
3637
mLegend( 0 )
3738
{
3839
mType = LEGEND_SYMBOL_ITEM;
40+
setFlags( Qt::ItemIsEnabled );
3941
}
4042

4143
QgsLegendSymbologyItem::~QgsLegendSymbologyItem()

0 commit comments

Comments
 (0)