diff options
| author | spxtr <spextear@gmail.com> | 2015-11-28 10:00:03 -0800 |
|---|---|---|
| committer | spxtr <spextear@gmail.com> | 2015-11-28 10:00:03 -0800 |
| commit | 59bdeb411c3d1ecfb29b8c5dda0f8b7be2b069bf (patch) | |
| tree | 86b2896ba840da8b71cbd99694d459dbe22fca25 /Source/Core/DolphinQt2/MainWindow.cpp | |
| parent | 5a1729877e5d0f801d18bafc3ca134721da4959f (diff) | |
Use a proxy model for the GameList.
This lets us sort by the underlying integers while only displaying the
icons. Currently, in both DolphinQt and DolphinQt2, we display both the
icon and the integer, but cut off the column width to not show the
integer. We also currently sort by the size's formatted string, not by
the size itself, which leads to "1 MB" sorting to less than "2 KB". This
commit fixes these issues.
In the future, we can use the filter methods here to allow for
searching for games.
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index 49e4ae4511..09f8f1579b 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -71,6 +71,7 @@ void MainWindow::AddTableColumnsMenu(QMenu* view_menu) QStringList col_names{ tr("Platform"), tr("ID"), + tr("Banner"), tr("Title"), tr("Description"), tr("Maker"), @@ -78,12 +79,13 @@ void MainWindow::AddTableColumnsMenu(QMenu* view_menu) tr("Country"), tr("Quality") }; - // TODO we'll need to update SConfig with another column. Then we can clean this - // up significantly. + // TODO we'll need to update SConfig with the extra columns. Then we can + // clean this up significantly. QList<bool> show_cols{ SConfig::GetInstance().m_showSystemColumn, SConfig::GetInstance().m_showIDColumn, SConfig::GetInstance().m_showBannerColumn, + true, false, SConfig::GetInstance().m_showMakerColumn, SConfig::GetInstance().m_showSizeColumn, |
