KPIMTextedit Library
emailquotehighlighter.cpp
virtual void highlightBlock(const QString &text)
Reimplemented to highlight quote blocks.
Definition: emailquotehighlighter.cpp:127
QString & append(QChar ch)
QString name() const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
EMailQuoteHighlighter(TextEdit *textEdit, const QColor &normalColor=Qt::black, const QColor "eDepth1=QColor(0x00, 0x80, 0x00), const QColor "eDepth2=QColor(0x00, 0x80, 0x00), const QColor "eDepth3=QColor(0x00, 0x80, 0x00), const QColor &misspelledColor=Qt::red)
Constructor.
Definition: emailquotehighlighter.cpp:35
QString & remove(int position, int n)
virtual void unsetMisspelled(int start, int count)
Reimplemented, the base version sets the text color to black, which is not what we want...
Definition: emailquotehighlighter.cpp:153
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
static QString highlightText(const QString &text, const QColor "eDepth1=QColor(0x00, 0x80, 0x00), const QColor "eDepth2=QColor(0x00, 0x80, 0x00), const QColor "eDepth3=QColor(0x00, 0x80, 0x00))
Use this static method to get a text consisting of multiple lines highligted.
Definition: emailquotehighlighter.cpp:63
void setQuoteColor(const QColor &normalColor, const QColor "eDepth1, const QColor "eDepth2, const QColor "eDepth3, const QColor &misspelledColor=Qt::red)
Sets the colors used for highlighting quoted text and spelling mistakes.
Definition: emailquotehighlighter.cpp:106
virtual void setMisspelled(int start, int count)
Reimplemented to set the color of the misspelled word to a color defined by setQuoteColor().
Definition: emailquotehighlighter.cpp:159
QString mid(int position, int n) const
void toggleSpellHighlighting(bool on)
Turns spellcheck highlighting on or off.
Definition: emailquotehighlighter.cpp:119
Special textedit that provides additional features which are useful for PIM applications like mail cl...
Definition: textedit.h:84
static QString highlightParagraph(const QString &text, const QColor "eDepth1=QColor(0x00, 0x80, 0x00), const QColor "eDepth2=QColor(0x00, 0x80, 0x00), const QColor "eDepth3=QColor(0x00, 0x80, 0x00))
Use this static method to get proper highlighting for a single line.
Definition: emailquotehighlighter.cpp:80
int length() const
const_iterator constEnd() const
const_iterator constBegin() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.