mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 08:10:52 +01:00
Passage des elements XML des schemas en anglais
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@76 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -364,7 +364,7 @@ QList<Conducer *> Terminal::conducers() const {
|
||||
@return un QDomElement representant cette borne
|
||||
*/
|
||||
QDomElement Terminal::toXml(QDomDocument &doc) const {
|
||||
QDomElement qdo = doc.createElement("borne");
|
||||
QDomElement qdo = doc.createElement("terminal");
|
||||
qdo.setAttribute("x", amarrage_elmt.x());
|
||||
qdo.setAttribute("y", amarrage_elmt.y());
|
||||
qdo.setAttribute("orientation", sens);
|
||||
@@ -378,7 +378,7 @@ QDomElement Terminal::toXml(QDomDocument &doc) const {
|
||||
*/
|
||||
bool Terminal::valideXml(QDomElement &terminal) {
|
||||
// verifie le nom du tag
|
||||
if (terminal.tagName() != "borne") return(false);
|
||||
if (terminal.tagName() != "terminal") return(false);
|
||||
|
||||
// verifie la presence des attributs minimaux
|
||||
if (!terminal.hasAttribute("x")) return(false);
|
||||
|
||||
Reference in New Issue
Block a user