ResInsight/ApplicationCode/UserInterface/RiuQwtScalePicker.h

25 lines
455 B
C
Raw Normal View History

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