userguide/src/HelpDataProvider.cpp
changeset 27 0a93cba9d57a
parent 26 97d7f0705d0a
child 37 4eefeeb3cd2d
--- a/userguide/src/HelpDataProvider.cpp	Tue Jun 08 18:34:07 2010 +0800
+++ b/userguide/src/HelpDataProvider.cpp	Tue Jun 22 18:36:24 2010 +0800
@@ -72,11 +72,6 @@
 
 QAbstractItemModel* HelpDataProvider::getCategoryData()
 {
-    if(!mHelpModel->rowCount())
-    {
-        createHelpCategory();
-    }
-
     return mHelpModel;
 }
 
@@ -89,6 +84,7 @@
 
 	mLastSrhKey = key;
     mSearhResultModel->setFilterRegExp(key);
+
 	
     return mSearhResultModel;
 }
@@ -187,7 +183,6 @@
 
 void HelpDataProvider::constructBuiltInCategory(const QString& path, const QStringList& uidList, const QStringList& titleList)
 {
-//	constructCategory2(title, uid);
 	if(uidList.count() != titleList.count())
 	{
 		//ToDo
@@ -363,7 +358,7 @@
 		return;
 	}
 
-	for(int i = featureIdLst.count()  - 1; i <= 0; i--)
+	for(int i = featureIdLst.count()  - 1; i >= 0; i--)
 	{
 		int featureID = featureIdLst.at(i).toInt();
 		if(!HelpUtils::suppportFeatureID(featureID))
@@ -426,7 +421,7 @@
 		return;
 	}
 
-	for(int i = featureIdLst.count()  - 1; i <= 0; i--)
+	for(int i = featureIdLst.count()  - 1; i >= 0; i--)
 	{
 		int featureID = featureIdLst.at(i).toInt();
 		if(!HelpUtils::suppportFeatureID(featureID))