diff --git a/libsearch/index/file-search-plugin.cpp b/libsearch/index/file-search-plugin.cpp
index f7fbd26..df23f76 100644
--- a/libsearch/index/file-search-plugin.cpp
+++ b/libsearch/index/file-search-plugin.cpp
@@ -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;
}
diff --git a/translations/libukui-search/libukui-search_bo_CN.ts b/translations/libukui-search/libukui-search_bo_CN.ts
index 28a66be..ba8b024 100644
--- a/translations/libukui-search/libukui-search_bo_CN.ts
+++ b/translations/libukui-search/libukui-search_bo_CN.ts
@@ -131,13 +131,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
སྒོ་ཕྱེ་བ།
-
+
ཡིག་ཆའི་ཐབས་ལམ་འབྱེད་དགོས།
@@ -157,27 +157,27 @@
ཡིག་ཆའི་ནང་དོན་འཚོལ་ཞིབ་
-
+
OCR
-
+
ཡིག་ཆ།
-
+
ལམ་ཐིག
-
+
ཐེངས་སྔ་མའི་བཟོ་བཅོས་དུས་ཚོད།
-
+
ཡིག་ཆའི་ལམ་ཐིག་དཔར་བ།
diff --git a/translations/libukui-search/libukui-search_de_DE.ts b/translations/libukui-search/libukui-search_de_DE.ts
index 1816a94..7c049de 100644
--- a/translations/libukui-search/libukui-search_de_DE.ts
+++ b/translations/libukui-search/libukui-search_de_DE.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
Offen
-
+
Offener Pfad
@@ -172,27 +172,27 @@
Suche nach Dateiinhalten
-
+
OCR
-
+
Datei
-
+
Pfad
-
+
Zuletzt geändert
-
+
Pfad kopieren
diff --git a/translations/libukui-search/libukui-search_es_ES.ts b/translations/libukui-search/libukui-search_es_ES.ts
index cccd789..b70a82f 100644
--- a/translations/libukui-search/libukui-search_es_ES.ts
+++ b/translations/libukui-search/libukui-search_es_ES.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
Abrir
-
+
Ruta abierta
@@ -172,27 +172,27 @@
Búsqueda de contenido de archivos
-
+
OCR
-
+
Archivo
-
+
Camino
-
+
Última modificación
-
+
Ruta de copia
diff --git a/translations/libukui-search/libukui-search_fr_FR.ts b/translations/libukui-search/libukui-search_fr_FR.ts
index 6439a1b..49318a4 100644
--- a/translations/libukui-search/libukui-search_fr_FR.ts
+++ b/translations/libukui-search/libukui-search_fr_FR.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
Ouvrir
-
+
Chemin ouvert
@@ -172,27 +172,27 @@
Recherche dans le contenu d’un fichier
-
+
OCR
-
+
Lime
-
+
Chemin
-
+
Dernière modification
-
+
Copier le chemin d’accès
diff --git a/translations/libukui-search/libukui-search_kk_KZ.ts b/translations/libukui-search/libukui-search_kk_KZ.ts
index 823b7a8..8e5c39d 100644
--- a/translations/libukui-search/libukui-search_kk_KZ.ts
+++ b/translations/libukui-search/libukui-search_kk_KZ.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
Ашу
-
+
Жолды ашу
@@ -172,27 +172,27 @@
Файл мазмұнын іздеу
-
+
OCR
-
+
Файл
-
+
Жол
-
+
Соңғы рет өзгертілген
-
+
Көшіру жолы
diff --git a/translations/libukui-search/libukui-search_ky.ts b/translations/libukui-search/libukui-search_ky.ts
index 987db6f..15c300b 100644
--- a/translations/libukui-search/libukui-search_ky.ts
+++ b/translations/libukui-search/libukui-search_ky.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
Ачуу
-
+
Ачык жол
@@ -172,27 +172,27 @@
Файлдын мазмунун издөө
-
+
ОКР
-
+
Файл
-
+
Жол
-
+
Акыркы жолу өзгөртүлүп берилди
-
+
Көчүрмө жолу
diff --git a/translations/libukui-search/libukui-search_mn.ts b/translations/libukui-search/libukui-search_mn.ts
index 2f793b3..6a26068 100644
--- a/translations/libukui-search/libukui-search_mn.ts
+++ b/translations/libukui-search/libukui-search_mn.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
ᠨᠡᠬᠡᠬᠡᠬᠦ᠌
-
+
ᠹᠠᠢᠯᠤᠨ ᠪᠠᠢᠭᠠ ᠵᠠᠮᠢ ᠨᠡᠬᠡᠬᠡᠬᠦ᠌
@@ -172,27 +172,27 @@
ᠲᠸᠺᠰᠲᠦᠨ ᠠᠭᠤᠯᠭᠠ
-
+
OCR
-
+
ᠹᠠᠢᠯ
-
+
ᠵᠠᠮ
-
+
ᠳᠡᠭᠡᠷᠡ ᠤᠳᠠᠭᠠᠶᠢᠨ ᠵᠠᠰᠠᠭᠰᠠᠨ ᠴᠠᠭ
-
+
ᠹᠠᠢᠯᠤᠨ ᠵᠠᠮᠢ ᠬᠠᠭᠤᠯᠪᠤᠷᠢᠯᠠᠬᠤ
diff --git a/translations/libukui-search/libukui-search_tr.ts b/translations/libukui-search/libukui-search_tr.ts
index 25d4c44..d9f86d4 100644
--- a/translations/libukui-search/libukui-search_tr.ts
+++ b/translations/libukui-search/libukui-search_tr.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
打开
-
+
@@ -172,27 +172,27 @@
-
+
-
+
-
+
-
+
-
+
diff --git a/translations/libukui-search/libukui-search_ug.ts b/translations/libukui-search/libukui-search_ug.ts
index 6142545..6510cb5 100644
--- a/translations/libukui-search/libukui-search_ug.ts
+++ b/translations/libukui-search/libukui-search_ug.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
ئېچىش
-
+
ئوچۇق يول
@@ -172,27 +172,27 @@
ھۆججەت مەزمۇنىنى ئىزدەش
-
+
OCR
-
+
ھۆججەت
-
+
يول
-
+
ئاخىرقى قېتىم ئۆزگەرتىلگەن
-
+
كۆچۈرۈش يولى
diff --git a/translations/libukui-search/libukui-search_zh_CN.ts b/translations/libukui-search/libukui-search_zh_CN.ts
index 169f0d6..8db13e1 100644
--- a/translations/libukui-search/libukui-search_zh_CN.ts
+++ b/translations/libukui-search/libukui-search_zh_CN.ts
@@ -142,13 +142,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
打开
-
+
打开文件所在路径
@@ -172,27 +172,27 @@
文本内容
-
+
OCR
-
+
文件
-
+
路径
-
+
上次修改时间
-
+
复制路径
diff --git a/translations/libukui-search/libukui-search_zh_HK.ts b/translations/libukui-search/libukui-search_zh_HK.ts
index b68a757..b29875b 100644
--- a/translations/libukui-search/libukui-search_zh_HK.ts
+++ b/translations/libukui-search/libukui-search_zh_HK.ts
@@ -124,13 +124,13 @@
UkuiSearch::FileContengSearchPlugin
-
+
打開
-
+
打開檔所在路徑
@@ -150,27 +150,27 @@
文字內容搜索
-
+
光學字元辨識
-
+
檔
-
+
路徑
-
+
上次修改時間
-
+
複製路徑