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:
@@ -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
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user