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?p=frida%2Ffrida.git;a=commitdiff_plain;h=0e4b70a5cbbb548d6c6d64b56d6db0c53819b3e7;hp=85d67be4869bd6a274e009af63fc6955c5e6d37a 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