SpellCheckDecorator Class Reference
from PyKDE5.sonnet import *
Inherits: QObject
Namespace: Sonnet
Detailed Description
Connects a Sonnet.Highlighter to a QTextEdit extending the context menu of the text edit with spell check suggestions
- Since:
- 5.0
Methods | |
| __init__ (self, QTextEdit textEdit) | |
| bool | eventFilter (self, QObject obj, QEvent event) |
| Sonnet::Highlighter | highlighter (self) |
| bool | isSpellCheckingEnabledForBlock (self, QString textBlock) |
| setHighlighter (self, Sonnet::Highlighter highlighter) | |
Method Documentation
| __init__ | ( | self, | ||
| QTextEdit | textEdit | |||
| ) |
| bool eventFilter | ( | self, | ||
| QObject | obj, | |||
| QEvent | event | |||
| ) |
| Sonnet::Highlighter highlighter | ( | self ) |
Returns the hightlighter used by the decorator
| bool isSpellCheckingEnabledForBlock | ( | self, | ||
| QString | textBlock | |||
| ) |
Returns true if the spell checking should be enabled for a given block of text The default implementation always returns true.
| setHighlighter | ( | self, | ||
| Sonnet::Highlighter | highlighter | |||
| ) |
Set a custom highlighter on the decorator.
SpellCheckDecorator does not take ownership of the new highlighter.
KDE 5.0 PyKDE API Reference