Merge pull request #44 from sunfengsheng/main
Set the search to duplicate
This commit is contained in:
commit
6d270c5e0d
|
@ -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