mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
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:
@@ -315,7 +315,7 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) :
|
||||
allPlotLayout->setStretch(1,20);
|
||||
|
||||
QVBoxLayout *vlayout = new QVBoxLayout(this);
|
||||
vlayout->setContentsMargins(10,10,10,10);
|
||||
vlayout->setContentsMargins(2,2,2,2);
|
||||
vlayout->setSpacing(0);
|
||||
vlayout->addWidget(allPlotFrame);
|
||||
vlayout->addWidget(stackFrame);
|
||||
@@ -354,6 +354,7 @@ AllPlotWindow::AllPlotWindow(MainWindow *mainWindow) :
|
||||
connect(mainWindow, SIGNAL(rideDirty()), this, SLOT(rideSelected()));
|
||||
connect(mainWindow, SIGNAL(zonesChanged()), this, SLOT(zonesChanged()));
|
||||
connect(mainWindow, SIGNAL(intervalsChanged()), this, SLOT(intervalsChanged()));
|
||||
connect(mainWindow, SIGNAL(intervalZoom(IntervalItem*)), this, SLOT(zoomInterval(IntervalItem*)));
|
||||
connect(mainWindow, SIGNAL(intervalSelected()), this, SLOT(intervalSelected()));
|
||||
connect(mainWindow, SIGNAL(configChanged()), allPlot, SLOT(configChanged()));
|
||||
connect(mainWindow, SIGNAL(configChanged()), this, SLOT(configChanged()));
|
||||
|
||||
Reference in New Issue
Block a user