forked from qt-creator/qt-creator
Help: Fix highlighting of search terms.
It was using the wrong search help engine to get the search terms. Instead let the search widget itself figure out the search terms, and pass it directly on to the help widget when activating links. Change-Id: Ib72220eafca69e92894fe7584b1e4dfd9a42cc7e Task-number: QTCREATORBUG-13239 Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
HelpViewer *currentViewer() const;
|
||||
void setCurrentViewer(HelpViewer *viewer);
|
||||
int currentIndex() const;
|
||||
void addViewer(HelpViewer *viewer, bool highlightSearchTerms = false);
|
||||
void addViewer(HelpViewer *viewer);
|
||||
void removeViewerAt(int index);
|
||||
|
||||
void setViewerFont(const QFont &font);
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
HelpViewer *viewerAt(int index) const;
|
||||
|
||||
void open(const QUrl &url, bool newPage = false);
|
||||
void openFromSearch(const QUrl &url, bool newPage = false);
|
||||
void openFromSearch(const QUrl &url, const QStringList &searchTerms, bool newPage = false);
|
||||
void showTopicChooser(const QMap<QString, QUrl> &links, const QString &key,
|
||||
bool newPage = false);
|
||||
void activateSideBarItem(const QString &id);
|
||||
@@ -148,6 +148,8 @@ private:
|
||||
QAction *m_bookmarkAction;
|
||||
QAction *m_searchAction;
|
||||
QAction *m_openPagesAction;
|
||||
|
||||
QStringList m_searchTerms;
|
||||
};
|
||||
|
||||
} // Internal
|
||||
|
||||
Reference in New Issue
Block a user