From 3871bfc5d3aff45e498fa2944c27e6eb5d146c8e Mon Sep 17 00:00:00 2001
From: SineStriker <trueful@163.com>
Date: 周三, 20 12月 2023 19:56:32 +0800
Subject: [PATCH] Add mac hot-switch implementations

---
 src/core/windowagentbase.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/core/windowagentbase.h b/src/core/windowagentbase.h
index d5b02fa..2524829 100644
--- a/src/core/windowagentbase.h
+++ b/src/core/windowagentbase.h
@@ -31,11 +31,17 @@
         QVariant windowAttribute(const QString &key) const;
         void setWindowAttribute(const QString &key, const QVariant &var);
 
+        bool isEnabled() const;
+        void setEnabled(bool enabled);
+
     public Q_SLOTS:
         void showSystemMenu(const QPoint &pos);
         void centralize();
         void raise();
 
+    Q_SIGNALS:
+        void enabledChanged(bool enabled);
+
     protected:
         explicit WindowAgentBase(WindowAgentBasePrivate &d, QObject *parent = nullptr);
 

--
Gitblit v1.9.1