From 24626b8cb0c09ec7d0317f16cb6742fe97a69b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 12 Mar 2014 08:48:19 +0100 Subject: [PATCH] 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 --- kcmkwin/kwincompositing/model.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kcmkwin/kwincompositing/model.cpp b/kcmkwin/kwincompositing/model.cpp index 1a36e5f5ec..5d07375324 100644 --- a/kcmkwin/kwincompositing/model.cpp +++ b/kcmkwin/kwincompositing/model.cpp @@ -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; }