comparison rdf/RDFImporter.cpp @ 618:b1dc68507e46 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 24f06d34ac99
children a1ae2c1f80ab
comparison
equal deleted inserted replaced
617:24f06d34ac99 618:b1dc68507e46
853 " <%2> dc:title ?title . " 853 " <%2> dc:title ?title . "
854 " } " 854 " } "
855 ).arg(m_uristring).arg(type); 855 ).arg(m_uristring).arg(type);
856 QString title = SimpleSPARQLQuery::singleResultQuery 856 QString title = SimpleSPARQLQuery::singleResultQuery
857 (s, titleQuery, "title").value; 857 (s, titleQuery, "title").value;
858 if (title != "") model->setObjectName(title); 858 if (title == "") {
859 // take it from the end of the event type
860 title = type;
861 title.replace(QRegExp("^.*[/#]"), "");
862 }
863 model->setObjectName(title);
859 864
860 modelMap[timeline][type][dimensions][haveDuration] = model; 865 modelMap[timeline][type][dimensions][haveDuration] = model;
861 models.push_back(model); 866 models.push_back(model);
862 } 867 }
863 868