}
std::map<uint64_t, BasicBlockWidget*> _blocks;
- local__add_basic_block(block, mainwindow,
- manager, _blocks, scene, 3*start_address, 100);
+ BasicBlockWidget* firstblock = local__add_basic_block(block, mainwindow,
+ manager, _blocks, scene, 3*start_address, 100);
QGraphicsView * view = new QGraphicsView(scene);
view->setDragMode(QGraphicsView::ScrollHandDrag);
t->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
addTab(t, "Listing");
+ view->ensureVisible(firstblock);
layouted = true;
}
}