KPIMTextedit Library
emailquotehighlighter.cpp
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
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
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 toggleSpellHighlighting(bool on)
Turns spellcheck highlighting on or off.
Definition emailquotehighlighter.cpp:119
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
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
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 highlightBlock(const QString &text)
Reimplemented to highlight quote blocks.
Definition emailquotehighlighter.cpp:127
Special textedit that provides additional features which are useful for PIM applications like mail cl...
Definition textedit.h:87
Copyright (C) 2006 Laurent Montel montel@kde.org Copyright (C) 2008 Thomas McGuire mcguire@kde....
Definition emailquotehighlighter.cpp:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.