From 5584b748a7e75a1f8b582ba9227dc08b2b2c5649 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 Oct 2018 10:05:18 +0200 Subject: Add description to project. --- src/projectserialiser.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/projectserialiser.cc') 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"); -- cgit v1.2.3