changeset 57:143ab220aa27

Cleanup
author windel
date Sun, 22 Apr 2012 23:10:38 +0200
parents 7a82f0d52e85
children 65acf6874a8d
files applications/lab/diagrameditor.py
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/applications/lab/diagrameditor.py	Sun Apr 22 13:32:09 2012 +0200
+++ b/applications/lab/diagrameditor.py	Sun Apr 22 23:10:38 2012 +0200
@@ -454,12 +454,6 @@
    def mouseMoveEvent(self, event):
       if self.startedConnection:
          pos = event.scenePos()
-         items = self.items(pos)
-         for item in items:
-            if type(item) is PortItem:
-               pen = item.pen()
-               pen.setColor(Qt.red)
-               item.setPen(pen)
          self.startedConnection.setEndPos(pos)
       super(DiagramScene, self).mouseMoveEvent(event)
    def mouseReleaseEvent(self, event):
@@ -488,7 +482,6 @@
 
       def viaPoints(pA, pB):
          # Construct intermediate points:
-
          pAB1 = QPointF(pA.x(), pB.y())
          pAB2 = QPointF(pB.x(), pA.y())
          path1 = QPainterPath(pA)
@@ -515,6 +508,9 @@
       
       # If pathitem:
       pts = [P1, p2] + viaPoints(p2, p3) + [p3, P2]
+      print('line')
+      for pt in pts:
+         print(pt)
       return pts
    def deleteItem(self, item=None):
       if item: