diff --git a/libsearch/appsearch/app-match.cpp b/libsearch/appsearch/app-match.cpp index 21e2bf2..f4ee40d 100644 --- a/libsearch/appsearch/app-match.cpp +++ b/libsearch/appsearch/app-match.cpp @@ -208,7 +208,7 @@ void AppMatch::getAppName() * desktop路径 */ void AppMatch::appNameMatch(QString appname,QString desktoppath){ - if(appname.contains(m_sourceText)){ + if(appname.contains(m_sourceText,Qt::CaseInsensitive)){ m_midResult.append(desktoppath); return; } diff --git a/libsearch/settingsearch/setting-match.cpp b/libsearch/settingsearch/setting-match.cpp index 9e5ba71..2327d86 100644 --- a/libsearch/settingsearch/setting-match.cpp +++ b/libsearch/settingsearch/setting-match.cpp @@ -94,11 +94,13 @@ QStringList SettingsMatch::matching(){ { str=key+"/"+str; returnresult.append(str);//中文名 + continue; } QString pinyin=FileUtils::findMultiToneWords(str).at(0);// 中文转拼音 if(pinyin.contains(m_sourceText,Qt::CaseInsensitive)){ str=key+"/"+str; returnresult.append(str); + continue; } QString shouzimu=FileUtils::findMultiToneWords(str).at(1);// 中文转首字母 if(shouzimu.contains(m_sourceText,Qt::CaseInsensitive)){