diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-10-06 10:05:18 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-10-06 10:05:18 +0200 |
commit | 5584b748a7e75a1f8b582ba9227dc08b2b2c5649 (patch) | |
tree | f7b54604be4a95fe0e56e2f468c057c383121696 /src/projectserialiser.cc | |
parent | add9c8bed73516093b6eb37d4fdf30c592a7f72c (diff) |
Add description to project.
Diffstat (limited to 'src/projectserialiser.cc')
-rw-r--r-- | src/projectserialiser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/projectserialiser.cc b/src/projectserialiser.cc index ac872c7..8985daa 100644 --- a/src/projectserialiser.cc +++ b/src/projectserialiser.cc @@ -128,6 +128,10 @@ QString ProjectSerialiser::serialise(const Project& project) raw_file_root.appendChild(doc.createTextNode(project.raw_file_root)); dgedit.appendChild(raw_file_root); + auto description = doc.createElement("description"); + description.appendChild(doc.createTextNode(project.description)); + dgedit.appendChild(description); + auto export_path = doc.createElement("export_path"); export_path.appendChild(doc.createTextNode(project.export_path)); dgedit.appendChild(export_path); @@ -235,6 +239,7 @@ bool ProjectSerialiser::deserialise(const QString& data, Project& project) project.next_id = dom["next_id"].toInt(); project.project_name = dom("project_name").text(); project.raw_file_root = dom("raw_file_root").text(); + project.description = dom("description").text(); project.export_path = dom("export_path").text(); auto channels = dom("channels").children("channel"); |