Mercurial > hg > svcore
comparison base/Selection.cpp @ 1811:796ae7eecced
Add Selection::toString for debug purposes
author | Chris Cannam |
---|---|
date | Wed, 08 Jan 2020 15:25:43 +0000 |
parents | 48e9f538e6e9 |
children |
comparison
equal
deleted
inserted
replaced
1810:ee3b248bda25 | 1811:796ae7eecced |
---|---|
225 .arg(i->getStartFrame()).arg(i->getEndFrame()); | 225 .arg(i->getStartFrame()).arg(i->getEndFrame()); |
226 } | 226 } |
227 stream << indent << "</selections>\n"; | 227 stream << indent << "</selections>\n"; |
228 } | 228 } |
229 | 229 |
230 QString | |
231 MultiSelection::toString() const | |
232 { | |
233 QStringList list; | |
234 for (SelectionList::iterator i = m_selections.begin(); | |
235 i != m_selections.end(); ++i) { | |
236 list << QString("(%1,%2)") | |
237 .arg(i->getStartFrame()) | |
238 .arg(i->getEndFrame()); | |
239 } | |
240 return "(" + list.join(",") + ")"; | |
241 } |