Merge pull request #44 from sunfengsheng/main

Set the search to duplicate
This commit is contained in:
iaom 2021-01-06 09:00:38 +08:00 committed by GitHub
commit 6d270c5e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)){