[qet] [3139] Basic shapes: Antialiasing set to disable, fix print line type on Windows plateform

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


Revision: 3139
Author:   scorpio810
Date:     2014-06-15 15:29:30 +0200 (Sun, 15 Jun 2014)
Log Message:
-----------
Basic shapes:  Antialiasing set to disable, fix print line type on Windows plateform

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

Modified: trunk/sources/qetgraphicsitem/qetshapeitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2014-06-15 09:53:06 UTC (rev 3138)
+++ trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2014-06-15 13:29:30 UTC (rev 3139)
@@ -142,6 +142,15 @@
 {
 	Q_UNUSED(option); Q_UNUSED(widget);
 
+	// Disable Antialiasing
+	painter -> setRenderHint(QPainter::Antialiasing, false);
+
+	// 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);


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