comparison 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
comparison
equal deleted inserted replaced
167:94be1e218655 168:4bad3c5c053a
32 m_showUncommitted(false), 32 m_showUncommitted(false),
33 m_refreshNeeded(false) 33 m_refreshNeeded(false)
34 { 34 {
35 m_panned = new Panned; 35 m_panned = new Panned;
36 m_panner = new Panner; 36 m_panner = new Panner;
37
38 m_panned->setDragMode(QGraphicsView::ScrollHandDrag);
37 39
38 QGridLayout *layout = new QGridLayout; 40 QGridLayout *layout = new QGridLayout;
39 layout->addWidget(m_panned, 0, 0); 41 layout->addWidget(m_panned, 0, 0);
40 layout->addWidget(m_panner, 0, 1); 42 layout->addWidget(m_panner, 0, 1);
41 m_panner->setMaximumWidth(80); 43 m_panner->setMaximumWidth(80);
257 this, SIGNAL(revert())); 259 this, SIGNAL(revert()));
258 260
259 connect(scene, SIGNAL(diffWorkingFolder()), 261 connect(scene, SIGNAL(diffWorkingFolder()),
260 this, SIGNAL(diffWorkingFolder())); 262 this, SIGNAL(diffWorkingFolder()));
261 263
264 connect(scene, SIGNAL(showSummary()),
265 this, SIGNAL(showSummary()));
266
262 connect(scene, SIGNAL(showWork()), 267 connect(scene, SIGNAL(showWork()),
263 this, SIGNAL(showWork())); 268 this, SIGNAL(showWork()));
264 269
265 connect(scene, SIGNAL(updateTo(QString)), 270 connect(scene, SIGNAL(updateTo(QString)),
266 this, SIGNAL(updateTo(QString))); 271 this, SIGNAL(updateTo(QString)));