[qet] [4575] Minor: Add element prefix to project file

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4575
Author:   dfochi
Date:     2016-07-14 01:28:00 +0200 (Thu, 14 Jul 2016)
Log Message:
-----------
Minor: Add element prefix to project file

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/element.cpp

Modified: trunk/sources/qetgraphicsitem/element.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/element.cpp	2016-07-13 21:25:29 UTC (rev 4574)
+++ trunk/sources/qetgraphicsitem/element.cpp	2016-07-13 23:28:00 UTC (rev 4575)
@@ -403,6 +403,9 @@
 	//uuid of this element
 	uuid_= QUuid(e.attribute("uuid", QUuid::createUuid().toString()));
 
+	//load prefix
+	m_prefix = e.attribute("prefix");
+
 	//load informations
 	m_element_informations.fromXml(e.firstChildElement("elementInformations"), "elementInformation");
 
@@ -438,6 +441,8 @@
 	element.setAttribute("type", typeId());
 	// uuid
 	element.setAttribute("uuid", uuid().toString());
+	// prefix
+	element.setAttribute("prefix", m_prefix);
 	
 	// position, selection et orientation
 	element.setAttribute("x", QString("%1").arg(pos().x()));


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/