fix conductor properties xml load

This commit is contained in:
Martin Marmsoler
2021-03-07 14:07:47 +01:00
parent 5d3710c4b2
commit 755bcf640d
3 changed files with 26 additions and 7 deletions

View File

@@ -22,6 +22,10 @@
#include <QtDebug>
#include "qetxml.h"
namespace {
const QString conductorPropertiesXmlName = "conductorProperties";
}
/**
Constructeur par defaut
*/
@@ -263,7 +267,7 @@ bool SingleLineProperties::valideXml(QDomElement& e) {
multifilaire noir dont le texte est "_"
*/
ConductorProperties::ConductorProperties() :
PropertiesInterface("defaultconductor")
PropertiesInterface(xmlTagName())
{}
/**
@@ -413,6 +417,11 @@ bool ConductorProperties::valideXml(QDomElement& e) {
return true;
}
QString ConductorProperties::xmlTagName()
{
return conductorPropertiesXmlName;
}
/**
@param settings Parametres a ecrire
@param prefix prefixe a ajouter devant les noms des parametres