[qet] qet/qet: [4747] Fix weird behavior : use QString:: number to store a number in a xml.

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


Revision: 4747
Author:   blacksun
Date:     2016-10-17 21:08:52 +0200 (Mon, 17 Oct 2016)
Log Message:
-----------
Fix weird behavior : use QString::number to store a number in a xml.

Modified Paths:
--------------
    trunk/sources/conductorproperties.cpp

Modified: trunk/sources/conductorproperties.cpp
===================================================================
--- trunk/sources/conductorproperties.cpp	2016-10-17 14:26:13 UTC (rev 4746)
+++ trunk/sources/conductorproperties.cpp	2016-10-17 19:08:52 UTC (rev 4747)
@@ -256,12 +256,12 @@
 	e.setAttribute("num", text);
 	e.setAttribute("function", m_function);
 	e.setAttribute("tension-protocol", m_tension_protocol);
-	e.setAttribute("numsize", text_size);
-	e.setAttribute("condsize", cond_size);
+	e.setAttribute("numsize", QString::number(text_size));
+	e.setAttribute("condsize", QString::number(cond_size));
 	e.setAttribute("displaytext", m_show_text);
 	e.setAttribute("onetextperfolio", m_one_text_per_folio);
-	e.setAttribute("vertirotatetext", verti_rotate_text);
-	e.setAttribute("horizrotatetext", horiz_rotate_text);
+	e.setAttribute("vertirotatetext", QString::number(verti_rotate_text));
+	e.setAttribute("horizrotatetext", QString::number(horiz_rotate_text));
 	
 	QString conductor_style = writeStyle();
 	if (!conductor_style.isEmpty())


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