mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix for bug #950499; legend now cleared for new projects.
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1382 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
54a1c7ce72
commit
109c18a4f6
@ -283,7 +283,7 @@ QgisApp::QgisApp(QWidget * parent, const char *name, WFlags fl):QgisAppBase(pare
|
||||
connect(mapCanvas, SIGNAL(extentsChanged(QString )),this,SLOT(showExtents(QString )));
|
||||
connect(mapCanvas, SIGNAL(scaleChanged(QString)), this, SLOT(showScale(QString)));
|
||||
connect(mapCanvas, SIGNAL(addedLayer(QgsMapLayer *)), mapLegend, SLOT(addLayer(QgsMapLayer *)));
|
||||
connect(mapCanvas, SIGNAL(removedLayer(QString)), mapLegend, SLOT(removedLayer(QString)));
|
||||
connect(mapCanvas, SIGNAL(removedLayer(QString)), mapLegend, SLOT(removeLayer(QString)));
|
||||
|
||||
connect(mapLegend, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(layerProperties(QListViewItem *)));
|
||||
connect(mapLegend, SIGNAL(rightButtonPressed(QListViewItem *, const QPoint &, int)),
|
||||
|
@ -235,7 +235,7 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
|
||||
|
||||
|
||||
/* slot */
|
||||
void QgsLegend::removeLayer( QString const & layer_key )
|
||||
void QgsLegend::removeLayer( QString layer_key )
|
||||
{
|
||||
// There are three possible starting legend states when this is invoked.
|
||||
//
|
||||
|
@ -71,7 +71,7 @@ public slots:
|
||||
|
||||
@param layer_key is unique layer identification
|
||||
*/
|
||||
void removeLayer( QString const & layer_key );
|
||||
void removeLayer( QString layer_key );
|
||||
|
||||
protected:
|
||||
// override these to handle layer order manipulation
|
||||
|
Loading…
x
Reference in New Issue
Block a user