Add files from zip
This commit is contained in:
30
examples/splineeditor/ScalePicker.h
Normal file
30
examples/splineeditor/ScalePicker.h
Normal file
@@ -0,0 +1,30 @@
|
||||
/*****************************************************************************
|
||||
* Qwt Examples - Copyright (C) 2002 Uwe Rathmann
|
||||
* This file may be used under the terms of the 3-clause BSD License
|
||||
*****************************************************************************/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QwtGlobal>
|
||||
|
||||
#include <QObject>
|
||||
#include <QRect>
|
||||
|
||||
class QwtPlot;
|
||||
class QwtScaleWidget;
|
||||
|
||||
class ScalePicker : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ScalePicker( QwtPlot* plot );
|
||||
|
||||
virtual bool eventFilter( QObject*, QEvent* ) QWT_OVERRIDE;
|
||||
|
||||
Q_SIGNALS:
|
||||
void clicked( int axis, double value );
|
||||
|
||||
private:
|
||||
void mouseClicked( const QwtScaleWidget*, const QPoint& );
|
||||
QRect scaleRect( const QwtScaleWidget* ) const;
|
||||
};
|
||||
Reference in New Issue
Block a user