Fix: #179 Paints and mappings renamings are now saved in file

This commit is contained in:
baydam
2016-01-05 12:10:54 +00:00
parent 45a8b536d8
commit 093fb3cd9d
6 changed files with 66 additions and 20 deletions

View File

@@ -54,7 +54,7 @@ void ProjectWriter::writeItem(Paint *item)
{
_xml.writeStartElement("paint");
_xml.writeAttribute("id", QString::number(item->getId()));
//_xml.writeAttribute("name", item->getName());
_xml.writeAttribute("name", item->getName());
_xml.writeAttribute("type", item->getType());
if (item->getType() == "media")
@@ -142,6 +142,7 @@ void ProjectWriter::writeItem(Mapping *item)
_xml.writeStartElement("mapping");
qDebug() << "ID: " << item->getId() << endl;
_xml.writeAttribute("id", QString::number(item->getId()));
_xml.writeAttribute("name", item->getName());
_xml.writeAttribute("paint_id", QString::number(item->getPaint()->getId()));
_xml.writeAttribute("type", item->getType());