void SpellCheckItemInfo::createHighlighterForTitle(QTextDocument *document,
                                                    Common::BasicKeywordsModel *basicKeywordsModel) {
     // is freed by the document
     SpellCheckErrorsHighlighter *highlighter = new SpellCheckErrorsHighlighter(document, &m_TitleErrors);
     QObject::connect(basicKeywordsModel, SIGNAL(spellCheckResultsReady()),
                      highlighter, SLOT(rehighlight()));
 }
    void BasicKeywordsModel::notifySpellCheckResults(Common::SpellCheckFlags flags) {
        if (Common::HasFlag(flags, Common::SpellCheckFlags::Description) ||
            Common::HasFlag(flags, Common::SpellCheckFlags::Title)) {
            emit spellCheckResultsReady();
        }

        emit spellCheckErrorsChanged();
    }
 void BasicKeywordsModel::notifyTitleSpellCheck() {
     emit spellCheckResultsReady();
 }
 void BasicKeywordsModel::notifyDescriptionSpellCheck() {
     emit spellCheckResultsReady();
 }