From a8f7fdef1d0a1110c9b4b17590d595a238cba26d Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Tue, 20 Oct 2020 14:07:32 +0800 Subject: [PATCH] A little simplify. Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- winnativeeventfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winnativeeventfilter.cpp b/winnativeeventfilter.cpp index f50c36b..c94bb08 100644 --- a/winnativeeventfilter.cpp +++ b/winnativeeventfilter.cpp @@ -2394,7 +2394,7 @@ bool WinNativeEventFilter::setBlurEffectEnabled(void *handle, // it will cover the blurred effect, so we need to // make the background become totally transparent. Achieve // this by setting a palette to the window. - widget->setPalette(enabled ? QPalette(QColor(0, 0, 0, 0)) : QPalette()); + widget->setPalette(enabled ? QPalette(Qt::transparent) : QPalette()); } #endif if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {