Accept row if filter can be found in the Category name
Idea: searching for virtual did not return all effects in the "Virtual Desktop Switching Animation" category. REVIEW: 116752
This commit is contained in:
parent
b9f00690e6
commit
24626b8cb0
1 changed files with 3 additions and 0 deletions
|
@ -394,6 +394,9 @@ bool EffectFilterModel::filterAcceptsRow(int source_row, const QModelIndex &sour
|
|||
} else if (m_effectModel->data(index, EffectModel::DescriptionRole).toString().contains(m_filter, Qt::CaseInsensitive)) {
|
||||
return true;
|
||||
}
|
||||
if (index.data(EffectModel::CategoryRole).toString().contains(m_filter, Qt::CaseInsensitive)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue