From 78188cc33a2e96f519832a85d4805791e0a0d886 Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: ćšć, 21 12æ 2023 22:05:46 +0800 Subject: [PATCH] fix shadow frame below win10 --- src/core/windowagentbase.cpp | 18 ++---------------- 1 files changed, 2 insertions(+), 16 deletions(-) diff --git a/src/core/windowagentbase.cpp b/src/core/windowagentbase.cpp index 28c9945..819dfb2 100644 --- a/src/core/windowagentbase.cpp +++ b/src/core/windowagentbase.cpp @@ -55,23 +55,9 @@ return d->context->windowAttribute(key); } - void WindowAgentBase::setWindowAttribute(const QString &key, const QVariant &var) { + bool WindowAgentBase::setWindowAttribute(const QString &key, const QVariant &attribute) { Q_D(WindowAgentBase); - d->context->setWindowAttribute(key, var); - } - - bool WindowAgentBase::isEnabled() const { - Q_D(const WindowAgentBase); - return d->context->isEnabled(); - } - - void WindowAgentBase::setEnabled(bool enabled) { - Q_D(WindowAgentBase); - if (enabled == d->context->isEnabled()) { - return; - } - d->context->setEnabled(enabled); - Q_EMIT enabledChanged(enabled); + return d->context->setWindowAttribute(key, attribute); } void WindowAgentBase::showSystemMenu(const QPoint &pos) { -- Gitblit v1.9.1