From 62dca50ba6059b374692abb49d72dc6a3ff0f33f Mon Sep 17 00:00:00 2001 From: zsien Date: Fri, 2 Feb 2024 11:09:43 +0800 Subject: [PATCH] fix: popup panel cannot be opened when clicking the labels Issues: linuxdeepin/developer-center#7222 --- plugins/bluetooth/bluetoothmainwidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/bluetooth/bluetoothmainwidget.cpp b/plugins/bluetooth/bluetoothmainwidget.cpp index fb6250ec0..111840d55 100644 --- a/plugins/bluetooth/bluetoothmainwidget.cpp +++ b/plugins/bluetooth/bluetoothmainwidget.cpp @@ -95,8 +95,12 @@ bool BluetoothMainWidget::eventFilter(QObject *watcher, QEvent *event) default: break; } + + return QWidget::eventFilter(watcher, event); } - if (watcher == m_expandLabel && event->type() == QEvent::MouseButtonRelease) { + // else watcher != m_iconWidget + + if (event->type() == QEvent::MouseButtonRelease) { Q_EMIT requestExpand(); return true; }