all repos — mgba @ 86dcb7b6c25691fd6dd442b1f22fc4d6ff799dab

mGBA Game Boy Advance Emulator

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

86dcb7b6c25691fd6dd442b1f22fc4d6ff799dab

parent

e85bce67e54510b73b6608b680684e916af7c713

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();