Mercurial > hg > svgui
comparison layer/TimeRulerLayer.cpp @ 316:c0b9eec70639
* Make XmlExportable::toXml the function that is universally overridden (and
pure virtual) instead of toXmlString. Tidies up some classes, notably the
model classes, significantly. Closes #1794561.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 10:15:07 +0000 |
parents | cd2492c5fe45 |
children | 2f83b6e3b8ca 64e84e5efb76 |
comparison
equal
deleted
inserted
replaced
315:c30a7cd29f4a | 316:c0b9eec70639 |
---|---|
312 impose = true; | 312 impose = true; |
313 return ColourDatabase::getInstance()->getColourIndex | 313 return ColourDatabase::getInstance()->getColourIndex |
314 (QString(darkbg ? "White" : "Black")); | 314 (QString(darkbg ? "White" : "Black")); |
315 } | 315 } |
316 | 316 |
317 QString | 317 void |
318 TimeRulerLayer::toXmlString(QString indent, QString extraAttributes) const | 318 TimeRulerLayer::toXml(QTextStream &stream, |
319 { | 319 QString indent, QString extraAttributes) const |
320 return SingleColourLayer::toXmlString(indent, extraAttributes); | 320 { |
321 SingleColourLayer::toXml(stream, indent, extraAttributes); | |
321 } | 322 } |
322 | 323 |
323 void | 324 void |
324 TimeRulerLayer::setProperties(const QXmlAttributes &attributes) | 325 TimeRulerLayer::setProperties(const QXmlAttributes &attributes) |
325 { | 326 { |