Merge pull request #5741 from Starsam80/qt-remove-border

Qt: Remove border from game list
This commit is contained in:
Leo Lam 2017-07-04 13:39:05 +02:00 committed by GitHub
commit 6a7dd01f1c
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);
}