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(); }
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(); }
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(); }