fix(frontend):修改内容搜索插件详情页加载时间文本的顺序

This commit is contained in:
JunjieBai 2023-09-13 15:16:50 +08:00
parent f749537cc2
commit afc9bbbfa2
12 changed files with 85 additions and 83 deletions

View File

@ -572,6 +572,14 @@ void FileContengSearchPlugin::openAction(int actionkey, QString key, int type)
QWidget *FileContengSearchPlugin::detailPage(const ResultInfo &ri)
{
//因为需要更新时间格式所以每次调用detailpage需要先设置时间文本 20230916@bjj
QString modTimeText = ri.description.at(2).value;
if (!DateFormat::getInstance().format().isEmpty()) {
QDateTime modTime = QDateTime::fromString(modTimeText, DEFAULT_DATETIME_FORMAT);
modTimeText = modTime.toString(DateFormat::getInstance().format());
}
m_timeLabel2->setText(modTimeText);
if(ri.actionKey == m_currentActionKey) {
return m_detailPage;
}
@ -615,12 +623,6 @@ QWidget *FileContengSearchPlugin::detailPage(const ResultInfo &ri)
m_pathLabel2->setText(m_pathLabel2->fontMetrics().elidedText(m_currentActionKey, Qt::ElideRight, m_pathLabel2->width()));
m_pathLabel2->setToolTip(m_currentActionKey);
QString modTimeText = ri.description.at(2).value;
if (!DateFormat::getInstance().format().isEmpty()) {
QDateTime modTime = QDateTime::fromString(modTimeText, DEFAULT_DATETIME_FORMAT);
modTimeText = modTime.toString(DateFormat::getInstance().format());
}
m_timeLabel2->setText(modTimeText);
return m_detailPage;
}

View File

@ -131,13 +131,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation></translation>
</message>
@ -157,27 +157,27 @@
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation></translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation>Offen</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation>Offener Pfad</translation>
</message>
@ -172,27 +172,27 @@
<translation>Suche nach Dateiinhalten</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation>Datei</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation>Pfad</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation>Zuletzt geändert</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation>Pfad kopieren</translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation>Abrir</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation>Ruta abierta</translation>
</message>
@ -172,27 +172,27 @@
<translation>Búsqueda de contenido de archivos</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation>Archivo</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation>Camino</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation>Última modificación</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation>Ruta de copia</translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation>Ouvrir</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation>Chemin ouvert</translation>
</message>
@ -172,27 +172,27 @@
<translation>Recherche dans le contenu dun fichier</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation>Lime</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation>Chemin</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation>Dernière modification</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation>Copier le chemin daccès</translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation>Ашу</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation>Жолды ашу</translation>
</message>
@ -172,27 +172,27 @@
<translation>Файл мазмұнын іздеу</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation>Файл</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation>Жол</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation>Соңғы рет өзгертілген</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation>Көшіру жолы</translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation>Ачуу</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation>Ачык жол</translation>
</message>
@ -172,27 +172,27 @@
<translation>Файлдын мазмунун издөө</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>ОКР</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation>Файл</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation>Жол</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation>Акыркы жолу өзгөртүлүп берилди</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation>Көчүрмө жолу</translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation> </translation>
</message>
@ -172,27 +172,27 @@
<translation> </translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation> </translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation> </translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation type="unfinished"></translation>
</message>
@ -172,27 +172,27 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation type="unfinished"></translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation>ئېچىش</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation>ئوچۇق يول</translation>
</message>
@ -172,27 +172,27 @@
<translation>ھۆججەت مەزمۇنىنى ئىزدەش</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation>ھۆججەت</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation>يول</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation>ئاخىرقى قېتىم ئۆزگەرتىلگەن</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation>كۆچۈرۈش يولى</translation>
</message>

View File

@ -142,13 +142,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation></translation>
</message>
@ -172,27 +172,27 @@
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation>OCR</translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation></translation>
</message>

View File

@ -124,13 +124,13 @@
<name>UkuiSearch::FileContengSearchPlugin</name>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="493"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="738"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<source>Open</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="494"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="739"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="741"/>
<source>Open path</source>
<translation></translation>
</message>
@ -150,27 +150,27 @@
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="596"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="604"/>
<source>OCR</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="600"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="608"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="716"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="718"/>
<source>Path</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="728"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="730"/>
<source>Last time modified</source>
<translation></translation>
</message>
<message>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="740"/>
<location filename="../../libsearch/index/file-search-plugin.cpp" line="742"/>
<source>Copy path</source>
<translation></translation>
</message>