fix-title-bar-issue
This commit is contained in:
parent
eccbcfd736
commit
b2f37e501c
12
0001-fix-title-bar-issue.patch
Normal file
12
0001-fix-title-bar-issue.patch
Normal file
@ -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()
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: time-shutdown
|
Name: time-shutdown
|
||||||
Version: 1.1.1
|
Version: 1.1.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: The time-shutdown is mainly used in the desktop operating system
|
Summary: The time-shutdown is mainly used in the desktop operating system
|
||||||
|
|
||||||
License: GPL-3+
|
License: GPL-3+
|
||||||
@ -16,6 +16,8 @@ Requires: gsettings-qt
|
|||||||
Requires: libX11
|
Requires: libX11
|
||||||
Requires: ukui-notification-daemon
|
Requires: ukui-notification-daemon
|
||||||
|
|
||||||
|
patch0: 0001-fix-title-bar-issue.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The time-shutdown is mainly used in the desktop operating system.
|
The time-shutdown is mainly used in the desktop operating system.
|
||||||
Timed shutdown program The shutdown frequency can be selected.
|
Timed shutdown program The shutdown frequency can be selected.
|
||||||
@ -24,6 +26,7 @@ Requires: ukui-notification-daemon
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export PATH=%{_qt5_bindir}:$PATH
|
export PATH=%{_qt5_bindir}:$PATH
|
||||||
@ -47,5 +50,8 @@ popd
|
|||||||
%{_datadir}/ukui-time-shutdown/time-shutdown_zh_CN.qm
|
%{_datadir}/ukui-time-shutdown/time-shutdown_zh_CN.qm
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 1 2020 douyan <douyan@kylinos.cn> - 1.1.1-2
|
||||||
|
- fix-title-bar-issue
|
||||||
|
|
||||||
* Wen Nov 11 2020 douyan <douyan@kylinos.cn> - 1.1.1-1
|
* Wen Nov 11 2020 douyan <douyan@kylinos.cn> - 1.1.1-1
|
||||||
- update to upstream version 1.1.0-1-0001+1031
|
- update to upstream version 1.1.0-1-0001+1031
|
||||||
Loading…
x
Reference in New Issue
Block a user