1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-04-21 12:27:27 +03:00

Updating prototype of SIE code generator.

This commit is contained in:
Juan64Bits
2010-11-10 14:20:10 -05:00
parent d302857917
commit 9d578912b7
48 changed files with 1785 additions and 62 deletions

View File

@@ -118,8 +118,8 @@ void DiagramScene::doSnapToGrid(QGraphicsSceneMouseEvent *mouseEvent)
{
if(snapToGrid){
mouseEvent->setScenePos(QPointF(
int(mouseEvent->scenePos().x()/myGrid)*myGrid,
int(mouseEvent->scenePos().y()/myGrid)*myGrid
round(mouseEvent->scenePos().x()/myGrid)*myGrid,
round(mouseEvent->scenePos().y()/myGrid)*myGrid
));
}
}