Mercurial > hg > svgui
comparison view/Pane.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 | 984c1975f1ff |
comparison
equal
deleted
inserted
replaced
315:c30a7cd29f4a | 316:c0b9eec70639 |
---|---|
28 #include <QPainter> | 28 #include <QPainter> |
29 #include <QBitmap> | 29 #include <QBitmap> |
30 #include <QDragEnterEvent> | 30 #include <QDragEnterEvent> |
31 #include <QDropEvent> | 31 #include <QDropEvent> |
32 #include <QCursor> | 32 #include <QCursor> |
33 #include <QTextStream> | |
34 | |
33 #include <iostream> | 35 #include <iostream> |
34 #include <cmath> | 36 #include <cmath> |
35 | 37 |
36 //!!! for HUD -- pull out into a separate class | 38 //!!! for HUD -- pull out into a separate class |
37 #include <QFrame> | 39 #include <QFrame> |
2235 Pane::mouseLeftWidget() | 2237 Pane::mouseLeftWidget() |
2236 { | 2238 { |
2237 emit contextHelpChanged(""); | 2239 emit contextHelpChanged(""); |
2238 } | 2240 } |
2239 | 2241 |
2240 QString | 2242 void |
2241 Pane::toXmlString(QString indent, QString extraAttributes) const | 2243 Pane::toXml(QTextStream &stream, |
2242 { | 2244 QString indent, QString extraAttributes) const |
2243 return View::toXmlString | 2245 { |
2244 (indent, | 2246 View::toXml |
2247 (stream, indent, | |
2245 QString("type=\"pane\" centreLineVisible=\"%1\" height=\"%2\" %3") | 2248 QString("type=\"pane\" centreLineVisible=\"%1\" height=\"%2\" %3") |
2246 .arg(m_centreLineVisible).arg(height()).arg(extraAttributes)); | 2249 .arg(m_centreLineVisible).arg(height()).arg(extraAttributes)); |
2247 } | 2250 } |
2248 | 2251 |
2249 | 2252 |