Files
GoldenCheetah/qwt/examples/oscilloscope/knob.h
Damien 2f9130cd76 Qwt 6.0.1 Support
Upgrade to QWT 6.0.1, but still uses a locally patched copy
since support for 8 axes has not been included, despite it
being a relatively simple patch.

Fixes #634.
Fixes #567.
2012-02-12 10:43:15 +00:00

34 lines
489 B
C++

#ifndef _KNOB_H_
#define _KNOB_H_
#include <qwidget.h>
class QwtKnob;
class QLabel;
class Knob: public QWidget
{
Q_OBJECT
public:
Knob(const QString &title,
double min, double max, QWidget *parent = NULL);
virtual QSize sizeHint() const;
void setValue(double value);
double value() const;
Q_SIGNALS:
double valueChanged(double);
protected:
virtual void resizeEvent(QResizeEvent *);
private:
QwtKnob *d_knob;
QLabel *d_label;
};
#endif