mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
fix PowerHist zoom out with a call to setZoomBase
This commit is contained in:
committed by
Sean Rhea
parent
6744d4ad98
commit
de96ee2f16
@@ -241,7 +241,7 @@ PowerHist::PowerHist():
|
||||
|
||||
zoneLabels = QList <PowerHistZoneLabel *>::QList();
|
||||
|
||||
new penTooltip(this->canvas());
|
||||
zoomer = new penTooltip(this->canvas());
|
||||
}
|
||||
|
||||
PowerHist::~PowerHist() {
|
||||
@@ -448,7 +448,7 @@ PowerHist::setData(RideItem *_rideItem)
|
||||
setTitle("no data");
|
||||
replot();
|
||||
}
|
||||
|
||||
zoomer->setZoomBase();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -28,6 +28,7 @@ class QwtPlotGrid;
|
||||
class RideItem;
|
||||
class PowerHistBackground;
|
||||
class PowerHistZoneLabel;
|
||||
class QwtPlotZoomer;
|
||||
|
||||
class PowerHist : public QwtPlot
|
||||
{
|
||||
@@ -95,6 +96,7 @@ class PowerHist : public QwtPlot
|
||||
|
||||
void recalc();
|
||||
void setYMax();
|
||||
QwtPlotZoomer *zoomer;
|
||||
|
||||
private:
|
||||
QSettings *settings;
|
||||
|
||||
Reference in New Issue
Block a user