[qet] [4562] XREF improve drawing delay type contact

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


Revision: 4562
Author:   scorpio810
Date:     2016-07-03 14:00:27 +0200 (Sun, 03 Jul 2016)
Log Message:
-----------
XREF improve drawing delay type contact

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

Modified: trunk/sources/qetgraphicsitem/crossrefitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/crossrefitem.cpp	2016-06-30 09:12:25 UTC (rev 4561)
+++ trunk/sources/qetgraphicsitem/crossrefitem.cpp	2016-07-03 12:00:27 UTC (rev 4562)
@@ -455,27 +455,27 @@
 			// for delay on contact
 			if (flags &DelayOn) {
 				if (flags &NO) {
-					painter.drawLine(12, offset+4, 12, offset+6);
-					QRectF r(9.5, offset+1, 5, 3);
-					painter.drawArc(r, 180*16, 180*16);
+                    painter.drawLine(12, offset+8, 12, offset+11);
+                    QRectF r(9.5, offset+9, 5, 3);
+                    painter.drawArc(r, 180*16, 180*16);
 				}
-				if (flags &NC) {
-					painter.drawLine(QPointF(13.5, offset+2), QPointF(13.5, offset+3.5));
-					QRectF r(11, offset-1, 5, 3);
-					painter.drawArc(r, 180*16, 180*16);
+                if (flags &NC) {
+                    painter.drawLine(QPointF(12.5, offset+5), QPointF(12.5, offset+8));
+                    QRectF r(10, offset+6, 5, 3);
+                    painter.drawArc(r, 180*16, 180*16);
 				}
 			}
 			// for delay off contact
 			else {
 				if (flags &NO) {
-					painter.drawLine(12, offset+3, 12, offset+6);
-					QRectF r(9.5, offset+2, 5, 3);
-					painter.drawArc(r, 0, 180*16);
-				}
+                    painter.drawLine(12, offset+8, 12, offset+9.5);
+                    QRectF r(9.5, offset+9.5, 5, 3);
+                    painter.drawArc(r, 0, 180*16);
+                }
 				if (flags &NC) {
-					painter.drawLine(QPointF(13.5, offset+1), QPointF(13.5, offset+3.5));
-					QRectF r(11, offset, 5, 3);
-					painter.drawArc(r, 0, 180*16);
+                    painter.drawLine(QPointF(12.5, offset+5), QPointF(12.5, offset+7));
+                    QRectF r(10, offset+7.5, 5, 3);
+                    painter.drawArc(r, 0, 180*16);
 				}
 			}
 		}


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