# HG changeset patch # User windel # Date 1335129038 -7200 # Node ID 143ab220aa270e4301caeb82f268d0e1c6fbb36c # Parent 7a82f0d52e852ed969fc082ee20371abce03e60e Cleanup diff -r 7a82f0d52e85 -r 143ab220aa27 applications/lab/diagrameditor.py --- 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: