summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/helpitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/coreplugin/helpitem.cpp')
-rw-r--r--src/plugins/coreplugin/helpitem.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/helpitem.cpp b/src/plugins/coreplugin/helpitem.cpp
index 6349ad17cd..544c9be9c9 100644
--- a/src/plugins/coreplugin/helpitem.cpp
+++ b/src/plugins/coreplugin/helpitem.cpp
@@ -107,6 +107,13 @@ bool HelpItem::isValid() const
return !links().empty();
}
+QString HelpItem::firstParagraph() const
+{
+ if (!m_firstParagraph)
+ m_firstParagraph = extractContent(false);
+ return *m_firstParagraph;
+}
+
QString HelpItem::extractContent(bool extended) const
{
Utils::HtmlDocExtractor htmlExtractor;