comparison data/model/WaveFileModel.cpp @ 279:7802b0e2b0ff

* Encoded entities in file name when saving wave-file model * Proper handling for percent-encodings in URLs for RemoteFile, and for queries in URLs
author Chris Cannam
date Fri, 13 Jul 2007 10:51:15 +0000
parents 822bd7fd526c
children 20028c634494
comparison
equal deleted inserted replaced
278:9a13687c078b 279:7802b0e2b0ff
613 QString indent, 613 QString indent,
614 QString extraAttributes) const 614 QString extraAttributes) const
615 { 615 {
616 Model::toXml(out, indent, 616 Model::toXml(out, indent,
617 QString("type=\"wavefile\" file=\"%1\" %2") 617 QString("type=\"wavefile\" file=\"%1\" %2")
618 .arg(m_path).arg(extraAttributes)); 618 .arg(encodeEntities(m_path)).arg(extraAttributes));
619 } 619 }
620 620
621 QString 621 QString
622 WaveFileModel::toXmlString(QString indent, 622 WaveFileModel::toXmlString(QString indent,
623 QString extraAttributes) const 623 QString extraAttributes) const
624 { 624 {
625 return Model::toXmlString(indent, 625 return Model::toXmlString(indent,
626 QString("type=\"wavefile\" file=\"%1\" %2") 626 QString("type=\"wavefile\" file=\"%1\" %2")
627 .arg(m_path).arg(extraAttributes)); 627 .arg(encodeEntities(m_path)).arg(extraAttributes));
628 } 628 }
629 629