Improve editor's tooltip. Wrapping hack should no longer be necessary.

Also some less significant improvements.
This commit is contained in:
Leandro Melo
2010-09-01 12:08:38 +02:00
parent b935bca420
commit ba876ffd48
14 changed files with 155 additions and 126 deletions

View File

@@ -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