Mercurial > hg > svgui
comparison layer/ImageLayer.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 | 6de6f78b13a1 |
children | e251c3599ea8 |
comparison
equal
deleted
inserted
replaced
315:c30a7cd29f4a | 316:c0b9eec70639 |
---|---|
27 | 27 |
28 #include <QPainter> | 28 #include <QPainter> |
29 #include <QMouseEvent> | 29 #include <QMouseEvent> |
30 #include <QInputDialog> | 30 #include <QInputDialog> |
31 #include <QMutexLocker> | 31 #include <QMutexLocker> |
32 #include <QTextStream> | |
32 | 33 |
33 #include <iostream> | 34 #include <iostream> |
34 #include <cmath> | 35 #include <cmath> |
35 | 36 |
36 ImageLayer::ImageMap | 37 ImageLayer::ImageMap |
942 i->second.erase(img); | 943 i->second.erase(img); |
943 emit modelChanged(); | 944 emit modelChanged(); |
944 } | 945 } |
945 } | 946 } |
946 | 947 |
947 QString | 948 void |
948 ImageLayer::toXmlString(QString indent, QString extraAttributes) const | 949 ImageLayer::toXml(QTextStream &stream, |
949 { | 950 QString indent, QString extraAttributes) const |
950 return Layer::toXmlString(indent, extraAttributes); | 951 { |
952 Layer::toXml(stream, indent, extraAttributes); | |
951 } | 953 } |
952 | 954 |
953 void | 955 void |
954 ImageLayer::setProperties(const QXmlAttributes &attributes) | 956 ImageLayer::setProperties(const QXmlAttributes &attributes) |
955 { | 957 { |