Set the search to duplicate

This commit is contained in:
sunfengsheng 2021-01-05 17:13:13 -08:00
parent e5ceb16a1a
commit 9c4e03ddbc
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -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)){