Remove useless code

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
Yuhang Zhao 2021-03-16 09:22:07 +08:00
parent 9cb0ff7073
commit ecd1a2312c
2 changed files with 0 additions and 16 deletions

View File

@ -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);
}

View File

@ -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());