Qt: Remove border from game list

This commit is contained in:
Starsam80 2017-07-02 16:59:18 -06:00
parent 0f9ae6d361
commit 4d56951d3b
No known key found for this signature in database
GPG Key ID: 4E48BB48BA7E9026
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include <QErrorMessage>
#include <QFileDialog>
#include <QFileInfo>
#include <QFrame>
#include <QHeaderView>
#include <QKeyEvent>
#include <QMap>
@ -94,6 +95,7 @@ void GameList::MakeTableView()
hor_header->setSectionResizeMode(GameListModel::COL_RATING, QHeaderView::ResizeToContents);
m_table->verticalHeader()->hide();
m_table->setFrameStyle(QFrame::NoFrame);
}
void GameList::MakeEmptyView()
@ -121,6 +123,7 @@ void GameList::MakeListView()
m_list->setResizeMode(QListView::Adjust);
m_list->setUniformItemSizes(true);
m_list->setContextMenuPolicy(Qt::CustomContextMenu);
m_list->setFrameStyle(QFrame::NoFrame);
connect(m_list, &QTableView::customContextMenuRequested, this, &GameList::ShowContextMenu);
}