mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 15:47:10 -04:00
29146ca41e
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5744 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
32 lines
574 B
C++
32 lines
574 B
C++
// -*- Mode: C++ -*-
|
|
#ifndef METERWIDGET_H
|
|
#define METERWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QQueue>
|
|
|
|
class MeterWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY (int value READ value WRITE setValue)
|
|
|
|
public:
|
|
explicit MeterWidget (QWidget *parent = 0);
|
|
|
|
// value property
|
|
int value () const {return m_signal;}
|
|
Q_SLOT void setValue (int value);
|
|
|
|
// QWidget implementation
|
|
QSize sizeHint () const override;
|
|
protected:
|
|
void paintEvent( QPaintEvent * ) override;
|
|
|
|
private:
|
|
QQueue<int> signalQueue;
|
|
int m_signal;
|
|
int m_sigPeak;
|
|
};
|
|
|
|
#endif // METERWIDGET_H
|