Initial commit. Basics work. Next: Drag and Drop

This commit is contained in:
Jan Dalheimer
2013-12-24 11:47:30 +01:00
commit ccbf341dc8
7 changed files with 803 additions and 0 deletions

12
CategorizedProxyModel.cpp Normal file
View 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();
}