mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
24 lines
479 B
C++
24 lines
479 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;
|
|
|
|
static double axisValueAtPosition( const QwtScaleWidget*, const QPoint& );
|
|
|
|
Q_SIGNALS:
|
|
void mouseClicked( QwtScaleWidget*, const QPoint& );
|
|
};
|