comparison data/model/SparseValueModel.h @ 318:7a4bd2c8585c

* Some export fixes, and avoid clipping on resampling on import
author Chris Cannam
date Mon, 22 Oct 2007 09:45:35 +0000
parents 70a232b1f12a
children 700cd3350391
comparison
equal deleted inserted replaced
317:c324d410b096 318:7a4bd2c8585c
108 emit modelChanged(); 108 emit modelChanged();
109 } 109 }
110 } 110 }
111 } 111 }
112 112
113 virtual void toXml(QTextStream &stream, QString indent = "", 113 virtual void toXml(QTextStream &stream,
114 QString indent = "",
114 QString extraAttributes = "") const 115 QString extraAttributes = "") const
115 { 116 {
117 std::cerr << "SparseValueModel::toXml: extraAttributes = \""
118 << extraAttributes.toStdString() << std::endl;
119
116 SparseModel<PointType>::toXml 120 SparseModel<PointType>::toXml
117 (stream, indent, 121 (stream,
122 indent,
118 QString("%1 minimum=\"%2\" maximum=\"%3\" units=\"%4\"") 123 QString("%1 minimum=\"%2\" maximum=\"%3\" units=\"%4\"")
119 .arg(extraAttributes).arg(m_valueMinimum).arg(m_valueMaximum) 124 .arg(extraAttributes).arg(m_valueMinimum).arg(m_valueMaximum)
120 .arg(this->encodeEntities(m_units))); 125 .arg(this->encodeEntities(m_units)));
121 } 126 }
122 127