summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/spectrum/app
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multimedia/spectrum/app')
-rw-r--r--examples/multimedia/spectrum/app/engine.cpp6
-rw-r--r--examples/multimedia/spectrum/app/levelmeter.cpp2
-rw-r--r--examples/multimedia/spectrum/app/mainwidget.cpp4
-rw-r--r--examples/multimedia/spectrum/app/spectrograph.cpp4
-rw-r--r--examples/multimedia/spectrum/app/spectrumanalyser.cpp4
-rw-r--r--examples/multimedia/spectrum/app/tonegenerator.cpp2
6 files changed, 11 insertions, 11 deletions
diff --git a/examples/multimedia/spectrum/app/engine.cpp b/examples/multimedia/spectrum/app/engine.cpp
index d188259dc..f934f8788 100644
--- a/examples/multimedia/spectrum/app/engine.cpp
+++ b/examples/multimedia/spectrum/app/engine.cpp
@@ -675,8 +675,8 @@ void Engine::setPlayPosition(qint64 position, bool forceEmit)
void Engine::calculateLevel(qint64 position, qint64 length)
{
#ifdef DISABLE_LEVEL
- Q_UNUSED(position)
- Q_UNUSED(length)
+ Q_UNUSED(position);
+ Q_UNUSED(length);
#else
Q_ASSERT(position + length <= m_bufferPosition + m_dataLength);
@@ -707,7 +707,7 @@ void Engine::calculateLevel(qint64 position, qint64 length)
void Engine::calculateSpectrum(qint64 position)
{
#ifdef DISABLE_SPECTRUM
- Q_UNUSED(position)
+ Q_UNUSED(position);
#else
Q_ASSERT(position + m_spectrumBufferLength <= m_bufferPosition + m_dataLength);
Q_ASSERT(0 == m_spectrumBufferLength % 2); // constraint of FFT algorithm
diff --git a/examples/multimedia/spectrum/app/levelmeter.cpp b/examples/multimedia/spectrum/app/levelmeter.cpp
index 1c720905c..f0c66eeb3 100644
--- a/examples/multimedia/spectrum/app/levelmeter.cpp
+++ b/examples/multimedia/spectrum/app/levelmeter.cpp
@@ -133,7 +133,7 @@ void LevelMeter::redrawTimerExpired()
void LevelMeter::paintEvent(QPaintEvent *event)
{
- Q_UNUSED(event)
+ Q_UNUSED(event);
QPainter painter(this);
painter.fillRect(rect(), Qt::black);
diff --git a/examples/multimedia/spectrum/app/mainwidget.cpp b/examples/multimedia/spectrum/app/mainwidget.cpp
index 235608a05..d6163f7f9 100644
--- a/examples/multimedia/spectrum/app/mainwidget.cpp
+++ b/examples/multimedia/spectrum/app/mainwidget.cpp
@@ -167,7 +167,7 @@ void MainWidget::errorMessage(const QString &heading, const QString &detail)
void MainWidget::timerEvent(QTimerEvent *event)
{
Q_ASSERT(event->timerId() == m_infoMessageTimerId);
- Q_UNUSED(event) // suppress warnings in release builds
+ Q_UNUSED(event); // suppress warnings in release builds
killTimer(m_infoMessageTimerId);
m_infoMessageTimerId = NullTimerId;
m_infoMessage->setText("");
@@ -178,7 +178,7 @@ void MainWidget::audioPositionChanged(qint64 position)
#ifndef DISABLE_WAVEFORM
m_waveform->audioPositionChanged(position);
#else
- Q_UNUSED(position)
+ Q_UNUSED(position);
#endif
}
diff --git a/examples/multimedia/spectrum/app/spectrograph.cpp b/examples/multimedia/spectrum/app/spectrograph.cpp
index 04ef51e80..6eaa097fc 100644
--- a/examples/multimedia/spectrum/app/spectrograph.cpp
+++ b/examples/multimedia/spectrum/app/spectrograph.cpp
@@ -86,7 +86,7 @@ void Spectrograph::setParams(int numBars, qreal lowFreq, qreal highFreq)
void Spectrograph::timerEvent(QTimerEvent *event)
{
Q_ASSERT(event->timerId() == m_timerId);
- Q_UNUSED(event) // suppress warnings in release builds
+ Q_UNUSED(event); // suppress warnings in release builds
killTimer(m_timerId);
m_timerId = NullTimerId;
m_barSelected = NullIndex;
@@ -95,7 +95,7 @@ void Spectrograph::timerEvent(QTimerEvent *event)
void Spectrograph::paintEvent(QPaintEvent *event)
{
- Q_UNUSED(event)
+ Q_UNUSED(event);
QPainter painter(this);
painter.fillRect(rect(), Qt::black);
diff --git a/examples/multimedia/spectrum/app/spectrumanalyser.cpp b/examples/multimedia/spectrum/app/spectrumanalyser.cpp
index ee024147f..6daa1c6aa 100644
--- a/examples/multimedia/spectrum/app/spectrumanalyser.cpp
+++ b/examples/multimedia/spectrum/app/spectrumanalyser.cpp
@@ -201,7 +201,7 @@ void SpectrumAnalyser::setWindowFunction(WindowFunction type)
Qt::AutoConnection,
Q_ARG(WindowFunction, type));
Q_ASSERT(b);
- Q_UNUSED(b) // suppress warnings in release builds
+ Q_UNUSED(b); // suppress warnings in release builds
}
void SpectrumAnalyser::calculate(const QByteArray &buffer,
@@ -247,7 +247,7 @@ void SpectrumAnalyser::calculate(const QByteArray &buffer,
Q_ARG(int, format.sampleRate()),
Q_ARG(int, bytesPerSample));
Q_ASSERT(b);
- Q_UNUSED(b) // suppress warnings in release builds
+ Q_UNUSED(b); // suppress warnings in release builds
#ifdef DUMP_SPECTRUMANALYSER
m_textStream << "FrequencySpectrum " << m_count << "\n";
diff --git a/examples/multimedia/spectrum/app/tonegenerator.cpp b/examples/multimedia/spectrum/app/tonegenerator.cpp
index 1718d1c69..2e549ab4f 100644
--- a/examples/multimedia/spectrum/app/tonegenerator.cpp
+++ b/examples/multimedia/spectrum/app/tonegenerator.cpp
@@ -65,7 +65,7 @@ void generateTone(const SweptTone &tone, const QAudioFormat &format, QByteArray
const int numSamples = buffer.size() / sampleBytes;
Q_ASSERT(length % sampleBytes == 0);
- Q_UNUSED(sampleBytes) // suppress warning in release builds
+ Q_UNUSED(sampleBytes); // suppress warning in release builds
unsigned char *ptr = reinterpret_cast<unsigned char *>(buffer.data());