Ejemplo n.º 1
0
void SpellChecker::checkDocument(Editor* document)
{
	SpellChecker* checker = new SpellChecker(document);
	checker->m_start_cursor = document->textCursor();
	checker->m_cursor = checker->m_start_cursor;
	checker->m_cursor.movePosition(QTextCursor::Start);
	checker->show();
	checker->check();
}
Ejemplo n.º 2
0
void SpellChecker::checkDocument(QPlainTextEdit* document, Dictionary& dictionary)
{
	SpellChecker* checker = new SpellChecker(document, dictionary);
	checker->m_start_cursor = document->textCursor();
	checker->m_cursor = checker->m_start_cursor;
	checker->m_cursor.movePosition(QTextCursor::Start);
	checker->show();
	checker->check();
}
Ejemplo n.º 3
0
void SpellChecker::checkDocument(QTextEdit* document, DictionaryRef& dictionary)
{
	SpellChecker* checker = new SpellChecker(document, dictionary);
	checker->m_start_cursor = document->textCursor();
	checker->m_cursor = checker->m_start_cursor;
	checker->m_cursor.movePosition(QTextCursor::StartOfBlock);
	checker->m_loop_available = checker->m_start_cursor.block().previous().isValid();
	checker->show();
	checker->check();
}