From 0e4b70a5cbbb548d6c6d64b56d6db0c53819b3e7 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Sat, 16 May 2015 01:32:37 +0200 Subject: [PATCH] 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 --- src/gui/widgets/FunctionWidget.cxx | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5