diff --git a/0001-kylin-recorder-fix-build-warning.patch b/0001-kylin-recorder-fix-build-warning.patch new file mode 100644 index 0000000000000000000000000000000000000000..f7c84539d87652488f6ab9813f28f16c45522d32 --- /dev/null +++ b/0001-kylin-recorder-fix-build-warning.patch @@ -0,0 +1,46 @@ +From 21962cc2bdffdb840b2eb63159aa8ac959c190da Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= +Date: Fri, 19 Apr 2024 10:54:10 +0800 +Subject: [PATCH] kylin-recorder: fix build warning +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +variable "padding" not uninitiallized, and in fact no effect + +Signed-off-by: 侯红勋 +--- + src/clipbutton.cpp | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/src/clipbutton.cpp b/src/clipbutton.cpp +index bc3cecc..d6731c8 100644 +--- a/src/clipbutton.cpp ++++ b/src/clipbutton.cpp +@@ -57,21 +57,20 @@ void ClipButton::mouseReleaseEvent(QMouseEvent *event) + int rightButton_absolutePos = 0; + + // qDebug()<<"ClipButton的个数:"<parent()->findChildren().count(); +- int padding;//滑块内距 + if(event->button() == Qt::LeftButton){ + + if(this->objectName() == "leftBtn") + { + qDebug()<<"左按钮的相对位置:"<pos().rx(); + leftButton_absolutePos = this->pos().rx(); +- qDebug()<<"左滑块的左边界的位置:"<objectName() == "rightBtn") + { + rightButton_absolutePos = this->pos().rx() + this->width(); +- qDebug()<<"右滑块的右边界的位置:"<pos().rx(); + emit rightBtn_ReleaseGetEndPositon_Signal(rightButton_absolutePos); + } +-- +2.43.0 + diff --git a/kylin-recorder.spec b/kylin-recorder.spec index 98805545eccd6c0959fee4c921c3c086d51d5c25..0182fd067a3a024b04cd448193f5001b2f41642f 100644 --- a/kylin-recorder.spec +++ b/kylin-recorder.spec @@ -1,12 +1,13 @@ Name: kylin-recorder Version: 1.3.0 -Release: 5 +Release: 6 Summary: kylin-recorder License: GPL-3.0-or-later URL: https://github.com/UbuntuKylin/kylin-recorder Source0: %{name}-%{version}.tar.gz Patch01: 0001-add-user-guide-for-kylin-recorder.patch Patch02: 0002-fix-build-error-of-kylin-recorder.patch +Patch03: 0001-kylin-recorder-fix-build-warning.patch BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtscript-devel @@ -42,6 +43,7 @@ kylin-recording %setup -q %patch01 -p1 %patch02 -p1 +%patch03 -p1 %build @@ -68,6 +70,9 @@ popd %{_datadir}/kylin-user-guide/data/guide/kylin-recorder %changelog +* Fri Apr 19 2024 houhongxun - 1.3.0-6 +- fix a build warning that variable used uninitialized + * Fri Mar 29 2024 peijiankang - 1.3.0-5 - add 0002-fix-build-error-of-kylin-recorder.patch