diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2010-09-01 12:08:38 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2010-09-01 12:16:38 +0200 |
commit | ba876ffd480511d85731d3dc49b0718ba65dc633 (patch) | |
tree | 1031e10f01feb3f6f10a39952a6a066476b20b38 /src/libs/utils/htmldocextractor.h | |
parent | b935bca42001957fb783b856b612e51136d04927 (diff) |
Improve editor's tooltip. Wrapping hack should no longer be necessary.
Also some less significant improvements.
Diffstat (limited to 'src/libs/utils/htmldocextractor.h')
-rw-r--r-- | src/libs/utils/htmldocextractor.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libs/utils/htmldocextractor.h b/src/libs/utils/htmldocextractor.h index a9acf79a5fd..8efa69b25e3 100644 --- a/src/libs/utils/htmldocextractor.h +++ b/src/libs/utils/htmldocextractor.h @@ -41,9 +41,12 @@ class QTCREATOR_UTILS_EXPORT HtmlDocExtractor public: HtmlDocExtractor(); - void extractFirstParagraphOnly(); - void extractExtendedContents(const int lengthReference, const bool truncateAtParagraph); + enum Mode { + FirstParagraph, + Extended + }; + void setMode(Mode mode); void applyFormatting(const bool format); QString getClassOrNamespaceBrief(const QString &html, const QString &mark) const; @@ -80,10 +83,8 @@ private: static void replaceTablesForSimpleLines(QString *html); static void replaceListsForSimpleLines(QString *html); - int m_lengthReference; - bool m_truncateAtParagraph; bool m_formatContents; - bool m_extendedExtraction; + Mode m_mode; }; } // namespace Utils |