mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
25 lines
465 B
C++
25 lines
465 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:
|
|
explicit RiuQwtScalePicker(QwtPlot *plot);
|
|
|
|
bool eventFilter( QObject *, QEvent * ) override;
|
|
|
|
Q_SIGNALS:
|
|
void clicked( int axis, double value );
|
|
|
|
private:
|
|
void mouseClicked( const QwtScaleWidget *, const QPoint & );
|
|
};
|