mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
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:
parent
f0fd38698e
commit
aafb61c187
@ -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("")); };
|
||||
|
@ -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();
|
||||
|
@ -41,7 +41,6 @@ public:
|
||||
NUM_COLS
|
||||
};
|
||||
|
||||
public slots:
|
||||
void UpdateGame(QSharedPointer<GameFile> game);
|
||||
void RemoveGame(const QString& path);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -23,7 +23,6 @@ public:
|
||||
bool GetRenderFocus();
|
||||
bool GetRenderFullscreen();
|
||||
|
||||
public slots:
|
||||
void SetRenderHandle(void* handle);
|
||||
void SetRenderFocus(bool focus);
|
||||
void SetRenderFullscreen(bool fullscreen);
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user