feat: add support for sorting play times

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2022-10-01 22:27:18 +02:00
parent 24060291c8
commit b0dc7927fb
5 changed files with 26 additions and 12 deletions

View File

@ -25,6 +25,7 @@ InstanceProxyModel::InstanceProxyModel(QObject* parent) : QSortFilterProxyModel(
m_naturalSort.setCaseSensitivity(Qt::CaseSensitivity::CaseInsensitive);
// FIXME: use loaded translation as source of locale instead, hook this up to translation changes
m_naturalSort.setLocale(QLocale::system());
setSortRole(InstanceList::SortRole);
}
QVariant InstanceProxyModel::data(const QModelIndex& index, int role) const