Add parameter variable names
This commit is contained in:
parent
cf22b183a5
commit
e52ea2a255
@ -67,11 +67,13 @@ AnalyzerBase::~AnalyzerBase() {
|
||||
delete fht_;
|
||||
}
|
||||
|
||||
void AnalyzerBase::showEvent(QShowEvent*) {
|
||||
void AnalyzerBase::showEvent(QShowEvent *e) {
|
||||
Q_UNUSED(e)
|
||||
timer_.start(timeout(), this);
|
||||
}
|
||||
|
||||
void AnalyzerBase::hideEvent(QHideEvent*) {
|
||||
void AnalyzerBase::hideEvent(QHideEvent *e) {
|
||||
Q_UNUSED(e)
|
||||
timer_.stop();
|
||||
}
|
||||
|
||||
|
@ -65,13 +65,13 @@ class AnalyzerBase : public QWidget {
|
||||
using Scope = std::vector<float>;
|
||||
explicit AnalyzerBase(QWidget*, const uint scopeSize = 7);
|
||||
|
||||
void hideEvent(QHideEvent*) override;
|
||||
void showEvent(QShowEvent*) override;
|
||||
void hideEvent(QHideEvent *e) override;
|
||||
void showEvent(QShowEvent *e) override;
|
||||
void paintEvent(QPaintEvent *e) override;
|
||||
void timerEvent(QTimerEvent *e) override;
|
||||
|
||||
int resizeExponent(int);
|
||||
int resizeForBands(const int);
|
||||
int resizeExponent(int exp);
|
||||
int resizeForBands(const int bands);
|
||||
virtual void init() {}
|
||||
virtual void transform(Scope&);
|
||||
virtual void analyze(QPainter &p, const Scope&, const bool new_frame) = 0;
|
||||
|
@ -340,7 +340,9 @@ QColor ensureContrast(const QColor &bg, const QColor &fg, int amount) {
|
||||
|
||||
}
|
||||
|
||||
void BlockAnalyzer::paletteChange(const QPalette&) {
|
||||
void BlockAnalyzer::paletteChange(const QPalette &_palette) {
|
||||
|
||||
Q_UNUSED(_palette)
|
||||
|
||||
const QColor bg = palette().color(QPalette::Window);
|
||||
const QColor fg = ensureContrast(bg, palette().color(QPalette::Highlight));
|
||||
|
@ -49,7 +49,7 @@ class BlockAnalyzer : public AnalyzerBase {
|
||||
void transform(Scope&) override;
|
||||
void analyze(QPainter &p, const Scope &s, const bool new_frame) override;
|
||||
void resizeEvent(QResizeEvent*) override;
|
||||
virtual void paletteChange(const QPalette&);
|
||||
virtual void paletteChange(const QPalette &_palette);
|
||||
void framerateChanged() override;
|
||||
|
||||
void drawBackground();
|
||||
|
@ -82,9 +82,9 @@ void WaveRubberAnalyzer::analyze(QPainter &p, const Scope &s, const bool new_fra
|
||||
|
||||
}
|
||||
|
||||
void WaveRubberAnalyzer::transform(Scope &s) {
|
||||
void WaveRubberAnalyzer::transform(Scope &scope) {
|
||||
// No need transformation for waveform analyzer
|
||||
Q_UNUSED(s);
|
||||
Q_UNUSED(scope);
|
||||
}
|
||||
|
||||
void WaveRubberAnalyzer::demo(QPainter &p) {
|
||||
|
@ -37,7 +37,7 @@ class NetworkTimeouts : public QObject {
|
||||
explicit NetworkTimeouts(const int timeout_msec, QObject *parent = nullptr);
|
||||
|
||||
void AddReply(QNetworkReply *reply);
|
||||
void SetTimeout(int msec) { timeout_msec_ = msec; }
|
||||
void SetTimeout(const int msec) { timeout_msec_ = msec; }
|
||||
|
||||
protected:
|
||||
void timerEvent(QTimerEvent *e) override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user