2014-04-03 15:29:13 -04:00
|
|
|
// -*- Mode: C++ -*-
|
2013-08-10 11:29:55 -04:00
|
|
|
#ifndef SIGNALMETER_H
|
|
|
|
#define SIGNALMETER_H
|
|
|
|
|
2015-06-25 18:41:13 -04:00
|
|
|
#include <QFrame>
|
2013-08-10 11:29:55 -04:00
|
|
|
|
2015-06-25 18:41:13 -04:00
|
|
|
class QLabel;
|
|
|
|
class MeterWidget;
|
|
|
|
|
|
|
|
class SignalMeter final
|
|
|
|
: public QFrame
|
2013-08-10 11:29:55 -04:00
|
|
|
{
|
2015-06-25 18:41:13 -04:00
|
|
|
Q_OBJECT
|
|
|
|
|
2013-08-10 11:29:55 -04:00
|
|
|
public:
|
2015-06-25 18:41:13 -04:00
|
|
|
explicit SignalMeter (QWidget * parent = nullptr);
|
2013-08-10 11:29:55 -04:00
|
|
|
|
|
|
|
public slots:
|
2015-06-25 18:41:13 -04:00
|
|
|
void setValue (int value);
|
2013-08-10 11:29:55 -04:00
|
|
|
|
|
|
|
private:
|
2015-06-25 18:41:13 -04:00
|
|
|
MeterWidget * m_meter;
|
|
|
|
QWidget * m_scale;
|
|
|
|
QLabel * m_reading;
|
2013-08-10 11:29:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SIGNALMETER_H
|