54 lines
2.1 KiB
Diff
54 lines
2.1 KiB
Diff
From f99aba2d59c3a095be8e0555026198482c6e09c0 Mon Sep 17 00:00:00 2001
|
|
From: pei-jiankang <peijiankang@kylinos.cn>
|
|
Date: Fri, 4 Mar 2022 11:09:50 +0800
|
|
Subject: [PATCH] modify-show-taskview-not-translation
|
|
|
|
---
|
|
panel/resources/ukui-panel_zh_CN.ts | 2 +-
|
|
plugin-startbar/taskview_button.cpp | 2 +-
|
|
plugin-startbar/taskview_button.h | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/panel/resources/ukui-panel_zh_CN.ts b/panel/resources/ukui-panel_zh_CN.ts
|
|
index 12c1c15..c285273 100644
|
|
--- a/panel/resources/ukui-panel_zh_CN.ts
|
|
+++ b/panel/resources/ukui-panel_zh_CN.ts
|
|
@@ -730,7 +730,7 @@
|
|
<message>
|
|
<location filename="../../plugin-startbar/taskview_button.cpp" line="10"/>
|
|
<source>Show Taskview</source>
|
|
- <translation type="unfinished"></translation>
|
|
+ <translation type="unfinished">显示任务视图按钮</translation>
|
|
</message>
|
|
</context>
|
|
<context>
|
|
diff --git a/plugin-startbar/taskview_button.cpp b/plugin-startbar/taskview_button.cpp
|
|
index 2924509..9da8a7e 100644
|
|
--- a/plugin-startbar/taskview_button.cpp
|
|
+++ b/plugin-startbar/taskview_button.cpp
|
|
@@ -7,7 +7,7 @@ TaskViewButton::TaskViewButton(IUKUIPanelPlugin *plugin,QWidget *parent):
|
|
this->setParent(parent);
|
|
setFocusPolicy(Qt::NoFocus);
|
|
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
|
- this->setToolTip(tr("Show Taskview"));
|
|
+ QTimer::singleShot(5000,[this] {this->setToolTip(tr("Show Taskview")); });
|
|
this->setStyle(new CustomStyle());
|
|
this->setIcon(QIcon::fromTheme("taskview",QIcon("/usr/share/ukui-panel/panel/img/taskview.svg")));
|
|
this->setIconSize(QSize(mPlugin->panel()->iconSize(),mPlugin->panel()->iconSize()));
|
|
diff --git a/plugin-startbar/taskview_button.h b/plugin-startbar/taskview_button.h
|
|
index df6c617..400bc21 100644
|
|
--- a/plugin-startbar/taskview_button.h
|
|
+++ b/plugin-startbar/taskview_button.h
|
|
@@ -3,7 +3,7 @@
|
|
|
|
#include <QToolButton>
|
|
#include <QMouseEvent>
|
|
-
|
|
+#include <QTimer>
|
|
#include "../panel/customstyle.h"
|
|
#include "../panel/iukuipanelplugin.h"
|
|
class TaskViewButton :public QToolButton
|
|
--
|
|
2.33.0
|
|
|