mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-10 09:24:59 -06:00
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:
@@ -49,6 +49,11 @@ public:
|
||||
NB_SEARCH_COLUMNS
|
||||
};
|
||||
|
||||
enum SearchDataRole
|
||||
{
|
||||
UnderlyingDataRole = Qt::UserRole
|
||||
};
|
||||
|
||||
explicit SearchSortModel(QObject *parent = nullptr);
|
||||
|
||||
void enableNameFilter(bool enabled);
|
||||
|
||||
Reference in New Issue
Block a user