[qet] [2173] fix wrong methods name

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


Revision: 2173
Author:   blacksun
Date:     2013-05-20 21:58:31 +0200 (Mon, 20 May 2013)
Log Message:
-----------
fix wrong methods name

Modified Paths:
--------------
    trunk/sources/diagram.cpp
    trunk/sources/numerotationcontext.cpp
    trunk/sources/numerotationcontext.h

Modified: trunk/sources/diagram.cpp
===================================================================
--- trunk/sources/diagram.cpp	2013-05-20 19:48:53 UTC (rev 2172)
+++ trunk/sources/diagram.cpp	2013-05-20 19:58:31 UTC (rev 2173)
@@ -321,7 +321,7 @@
 		//autonumerotation of conductor
 		if (!getNumerotation(Diagram::Conductors).isEmpty()) {
 			QDomElement autonum = document.createElement("autonum");
-			autonum.appendChild(getNumerotation(Diagram::Conductors).toXML(document, "conductor"));
+			autonum.appendChild(getNumerotation(Diagram::Conductors).toXml(document, "conductor"));
 			racine.appendChild(autonum);
 		}
 	}

Modified: trunk/sources/numerotationcontext.cpp
===================================================================
--- trunk/sources/numerotationcontext.cpp	2013-05-20 19:48:53 UTC (rev 2172)
+++ trunk/sources/numerotationcontext.cpp	2013-05-20 19:58:31 UTC (rev 2173)
@@ -28,7 +28,7 @@
  * Constructor from xml
  */
 NumerotationContext::NumerotationContext(QDomElement &e) {
-	fromXML(e);
+	fromXml(e);
 }
 
 /**
@@ -127,10 +127,10 @@
 }
 
 /**
- * @brief NumerotationContext::toXML
+ * @brief NumerotationContext::toXml
  * Save the numerotation context in a QDomElement under the element name @str
  */
-QDomElement NumerotationContext::toXML(QDomDocument &d, QString str) {
+QDomElement NumerotationContext::toXml(QDomDocument &d, QString str) {
 	QDomElement num_auto = d.createElement(str);
 	for (int i=0; i<content_.size(); ++i) {
 		QStringList strl = itemAt(i);
@@ -144,10 +144,10 @@
 }
 
 /**
- * @brief NumerotationContext::fromXML
+ * @brief NumerotationContext::fromXml
  * load numerotation context from @e
  */
-void NumerotationContext::fromXML(QDomElement &e) {
+void NumerotationContext::fromXml(QDomElement &e) {
 	clear();
 	foreach(QDomElement qde, QET::findInDomElement(e, "part")) addValue(qde.attribute("type"), qde.attribute("value"), qde.attribute("increase").toInt());
 }

Modified: trunk/sources/numerotationcontext.h
===================================================================
--- trunk/sources/numerotationcontext.h	2013-05-20 19:48:53 UTC (rev 2172)
+++ trunk/sources/numerotationcontext.h	2013-05-20 19:58:31 UTC (rev 2173)
@@ -43,8 +43,8 @@
 	QString validRegExpNumber() const;
 	bool keyIsAcceptable (const QString &) const;
 	bool keyIsNumber(const QString &) const;
-	QDomElement toXML(QDomDocument &, QString);
-	void fromXML(QDomElement &);
+	QDomElement toXml(QDomDocument &, QString);
+	void fromXml(QDomElement &);
 
 	private:
 	QStringList content_;


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