From fb3f8881572922ab270b8726cb696b2837ae0385 Mon Sep 17 00:00:00 2001 From: dengbo <79958313+dengbo11@users.noreply.github.com> Date: Wed, 5 Jul 2023 09:53:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E6=A0=8F=E5=A3=B0?= =?UTF-8?q?=E9=9F=B3=E9=9D=A2=E6=9D=BF=E4=B8=AD=E5=87=BA=E7=8E=B0=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E6=82=AC=E6=B5=AE=E6=8F=90=E7=A4=BA=20(#876)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 取消声音面板设备悬浮提示 Log: 修复任务栏声音面板中出现异常的悬浮提示的问题 Influence: 任务栏声音面板正常显示 Co-authored-by: dengbo --- plugins/sound/sounddeviceswidget.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/sound/sounddeviceswidget.cpp b/plugins/sound/sounddeviceswidget.cpp index a475dfa35..4b7fe2d0d 100644 --- a/plugins/sound/sounddeviceswidget.cpp +++ b/plugins/sound/sounddeviceswidget.cpp @@ -272,15 +272,11 @@ void SoundDevicesWidget::addPort(const SoundDevicePort *port) portItem->setTextColorRole(QPalette::BrightText); portItem->setData(QVariant::fromValue(port), DeviceObjRole); portItem->setData(AUDIOPORT, ItemTypeRole); - portItem->setToolTip(port->cardName()); static QBrush oldBackGroundStyle = portItem->background(); connect(port, &SoundDevicePort::nameChanged, this, [ = ](const QString &str) { portItem->setText(str); }); - connect(port, &SoundDevicePort::cardNameChanged, this, [ = ](const QString &str) { - portItem->setToolTip(str); - }); connect(port, &SoundDevicePort::isActiveChanged, this, [ = ](bool isActive) { portItem->setCheckState(isActive ? Qt::CheckState::Checked : Qt::CheckState::Unchecked); if (isActive) {