47 lines
1.9 KiB
Diff
47 lines
1.9 KiB
Diff
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
|
|
|