Skip to content

Commit

Permalink
enabled call to render() in zoomToSelected and made icon size in lege…
Browse files Browse the repository at this point in the history
…nd smaller

git-svn-id: http://svn.osgeo.org/qgis/trunk@4709 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 20, 2006
1 parent 1c9ab36 commit 4db3471
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsmapcanvas.cpp
Expand Up @@ -1219,7 +1219,7 @@ void QgsMapCanvas::zoomToSelected()
clear();
// For Qt4, deprecate direct calling of render(). Let render() be called by the
// paint event loop of this widget.
// render();
render();
update();
return;
}
Expand Down
9 changes: 7 additions & 2 deletions src/legend/qgslegend.cpp
Expand Up @@ -66,7 +66,7 @@ QgsLegend::QgsLegend(QgisApp* app, QWidget * parent, const char *name)
QFont f("Arial", 10, QFont::Normal);
setFont(f);
setBackgroundColor(QColor(192, 192, 192));
setIconSize(QSize(30, 30));
//setIconSize(QSize(30, 30));
setColumnCount(1);
QStringList myList("Layers");
setHeaderLabels(myList);
Expand Down Expand Up @@ -870,7 +870,12 @@ bool QgsLegend::readXML(QDomNode& legendnode)
theLegendLayerFile->setCheckState(0, Qt::Unchecked);
}
blockSignals(false);


//set the layer type icon if this legendlayerfile is the last in the file group
if(child.nextSibling().isNull())
{
static_cast<QgsLegendLayer*>(theLegendLayerFile->parent()->parent())->setLayerTypeIcon();
}
}
}
else if(childelem.tagName()=="filegroup")
Expand Down

0 comments on commit 4db3471

Please sign in to comment.