Fix the problem that the search plugin of ukcc can not be searched

This commit is contained in:
JunjieBai 2023-01-09 15:29:56 +08:00 committed by iaom
parent 3664aefd15
commit fdd11260ba
3 changed files with 119 additions and 104 deletions

View File

@ -180,6 +180,7 @@ void Search::initUi()
m_pluginWidget->setLayout(m_mainLyt);
m_titleLabel = new TitleLabel(m_pluginWidget);
//~ contents_path /Search/Search
m_titleLabel->setText(tr("Search"));
m_mainLyt->addWidget(m_titleLabel);
@ -201,7 +202,6 @@ void Search::initUi()
m_setFrameLyt->setContentsMargins(0, 0, 0, 0);
m_setFrameLyt->setSpacing(0);
//~ contents_path /Search/Create index
//索引开关UI
m_searchMethodFrame = new QFrame(m_setFrame);
m_searchMethodFrame->setMinimumWidth(550);
@ -216,6 +216,7 @@ void Search::initUi()
m_descLabel1 = new QLabel(m_descFrame);
m_descLabel2 = new QLabel(m_descFrame);
//~ contents_path /Search/Create index
m_descLabel1->setText(tr("Create index"));
m_descLabel2->setText(tr("Creating index can help you getting results quickly."));
m_descLabel2->setEnabled(false);
@ -246,12 +247,13 @@ void Search::initUi()
m_indexMethodDescLabel = new QLabel(m_indexMethodFrame);
m_indexMethodDescLabel->setContentsMargins(8, 0, 0, 0);
//~ contents_path /Search/File Content Search
m_indexMethodDescLabel->setText(tr("File Content Search"));
m_preciseBtnFrame = new QFrame(m_indexMethodFrame);
m_preciseBtnLyt = new QHBoxLayout(m_preciseBtnFrame);
m_preciseBtnFrame->setLayout(m_preciseBtnLyt);
m_preciseBtn = new QRadioButton(tr("precise Search"), m_indexMethodFrame);
m_preciseBtn = new QRadioButton(tr("Precise Search"), m_indexMethodFrame);
m_preciseDescLabel = new QLabel(m_indexMethodFrame);
m_preciseDescLabel->setText(tr("show the results that exactly match the keyword"));
m_preciseDescLabel->setEnabled(false);
@ -290,6 +292,7 @@ void Search::initUi()
//添加搜索目录部分ui
m_searchDirTitleLabel = new TitleLabel(m_pluginWidget);
//~ contents_path /Search/Search Folders
m_searchDirTitleLabel->setText(tr("Search Folders"));
m_searchDirDescLabel = new QLabel(m_pluginWidget);

View File

@ -5,49 +5,51 @@
<name>Search</name>
<message>
<location filename="../search.cpp" line="13"/>
<location filename="../search.cpp" line="179"/>
<location filename="../search.cpp" line="184"/>
<source>Search</source>
<translation></translation>
<extra-contents_path>/Search/Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="215"/>
<location filename="../search.cpp" line="220"/>
<source>Create index</source>
<translation></translation>
<extra-contents_path>/Search/Create index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="216"/>
<location filename="../search.cpp" line="221"/>
<source>Creating index can help you getting results quickly.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="184"/>
<location filename="../search.cpp" line="189"/>
<source>Default web searching engine</source>
<translation></translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="188"/>
<location filename="../search.cpp" line="193"/>
<source>baidu</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="189"/>
<location filename="../search.cpp" line="194"/>
<source>sougou</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="190"/>
<location filename="../search.cpp" line="195"/>
<source>360</source>
<translation>360</translation>
</message>
<message>
<location filename="../search.cpp" line="322"/>
<location filename="../search.cpp" line="329"/>
<source>Block Folders</source>
<translation></translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="327"/>
<location filename="../search.cpp" line="334"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation> </translation>
</message>
@ -56,101 +58,103 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="634"/>
<location filename="../search.cpp" line="705"/>
<location filename="../search.cpp" line="652"/>
<location filename="../search.cpp" line="723"/>
<source>delete</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="397"/>
<location filename="../search.cpp" line="441"/>
<location filename="../search.cpp" line="415"/>
<location filename="../search.cpp" line="459"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="245"/>
<location filename="../search.cpp" line="251"/>
<source>File Content Search</source>
<translation type="unfinished"></translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="250"/>
<source>precise Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="263"/>
<location filename="../search.cpp" line="269"/>
<source>show more results that match the keyword</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="261"/>
<location filename="../search.cpp" line="267"/>
<source>Fuzzy Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="252"/>
<location filename="../search.cpp" line="256"/>
<source>Precise Search</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="258"/>
<source>show the results that exactly match the keyword</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="289"/>
<location filename="../search.cpp" line="296"/>
<source>Search Folders</source>
<translation type="unfinished"></translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="295"/>
<location filename="../search.cpp" line="302"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="398"/>
<location filename="../search.cpp" line="416"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="399"/>
<location filename="../search.cpp" line="443"/>
<location filename="../search.cpp" line="417"/>
<location filename="../search.cpp" line="461"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="400"/>
<location filename="../search.cpp" line="444"/>
<location filename="../search.cpp" line="418"/>
<location filename="../search.cpp" line="462"/>
<source>Position: </source>
<translation> </translation>
</message>
<message>
<location filename="../search.cpp" line="401"/>
<location filename="../search.cpp" line="445"/>
<location filename="../search.cpp" line="419"/>
<location filename="../search.cpp" line="463"/>
<source>FileName: </source>
<translation> </translation>
</message>
<message>
<location filename="../search.cpp" line="402"/>
<location filename="../search.cpp" line="446"/>
<location filename="../search.cpp" line="420"/>
<location filename="../search.cpp" line="464"/>
<source>FileType: </source>
<translation> </translation>
</message>
<message>
<location filename="../search.cpp" line="403"/>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="421"/>
<location filename="../search.cpp" line="465"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="417"/>
<location filename="../search.cpp" line="425"/>
<location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="461"/>
<location filename="../search.cpp" line="464"/>
<location filename="../search.cpp" line="467"/>
<location filename="../search.cpp" line="470"/>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="443"/>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="476"/>
<location filename="../search.cpp" line="479"/>
<location filename="../search.cpp" line="482"/>
<location filename="../search.cpp" line="485"/>
<location filename="../search.cpp" line="488"/>
<source>Warning</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="417"/>
<location filename="../search.cpp" line="435"/>
<source>Add blocked folder failed, choosen path is empty!</source>
<translation></translation>
</message>
@ -159,42 +163,42 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="425"/>
<location filename="../search.cpp" line="443"/>
<source>Add blocked folder failed, its parent dir is exist!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="447"/>
<source>Add blocked folder failed, it has been already blocked!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="442"/>
<location filename="../search.cpp" line="460"/>
<source>select search folder</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="461"/>
<location filename="../search.cpp" line="479"/>
<source>Add search folder failed, choosen path is not supported currently!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="467"/>
<location filename="../search.cpp" line="485"/>
<source>Add search folder failed, another path which is in the same device has been added!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="476"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="464"/>
<location filename="../search.cpp" line="482"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../search.cpp" line="470"/>
<location filename="../search.cpp" line="488"/>
<source>Add search folder failed, choosen path is not exists!</source>
<translation type="unfinished"></translation>
</message>

View File

@ -5,49 +5,51 @@
<name>Search</name>
<message>
<location filename="../search.cpp" line="13"/>
<location filename="../search.cpp" line="179"/>
<location filename="../search.cpp" line="184"/>
<source>Search</source>
<translation></translation>
<extra-contents_path>/Search/Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="215"/>
<location filename="../search.cpp" line="220"/>
<source>Create index</source>
<translation></translation>
<extra-contents_path>/Search/Create index</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="216"/>
<location filename="../search.cpp" line="221"/>
<source>Creating index can help you getting results quickly.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="184"/>
<location filename="../search.cpp" line="189"/>
<source>Default web searching engine</source>
<translation></translation>
<extra-contents_path>/Search/Default web searching engine</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="188"/>
<location filename="../search.cpp" line="193"/>
<source>baidu</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="189"/>
<location filename="../search.cpp" line="194"/>
<source>sougou</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="190"/>
<location filename="../search.cpp" line="195"/>
<source>360</source>
<translation>360</translation>
</message>
<message>
<location filename="../search.cpp" line="322"/>
<location filename="../search.cpp" line="329"/>
<source>Block Folders</source>
<translation></translation>
<extra-contents_path>/Search/Block Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="327"/>
<location filename="../search.cpp" line="334"/>
<source>Following folders will not be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
@ -56,101 +58,107 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="634"/>
<location filename="../search.cpp" line="705"/>
<location filename="../search.cpp" line="652"/>
<location filename="../search.cpp" line="723"/>
<source>delete</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="397"/>
<location filename="../search.cpp" line="441"/>
<location filename="../search.cpp" line="415"/>
<location filename="../search.cpp" line="459"/>
<source>Directories</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="245"/>
<location filename="../search.cpp" line="251"/>
<source>File Content Search</source>
<translation></translation>
<extra-contents_path>/Search/File Content Search</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="250"/>
<source>precise Search</source>
<translation></translation>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="263"/>
<location filename="../search.cpp" line="269"/>
<source>show more results that match the keyword</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="261"/>
<location filename="../search.cpp" line="267"/>
<source>Fuzzy Search</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="252"/>
<location filename="../search.cpp" line="256"/>
<source>Precise Search</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="258"/>
<source>show the results that exactly match the keyword</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="289"/>
<location filename="../search.cpp" line="296"/>
<source>Search Folders</source>
<translation></translation>
<extra-contents_path>/Search/Search Folders</extra-contents_path>
</message>
<message>
<location filename="../search.cpp" line="295"/>
<location filename="../search.cpp" line="302"/>
<source>Following folders will be searched. You can set it by adding and removing folders.</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="398"/>
<location filename="../search.cpp" line="416"/>
<source>select blocked folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="399"/>
<location filename="../search.cpp" line="443"/>
<location filename="../search.cpp" line="417"/>
<location filename="../search.cpp" line="461"/>
<source>Select</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="400"/>
<location filename="../search.cpp" line="444"/>
<location filename="../search.cpp" line="418"/>
<location filename="../search.cpp" line="462"/>
<source>Position: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="401"/>
<location filename="../search.cpp" line="445"/>
<location filename="../search.cpp" line="419"/>
<location filename="../search.cpp" line="463"/>
<source>FileName: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="402"/>
<location filename="../search.cpp" line="446"/>
<location filename="../search.cpp" line="420"/>
<location filename="../search.cpp" line="464"/>
<source>FileType: </source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="403"/>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="421"/>
<location filename="../search.cpp" line="465"/>
<source>Cancel</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="417"/>
<location filename="../search.cpp" line="425"/>
<location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="461"/>
<location filename="../search.cpp" line="464"/>
<location filename="../search.cpp" line="467"/>
<location filename="../search.cpp" line="470"/>
<location filename="../search.cpp" line="435"/>
<location filename="../search.cpp" line="443"/>
<location filename="../search.cpp" line="447"/>
<location filename="../search.cpp" line="476"/>
<location filename="../search.cpp" line="479"/>
<location filename="../search.cpp" line="482"/>
<location filename="../search.cpp" line="485"/>
<location filename="../search.cpp" line="488"/>
<source>Warning</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="417"/>
<location filename="../search.cpp" line="435"/>
<source>Add blocked folder failed, choosen path is empty!</source>
<translation></translation>
</message>
@ -159,42 +167,42 @@
<translation type="vanished"></translation>
</message>
<message>
<location filename="../search.cpp" line="425"/>
<location filename="../search.cpp" line="443"/>
<source>Add blocked folder failed, its parent dir is exist!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="429"/>
<location filename="../search.cpp" line="447"/>
<source>Add blocked folder failed, it has been already blocked!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="442"/>
<location filename="../search.cpp" line="460"/>
<source>select search folder</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="461"/>
<location filename="../search.cpp" line="479"/>
<source>Add search folder failed, choosen path is not supported currently!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="467"/>
<location filename="../search.cpp" line="485"/>
<source>Add search folder failed, another path which is in the same device has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="458"/>
<location filename="../search.cpp" line="476"/>
<source>Add search folder failed, choosen path or its parent dir has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="464"/>
<location filename="../search.cpp" line="482"/>
<source>Add search folder failed, choosen path is in repeat mounted devices and another path which is in the same device has been added!</source>
<translation></translation>
</message>
<message>
<location filename="../search.cpp" line="470"/>
<location filename="../search.cpp" line="488"/>
<source>Add search folder failed, choosen path is not exists!</source>
<translation></translation>
</message>