- setSourceModel(parent);
- setDynamicSortFilter(true);
- setSortCaseSensitivity(Qt::CaseInsensitive);
- setSortRole(TreeModel::SortRole);
-}
-
-QVariant NickViewFilter::data(const QModelIndex &index, int role) const {
- if(role == Qt::ForegroundRole)
- return foreground(index);
- else
- return QSortFilterProxyModel::data(index, role);
-// else {
-// QVariant d =
-// if(role == 0)
-// qDebug() << index << role << d;
-// return d;
-// }
+ setSourceModel(parent);
+ setDynamicSortFilter(true);
+ setSortCaseSensitivity(Qt::CaseInsensitive);
+ setSortRole(TreeModel::SortRole);