mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
L'etat selectionne des elements n'est plus enregistre dans les fichiers
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@179 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -405,7 +405,6 @@ bool Element::fromXml(QDomElement &e, QHash<int, Terminal *> &table_id_adr) {
|
|||||||
int read_ori = e.attribute("orientation").toInt(&conv_ok);
|
int read_ori = e.attribute("orientation").toInt(&conv_ok);
|
||||||
if (!conv_ok || read_ori < 0 || read_ori > 3) read_ori = ori.defaultOrientation();
|
if (!conv_ok || read_ori < 0 || read_ori > 3) read_ori = ori.defaultOrientation();
|
||||||
setOrientation((QET::Orientation)read_ori);
|
setOrientation((QET::Orientation)read_ori);
|
||||||
setSelected(e.attribute("selected") == "selected");
|
|
||||||
|
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
@@ -429,7 +428,6 @@ QDomElement Element::toXml(QDomDocument &document, QHash<Terminal *, int> &table
|
|||||||
// position, selection et orientation
|
// position, selection et orientation
|
||||||
element.setAttribute("x", pos().x());
|
element.setAttribute("x", pos().x());
|
||||||
element.setAttribute("y", pos().y());
|
element.setAttribute("y", pos().y());
|
||||||
if (isSelected()) element.setAttribute("selected", "selected");
|
|
||||||
element.setAttribute("orientation", QString("%1").arg(ori.current()));
|
element.setAttribute("orientation", QString("%1").arg(ori.current()));
|
||||||
|
|
||||||
/* recupere le premier id a utiliser pour les bornes de cet element */
|
/* recupere le premier id a utiliser pour les bornes de cet element */
|
||||||
|
|||||||
Reference in New Issue
Block a user