mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Qt: Bring column selection up to par with Wx
This commit is contained in:
@ -108,6 +108,7 @@ void GameList::MakeListView()
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_BANNER, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_TITLE, QHeaderView::Stretch);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_MAKER, QHeaderView::Stretch);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_FILE_NAME, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_SIZE, QHeaderView::ResizeToContents);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_DESCRIPTION, QHeaderView::Stretch);
|
||||
hor_header->setSectionResizeMode(GameListModel::COL_RATING, QHeaderView::ResizeToContents);
|
||||
|
@ -98,6 +98,9 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
|
||||
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
|
||||
return game->GetMaker();
|
||||
break;
|
||||
case COL_FILE_NAME:
|
||||
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
|
||||
return game->GetFileName();
|
||||
case COL_SIZE:
|
||||
if (role == Qt::DisplayRole)
|
||||
return FormatSize(game->GetFileSize());
|
||||
@ -126,6 +129,8 @@ QVariant GameListModel::headerData(int section, Qt::Orientation orientation, int
|
||||
return tr("Description");
|
||||
case COL_MAKER:
|
||||
return tr("Maker");
|
||||
case COL_FILE_NAME:
|
||||
return tr("File Name");
|
||||
case COL_SIZE:
|
||||
return tr("Size");
|
||||
case COL_RATING:
|
||||
|
@ -42,6 +42,7 @@ public:
|
||||
COL_COUNTRY,
|
||||
COL_SIZE,
|
||||
COL_RATING,
|
||||
COL_FILE_NAME,
|
||||
NUM_COLS
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user