mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
Diagram editor: conductors can now be rendered with a solid, dashed or dashed-and-dotted style.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2037 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -383,6 +383,7 @@ void ConductorProperties::readStyle(const QString &style_string) {
|
||||
QString style_value = rx.cap(2);
|
||||
if (style_name == "line-style") {
|
||||
if (style_value == "dashed") style = Qt::DashLine;
|
||||
else if (style_value == "dashdotted") style = Qt::DashDotLine;
|
||||
else if (style_value == "normal") style = Qt::SolidLine;
|
||||
}
|
||||
}
|
||||
@@ -396,6 +397,8 @@ void ConductorProperties::readStyle(const QString &style_string) {
|
||||
QString ConductorProperties::writeStyle() const {
|
||||
if (style == Qt::DashLine) {
|
||||
return("line-style: dashed;");
|
||||
} else if (style == Qt::DashDotLine) {
|
||||
return("line-style: dashdotted");
|
||||
} else {
|
||||
return(QString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user