fix PowerHist zoom out with a call to setZoomBase

This commit is contained in:
Berend De Schouwer
2009-10-03 16:46:16 +02:00
committed by Sean Rhea
parent 6744d4ad98
commit de96ee2f16
2 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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;