mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 02:28:51 +00:00
GameListModel instance ownership transferred back to the GameList instance. The GameListModel instance will be passed as a constructor parameter where needed.
This commit is contained in:
parent
0d02e70d4a
commit
5b757024c4
11 changed files with 69 additions and 71 deletions
|
@ -6,7 +6,8 @@
|
|||
|
||||
#include <QDialog>
|
||||
|
||||
class GameListModel;
|
||||
#include "DolphinQt/GameList/GameListModel.h"
|
||||
|
||||
class QCheckBox;
|
||||
class QComboBox;
|
||||
class QDialogButtonBox;
|
||||
|
@ -27,7 +28,7 @@ class NetPlaySetupDialog : public QDialog
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit NetPlaySetupDialog(QWidget* parent);
|
||||
explicit NetPlaySetupDialog(const GameListModel& game_list_model, QWidget* parent);
|
||||
|
||||
void accept() override;
|
||||
void show();
|
||||
|
@ -79,5 +80,5 @@ private:
|
|||
QCheckBox* m_host_upnp;
|
||||
#endif
|
||||
|
||||
GameListModel* m_game_list_model;
|
||||
const GameListModel& m_game_list_model;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue