From 5d03f9153de33d38096f8d3a1043705f1175c7e1 Mon Sep 17 00:00:00 2001 From: Zhang Qipeng Date: Thu, 17 Dec 2020 16:50:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=93=9D=E7=89=99tips=E6=9C=AA=E5=8F=8A?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当鼠标放在蓝牙图标上显示tips时,蓝牙状态变化后没有刷新tips Log: 修复蓝牙tips未及时更新的问题。 Bug: https://pms.uniontech.com/zentao/bug-view-58250.html Change-Id: I08a07f33d2312412734a09d1115ed211c62eace0 --- plugins/bluetooth/bluetoothitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bluetooth/bluetoothitem.cpp b/plugins/bluetooth/bluetoothitem.cpp index b8670b1de..07c1ab0c0 100644 --- a/plugins/bluetooth/bluetoothitem.cpp +++ b/plugins/bluetooth/bluetoothitem.cpp @@ -56,6 +56,7 @@ BluetoothItem::BluetoothItem(QWidget *parent) connect(m_applet, &BluetoothApplet::deviceStateChanged, [&](const Device::State state) { m_devState = state; refreshIcon(); + refreshTips(); }); connect(DGuiApplicationHelper::instance(), &DGuiApplicationHelper::themeTypeChanged, this, &BluetoothItem::refreshIcon); connect(m_applet,&BluetoothApplet::noAdapter,this,&BluetoothItem::noAdapter); @@ -223,4 +224,3 @@ void BluetoothItem::paintEvent(QPaintEvent *event) const QRectF &rfp = QRectF(m_iconPixmap.rect()); painter.drawPixmap(rf.center() - rfp.center() / m_iconPixmap.devicePixelRatioF(), m_iconPixmap); } -