turn off tooltips in PowerHist

With some versions of Qt/Qwt, tooltips cause an infinite recursion.  We don't
know why this happens yet, but this patch at least prevents crashes while we
figure it out.
This commit is contained in:
Sean Rhea
2009-09-06 14:13:31 -04:00
parent fbc3c939e2
commit dc8877eb6a

View File

@@ -38,7 +38,10 @@ class penTooltip: public QwtPlotZoomer
penTooltip(QwtPlotCanvas *canvas):
QwtPlotZoomer(canvas)
{
setTrackerMode(AlwaysOn);
// With some versions of Qt/Qwt, setting this to AlwaysOn
// causes an infinite recursion.
//setTrackerMode(AlwaysOn);
setTrackerMode(AlwaysOff);
}
virtual QwtText trackerText(const QwtDoublePoint &pos) const