!8 hide idle rate

From: @dou33
Reviewed-by: @tanyulong2021
Signed-off-by: @tanyulong2021
This commit is contained in:
openeuler-ci-bot 2021-09-01 03:34:04 +00:00 committed by Gitee
commit a5ea5993ec
2 changed files with 19 additions and 2 deletions

13
hide_idle_rate.patch Normal file
View File

@ -0,0 +1,13 @@
diff -Naur ukui-system-monitor-1.0.1/src/cpuratewidget.cpp ukui-system-monitor-1.0.1~/src/cpuratewidget.cpp
--- ukui-system-monitor-1.0.1/src/cpuratewidget.cpp 2019-05-27 15:48:18.000000000 +0800
+++ ukui-system-monitor-1.0.1~/src/cpuratewidget.cpp 2021-08-31 22:55:24.266527686 +0800
@@ -353,6 +353,9 @@
m_cpuIdleRateText = new QLabel;
m_cpuIdleRateText->setStyleSheet("QLabel{background:transparent;font-size:20px;color:palette(windowTexg);}");
+ m_cpuIdleRateText->hide();
+ m_cpuIdleRateTitle->hide();
+
m_cpuRunTimeTitle = new QLabel;
// m_cpuRunTimeTitle->setStyleSheet("QLabel{background:transparent;font-size:12px;color:palette(windowTexg);}");
m_cpuRunTimeTitle->setText(tr("The running time of system"));

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-system-monitor
Version: 1.0.1
Release: 2
Release: 3
Summary: A simple system monitor written in QT
License: GPL-3+ GPL-2+
URL: http://www.ukui.org
@ -33,13 +33,14 @@ Requires: pciutils
Requires: libpcap
patch0: 0001-removes-transparency.patch
patch1: hide_idle_rate.patch
%description
A simple system monitor written in QT
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
export PATH=%{_qt5_bindir}:$PATH
@ -70,6 +71,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/glib-2.0/schemas/org.ukui.system-monitor.menu.gschema.xml
%changelog
* Wed Sep 1 2021 douyan <douyan@kylinos.cn> - 1.0.1-3
- hide idle rate
* Wed Dec 16 2020 lvhan <lvhan@kylinos.cn> - 1.0.1-2
- removes transparency