]> git.siccegge.de Git - frida/frida.git/commitdiff
Allow Drag-Scrolling in CFG-View
authorChristoph Egger <christoph@anonymous.siccegge.de>
Fri, 15 May 2015 23:32:37 +0000 (01:32 +0200)
committerChristoph Egger <christoph@anonymous.siccegge.de>
Fri, 15 May 2015 23:32:37 +0000 (01:32 +0200)
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

index 3c0129b1a12112ffebb8fa1fe4536cdf6aee77bc..d717171755e0b223b171cde61f543d6594f64c33 100644 (file)
@@ -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