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:
xavier
2013-02-11 18:35:18 +00:00
parent d69130f3aa
commit 2af5eb54b1
3 changed files with 22 additions and 10 deletions

View File

@@ -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());
}