29 #ifndef SODAWFALL_PICKER_H 30 #define SODAWFALL_PICKER_H 34 #include <qwt/qwt_picker_machine.h> 35 #include <boost/format.hpp> 40 WFallPicker(
int xAxis,
int yAxis, QWidget * canvas) : QwtPlotPicker(xAxis, yAxis, canvas)
42 setStateMachine(
new QwtPickerClickPointMachine);
43 setTrackerMode(QwtPicker::AlwaysOn);
44 setTrackerPen(QPen(Qt::white));
48 QColor trbgcolor(Qt::black);
49 trbgcolor.setAlpha(200);
51 QwtText text((boost::format(
"%'.4f MHz") % (pos.x() * 1e-6)).str().c_str());
52 text.setBackgroundBrush(QBrush(trbgcolor));
59 #endif // SODAWFALL_PICKER_H QwtText trackerTextF(const QPointF &pos) const
WFallPicker(int xAxis, int yAxis, QWidget *canvas)