1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-1244 Changed formatting of objectid and instance id in xml export format.

This commit is contained in:
m_thread 2014-02-26 12:56:01 +01:00
parent 1d237aff96
commit 7150a3c4be

View File

@ -523,8 +523,7 @@ void UAVObject::toXML(QXmlStreamWriter *xmlWriter)
{
xmlWriter->writeStartElement("object");
xmlWriter->writeAttribute("name", getName());
xmlWriter->writeAttribute("objectid", QString::number(getObjID()));
xmlWriter->writeAttribute("instanceid", QString::number(getInstID()));
xmlWriter->writeAttribute("id", QString("%1-%2").arg(getObjID(), 1, 16).toUpper().arg(getInstID()));
xmlWriter->writeStartElement("fields");
foreach(UAVObjectField* field , fields) {
field->toXML(xmlWriter);