summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/helpitem.cpp
diff options
context:
space:
mode:
authorLeandro Melo <leandro.melo@nokia.com>2010-09-01 12:08:38 +0200
committerLeandro Melo <leandro.melo@nokia.com>2010-09-01 12:16:38 +0200
commitba876ffd480511d85731d3dc49b0718ba65dc633 (patch)
tree1031e10f01feb3f6f10a39952a6a066476b20b38 /src/plugins/texteditor/helpitem.cpp
parentb935bca42001957fb783b856b612e51136d04927 (diff)
downloadqt-creator-ba876ffd480511d85731d3dc49b0718ba65dc633.tar.gz
Improve editor's tooltip. Wrapping hack should no longer be necessary.
Also some less significant improvements.
Diffstat (limited to 'src/plugins/texteditor/helpitem.cpp')
-rw-r--r--src/plugins/texteditor/helpitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/texteditor/helpitem.cpp b/src/plugins/texteditor/helpitem.cpp
index b4b766e52f..33badec1c0 100644
--- a/src/plugins/texteditor/helpitem.cpp
+++ b/src/plugins/texteditor/helpitem.cpp
@@ -81,9 +81,9 @@ QString HelpItem::extractContent(bool extended) const
{
Utils::HtmlDocExtractor htmlExtractor;
if (extended)
- htmlExtractor.extractExtendedContents(1500, true);
+ htmlExtractor.setMode(Utils::HtmlDocExtractor::Extended);
else
- htmlExtractor.extractFirstParagraphOnly();
+ htmlExtractor.setMode(Utils::HtmlDocExtractor::FirstParagraph);
QString contents;
QMap<QString, QUrl> helpLinks = Core::HelpManager::instance()->linksForIdentifier(m_helpId);