From b2f37e501c9c8c533574a1041c599ea610d09949 Mon Sep 17 00:00:00 2001 From: dou33 Date: Tue, 1 Dec 2020 15:53:59 +0800 Subject: [PATCH] fix-title-bar-issue --- 0001-fix-title-bar-issue.patch | 12 ++++++++++++ time-shutdown.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 0001-fix-title-bar-issue.patch diff --git a/0001-fix-title-bar-issue.patch b/0001-fix-title-bar-issue.patch new file mode 100644 index 0000000..8813b31 --- /dev/null +++ b/0001-fix-title-bar-issue.patch @@ -0,0 +1,12 @@ +diff -ur time-shutdown-1.1.1/src/widget.cpp time-shutdown-1.1.1~/src/widget.cpp +--- time-shutdown-1.1.1/src/widget.cpp 2019-05-27 15:48:18.000000000 +0800 ++++ time-shutdown-1.1.1~/src/widget.cpp 2020-12-01 15:40:11.030885516 +0800 +@@ -108,6 +108,8 @@ + this->setWindowFlag(Qt::FramelessWindowHint); + this->setAttribute(Qt::WA_TranslucentBackground); + this->setWindowIcon(QIcon::fromTheme("ukui-time_shutdown", QIcon("://image/time_shutdown.svg"))); ++ //hide title bar ++ this->setWindowFlags(Qt::FramelessWindowHint | Qt::Widget); + } + + Widget::~Widget() diff --git a/time-shutdown.spec b/time-shutdown.spec index 477a85f..06dbf91 100644 --- a/time-shutdown.spec +++ b/time-shutdown.spec @@ -1,6 +1,6 @@ Name: time-shutdown Version: 1.1.1 -Release: 1 +Release: 2 Summary: The time-shutdown is mainly used in the desktop operating system License: GPL-3+ @@ -16,6 +16,8 @@ Requires: gsettings-qt Requires: libX11 Requires: ukui-notification-daemon +patch0: 0001-fix-title-bar-issue.patch + %description The time-shutdown is mainly used in the desktop operating system. Timed shutdown program The shutdown frequency can be selected. @@ -24,6 +26,7 @@ Requires: ukui-notification-daemon %prep %setup -q +%patch0 -p1 %build export PATH=%{_qt5_bindir}:$PATH @@ -47,5 +50,8 @@ popd %{_datadir}/ukui-time-shutdown/time-shutdown_zh_CN.qm %changelog +* Tue Dec 1 2020 douyan - 1.1.1-2 +- fix-title-bar-issue + * Wen Nov 11 2020 douyan - 1.1.1-1 - update to upstream version 1.1.0-1-0001+1031 \ No newline at end of file -- Gitee