Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QPainterPath.lineTo()


      double y1 = (double) tileYMap.get(conn.startTile)*tileSize  + (conn.startWire*tileSize)/enumSize;
      double x2 = (double) tileXMap.get(conn.endTile)*tileSize  + (conn.endWire%tileSize);
      double y2 = (double) tileYMap.get(conn.endTile)*tileSize  + (conn.endWire*tileSize)/enumSize;

      path.moveTo(x1, y1);
      path.lineTo(x2, y2);
    }
    PathItem item = new PathItem(path, pd);
    item.setBrush(QBrush.NoBrush);
    item.setPen(wirePen);
    item.setAcceptHoverEvents(true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.