KDE 5.0 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

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

Author:
Aurélien Gâteau <agateau@kde.org>
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.

  • Full Index

Modules

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal