mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-14 05:55:13 +01:00
fix jrowes lazy sorting
This commit is contained in:
parent
31a9fdb00b
commit
30c6c37d6c
@ -161,8 +161,7 @@ QVariant ComboBoxProxyModel::data(const QModelIndex& idx, int role) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool ComboBoxProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const {
|
bool ComboBoxProxyModel::lessThan(const QModelIndex& left, const QModelIndex& right) const {
|
||||||
// TODO(jroweboy): Sort by game title not filename
|
auto leftData = left.data(GameListItemPath::TitleRole).toString();
|
||||||
auto leftData = left.data(Qt::DisplayRole).toString();
|
auto rightData = right.data(GameListItemPath::TitleRole).toString();
|
||||||
auto rightData = right.data(Qt::DisplayRole).toString();
|
|
||||||
return leftData.compare(rightData) < 0;
|
return leftData.compare(rightData) < 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user