mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Zoom Out Menu Option
So you can unzoom in ride plot when you've zoomed in to an interval -- avoiding having to show fullplot to do the same thing manually. There are probably other places to add functionality for zooming out, will deal with those as they arise.
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
#include "Context.h"
|
||||
#include "RideItem.h"
|
||||
|
||||
ReferenceLineDialog::ReferenceLineDialog(AllPlot *parent, Context *context) :
|
||||
parent(parent), context(context), axis(-1)
|
||||
ReferenceLineDialog::ReferenceLineDialog(AllPlot *parent, Context *context, bool allowDelete) :
|
||||
parent(parent), context(context), allowDelete(allowDelete), axis(-1)
|
||||
{
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
setWindowTitle(tr("Add Reference"));
|
||||
@@ -47,6 +47,9 @@ ReferenceLineDialog::ReferenceLineDialog(AllPlot *parent, Context *context) :
|
||||
buttonLayout->addWidget(cancelButton);
|
||||
mainLayout->addLayout(buttonLayout);
|
||||
|
||||
// below that line we will show the existing references
|
||||
// so they can be deleted
|
||||
|
||||
connect(addButton, SIGNAL(clicked()), this, SLOT(addClicked()));
|
||||
connect(cancelButton, SIGNAL(clicked()), this, SLOT(cancelClicked()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user