[qet] [3142] Fix fails to build on Windows

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


Revision: 3142
Author:   scorpio810
Date:     2014-06-16 06:20:41 +0200 (Mon, 16 Jun 2014)
Log Message:
-----------
Fix fails to build on Windows

Modified Paths:
--------------
    trunk/sources/qetgraphicsitem/qetshapeitem.cpp

Modified: trunk/sources/qetgraphicsitem/qetshapeitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2014-06-15 20:45:31 UTC (rev 3141)
+++ trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2014-06-16 04:20:41 UTC (rev 3142)
@@ -142,20 +142,19 @@
 {
 	Q_UNUSED(option); Q_UNUSED(widget);
 
+	QPen pen;
+	pen.setStyle(m_shapeStyle);
+	if (isSelected()) pen.setColor(Qt::red);
 	// Disable Antialiasing
 	painter -> setRenderHint(QPainter::Antialiasing, false);
+	painter->setPen(pen);
 
 	// TODO for printing line type on Windows
+
 #ifdef Q_WS_WIN
 	pen.setWidthF(1);
 #endif
 
-
-	QPen pen;
-	pen.setStyle(m_shapeStyle);
-	if (isSelected()) pen.setColor(Qt::red);
-	painter->setPen(pen);
-
 	switch (m_shapeType) {
 		case Line:
 			painter->drawLine(QLineF(m_P1, m_P2));


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