42 |
42 |
43 private: |
43 private: |
44 void createHelpCategory(); |
44 void createHelpCategory(); |
45 void createBuiltInCategory(const QString& path); |
45 void createBuiltInCategory(const QString& path); |
46 void constructAppHelp(const QString& path); |
46 void constructAppHelp(const QString& path); |
47 void constructKeywordModel(const QString& path); |
47 void constructKeywordModel(const QString& title, const QString& uid, const QString& href); |
|
48 // void searchInAllData(HelpStandardItem* item, const QString& key=QString()); |
|
49 // void searchInResult(const QString& key=QString()); |
48 HelpStandardItem* constructCategory2(const QString& title, const QString& uid); |
50 HelpStandardItem* constructCategory2(const QString& title, const QString& uid); |
49 HelpStandardItem* findItemWithHref(HelpStandardItem* itemParent, const QString& href); |
51 HelpStandardItem* findItemWithHref(HelpStandardItem* itemParent, const QString& href); |
50 |
52 |
51 private: |
53 private: |
52 QStandardItemModel* mHelpModel; //category tree model |
54 QStandardItemModel* mHelpModel; //category tree model |
53 QStandardItemModel* mKeywordModel; //keyword list model |
55 QStandardItemModel* mKeywordModel; //keyword list model |
54 HelpProxyModel* mSearhResultModel; //search result proxy model of keyword model |
56 HelpProxyModel* mSearhResultModel; //search result proxy model of keyword model |
55 |
57 QString mHelpContentRoot; |
56 QString mHelpContentRoot; |
58 QString mLastSrhKey; |
57 |
59 |
58 }; |
60 }; |
59 |
61 |
60 #endif //HELPDATAPROVIDER_H |
62 #endif //HELPDATAPROVIDER_H |