Re-instate zoom interval in MainWindow/AllPlot

Added a new signal to MainWindow to trigger
a zoom to interval. This signal has been trapped
in AllPlot (Ride Plot), but will also need to
be supported in;

* Ride Editor - highlight/zoom to interval data
* Aerolab     - Same as ride plot
* Maps        - Zoom in to section
This commit is contained in:
Mark Liversedge
2011-08-29 11:08:06 +01:00
parent d68e27390f
commit 9d9619ef40
4 changed files with 6 additions and 5 deletions

View File

@@ -691,6 +691,7 @@ MainWindow::showContextMenuPopup(const QPoint &pos)
connect(actFrontInt, SIGNAL(triggered(void)), this, SLOT(frontInterval(void)));
connect(actBackInt, SIGNAL(triggered(void)), this, SLOT(backInterval(void)));
menu.addAction(actZoomInt);
menu.addAction(actRenameInt);
menu.addAction(actDeleteInt);
menu.exec(intervalWidget->mapToGlobal( pos ));
@@ -1451,7 +1452,7 @@ MainWindow::intervalEdited(QTreeWidgetItem *, int) {
void
MainWindow::zoomInterval() {
// zoom into this interval on allPlot
//allPlotWindow->zoomInterval(activeInterval);
emit intervalZoom(activeInterval);
}
void