comparison widgets/TransformFinder.cpp @ 453:7bec0807d7ba

* Use enum for transform type instead of trying to do dumb things like compare translated strings
author Chris Cannam
date Fri, 21 Nov 2008 13:37:35 +0000
parents 129d1e82a94e
children 1fe7951a61e8
comparison
equal deleted inserted replaced
452:f7de84fd10ec 453:7bec0807d7ba
284 selectedText += tr("<small>%1</small>") 284 selectedText += tr("<small>%1</small>")
285 .arg(XmlExportable::encodeEntities(desc.description)); 285 .arg(XmlExportable::encodeEntities(desc.description));
286 } 286 }
287 287
288 selectedText += tr("<small>"); 288 selectedText += tr("<small>");
289 if (desc.type != "") { 289 if (desc.type != TransformDescription::UnknownType) {
290 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Plugin type: %1") 290 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Plugin type: %1")
291 .arg(XmlExportable::encodeEntities(desc.type)); 291 .arg(XmlExportable::encodeEntities(factory->getTransformTypeName(desc.type)));
292 } 292 }
293 if (desc.category != "") { 293 if (desc.category != "") {
294 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Category: %1") 294 selectedText += tr("<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&mdash; Category: %1")
295 .arg(XmlExportable::encodeEntities(desc.category)); 295 .arg(XmlExportable::encodeEntities(desc.category));
296 } 296 }