diff options
author | kh1 <qt-info@nokia.com> | 2010-07-29 15:33:58 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-07-29 15:37:36 +0200 |
commit | fd42489296ab416a6cd74c619b0928db934db1bf (patch) | |
tree | b96761bdfc67b988db6036bc6ca50eb06a026576 | |
parent | 8d50053a5636c3b1d0c39ff821153c0715e7f2d9 (diff) | |
download | qt-creator-fd42489296ab416a6cd74c619b0928db934db1bf.tar.gz |
Highlight only topics, not in text hits.
Task-number: QTCREATORBUG-1964
Reviewed-by: kh
(cherry picked from commit 4660ff4a0401f750417c5d901fad1db79487ccde)
-rw-r--r-- | src/plugins/help/helpplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index fee7634ac0..e8c733b0f7 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -857,12 +857,13 @@ void HelpPlugin::highlightSearchTerms() if (name.isEmpty()) continue; - if (m_oldAttrValue == name) { + if (m_oldAttrValue == name + || name.startsWith(m_oldAttrValue + QLatin1Char('-'))) { QWebElement parent = element.parent(); parent.setStyleProperty(property, m_styleProperty); } - if (attrValue == name) { + if (attrValue == name || name.startsWith(attrValue + QLatin1Char('-'))) { QWebElement parent = element.parent(); m_styleProperty = parent.styleProperty(property, QWebElement::InlineStyle); @@ -871,7 +872,6 @@ void HelpPlugin::highlightSearchTerms() } m_oldAttrValue = attrValue; #endif - viewer->findText(m_idFromContext, 0, false, true); } } |