class BackgroundChecker |
|
BackgroundChecker is used to perform spell checking without
blocking the application. You can use it as is by calling
the checkText function or subclass it and reimplement
getMoreText function.
The misspelling signal is emitted whenever a misspelled word is found. The background checker stops right before emitting the signal. So the parent has to call continueChecking function to resume the checking. done signal is emitted when whole text is spell checked.
Author Zack Rusin |
|
|
|
|
|
|
After emitting misspelling signal the background checker stops. The catcher is responsible for calling continueChecking function to resume checking. |
|
|
Emitted after the whole text has been spell checked. |
|
This function is called to get the text to spell check. It will be called continuesly until it returns QString() in which case the done() signal is emitted. Note: the start parameter in mispelling() is not a combined position but a position in the last string returned by fetchMoreText. You need to store the state in the derivatives. |
|
This function will be called whenever the background checker will be finished text which it got from fetchMoreText. |
|
Emitted whenever a misspelled word is found |
|
|
|
This method is used to spell check static text.
It automatically invokes start().
Use fetchMoreText() with start() to spell check a stream. |
|
|
|
|
|
|