From c76c501c18fa2f6255f09b0722598a0603f8cd2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Csunfengsheng=E2=80=9D?= <“327123947@qq.com”> Date: Mon, 29 Mar 2021 10:17:26 +0800 Subject: [PATCH] fix:Sets polyphonic and English questions when searching --- libsearch/settingsearch/setting-match.cpp | 103 +++++++++++++--------- libsearch/settingsearch/setting-match.h | 4 +- 2 files changed, 61 insertions(+), 46 deletions(-) diff --git a/libsearch/settingsearch/setting-match.cpp b/libsearch/settingsearch/setting-match.cpp index b85b4fb..81c56f6 100644 --- a/libsearch/settingsearch/setting-match.cpp +++ b/libsearch/settingsearch/setting-match.cpp @@ -33,7 +33,6 @@ SettingsMatch::SettingsMatch(QObject *parent) : QObject(parent) */ QStringList SettingsMatch::startMatchApp(const QString &source){ m_sourceText=source; -// qDebug()<::const_iterator i; - for(i=m_chine_searchList.constBegin();i!=m_chine_searchList.constEnd();++i){ - regmatch=*i; - key=i.key(); -// qDebug()< m_pinyin_searchList; QMap m_chine_searchList; - QStringList m_pinyin_searchResult; + QMap m_English_searchList; QStringList m_chine_searchResult; + QStringList m_English_searchResult; QString m_sourceText; };