DolphinQt2: Remove 'slots:' syntax from headers

With Qt5's new connection syntax, method pointers and functors are
connected directly. There's no need to declare slots.
This commit is contained in:
Michael Maltese 2017-06-30 02:24:26 -07:00
parent f0fd38698e
commit aafb61c187
7 changed files with 18 additions and 26 deletions

View File

@ -19,12 +19,11 @@ class InfoWidget final : public QWidget
public:
explicit InfoWidget(const GameFile& game);
private slots:
private:
void ComputeChecksum();
void ChangeLanguage();
void SaveBanner();
private:
QGroupBox* CreateBannerDetails();
QGroupBox* CreateISODetails();
QLineEdit* CreateValueDisplay() { return CreateValueDisplay(QStringLiteral("")); };

View File

@ -21,13 +21,17 @@ public:
explicit GameList(QWidget* parent = nullptr);
QString GetSelectedGame() const;
public slots:
void SetTableView() { SetPreferredView(true); }
void SetListView() { SetPreferredView(false); }
void SetViewColumn(int col, bool view) { m_table->setColumnHidden(col, !view); }
void OnColumnVisibilityToggled(const QString& row, bool visible);
private slots:
signals:
void GameSelected();
void EmulationStarted();
void EmulationStopped();
private:
void ShowContextMenu(const QPoint&);
void OpenContainingFolder();
void OpenProperties();
@ -41,12 +45,6 @@ private slots:
void CompressISO();
void OnHeaderViewChanged();
signals:
void GameSelected();
void EmulationStarted();
void EmulationStopped();
private:
void MakeTableView();
void MakeListView();
void MakeEmptyView();

View File

@ -41,7 +41,6 @@ public:
NUM_COLS
};
public slots:
void UpdateGame(QSharedPointer<GameFile> game);
void RemoveGame(const QString& path);

View File

@ -29,7 +29,6 @@ public:
explicit GameTracker(QObject* parent = nullptr);
~GameTracker();
public slots:
void AddDirectory(const QString& dir);
void RemoveDirectory(const QString& dir);
@ -54,7 +53,7 @@ class GameLoader final : public QObject
{
Q_OBJECT
public slots:
public:
void LoadGame(const QString& path)
{
GameFile* game = new GameFile(path);

View File

@ -23,7 +23,6 @@ public:
bool GetRenderFocus();
bool GetRenderFullscreen();
public slots:
void SetRenderHandle(void* handle);
void SetRenderFocus(bool focus);
void SetRenderFullscreen(bool fullscreen);

View File

@ -36,7 +36,7 @@ signals:
void EmulationPaused();
void EmulationStopped();
private slots:
private:
void Open();
void Play();
void Pause();
@ -63,7 +63,6 @@ private slots:
void FullScreen();
void ScreenShot();
private:
void CreateComponents();
void ConnectGameList();

View File

@ -16,6 +16,15 @@ class MenuBar final : public QMenuBar
public:
explicit MenuBar(QWidget* parent = nullptr);
void EmulationStarted();
void EmulationPaused();
void EmulationStopped();
void UpdateStateSlotMenu();
void UpdateToolsMenu(bool emulation_started);
// Tools
void InstallWAD();
signals:
// File
void Open();
@ -57,16 +66,6 @@ signals:
void ShowAboutDialog();
public slots:
void EmulationStarted();
void EmulationPaused();
void EmulationStopped();
void UpdateStateSlotMenu();
void UpdateToolsMenu(bool emulation_started);
// Tools
void InstallWAD();
private:
void AddFileMenu();