if (NULL != next[0]
&& (next[0]->getEntry() - widget->getEntry()).y() > 0
&& (next[0]->getEntry() - out).y() < 50) {
- widget->moveBy(0, -1);
+ widget->moveBy(0, -3);
changed = true;
} else if (NULL != next[1]
&& (next[1]->getEntry() - widget->getEntry()).y() > 0
&& (next[1]->getEntry() - out).y() < 50) {
- widget->moveBy(0, -1);
+ widget->moveBy(0, -3);
changed = true;
}
}
itemrect.moveTo(item->scenePos());
while (relevantRect.intersects(itemrect)) {
if (widget->scenePos().x() > item->scenePos().x()) {
- widget->moveBy(1, 0);
+ widget->moveBy(3, 0);
relevantRect.moveTo(widget->scenePos());
} else {
- item->moveBy(1, 0);
+ item->moveBy(3, 0);
itemrect.moveTo(item->scenePos());
}
}
std::map<uint64_t, BasicBlockWidget*> _blocks;
local__add_basic_block(block, mainwindow,
- manager, _blocks, scene, start_address, 100);
+ manager, _blocks, scene, 3*start_address, 100);
QGraphicsView * view = new QGraphicsView(scene);
view->setDragMode(QGraphicsView::ScrollHandDrag);
scene->addItem(widget);
widget->setFlag(QGraphicsItem::ItemIsMovable, true);
- widget->moveBy(100*startx, block->getStartAddress() - starty);
+ widget->moveBy(100*startx, 3*block->getStartAddress() - starty);
BasicBlockWidget *tmp, *nextl(NULL), *nextr(NULL);
BasicBlock * tmpblock;