コード例 #1
0
ファイル: spellcheckiteminfo.cpp プロジェクト: snikolau/xpiks
 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()));
 }
コード例 #2
0
    void BasicKeywordsModel::notifySpellCheckResults(Common::SpellCheckFlags flags) {
        if (Common::HasFlag(flags, Common::SpellCheckFlags::Description) ||
            Common::HasFlag(flags, Common::SpellCheckFlags::Title)) {
            emit spellCheckResultsReady();
        }

        emit spellCheckErrorsChanged();
    }
コード例 #3
0
 void BasicKeywordsModel::notifyTitleSpellCheck() {
     emit spellCheckResultsReady();
 }
コード例 #4
0
 void BasicKeywordsModel::notifyDescriptionSpellCheck() {
     emit spellCheckResultsReady();
 }