28 lines
404 B
C
28 lines
404 B
C
|
// -*- Mode: C++ -*-
|
||
|
#ifndef SIGNALMETER_H
|
||
|
#define SIGNALMETER_H
|
||
|
|
||
|
#include <QFrame>
|
||
|
|
||
|
class QLabel;
|
||
|
class MeterWidget;
|
||
|
|
||
|
class SignalMeter final
|
||
|
: public QFrame
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit SignalMeter (QWidget * parent = nullptr);
|
||
|
|
||
|
public slots:
|
||
|
void setValue (float value, float valueMax);
|
||
|
|
||
|
private:
|
||
|
MeterWidget * m_meter;
|
||
|
QWidget * m_scale;
|
||
|
QLabel * m_reading;
|
||
|
};
|
||
|
|
||
|
#endif // SIGNALMETER_H
|