summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2017-07-20 18:38:09 +0200
committerspycrab <spycrab@users.noreply.github.com>2017-08-09 00:05:48 +0200
commite9138f7512fb875ced7b17499a7d11cb362d2268 (patch)
treeee920cf94c8c34f790c4760d5952defa15267e30 /Source/Core
parent655778f7f1e310be3e2a57f25187f11f4666313b (diff)
Qt/GameList: Implement GetModel()
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.cpp7
-rw-r--r--Source/Core/DolphinQt2/GameList/GameList.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt2/GameList/GameList.cpp b/Source/Core/DolphinQt2/GameList/GameList.cpp
index b20629945f..4cd1794dff 100644
--- a/Source/Core/DolphinQt2/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt2/GameList/GameList.cpp
@@ -402,7 +402,12 @@ QString GameList::GetSelectedGame() const
return QStringLiteral("");
}
-void GameList::SetPreferredView(bool list)
+GameListModel* GameList::GetModel() const
+{
+ return m_model;
+}
+
+void GameList::SetPreferredView(bool table)
{
m_prefer_list = list;
Settings::Instance().SetPreferredView(list);
diff --git a/Source/Core/DolphinQt2/GameList/GameList.h b/Source/Core/DolphinQt2/GameList/GameList.h
index 8a02eecd9c..6fa65c89de 100644
--- a/Source/Core/DolphinQt2/GameList/GameList.h
+++ b/Source/Core/DolphinQt2/GameList/GameList.h
@@ -20,6 +20,7 @@ class GameList final : public QStackedWidget
public:
explicit GameList(QWidget* parent = nullptr);
QString GetSelectedGame() const;
+ GameListModel* GetModel() const;
void SetListView() { SetPreferredView(true); }
void SetGridView() { SetPreferredView(false); }