diff libgui/src/documentation.h @ 25541:517c73173011

doc.m: allow full text search in GUI mode (bug #54053). * documentation.h(cc) (documentation::m_internal_search): new data member (documentation::documentation): Set tabs objectName for further search. Rename "Index" tab to "Function Index" for consistency. (documentation::load_ref): If index search works, switch to "Function Index" tab and filter results. Otherwise, initialize m_internal_search, switch to "Search" tab and start a full text search. . (documentation::global_search_finished): If m_internal_search is not empty, analyse search results: if there is only one result or if one of the results contains the searched string, display the corresponding page in text browser
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 21 Jun 2018 10:52:44 +0200
parents 41bbdf17f51a
children 506419b5f817
line wrap: on
line diff
--- a/libgui/src/documentation.h	Mon Jul 02 11:39:36 2018 -0700
+++ b/libgui/src/documentation.h	Thu Jun 21 10:52:44 2018 +0200
@@ -93,15 +93,18 @@
     void record_anchor_position (void);
     void handle_cursor_position_change (void);
 
+  signals:
+    void show_single_result (const QUrl);
+    
   private:
 
     QHelpEngine *m_help_engine;
+    QString m_internal_search;
     documentation_browser *m_doc_browser;
     QLineEdit *m_find_line_edit;
     int m_search_anchor_position;
     QComboBox *m_filter;
     QString m_collection;
-
     QShortcut *m_show_shortcut;
     QShortcut *m_findnext_shortcut;
     QShortcut *m_findprev_shortcut;