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:
xavierqet
2007-10-14 18:36:35 +00:00
parent 3f1f84debf
commit 140b258345

View File

@@ -405,7 +405,6 @@ bool Element::fromXml(QDomElement &e, QHash<int, Terminal *> &table_id_adr) {
int read_ori = e.attribute("orientation").toInt(&conv_ok);
if (!conv_ok || read_ori < 0 || read_ori > 3) read_ori = ori.defaultOrientation();
setOrientation((QET::Orientation)read_ori);
setSelected(e.attribute("selected") == "selected");
return(true);
}
@@ -429,7 +428,6 @@ QDomElement Element::toXml(QDomDocument &document, QHash<Terminal *, int> &table
// position, selection et orientation
element.setAttribute("x", pos().x());
element.setAttribute("y", pos().y());
if (isSelected()) element.setAttribute("selected", "selected");
element.setAttribute("orientation", QString("%1").arg(ori.current()));
/* recupere le premier id a utiliser pour les bornes de cet element */