summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTechjar <tecknojar@gmail.com>2018-09-02 18:22:44 -0400
committerTechjar <tecknojar@gmail.com>2018-09-02 18:22:44 -0400
commitbb598529be8e4f16db25040308a725d375b0d09b (patch)
treeeab01d9bb6a6c94f53868219d0269142f3a5e8d2 /Source/Core
parent5f0d825f40b8aabe13eaef32d44ab667ff8e8c28 (diff)
Qt/GameList: Make grid view scale persistent
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinQt/GameList/GameList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp
index c1c2e7b363..847997c5dd 100644
--- a/Source/Core/DolphinQt/GameList/GameList.cpp
+++ b/Source/Core/DolphinQt/GameList/GameList.cpp
@@ -64,6 +64,9 @@ GameList::GameList(QWidget* parent) : QStackedWidget(parent)
MakeGridView();
MakeEmptyView();
+ if (Settings::GetQSettings().contains(QStringLiteral("gridview/scale")))
+ m_model->SetScale(Settings::GetQSettings().value(QStringLiteral("gridview/scale")).toFloat());
+
connect(m_list, &QTableView::doubleClicked, this, &GameList::GameSelected);
connect(m_grid, &QListView::doubleClicked, this, &GameList::GameSelected);
connect(m_model, &QAbstractItemModel::rowsInserted, this, &GameList::ConsiderViewChange);
@@ -155,6 +158,7 @@ GameList::~GameList()
{
Settings::GetQSettings().setValue(QStringLiteral("tableheader/state"),
m_list->horizontalHeader()->saveState());
+ Settings::GetQSettings().setValue(QStringLiteral("gridview/scale"), m_model->GetScale());
}
void GameList::UpdateColumnVisibility()