Merge pull request #6888 from lioncash/qt-override

DolphinQt2: Minor changes
This commit is contained in:
Tilka 2018-05-17 22:16:23 +01:00 committed by GitHub
commit e67f2dcada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 9 deletions

View File

@ -22,7 +22,7 @@ class NewBreakpointDialog : public QDialog
public: public:
explicit NewBreakpointDialog(BreakpointWidget* parent); explicit NewBreakpointDialog(BreakpointWidget* parent);
void accept(); void accept() override;
private: private:
void CreateWidgets(); void CreateWidgets();

View File

@ -59,7 +59,7 @@ void GameListDialog::PopulateGameList()
m_game_list->sortItems(); m_game_list->sortItems();
} }
const QString& GameListDialog::GetSelectedUniqueID() const QString& GameListDialog::GetSelectedUniqueID() const
{ {
return m_game_id; return m_game_id;
} }

View File

@ -17,8 +17,8 @@ class GameListDialog : public QDialog
public: public:
explicit GameListDialog(QWidget* parent); explicit GameListDialog(QWidget* parent);
int exec(); int exec() override;
const QString& GetSelectedUniqueID(); const QString& GetSelectedUniqueID() const;
private: private:
void CreateWidgets(); void CreateWidgets();

View File

@ -17,7 +17,7 @@ class MD5Dialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
MD5Dialog(QWidget* parent); explicit MD5Dialog(QWidget* parent);
void show(const QString& title); void show(const QString& title);
void SetProgress(int pid, int progress); void SetProgress(int pid, int progress);

View File

@ -30,7 +30,7 @@ class NetPlayDialog : public QDialog, public NetPlayUI
{ {
Q_OBJECT Q_OBJECT
public: public:
NetPlayDialog(QWidget* parent); explicit NetPlayDialog(QWidget* parent);
~NetPlayDialog(); ~NetPlayDialog();
void show(std::string nickname, bool use_traversal); void show(std::string nickname, bool use_traversal);

View File

@ -22,7 +22,7 @@ class NetPlaySetupDialog : public QDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
NetPlaySetupDialog(QWidget* parent); explicit NetPlaySetupDialog(QWidget* parent);
void accept() override; void accept() override;
void show(); void show();

View File

@ -20,7 +20,7 @@ class PadMappingDialog : public QDialog
public: public:
explicit PadMappingDialog(QWidget* widget); explicit PadMappingDialog(QWidget* widget);
int exec(); int exec() override;
PadMappingArray GetGCPadArray(); PadMappingArray GetGCPadArray();
PadMappingArray GetWiimoteArray(); PadMappingArray GetWiimoteArray();

View File

@ -13,7 +13,7 @@ class AspectRatioWidget : public QWidget
Q_OBJECT Q_OBJECT
public: public:
AspectRatioWidget(QWidget* widget, float width, float height, QWidget* parent = nullptr); AspectRatioWidget(QWidget* widget, float width, float height, QWidget* parent = nullptr);
void resizeEvent(QResizeEvent* event); void resizeEvent(QResizeEvent* event) override;
private: private:
QBoxLayout* m_layout; QBoxLayout* m_layout;