mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
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.
34 lines
489 B
C++
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
|