Mercurial > hg > svgui
diff widgets/PropertyStack.cpp @ 552:2e8194a30f40 sv-v1.7.1
* Layer data editor window: fix sorting for columns in region model,
add Find feature
* RDF import: assign names to layers based on event types, if no suitable
labels are found in the RDF
* Add label to status bar showing the last text that was passed in current
layer (so e.g. counting 1, 2, 3, 4 if that's what beats are labelled)
* Better layout of text labels for region layers in segmentation mode when
they are close together
* Give text layer the same method for finding "nearest point" as region and
note layers, should improve its editability
author | Chris Cannam |
---|---|
date | Thu, 22 Oct 2009 15:54:21 +0000 |
parents | 2c59b0cd176b |
children | f4960f8ce798 |
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp Fri Oct 02 13:56:10 2009 +0000 +++ b/widgets/PropertyStack.cpp Thu Oct 22 15:54:21 2009 +0000 @@ -112,8 +112,12 @@ if (layer) { shortName = LayerFactory::getInstance()->getLayerPresentationName (LayerFactory::getInstance()->getLayerType(layer)); + if (layer->getLayerPresentationName() != "") { + name = layer->getLayerPresentationName(); + } } + bool nameDiffers = (name != shortName); shortName = QString("&%1 %2").arg(i + 1).arg(shortName); QString iconName = container->getPropertyContainerIconName(); @@ -121,6 +125,9 @@ QIcon icon(IconLoader().load(iconName)); if (icon.isNull()) { addTab(box, shortName); + if (nameDiffers) { + setTabToolTip(i, name); + } } else { addTab(box, icon, QString("&%1").arg(i + 1)); setTabToolTip(i, name);