Qt/GameList: Fix bold header when selecting a game

This commit is contained in:
spycrab 2018-05-24 13:48:14 +02:00
parent a60bba37cd
commit a0b2cdbffc
1 changed files with 3 additions and 2 deletions

View File

@ -91,8 +91,6 @@ void GameList::MakeListView()
connect(hor_header, &QHeaderView::sectionCountChanged, this, &GameList::OnHeaderViewChanged); connect(hor_header, &QHeaderView::sectionCountChanged, this, &GameList::OnHeaderViewChanged);
connect(hor_header, &QHeaderView::sectionMoved, this, &GameList::OnHeaderViewChanged); connect(hor_header, &QHeaderView::sectionMoved, this, &GameList::OnHeaderViewChanged);
hor_header->setSectionsMovable(true);
if (!Settings::GetQSettings().contains(QStringLiteral("tableheader/state"))) if (!Settings::GetQSettings().contains(QStringLiteral("tableheader/state")))
m_list->sortByColumn(GameListModel::COL_TITLE, Qt::AscendingOrder); m_list->sortByColumn(GameListModel::COL_TITLE, Qt::AscendingOrder);
@ -123,6 +121,9 @@ void GameList::MakeListView()
m_list->verticalHeader()->hide(); m_list->verticalHeader()->hide();
m_list->setFrameStyle(QFrame::NoFrame); m_list->setFrameStyle(QFrame::NoFrame);
hor_header->setSectionsMovable(true);
hor_header->setHighlightSections(false);
} }
void GameList::MakeEmptyView() void GameList::MakeEmptyView()