From be703385249bafd679a125efc1477ff166e2c9e2 Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 摹曛, 21 12月 2023 17:08:40 +0800
Subject: [PATCH] minor tweaks

---
 src/core/contexts/abstractwindowcontext_p.h |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/src/core/contexts/abstractwindowcontext_p.h b/src/core/contexts/abstractwindowcontext_p.h
index 1882369..753e8ee 100644
--- a/src/core/contexts/abstractwindowcontext_p.h
+++ b/src/core/contexts/abstractwindowcontext_p.h
@@ -38,7 +38,7 @@
         inline WindowItemDelegate *delegate() const;
 
         inline QVariant windowAttribute(const QString &key) const;
-        void setWindowAttribute(const QString &key, const QVariant &var);
+        bool setWindowAttribute(const QString &key, const QVariant &attribute);
 
         inline bool isHitTestVisible(const QObject *obj) const;
         bool setHitTestVisible(const QObject *obj, bool visible);
@@ -73,11 +73,8 @@
         void showSystemMenu(const QPoint &pos);
         void notifyWinIdChange();
 
-        inline bool isEnabled() const;
-        void setEnabled(bool enabled);
-
     protected:
-        virtual void winIdChanged(QWindow *oldWindow, bool isDestroyed) = 0;
+        virtual void winIdChanged() = 0;
 
     protected:
         QObject *m_host{};
@@ -93,10 +90,6 @@
         std::array<QObject *, WindowAgentBase::NumSystemButton> m_systemButtons{};
 
         QVariantHash m_windowAttributes;
-
-    private:
-        bool m_internalEnabled = false;
-        QPointer<QWindow> m_windowHandleCache;
     };
 
     inline QObject *AbstractWindowContext::host() const {
@@ -133,10 +126,6 @@
         return m_systemButtonArea;
     }
 #endif
-
-    inline bool AbstractWindowContext::isEnabled() const {
-        return m_internalEnabled;
-    }
 
 }
 

--
Gitblit v1.9.1