QXRD  0.11.16
qcepplotzoomer.cpp
Go to the documentation of this file.
1 #include "qcepplotzoomer.h"
2 
3 QcepPlotZoomer::QcepPlotZoomer(QWidget *canvas, QcepPlot *plot)
4  : QwtPlotZoomer(canvas),
5  m_Plot(plot)
6 {
7  setTrackerMode(QwtPicker::AlwaysOn);
8  setTrackerPen(QPen(Qt::green));
9 }
10 
11 QwtText QcepPlotZoomer::trackerTextF(const QPointF &pos) const
12 {
13  return (m_Plot ? m_Plot->trackerTextF(pos) : tr("%1, %2").arg(pos.x()).arg(pos.y()));
14 }
15 
QcepPlotZoomer(QWidget *canvas, QcepPlot *plot)
virtual QwtText trackerTextF(const QPointF &pos)
Definition: qcepplot.cpp:394
QcepPlot * m_Plot
virtual QwtText trackerTextF(const QPointF &pos) const