Use default delegate for SearchModel

Introduce and use data role - SearchFilterModel::UnderlyingDataRole as a filter role in SearchFilterModel

Removes the usage of QItemDelegate
This commit is contained in:
jagannatharjun
2020-07-18 23:03:36 +05:30
parent 8eecfb1bee
commit 00413b0dd1
8 changed files with 30 additions and 138 deletions

View File

@@ -49,6 +49,11 @@ public:
NB_SEARCH_COLUMNS
};
enum SearchDataRole
{
UnderlyingDataRole = Qt::UserRole
};
explicit SearchSortModel(QObject *parent = nullptr);
void enableNameFilter(bool enabled);