Set the search to duplicate
This commit is contained in:
parent
e5ceb16a1a
commit
9c4e03ddbc
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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)){
|
||||
|
|
Loading…
Reference in New Issue