QXRD  0.11.16
Public Member Functions | Private Attributes | List of all members
QcepPlotZoomer Class Reference

#include <qcepplotzoomer.h>

Inheritance diagram for QcepPlotZoomer:
Inheritance graph
Collaboration diagram for QcepPlotZoomer:
Collaboration graph

Public Member Functions

 QcepPlotZoomer (QWidget *canvas, QcepPlot *plot)
virtual QwtText trackerTextF (const QPointF &pos) const

Private Attributes


Detailed Description

Definition at line 7 of file qcepplotzoomer.h.

Constructor & Destructor Documentation

QcepPlotZoomer::QcepPlotZoomer ( QWidget *  canvas,
QcepPlot plot 

Definition at line 3 of file qcepplotzoomer.cpp.

4  : QwtPlotZoomer(canvas),
5  m_Plot(plot)
6 {
7  setTrackerMode(QwtPicker::AlwaysOn);
8  setTrackerPen(QPen(Qt::green));
9 }
QcepPlot * m_Plot

Member Function Documentation

QwtText QcepPlotZoomer::trackerTextF ( const QPointF &  pos) const

Definition at line 11 of file qcepplotzoomer.cpp.

References m_Plot, and QcepPlot::trackerTextF().

12 {
13  return (m_Plot ? m_Plot->trackerTextF(pos) : tr("%1, %2").arg(pos.x()).arg(pos.y()));
14 }
virtual QwtText trackerTextF(const QPointF &pos)
Definition: qcepplot.cpp:394
QcepPlot * m_Plot

Here is the call graph for this function:

Member Data Documentation

QcepPlot* QcepPlotZoomer::m_Plot

Definition at line 18 of file qcepplotzoomer.h.

Referenced by trackerTextF().

The documentation for this class was generated from the following files: