comparison layer/TextLayer.h @ 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
77 virtual int getCompletion(View *) const { return m_model->getCompletion(); } 77 virtual int getCompletion(View *) const { return m_model->getCompletion(); }
78 78
79 virtual bool getValueExtents(float &min, float &max, 79 virtual bool getValueExtents(float &min, float &max,
80 bool &logarithmic, QString &unit) const; 80 bool &logarithmic, QString &unit) const;
81 81
82 virtual QString toXmlString(QString indent = "", 82 virtual void toXml(QTextStream &stream, QString indent = "",
83 QString extraAttributes = "") const; 83 QString extraAttributes = "") const;
84 84
85 void setProperties(const QXmlAttributes &attributes); 85 void setProperties(const QXmlAttributes &attributes);
86 86
87 protected: 87 protected:
88 int getYForHeight(View *v, float height) const; 88 int getYForHeight(View *v, float height) const;