A little simplify.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2020-10-20 14:07:32 +08:00
parent cde5ebcf8d
commit a8f7fdef1d
1 changed files with 1 additions and 1 deletions

View File

@ -2394,7 +2394,7 @@ bool WinNativeEventFilter::setBlurEffectEnabled(void *handle,
// it will cover the blurred effect, so we need to // it will cover the blurred effect, so we need to
// make the background become totally transparent. Achieve // make the background become totally transparent. Achieve
// this by setting a palette to the window. // 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 #endif
if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) { if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {