Add ability to have an empty outline for hatching

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3970 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2015-05-13 12:48:31 +00:00
parent 933cb94a3c
commit 633abaa7bf
5 changed files with 13 additions and 4 deletions

View File

@@ -843,6 +843,11 @@ bool CustomElement::validOrientationAttribute(const QDomElement &e) {
- lightgray : trait gris clair
- orange : trait orange
- purple : trait violet
- lignes Horizontales
- lignes Verticales
- hachures gauche
- hachures droite
- none : pas de contour
Les autres valeurs ne sont pas prises en compte.
@param e L'element XML a parser
@@ -960,6 +965,8 @@ void CustomElement::setPainterStyle(QDomElement &e, QPainter &qp) {
pen.setColor(QColor(255, 128, 0));
}else if (style_value == "purple") {
pen.setColor(QColor(136, 28, 168));
} else if (style_value == "none") {
pen.setBrush(Qt::transparent);
}
}
}