Skip to content
Permalink
Browse files

Replase some depreciated Qt calls (an attempt to fix ticket #405, but

it didn't help).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6143 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Nov 29, 2006
1 parent 7947fc4 commit cdd31154b9cdc920885d2ca24f2d94e9e05fc25e
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/legend/qgslegend.cpp
@@ -524,7 +524,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
//only if qsetting for 'legend layer file visible' is not set
if(!mShowLegendLayerFiles)
{
setItemHidden(llfgroup, true);
llfgroup->setHidden(true);
}

updateMapCanvasLayerSet();
@@ -1051,7 +1051,7 @@ bool QgsLegend::readXML(QDomNode& legendnode)
{
QgsLegendLayerFileGroup* theFileGroup = new QgsLegendLayerFileGroup(lastLayer, "Files");
childelem.attribute("open") == "true" ? expandItem(theFileGroup) : collapseItem(theFileGroup);
childelem.attribute("hidden") == "true" ? setItemHidden(theFileGroup, true) : setItemHidden(theFileGroup, false);
childelem.attribute("hidden") == "true" ? theFileGroup->setHidden(true) : theFileGroup->setHidden(false);
lastLayerFileGroup = theFileGroup;
}
else if(childelem.tagName() == "propertygroup")
@@ -1665,7 +1665,7 @@ void QgsLegend::showLegendLayerFileGroups()
theFileGroup = dynamic_cast<QgsLegendLayerFileGroup*>(theItem);
if(theFileGroup)
{
setItemHidden(theFileGroup, !mShowLegendLayerFiles);
theFileGroup->setHidden(!mShowLegendLayerFiles);
}
}
while(theItem = nextItem(theItem));

0 comments on commit cdd3115

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