diff widgets/Pane.cpp @ 56:fedaf3ffe80a

* Add menu for re-adding existing layers * Fix layer tree window so that it at least approximates correct * Add bundled operations in command history, for use with things like multiple consecutive changes to a parameter value * Disambiguate plugins that happen to have identical descriptions * Add spectral centroid plugin (could use some parameters!) * Some other fixes
author Chris Cannam
date Fri, 17 Mar 2006 17:38:28 +0000
parents 128ebfeeebee
children 01ab51f72e84
line wrap: on
line diff
--- a/widgets/Pane.cpp	Thu Mar 16 18:46:00 2006 +0000
+++ b/widgets/Pane.cpp	Fri Mar 17 17:38:28 2006 +0000
@@ -323,17 +323,7 @@
 
 	for (LayerList::iterator i = m_layers.begin(); i != m_layers.end(); ++i) {
 
-	    QString layerName = (*i)->objectName();
-	    QString modelName;
-	    if ((*i)->getModel()) modelName = (*i)->getModel()->objectName();
-	    
-	    QString text;
-	    if (modelName != "") {
-		text = QString("%1: %2").arg(modelName).arg(layerName);
-	    } else {
-		text = layerName;
-	    }
-	
+	    QString text = (*i)->getLayerPresentationName();
 	    texts.push_back(text);
 	    int tw = paint.fontMetrics().width(text);
 	    if (tw > maxTextWidth) maxTextWidth = tw;