From: Alexey Chernobaev Date: Mon, 12 Mar 2018 20:02:03 +0000 (+0300) Subject: bug fix in the chart tracker text (wrong y-value) - if using QWT charts X-Git-Tag: submit/tizen/20180620.112952^2^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=503123c6761fa250d9bfd1ec4bb49fd5ca05d2bb;p=sdk%2Ftools%2Fheaptrack.git bug fix in the chart tracker text (wrong y-value) - if using QWT charts --- diff --git a/src/analyze/gui/chartwidgetqwtplot.cpp b/src/analyze/gui/chartwidgetqwtplot.cpp index c5c950f..4ec67ea 100644 --- a/src/analyze/gui/chartwidgetqwtplot.cpp +++ b/src/analyze/gui/chartwidgetqwtplot.cpp @@ -33,7 +33,9 @@ class SizeScaleDraw: public QwtScaleDraw class Zoomer: public QwtPlotZoomer { public: - Zoomer(ChartWidgetQwtPlot *plot) : QwtPlotZoomer(plot->canvas()), m_plot(plot) + Zoomer(ChartWidgetQwtPlot *plot) + : QwtPlotZoomer(QwtPlot::xBottom, QwtPlot::yRight, plot->canvas()), + m_plot(plot) { setRubberBandPen(QColor(Qt::darkGreen)); setTrackerMode(QwtPlotPicker::AlwaysOn);