mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 17:09:25 +00:00
Initial commit. Basics work. Next: Drag and Drop
This commit is contained in:
12
CategorizedProxyModel.cpp
Normal file
12
CategorizedProxyModel.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "CategorizedProxyModel.h"
|
||||
|
||||
#include "CategorizedView.h"
|
||||
|
||||
CategorizedProxyModel::CategorizedProxyModel(QObject *parent)
|
||||
: QSortFilterProxyModel(parent)
|
||||
{
|
||||
}
|
||||
bool CategorizedProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
|
||||
{
|
||||
return left.data(CategorizedView::CategoryRole).toString() < right.data(CategorizedView::CategoryRole).toString();
|
||||
}
|
Reference in New Issue
Block a user