mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06: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:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user