Skip to content

Commit

Permalink
Replase some depreciated Qt calls (an attempt to fix ticket #405, but
Browse files Browse the repository at this point in the history
it didn't help).


git-svn-id: http://svn.osgeo.org/qgis/trunk@6143 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Nov 29, 2006
1 parent 4dbe0ad commit 7890dda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/legend/qgslegend.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -1665,7 +1665,7 @@ void QgsLegend::showLegendLayerFileGroups()
theFileGroup = dynamic_cast<QgsLegendLayerFileGroup*>(theItem);
if(theFileGroup)
{
setItemHidden(theFileGroup, !mShowLegendLayerFiles);
theFileGroup->setHidden(!mShowLegendLayerFiles);
}
}
while(theItem = nextItem(theItem));
Expand Down

0 comments on commit 7890dda

Please sign in to comment.