libkdepim
KPIM::KEMailQuotingHighlighter Class Reference
#include <kemailquotinghighter.h>
Inheritance diagram for KPIM::KEMailQuotingHighlighter:

Detailed Description
This highlighter highlights spelling mistakes and also highlightes quotes.Spelling mistakes inside quotes will not be highlighted. The quote highlighting color is configurable.
Spell highlighting is disabled by default but can be toggled.
Definition at line 42 of file kemailquotinghighter.h.
Public Member Functions | |
| virtual void | highlightBlock (const QString &text) |
| KEMailQuotingHighlighter (QTextEdit *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)) | |
| void | setQuoteColor (const QColor &normalColor, const QColor "eDepth1, const QColor "eDepth2, const QColor "eDepth3) |
| void | toggleSpellHighlighting (bool on) |
| ~KEMailQuotingHighlighter () | |
Protected Member Functions | |
| virtual void | unsetMisspelled (int start, int count) |
Constructor & Destructor Documentation
| KPIM::KEMailQuotingHighlighter::KEMailQuotingHighlighter | ( | QTextEdit * | textEdit, | |
| const QColor & | normalColor = Qt::black, |
|||
| const QColor & | quoteDepth1 = QColor( 0x00, 0x80, 0x00 ), |
|||
| const QColor & | quoteDepth2 = QColor( 0x00, 0x80, 0x00 ), |
|||
| const QColor & | quoteDepth3 = QColor( 0x00, 0x80, 0x00 ) | |||
| ) | [explicit] |
Definition at line 45 of file kemailquotinghighter.cpp.
| KPIM::KEMailQuotingHighlighter::~KEMailQuotingHighlighter | ( | ) |
Definition at line 65 of file kemailquotinghighter.cpp.
Member Function Documentation
| void KPIM::KEMailQuotingHighlighter::highlightBlock | ( | const QString & | text | ) | [virtual] |
Definition at line 89 of file kemailquotinghighter.cpp.
| void KPIM::KEMailQuotingHighlighter::setQuoteColor | ( | const QColor & | normalColor, | |
| const QColor & | quoteDepth1, | |||
| const QColor & | quoteDepth2, | |||
| const QColor & | quoteDepth3 | |||
| ) |
Definition at line 70 of file kemailquotinghighter.cpp.
| void KPIM::KEMailQuotingHighlighter::toggleSpellHighlighting | ( | bool | on | ) |
Turns spellcheck highlighting on or off.
- Parameters:
-
on if true, spelling mistakes will be highlighted
Definition at line 81 of file kemailquotinghighter.cpp.
| void KPIM::KEMailQuotingHighlighter::unsetMisspelled | ( | int | start, | |
| int | count | |||
| ) | [protected, virtual] |
Definition at line 112 of file kemailquotinghighter.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference