mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 18:09:59 +03:00
Initial commit. Basics work. Next: Drag and Drop
This commit is contained in:
commit
ccbf341dc8
7 changed files with 803 additions and 0 deletions
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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue