mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Update of terminal class compatibility
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2626 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -494,7 +494,6 @@ bool Terminal::valideXml(QDomElement &terminal) {
|
||||
if (!terminal.hasAttribute("x")) return(false);
|
||||
if (!terminal.hasAttribute("y")) return(false);
|
||||
if (!terminal.hasAttribute("orientation")) return(false);
|
||||
if (!terminal.hasAttribute("number")) return(false);
|
||||
|
||||
bool conv_ok;
|
||||
// parse l'abscisse
|
||||
@@ -527,8 +526,7 @@ bool Terminal::fromXml(QDomElement &terminal) {
|
||||
return (
|
||||
qFuzzyCompare(terminal.attribute("x").toDouble(), dock_elmt_.x()) &&
|
||||
qFuzzyCompare(terminal.attribute("y").toDouble(), dock_elmt_.y()) &&
|
||||
terminal.attribute("orientation").toInt() == ori_ &&
|
||||
terminal.attribute("number") == number_terminal_
|
||||
terminal.attribute("orientation").toInt() == ori_
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user