Skip to content
Permalink
Browse files

fix #1045

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11022 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Jul 4, 2009
1 parent d5b84ed commit 29a6e5124bc7d811408d1d4a9d7937f7104f9ccc
Showing with 3 additions and 11 deletions.
  1. +3 −10 src/app/legend/qgslegend.cpp
  2. +0 −1 src/app/legend/qgslegendlayer.cpp
@@ -1,4 +1,3 @@

/***************************************************************************
qgslegend.cpp - description
-------------------
@@ -89,16 +88,11 @@ QgsLegend::QgsLegend( QWidget * parent, const char *name )
header()->setHidden( 1 );
setRootIsDecorated( true );
initPixmaps();


}



QgsLegend::~QgsLegend()
{}


void QgsLegend::handleCurrentItemChanged( QTreeWidgetItem* current, QTreeWidgetItem* previous )
{
QgsMapLayer *layer = currentLayer();
@@ -551,8 +545,8 @@ void QgsLegend::addLayer( QgsMapLayer * layer )
doItemsLayout();

// setup connections that will update the layer icons
connect(layer, SIGNAL(editingStarted()), llayer, SLOT(updateIcon()));
connect(layer, SIGNAL(editingStopped()), llayer, SLOT(updateIcon()));
connect( layer, SIGNAL( editingStarted() ), llayer, SLOT( updateIcon() ) );
connect( layer, SIGNAL( editingStopped() ), llayer, SLOT( updateIcon() ) );
}

QgsLegendLayerFile* QgsLegend::currentLayerFile()
@@ -1563,7 +1557,6 @@ void QgsLegend::handleItemChange( QTreeWidgetItem* item, int row )
return;
}

closePersistentEditor( item, row );
//if the text of a QgsLegendLayer has changed, change the display names of all its maplayers
QgsLegendLayer* theLegendLayer = dynamic_cast<QgsLegendLayer*>( item ); //item is a legend layer
if ( theLegendLayer )
@@ -1705,7 +1698,7 @@ void QgsLegend::openEditor()
QTreeWidgetItem* theItem = currentItem();
if ( theItem )
{
openPersistentEditor( theItem, 0 );
editItem( theItem, 0 );
}
}

@@ -400,7 +400,6 @@ void QgsLegendLayer::updateIcon()
QPixmap newIcon( getOriginalPixmap() );

QgsMapLayer* theLayer = firstMapLayer();
QgsLegendLayerFile* theFile = firstLayerFile();

if ( mapLayers().size() == 1 )
{

0 comments on commit 29a6e51

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