Skip to content
Snippets Groups Projects

JobItem cleanup

Merged Wuttke, Joachim requested to merge j.0 into main
Files
26
@@ -35,7 +35,6 @@ const QString InstrumentId("InstrumentId");
const QString Name("Name");
const QString NativeData("NativeData"); // obsolete since v22.0
const QString NativeDataUnits("NativeDataUnits"); // obsolete since v22.0
const QString PresentationType("PresentationType");
} // namespace Tag
@@ -76,11 +75,6 @@ void DatafileItem::setDatafileItemName(const QString& name)
updateFileName();
}
void DatafileItem::setPresentationType(const QString& type)
{
m_presentation_type = type;
}
DataItem* DatafileItem::dataItem() const
{
return m_data_item.get();
@@ -194,11 +188,6 @@ void DatafileItem::writeTo(QXmlStreamWriter* w) const
XML::writeAttribute(w, XML::Attrib::value, m_name);
w->writeEndElement();
// presentation type
w->writeStartElement(Tag::PresentationType);
XML::writeAttribute(w, XML::Attrib::value, m_presentation_type);
w->writeEndElement();
// data
if (m_data_item) {
w->writeStartElement(Tag::Data);
@@ -226,11 +215,6 @@ void DatafileItem::readFrom(QXmlStreamReader* r)
XML::readAttribute(r, XML::Attrib::value, &m_name);
XML::gotoEndElementOfTag(r, tag);
// presentation type
} else if (tag == Tag::PresentationType) {
XML::readAttribute(r, XML::Attrib::value, &m_presentation_type);
XML::gotoEndElementOfTag(r, tag);
// data
} else if (tag == Tag::Data) {
QString type;
Loading