all repos — mgba @ 4c176ef51bf514d23bc061787c13506b3bb35579

mGBA Game Boy Advance Emulator

Qt: Add missing override keywords
Jeffrey Pfau jeffrey@endrift.com
Tue, 13 Oct 2015 21:25:22 -0700
commit

4c176ef51bf514d23bc061787c13506b3bb35579

parent

b597d5197b46e033760c9c1ecc96f075558ec067

M src/platform/qt/AudioProcessorQt.hsrc/platform/qt/AudioProcessorQt.h

@@ -19,15 +19,15 @@

public: AudioProcessorQt(QObject* parent = nullptr); - virtual void setInput(GBAThread* input); + virtual void setInput(GBAThread* input) override; virtual unsigned sampleRate() const override; public slots: - virtual void start(); - virtual void pause(); + virtual void start() override; + virtual void pause() override; - virtual void setBufferSamples(int samples); - virtual void inputParametersChanged(); + virtual void setBufferSamples(int samples) override; + virtual void inputParametersChanged() override; virtual void requestSampleRate(unsigned) override;
M src/platform/qt/AudioProcessorSDL.hsrc/platform/qt/AudioProcessorSDL.h

@@ -25,11 +25,11 @@

virtual unsigned sampleRate() const override; public slots: - virtual void start(); - virtual void pause(); + virtual void start() override; + virtual void pause() override; - virtual void setBufferSamples(int samples); - virtual void inputParametersChanged(); + virtual void setBufferSamples(int samples) override; + virtual void inputParametersChanged() override; virtual void requestSampleRate(unsigned) override;
M src/platform/qt/Display.hsrc/platform/qt/Display.h

@@ -52,7 +52,7 @@

void showMessage(const QString& message); protected: - void resizeEvent(QResizeEvent*); + virtual void resizeEvent(QResizeEvent*) override; virtual void mouseMoveEvent(QMouseEvent*) override; MessagePainter* messagePainter() { return &m_messagePainter; }
M src/platform/qt/SensorView.hsrc/platform/qt/SensorView.h

@@ -30,7 +30,7 @@ SensorView(GameController* controller, InputController* input, QWidget* parent = nullptr);

protected: bool eventFilter(QObject*, QEvent* event) override; - bool event(QEvent* event); + bool event(QEvent* event) override; private slots: void updateSensors();