From: Christoph Egger Date: Fri, 15 May 2015 23:32:37 +0000 (+0200) Subject: Allow Drag-Scrolling in CFG-View X-Git-Tag: v0.2~29 X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=0e4b70a5cbbb548d6c6d64b56d6db0c53819b3e7;p=frida%2Ffrida.git Allow Drag-Scrolling in CFG-View One can now drag the viewpoint on the CFGScene around with the mouse -- press left mousebutton and drag the canvas. Closes T32 --- diff --git a/src/gui/widgets/FunctionWidget.cxx b/src/gui/widgets/FunctionWidget.cxx index 3c0129b..d717171 100644 --- a/src/gui/widgets/FunctionWidget.cxx +++ b/src/gui/widgets/FunctionWidget.cxx @@ -41,6 +41,7 @@ FunctionWidget::FunctionWidget(Function* function, Mainwindow* mainwindow) manager, _blocks, scene, start_address, 100); QGraphicsView * view = new QGraphicsView(scene); + view->setDragMode(QGraphicsView::ScrollHandDrag); addTab(view, "CFG"); // Listing