From 5018ff7d83e34e0ee278d184fc398911d1817633 Mon Sep 17 00:00:00 2001 From: jiawei Date: Mon, 18 Dec 2023 09:13:58 +0800 Subject: [PATCH] fixI7IES3 --- UI/mainwidget.cpp | 46 +++++++++++++++++++++++----------------------- debian/changelog | 10 ++++++++++ 2 files changed, 33 insertions(+), 23 deletions(-) diff --git a/UI/mainwidget.cpp b/UI/mainwidget.cpp index 728557c..39929aa 100644 --- a/UI/mainwidget.cpp +++ b/UI/mainwidget.cpp @@ -1059,34 +1059,34 @@ void Widget::mousePressEvent(QMouseEvent *event) void Widget::slotShowMiniWidget() { - g_user_signal->hideSearchResult(); - // 添加过渡动画 - QPropertyAnimation *animation = new QPropertyAnimation(this, "windowOpacity"); - animation->setDuration(200); - animation->setStartValue(1); - animation->setEndValue(0); - connect(animation, &QPropertyAnimation::valueChanged, [&](QVariant value){ - update(); - }); - connect(animation, &QPropertyAnimation::finished, [&](){ - hide(); - setWindowOpacity(1); - }); +// g_user_signal->hideSearchResult(); +// // 添加过渡动画 +// QPropertyAnimation *animation = new QPropertyAnimation(this, "windowOpacity"); +// animation->setDuration(200); +// animation->setStartValue(1); +// animation->setEndValue(0); +// connect(animation, &QPropertyAnimation::valueChanged, [&](QVariant value){ +// update(); +// }); +// connect(animation, &QPropertyAnimation::finished, [&](){ + this->hide(); +// setWindowOpacity(1); +// }); - QPropertyAnimation *animation_mini = new QPropertyAnimation(m_miniWidget, "windowOpacity"); - animation_mini->setDuration(200); - animation_mini->setStartValue(0); - animation_mini->setEndValue(1); - connect(animation_mini, &QPropertyAnimation::valueChanged, [&](QVariant value){ - m_miniWidget->update(); - }); +// QPropertyAnimation *animation_mini = new QPropertyAnimation(m_miniWidget, "windowOpacity"); +// animation_mini->setDuration(200); +// animation_mini->setStartValue(0); +// animation_mini->setEndValue(1); +// connect(animation_mini, &QPropertyAnimation::valueChanged, [&](QVariant value){ +// m_miniWidget->update(); +// }); if (Global::isWayland) { kdk::UkuiStyleHelper::self()->removeHeader(this); kdk::UkuiStyleHelper::self()->removeHeader((QWidget *)m_miniWidget); } - m_miniWidget->setWindowOpacity(0); + //m_miniWidget->setWindowOpacity(0); m_miniWidget->showNormal(); if (Global::isWayland) { @@ -1096,8 +1096,8 @@ void Widget::slotShowMiniWidget() } m_miniWidget->activateWindow(); - animation->start(QAbstractAnimation::DeleteWhenStopped); - animation_mini->start(QAbstractAnimation::DeleteWhenStopped); +// animation->start(QAbstractAnimation::DeleteWhenStopped); +// animation_mini->start(QAbstractAnimation::DeleteWhenStopped); } void Widget::moveWidget(QString newWidth, QString newHeight) diff --git a/debian/changelog b/debian/changelog index d3bfac0..340838b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +kylin-music (1.1.0.47-ok7.6) yangtze; urgency=medium + + * BUG: #I7IES3 【音乐】切换到精简模式时概率性会先闪一下音乐应用窗口再变为精简模式 + * 任务号:无 + * 需求号:无 + * 其他改动说明:无 + * 其他改动影响域:无 + + -- jiawei Mon, 18 Dec 2023 09:11:23 +0800 + kylin-music (1.1.0.47-ok7.5) yangtze; urgency=medium * BUG: #I8JOEJ 【V2.0】【不重要】【UKUI4.10】【需求 22231】【音乐】点击音量按钮,按键盘上下键无法调节音量(但此时再点一下音量调节条后,按上下键可以正常调节音量)