[qet] [2573] Better bug fix for dash dot line

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 2573
Author:   blacksun
Date:     2013-10-16 20:47:14 +0200 (Wed, 16 Oct 2013)
Log Message:
-----------
Better bug fix for dash dot line

Modified Paths:
--------------
    trunk/sources/customelement.cpp

Modified: trunk/sources/customelement.cpp
===================================================================
--- trunk/sources/customelement.cpp	2013-10-16 10:53:07 UTC (rev 2572)
+++ trunk/sources/customelement.cpp	2013-10-16 18:47:14 UTC (rev 2573)
@@ -743,14 +743,6 @@
 	// attributs par defaut
 	pen.setJoinStyle(Qt::BevelJoin);
 	pen.setCapStyle(Qt::SquareCap);
-	pen.setColor(Qt::black);
-	pen.setColor(Qt::red);
-	pen.setColor(Qt::blue);
-	pen.setColor(Qt::green);
-	pen.setStyle(Qt::SolidLine);
-	pen.setWidthF(1.0);
-	brush.setStyle(Qt::NoBrush);
-	pen.setStyle(Qt::DashDotLine);
 	
 	// recupere la liste des couples style / valeur
 	QStringList styles = e.attribute("style").split(";", QString::SkipEmptyParts);
@@ -764,7 +756,7 @@
 			if (style_name == "line-style") {
 				if (style_value == "dashed") pen.setStyle(Qt::DashLine);
 				else if (style_value == "dotted") pen.setStyle(Qt::DotLine);
-				else if (style_value == "dashdoted") pen.setStyle(Qt::DashDotLine);
+				else if (style_value == "dashdotted") pen.setStyle(Qt::DashDotLine);
 				else if (style_value == "normal") pen.setStyle(Qt::SolidLine);
 			} else if (style_name == "line-weight") {
 				if (style_value == "thin") pen.setWidth(0);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/