Swap things around -- rename refactors, moving towards non-derpy design. Maybe.
This commit is contained in:
@@ -8,8 +8,8 @@ GroupedProxyModel::GroupedProxyModel(QObject *parent) : QSortFilterProxyModel(pa
|
||||
|
||||
bool GroupedProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
|
||||
{
|
||||
const QString leftCategory = left.data(CategorizedViewRoles::CategoryRole).toString();
|
||||
const QString rightCategory = right.data(CategorizedViewRoles::CategoryRole).toString();
|
||||
const QString leftCategory = left.data(GroupViewRoles::GroupRole).toString();
|
||||
const QString rightCategory = right.data(GroupViewRoles::GroupRole).toString();
|
||||
if (leftCategory == rightCategory)
|
||||
{
|
||||
return left.row() < right.row();
|
||||
|
||||
Reference in New Issue
Block a user