mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
fix wrong methods name
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2173 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -321,7 +321,7 @@ QDomDocument Diagram::toXml(bool whole_content) {
|
||||
//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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ NumerotationContext::NumerotationContext(){
|
||||
* Constructor from xml
|
||||
*/
|
||||
NumerotationContext::NumerotationContext(QDomElement &e) {
|
||||
fromXML(e);
|
||||
fromXml(e);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -127,10 +127,10 @@ bool NumerotationContext::keyIsNumber(const QString &type) const {
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 @@ QDomElement NumerotationContext::toXML(QDomDocument &d, QString str) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @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());
|
||||
}
|
||||
|
||||
@@ -43,8 +43,8 @@ class NumerotationContext
|
||||
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_;
|
||||
|
||||
Reference in New Issue
Block a user