forked from github_mirror/framelesshelper
Remove useless code
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
9cb0ff7073
commit
ecd1a2312c
|
@ -143,13 +143,5 @@ void FramelessQuickHelper::timerEvent(QTimerEvent *event)
|
||||||
|
|
||||||
void FramelessQuickHelper::setBlurEffectEnabled(const bool enabled, const QColor &gradientColor)
|
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);
|
Utilities::setBlurEffectEnabled(window(), enabled, gradientColor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -145,14 +145,6 @@ void QtAcrylicWidget::showEvent(QShowEvent *event)
|
||||||
if (!inited) {
|
if (!inited) {
|
||||||
const QWindow *win = windowHandle();
|
const QWindow *win = windowHandle();
|
||||||
FramelessWindowsManager::addWindow(win);
|
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);
|
Utilities::setBlurEffectEnabled(win, true);
|
||||||
m_acrylicHelper.install(win);
|
m_acrylicHelper.install(win);
|
||||||
m_acrylicHelper.updateAcrylicBrush(tintColor());
|
m_acrylicHelper.updateAcrylicBrush(tintColor());
|
||||||
|
|
Loading…
Reference in New Issue