Mercurial > hg > svgui
diff view/Overview.cpp @ 189:5b7472db612b
* Add large chunks of context help in the optional status bar
* Add an extra overlay mode in which even the centre frame is disabled
* Fixes to FTP retrieval
author | Chris Cannam |
---|---|
date | Fri, 19 Jan 2007 13:13:14 +0000 |
parents | 42118892f428 |
children | e2baee498ec8 |
line wrap: on
line diff
--- a/view/Overview.cpp Fri Jan 12 21:52:56 2007 +0000 +++ b/view/Overview.cpp Fri Jan 19 13:13:14 2007 +0000 @@ -210,4 +210,23 @@ } } +void +Overview::mouseDoubleClickEvent(QMouseEvent *e) +{ + long frame = getFrameForX(e->x()); + emit centreFrameChanged(this, frame, true); +} +void +Overview::enterEvent(QEvent *) +{ + emit contextHelpChanged(tr("Click and drag to navigate; double-click to jump")); +} + +void +Overview::leaveEvent(QEvent *) +{ + emit contextHelpChanged(""); +} + +