2016-10-14 08:06:21 -05:00
|
|
|
// Based on the example scalepicker from the Qwt/examples/event_filter
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QRect>
|
|
|
|
|
|
|
|
class QwtPlot;
|
|
|
|
class QwtScaleWidget;
|
|
|
|
|
|
|
|
class RiuQwtScalePicker : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
explicit RiuQwtScalePicker( QwtPlot* plot );
|
|
|
|
|
|
|
|
bool eventFilter( QObject*, QEvent* ) override;
|
2016-10-14 08:06:21 -05:00
|
|
|
|
2019-10-11 08:54:19 -05:00
|
|
|
static double axisValueAtPosition( const QwtScaleWidget*, const QPoint& );
|
2016-10-14 08:06:21 -05:00
|
|
|
|
2019-10-11 08:54:19 -05:00
|
|
|
Q_SIGNALS:
|
|
|
|
void mouseClicked( QwtScaleWidget*, const QPoint& );
|
2016-10-14 08:06:21 -05:00
|
|
|
};
|