diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /widgets/meterwidget.h | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'widgets/meterwidget.h')
| -rwxr-xr-x | widgets/meterwidget.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/widgets/meterwidget.h b/widgets/meterwidget.h index 08bda6d5..4d48cfc5 100755 --- a/widgets/meterwidget.h +++ b/widgets/meterwidget.h @@ -1,33 +1,33 @@ -// -*- 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; - void set_sigPeak(int value); -protected: - void paintEvent( QPaintEvent * ) override; - -private: - QQueue<int> signalQueue; - int m_signal; - int m_noisePeak; - int m_sigPeak; // peak value for color coding -}; - -#endif // METERWIDGET_H +// -*- 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;
+ void set_sigPeak(int value);
+protected:
+ void paintEvent( QPaintEvent * ) override;
+
+private:
+ QQueue<int> signalQueue;
+ int m_signal;
+ int m_noisePeak;
+ int m_sigPeak; // peak value for color coding
+};
+
+#endif // METERWIDGET_H
|
