Merge pull request #1368 from LittleWhite-tb/configure-widget
Implementation for a configure widget
This commit is contained in:
commit
a1b81469a3
21 changed files with 807 additions and 262 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
#include "game_list.h"
|
||||
#include "game_list_p.h"
|
||||
#include "ui_settings.h"
|
||||
|
||||
#include "core/loader/loader.h"
|
||||
|
||||
|
@ -100,19 +101,15 @@ void GameList::PopulateAsync(const QString& dir_path, bool deep_scan)
|
|||
current_worker = std::move(worker);
|
||||
}
|
||||
|
||||
void GameList::SaveInterfaceLayout(QSettings& settings)
|
||||
void GameList::SaveInterfaceLayout()
|
||||
{
|
||||
settings.beginGroup("UILayout");
|
||||
settings.setValue("gameListHeaderState", tree_view->header()->saveState());
|
||||
settings.endGroup();
|
||||
UISettings::values.gamelist_header_state = tree_view->header()->saveState();
|
||||
}
|
||||
|
||||
void GameList::LoadInterfaceLayout(QSettings& settings)
|
||||
void GameList::LoadInterfaceLayout()
|
||||
{
|
||||
auto header = tree_view->header();
|
||||
settings.beginGroup("UILayout");
|
||||
header->restoreState(settings.value("gameListHeaderState").toByteArray());
|
||||
settings.endGroup();
|
||||
header->restoreState(UISettings::values.gamelist_header_state);
|
||||
|
||||
item_model->sort(header->sortIndicatorSection(), header->sortIndicatorOrder());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue