summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/spectrum/app
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-12-06 02:23:21 +0300
committerYoann Lopes <yoann.lopes@qt.io>2016-12-12 12:11:26 +0000
commit2304c5b38a9efe861f7d4e4e0518fcb82532450f (patch)
treeebe43f374c479d1f7b59a6bd77dd8b205761d9ea /examples/multimedia/spectrum/app
parent7bc230386e0d8d6f3c4ad5a0a6a22a625c9a8327 (diff)
Examples: Add missing override
Change-Id: I54529fdc8013497edb98ee97863fe4a141bdbf1c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
Diffstat (limited to 'examples/multimedia/spectrum/app')
-rw-r--r--examples/multimedia/spectrum/app/levelmeter.h2
-rw-r--r--examples/multimedia/spectrum/app/mainwidget.h2
-rw-r--r--examples/multimedia/spectrum/app/progressbar.h2
-rw-r--r--examples/multimedia/spectrum/app/spectrograph.h6
-rw-r--r--examples/multimedia/spectrum/app/waveform.h4
5 files changed, 8 insertions, 8 deletions
diff --git a/examples/multimedia/spectrum/app/levelmeter.h b/examples/multimedia/spectrum/app/levelmeter.h
index f44da308f..075e9af96 100644
--- a/examples/multimedia/spectrum/app/levelmeter.h
+++ b/examples/multimedia/spectrum/app/levelmeter.h
@@ -57,7 +57,7 @@ public:
explicit LevelMeter(QWidget *parent = 0);
~LevelMeter();
- void paintEvent(QPaintEvent *event);
+ void paintEvent(QPaintEvent *event) override;
public slots:
void reset();
diff --git a/examples/multimedia/spectrum/app/mainwidget.h b/examples/multimedia/spectrum/app/mainwidget.h
index 449a021c4..c8bbce022 100644
--- a/examples/multimedia/spectrum/app/mainwidget.h
+++ b/examples/multimedia/spectrum/app/mainwidget.h
@@ -75,7 +75,7 @@ public:
~MainWidget();
// QObject
- void timerEvent(QTimerEvent *event);
+ void timerEvent(QTimerEvent *event) override;
public slots:
void stateChanged(QAudio::Mode mode, QAudio::State state);
diff --git a/examples/multimedia/spectrum/app/progressbar.h b/examples/multimedia/spectrum/app/progressbar.h
index 6b8032541..f6fed3f66 100644
--- a/examples/multimedia/spectrum/app/progressbar.h
+++ b/examples/multimedia/spectrum/app/progressbar.h
@@ -56,7 +56,7 @@ public:
~ProgressBar();
void reset();
- void paintEvent(QPaintEvent *event);
+ void paintEvent(QPaintEvent *event) override;
public slots:
void bufferLengthChanged(qint64 length);
diff --git a/examples/multimedia/spectrum/app/spectrograph.h b/examples/multimedia/spectrum/app/spectrograph.h
index c75e31416..64182feec 100644
--- a/examples/multimedia/spectrum/app/spectrograph.h
+++ b/examples/multimedia/spectrum/app/spectrograph.h
@@ -60,11 +60,11 @@ public:
void setParams(int numBars, qreal lowFreq, qreal highFreq);
// QObject
- void timerEvent(QTimerEvent *event);
+ void timerEvent(QTimerEvent *event) override;
// QWidget
- void paintEvent(QPaintEvent *event);
- void mousePressEvent(QMouseEvent *event);
+ void paintEvent(QPaintEvent *event) override;
+ void mousePressEvent(QMouseEvent *event) override;
signals:
void infoMessage(const QString &message, int intervalMs);
diff --git a/examples/multimedia/spectrum/app/waveform.h b/examples/multimedia/spectrum/app/waveform.h
index b49416b20..213461e92 100644
--- a/examples/multimedia/spectrum/app/waveform.h
+++ b/examples/multimedia/spectrum/app/waveform.h
@@ -64,8 +64,8 @@ public:
~Waveform();
// QWidget
- void paintEvent(QPaintEvent *event);
- void resizeEvent(QResizeEvent *event);
+ void paintEvent(QPaintEvent *event) override;
+ void resizeEvent(QResizeEvent *event) override;
void initialize(const QAudioFormat &format, qint64 audioBufferSize, qint64 windowDurationUs);
void reset();