From 9207a4c62bce9ba3b3cacc855e23bf0c07f00413 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Wed, 3 Jul 2024 08:14:28 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5integration Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: https://github.com/linuxdeepin/qt5integration/pull/227 --- styleplugins/chameleon/chameleonstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index 2101c0b..e390cd0 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -2812,7 +2812,7 @@ void ChameleonStyle::drawMenuItemBackground(const QStyleOption *option, QPainter } else { color = option->palette.window().color(); - if (color.color().isValid()) { + if (color.color().isValid() && color.color() != Qt::transparent) { QColor c = color.color(); // 未开启窗口混成时不应该设置背景色的alpha通道,应当显示纯色背景(设置StyleSheet时,不加载此设置,防止alpha通道等对其造成影响)