diff options
author | kh1 <qt-info@nokia.com> | 2010-01-21 18:08:07 +0100 |
---|---|---|
committer | kh1 <qt-info@nokia.com> | 2010-01-21 18:10:07 +0100 |
commit | 1a1d0e269dcf01b40afcf09214fa06d0e169fd11 (patch) | |
tree | 74444eea801f03373441b870f4b98ba764c5fd39 /src/plugins/help/helpfindsupport.cpp | |
parent | 58301f6b10c502007cc744da6bb6b6da632edc71 (diff) | |
download | qt-creator-1a1d0e269dcf01b40afcf09214fa06d0e169fd11.tar.gz |
Use HighlightAllOccurrences to have highlighting during type and search.
Task-number: QTCREATORBUG-235
Diffstat (limited to 'src/plugins/help/helpfindsupport.cpp')
-rw-r--r-- | src/plugins/help/helpfindsupport.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/help/helpfindsupport.cpp b/src/plugins/help/helpfindsupport.cpp index bfb688db57..879d2f2e0f 100644 --- a/src/plugins/help/helpfindsupport.cpp +++ b/src/plugins/help/helpfindsupport.cpp @@ -132,7 +132,11 @@ bool HelpViewerFindSupport::find(const QString &txt, Find::IFindSupport::FindFla if (findFlags & Find::IFindSupport::FindCaseSensitively) options |= QWebPage::FindCaseSensitively; - return m_viewer->findText(txt, options); + bool found = m_viewer->findText(txt, options); + options = QWebPage::HighlightAllOccurrences; + m_viewer->findText(QLatin1String(""), options); // clear first + m_viewer->findText(txt, options); // force highlighting of all other matches + return found; #else QTextCursor cursor = m_viewer->textCursor(); QTextDocument *doc = m_viewer->document(); |