!3 fix recorder title bar
From: @dou33 Reviewed-by: @tanyulong2021 Signed-off-by: @tanyulong2021
This commit is contained in:
commit
e5b99ea96f
11
fix_title_bar_issue.patch
Normal file
11
fix_title_bar_issue.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
diff -Naur kylin-recorder-1.2.23/src/mainwindow.cpp kylin-recorder-1.2.23~/src/mainwindow.cpp
|
||||||
|
--- kylin-recorder-1.2.23/src/mainwindow.cpp 2021-06-17 14:46:25.000000000 +0800
|
||||||
|
+++ kylin-recorder-1.2.23~/src/mainwindow.cpp 2021-09-14 11:53:11.591386995 +0800
|
||||||
|
@@ -136,6 +136,7 @@
|
||||||
|
mainWid ->setFixedSize(WIDTH,HEIGHT);
|
||||||
|
// mainWid ->setWindowIcon(QIcon::fromTheme("kylin-recorder", QIcon(":/svg/svg/recording_128.svg")));
|
||||||
|
mainWid ->setWindowTitle(tr("Recorder"));
|
||||||
|
+ mainWid->setWindowFlags(Qt::FramelessWindowHint | Qt::Widget);
|
||||||
|
//屏幕中间老方法
|
||||||
|
// this->move((QApplication::desktop()->width() -WIDTH)/2, (QApplication::desktop()->height() - HEIGHT)/2);
|
||||||
|
//显示在活动屏幕中间新方法
|
||||||
@ -1,12 +1,13 @@
|
|||||||
%define debug_package %{nil}
|
%define debug_package %{nil}
|
||||||
Name: kylin-recorder
|
Name: kylin-recorder
|
||||||
Version: 1.2.23
|
Version: 1.2.23
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: kylin-recorder
|
Summary: kylin-recorder
|
||||||
License: GPL-3.0 License
|
License: GPL-3.0 License
|
||||||
URL: https://github.com/UbuntuKylin/kylin-recorder
|
URL: https://github.com/UbuntuKylin/kylin-recorder
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
patch0: 0001-modify-kylin-recorder-running-errors.patch
|
patch0: 0001-modify-kylin-recorder-running-errors.patch
|
||||||
|
patch1: fix_title_bar_issue.patch
|
||||||
|
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
BuildRequires: qt5-qtscript-devel
|
BuildRequires: qt5-qtscript-devel
|
||||||
@ -42,6 +43,7 @@ kylin-recording
|
|||||||
|
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
%build
|
%build
|
||||||
|
|
||||||
export PATH=%{_qt5_bindir}:$PATH
|
export PATH=%{_qt5_bindir}:$PATH
|
||||||
@ -66,5 +68,8 @@ popd
|
|||||||
%{_datadir}/kylin-recorder/translations/*
|
%{_datadir}/kylin-recorder/translations/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 14 2021 douyan <douyan@kylinos.cn> - 1.2.23-2
|
||||||
|
- fix title bar issue
|
||||||
|
|
||||||
* Thu Aug 19 2021 peijiankang <peijiankang@kylinos.cn> - 1.2.23-1
|
* Thu Aug 19 2021 peijiankang <peijiankang@kylinos.cn> - 1.2.23-1
|
||||||
- Init kylin-recorder package for openEuler
|
- Init kylin-recorder package for openEuler
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user