mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
Correction mineure : la couleur d'un conducteur n'est plus stockee dans le fichier .qet s'il s'agit de la couleur noire.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@764 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -204,7 +204,11 @@ ConductorProperties::~ConductorProperties() {
|
|||||||
*/
|
*/
|
||||||
void ConductorProperties::toXml(QDomElement &e) const {
|
void ConductorProperties::toXml(QDomElement &e) const {
|
||||||
e.setAttribute("type", typeToString(type));
|
e.setAttribute("type", typeToString(type));
|
||||||
e.setAttribute("color", color.name());
|
|
||||||
|
if (color != QColor(Qt::black)) {
|
||||||
|
e.setAttribute("color", color.name());
|
||||||
|
}
|
||||||
|
|
||||||
if (type == Single) {
|
if (type == Single) {
|
||||||
singleLineProperties.toXml(e);
|
singleLineProperties.toXml(e);
|
||||||
} else if (type == Multi) {
|
} else if (type == Multi) {
|
||||||
|
|||||||
Reference in New Issue
Block a user