diff historywidget.cpp @ 168:4bad3c5c053a

* Add "Show summary" feature * Add simplistic kinetic scrolling to history widget
author Chris Cannam
date Tue, 14 Dec 2010 17:20:10 +0000
parents 6bcb4a4d6521
children 8fd71f570884
line wrap: on
line diff
--- a/historywidget.cpp	Wed Dec 08 16:57:18 2010 +0000
+++ b/historywidget.cpp	Tue Dec 14 17:20:10 2010 +0000
@@ -35,6 +35,8 @@
     m_panned = new Panned;
     m_panner = new Panner;
 
+    m_panned->setDragMode(QGraphicsView::ScrollHandDrag);
+
     QGridLayout *layout = new QGridLayout;
     layout->addWidget(m_panned, 0, 0);
     layout->addWidget(m_panner, 0, 1);
@@ -259,6 +261,9 @@
     connect(scene, SIGNAL(diffWorkingFolder()),
             this, SIGNAL(diffWorkingFolder()));
 
+    connect(scene, SIGNAL(showSummary()),
+            this, SIGNAL(showSummary()));
+
     connect(scene, SIGNAL(showWork()),
             this, SIGNAL(showWork()));