[qet] [2207] now default conductor rotate text are save/load from qelectrotech. conf file |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 2207
Author: blacksun
Date: 2013-06-05 23:42:45 +0200 (Wed, 05 Jun 2013)
Log Message:
-----------
now default conductor rotate text are save/load from qelectrotech.conf file
Modified Paths:
--------------
trunk/sources/conductorproperties.cpp
Modified: trunk/sources/conductorproperties.cpp
===================================================================
--- trunk/sources/conductorproperties.cpp 2013-06-04 23:11:05 UTC (rev 2206)
+++ trunk/sources/conductorproperties.cpp 2013-06-05 21:42:45 UTC (rev 2207)
@@ -293,6 +293,8 @@
settings.setValue(prefix + "style", writeStyle());
settings.setValue(prefix + "type", typeToString(type));
settings.setValue(prefix + "text", text);
+ settings.setValue(prefix + "vertirotatetext", QString::number(verti_rotate_text));
+ settings.setValue(prefix + "horizrotatetext", QString::number(horiz_rotate_text));
singleLineProperties.toSettings(settings, prefix);
}
@@ -319,7 +321,9 @@
}
singleLineProperties.fromSettings(settings, prefix);
text = settings.value(prefix + "text", "_").toString();
-
+ verti_rotate_text = settings.value((prefix + "vertirotatetext"), "270").toDouble();
+ horiz_rotate_text = settings.value((prefix + "horizrotatetext"), "0").toDouble();
+
// lit le style du conducteur
readStyle(settings.value(prefix + "style").toString());
}