kylin-recorder: fix variable used uninitialized problem
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
This commit is contained in:
parent
3d2086be25
commit
76855badbe
46
0001-kylin-recorder-fix-build-warning.patch
Normal file
46
0001-kylin-recorder-fix-build-warning.patch
Normal file
@ -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?= <houhongxun@kylinos.cn>
|
||||
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: 侯红勋 <houhongxun@kylinos.cn>
|
||||
---
|
||||
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的个数:"<<this->parent()->findChildren<ClipButton*>().count();
|
||||
- int padding;//滑块内距
|
||||
if(event->button() == Qt::LeftButton){
|
||||
|
||||
if(this->objectName() == "leftBtn")
|
||||
{
|
||||
qDebug()<<"左按钮的相对位置:"<<this->pos().rx();
|
||||
leftButton_absolutePos = this->pos().rx();
|
||||
- qDebug()<<"左滑块的左边界的位置:"<<leftButton_absolutePos<<"两滑块内距离:"<<padding;
|
||||
+ qDebug()<<"左滑块的左边界的位置:"<<leftButton_absolutePos;
|
||||
//发送左滑块左边界的相对位置的信号
|
||||
emit leftBtn_ReleaseStartPlayer_Signal(leftButton_absolutePos);
|
||||
}
|
||||
else if(this->objectName() == "rightBtn")
|
||||
{
|
||||
rightButton_absolutePos = this->pos().rx() + this->width();
|
||||
- qDebug()<<"右滑块的右边界的位置:"<<rightButton_absolutePos<<"两滑块内距离:"<<padding;
|
||||
+ qDebug()<<"右滑块的右边界的位置:"<<rightButton_absolutePos;
|
||||
qDebug()<<"当前按钮的位置:"<<this->pos().rx();
|
||||
emit rightBtn_ReleaseGetEndPositon_Signal(rightButton_absolutePos);
|
||||
}
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@ -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 <houhongxun@kylinos.cn> - 1.3.0-6
|
||||
- fix a build warning that variable used uninitialized
|
||||
|
||||
* Fri Mar 29 2024 peijiankang <peijiankang@kylinos.cn> - 1.3.0-5
|
||||
- add 0002-fix-build-error-of-kylin-recorder.patch
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user