Skip to content

Commit 4db3471

Browse files
author
mhugent
committedJan 20, 2006
enabled call to render() in zoomToSelected and made icon size in legend smaller
git-svn-id: http://svn.osgeo.org/qgis/trunk@4709 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1c9ab36 commit 4db3471

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
 

‎src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ void QgsMapCanvas::zoomToSelected()
12191219
clear();
12201220
// For Qt4, deprecate direct calling of render(). Let render() be called by the
12211221
// paint event loop of this widget.
1222-
// render();
1222+
render();
12231223
update();
12241224
return;
12251225
}

‎src/legend/qgslegend.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ QgsLegend::QgsLegend(QgisApp* app, QWidget * parent, const char *name)
6666
QFont f("Arial", 10, QFont::Normal);
6767
setFont(f);
6868
setBackgroundColor(QColor(192, 192, 192));
69-
setIconSize(QSize(30, 30));
69+
//setIconSize(QSize(30, 30));
7070
setColumnCount(1);
7171
QStringList myList("Layers");
7272
setHeaderLabels(myList);
@@ -870,7 +870,12 @@ bool QgsLegend::readXML(QDomNode& legendnode)
870870
theLegendLayerFile->setCheckState(0, Qt::Unchecked);
871871
}
872872
blockSignals(false);
873-
873+
874+
//set the layer type icon if this legendlayerfile is the last in the file group
875+
if(child.nextSibling().isNull())
876+
{
877+
static_cast<QgsLegendLayer*>(theLegendLayerFile->parent()->parent())->setLayerTypeIcon();
878+
}
874879
}
875880
}
876881
else if(childelem.tagName()=="filegroup")

0 commit comments

Comments
 (0)
Please sign in to comment.