mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-29 15:48:38 -05:00
947b429723
This change incorporates a reorganization of the GUI code with widgets, validators, models, and item delegates being moved to sub-directories. Relax the requirements of the ForeignKeyDelegate and related CandidateKeyFilter classes to allow them to work with constant model pointers for both referenced and referencing models.
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
|