Qt: Allow the game list headers to be rearranged

This commit is contained in:
Starsam80 2017-07-22 00:38:09 -06:00
parent 2f0bec93cb
commit d9a09cff14
No known key found for this signature in database
GPG Key ID: 4E48BB48BA7E9026
1 changed files with 2 additions and 0 deletions

View File

@ -91,7 +91,9 @@ void GameList::MakeTableView()
connect(hor_header, &QHeaderView::sortIndicatorChanged, this, &GameList::OnHeaderViewChanged);
connect(hor_header, &QHeaderView::sectionResized, this, &GameList::OnHeaderViewChanged);
connect(hor_header, &QHeaderView::sectionCountChanged, this, &GameList::OnHeaderViewChanged);
connect(hor_header, &QHeaderView::sectionMoved, this, &GameList::OnHeaderViewChanged);
hor_header->setSectionsMovable(true);
hor_header->restoreState(QSettings().value(QStringLiteral("tableheader/state")).toByteArray());
hor_header->setSectionResizeMode(GameListModel::COL_PLATFORM, QHeaderView::ResizeToContents);