mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
Qt/GameList: Implement GetModel()
This commit is contained in:
parent
655778f7f1
commit
e9138f7512
@ -402,7 +402,12 @@ QString GameList::GetSelectedGame() const
|
|||||||
return QStringLiteral("");
|
return QStringLiteral("");
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameList::SetPreferredView(bool list)
|
GameListModel* GameList::GetModel() const
|
||||||
|
{
|
||||||
|
return m_model;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GameList::SetPreferredView(bool table)
|
||||||
{
|
{
|
||||||
m_prefer_list = list;
|
m_prefer_list = list;
|
||||||
Settings::Instance().SetPreferredView(list);
|
Settings::Instance().SetPreferredView(list);
|
||||||
|
@ -20,6 +20,7 @@ class GameList final : public QStackedWidget
|
|||||||
public:
|
public:
|
||||||
explicit GameList(QWidget* parent = nullptr);
|
explicit GameList(QWidget* parent = nullptr);
|
||||||
QString GetSelectedGame() const;
|
QString GetSelectedGame() const;
|
||||||
|
GameListModel* GetModel() const;
|
||||||
|
|
||||||
void SetListView() { SetPreferredView(true); }
|
void SetListView() { SetPreferredView(true); }
|
||||||
void SetGridView() { SetPreferredView(false); }
|
void SetGridView() { SetPreferredView(false); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user