yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

qt: Add missing override specifiers where applicable

This commit is contained in:
Lioncash 2018-08-06 13:12:32 -04:00
parent 00a68c5eea
commit 7846295a8f
5 changed files with 9 additions and 7 deletions

View File

@ -16,7 +16,7 @@ class AboutDialog : public QDialog {
public: public:
explicit AboutDialog(QWidget* parent); explicit AboutDialog(QWidget* parent);
~AboutDialog(); ~AboutDialog() override;
private: private:
std::unique_ptr<Ui::AboutDialog> ui; std::unique_ptr<Ui::AboutDialog> ui;

View File

@ -106,7 +106,7 @@ class GRenderWindow : public QWidget, public EmuWindow {
public: public:
GRenderWindow(QWidget* parent, EmuThread* emu_thread); GRenderWindow(QWidget* parent, EmuThread* emu_thread);
~GRenderWindow(); ~GRenderWindow() override;
// EmuWindow implementation // EmuWindow implementation
void SwapBuffers() override; void SwapBuffers() override;

View File

@ -22,11 +22,11 @@ class SurfacePicture : public QLabel {
public: public:
explicit SurfacePicture(QWidget* parent = nullptr, explicit SurfacePicture(QWidget* parent = nullptr,
GraphicsSurfaceWidget* surface_widget = nullptr); GraphicsSurfaceWidget* surface_widget = nullptr);
~SurfacePicture(); ~SurfacePicture() override;
protected slots: protected slots:
virtual void mouseMoveEvent(QMouseEvent* event); void mouseMoveEvent(QMouseEvent* event) override;
virtual void mousePressEvent(QMouseEvent* event); void mousePressEvent(QMouseEvent* event) override;
private: private:
GraphicsSurfaceWidget* surface_widget; GraphicsSurfaceWidget* surface_widget;

View File

@ -25,11 +25,13 @@ class WaitTreeThread;
class WaitTreeItem : public QObject { class WaitTreeItem : public QObject {
Q_OBJECT Q_OBJECT
public: public:
~WaitTreeItem() override;
virtual bool IsExpandable() const; virtual bool IsExpandable() const;
virtual std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const; virtual std::vector<std::unique_ptr<WaitTreeItem>> GetChildren() const;
virtual QString GetText() const = 0; virtual QString GetText() const = 0;
virtual QColor GetColor() const; virtual QColor GetColor() const;
virtual ~WaitTreeItem();
void Expand(); void Expand();
WaitTreeItem* Parent() const; WaitTreeItem* Parent() const;
const std::vector<std::unique_ptr<WaitTreeItem>>& Children() const; const std::vector<std::unique_ptr<WaitTreeItem>>& Children() const;

View File

@ -43,7 +43,7 @@ public:
void filterBarSetChecked(bool state); void filterBarSetChecked(bool state);
void UpdateUITheme(); void UpdateUITheme();
GMainWindow(); GMainWindow();
~GMainWindow(); ~GMainWindow() override;
signals: signals: