ResInsight/ApplicationCode/UserInterface/RiuQwtScalePicker.h
2016-10-14 15:06:21 +02:00

25 lines
455 B
C++

// 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:
RiuQwtScalePicker(QwtPlot *plot);
virtual bool eventFilter( QObject *, QEvent * );
Q_SIGNALS:
void clicked( int axis, double value );
private:
void mouseClicked( const QwtScaleWidget *, const QPoint & );
};