Skip to content
Snippets Groups Projects
Commit a149b575 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

JobItem: rnm read func

parent 6f80409b
No related branches found
No related tags found
1 merge request!1062GUI: JobModel is refactored
...@@ -529,7 +529,6 @@ void JobItem::writeContentTo(QXmlStreamWriter* writer) const ...@@ -529,7 +529,6 @@ void JobItem::writeContentTo(QXmlStreamWriter* writer) const
} }
} }
template <class T> template <class T>
inline T* readItemToEnd(QXmlStreamReader* reader, SessionItem* parent_item, const QString& tag) inline T* readItemToEnd(QXmlStreamReader* reader, SessionItem* parent_item, const QString& tag)
{ {
...@@ -538,7 +537,7 @@ inline T* readItemToEnd(QXmlStreamReader* reader, SessionItem* parent_item, cons ...@@ -538,7 +537,7 @@ inline T* readItemToEnd(QXmlStreamReader* reader, SessionItem* parent_item, cons
return item; return item;
} }
void JobItem::readContentTo(QXmlStreamReader* reader) void JobItem::readContentFrom(QXmlStreamReader* reader)
{ {
while (reader->readNextStartElement()) { while (reader->readNextStartElement()) {
......
...@@ -133,7 +133,7 @@ public: ...@@ -133,7 +133,7 @@ public:
// write/read // write/read
void writeContentTo(QXmlStreamWriter* writer) const; void writeContentTo(QXmlStreamWriter* writer) const;
void readContentTo(QXmlStreamReader* reader); void readContentFrom(QXmlStreamReader* reader);
signals: signals:
void jobNameChanged(const QString& name); void jobNameChanged(const QString& name);
......
...@@ -207,7 +207,7 @@ void JobModel::readFrom(QXmlStreamReader* reader, MessageService* messageService ...@@ -207,7 +207,7 @@ void JobModel::readFrom(QXmlStreamReader* reader, MessageService* messageService
while (reader->readNextStartElement()) { while (reader->readNextStartElement()) {
if (reader->name() == Tags::JobItemTag) { if (reader->name() == Tags::JobItemTag) {
JobItem* jobItem = createJobItem(); JobItem* jobItem = createJobItem();
jobItem->readContentTo(reader); jobItem->readContentFrom(reader);
GUI::Session::XML::gotoEndElementOfTag(reader, Tags::JobItemTag); GUI::Session::XML::gotoEndElementOfTag(reader, Tags::JobItemTag);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment