--- a/userguide/src/HelpProxyModel.cpp Fri Apr 16 14:53:45 2010 +0300
+++ b/userguide/src/HelpProxyModel.cpp Mon May 03 12:24:47 2010 +0300
@@ -18,8 +18,7 @@
#include <QStringList>
#include <QDebug>
-#include <hbstringutil.h>
-
+#include "HelpUtils.h"
#include "HelpCommon.h"
#include "HelpProxyModel.h"
@@ -44,13 +43,22 @@
foreach(QString str, keywordLst)
{
- if(HbStringUtil::findC(str, filterRegExp().pattern()) != -1)
+ if(HelpUtils::findStr(str, filterRegExp().pattern()) != -1)
{
return true;
}
}
return false;
}
+ case Qt::DisplayRole:
+ {
+ QString title = sourceModel()->data(index, Qt::DisplayRole).toString();
+ if(HelpUtils::findStr(title, filterRegExp().pattern()) != -1)
+ {
+ return true;
+ }
+ return false;
+ }
default:
return QSortFilterProxyModel::filterAcceptsRow(sourceRow, sourceParent);
}