More refactor tidying

.. move signals to context from mainwindow
.. fix missed updates to aerolab and realtime plot
.. remove clutter from MainWindow.h
This commit is contained in:
Mark Liversedge
2013-07-14 11:23:06 +01:00
parent 9e875dd243
commit cf82d1b7a9
10 changed files with 14 additions and 30 deletions

View File

@@ -2222,7 +2222,7 @@ MainWindow::zoomIntervalSelected()
// zoom the one interval that is selected via popup menu
for (int i=0; i<context->athlete->allIntervals->childCount();) {
if (context->athlete->allIntervals->child(i)->isSelected()) {
emit intervalZoom((IntervalItem*)(context->athlete->allIntervals->child(i)));
context->notifyIntervalZoom((IntervalItem*)(context->athlete->allIntervals->child(i)));
break;
} else i++;
}
@@ -2231,7 +2231,7 @@ MainWindow::zoomIntervalSelected()
void
MainWindow::zoomInterval() {
// zoom into this interval on allPlot
emit intervalZoom(activeInterval);
context->notifyIntervalZoom(activeInterval);
}
void