From ecd1a2312c48588b55c6e21367854333fbd52697 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Tue, 16 Mar 2021 09:22:07 +0800 Subject: [PATCH] Remove useless code Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- framelessquickhelper.cpp | 8 -------- qtacrylicwidget.cpp | 8 -------- 2 files changed, 16 deletions(-) diff --git a/framelessquickhelper.cpp b/framelessquickhelper.cpp index b5abf15..62566ca 100644 --- a/framelessquickhelper.cpp +++ b/framelessquickhelper.cpp @@ -143,13 +143,5 @@ void FramelessQuickHelper::timerEvent(QTimerEvent *event) void FramelessQuickHelper::setBlurEffectEnabled(const bool enabled, const QColor &gradientColor) { -#if 0 -#ifdef Q_OS_WINDOWS - // TODO: let the user choose what he wants. - if (Utilities::isWin10OrGreater()) { - qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True"); - } -#endif -#endif Utilities::setBlurEffectEnabled(window(), enabled, gradientColor); } diff --git a/qtacrylicwidget.cpp b/qtacrylicwidget.cpp index e81e948..e535b44 100644 --- a/qtacrylicwidget.cpp +++ b/qtacrylicwidget.cpp @@ -145,14 +145,6 @@ void QtAcrylicWidget::showEvent(QShowEvent *event) if (!inited) { const QWindow *win = windowHandle(); FramelessWindowsManager::addWindow(win); -#if 0 -#ifdef Q_OS_WINDOWS - // TODO: let the user choose what he wants. - if (Utilities::isWin10OrGreater()) { - qputenv(_flh_global::_flh_acrylic_forceEnableOfficialMSWin10AcrylicBlur_flag, "True"); - } -#endif -#endif Utilities::setBlurEffectEnabled(win, true); m_acrylicHelper.install(win); m_acrylicHelper.updateAcrylicBrush(tintColor());