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 |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/src/core/windowagentbase.h b/src/core/windowagentbase.h
index 1f5e50a..2524829 100644
--- a/src/core/windowagentbase.h
+++ b/src/core/windowagentbase.h
@@ -5,7 +5,7 @@
 
 #include <QtCore/QObject>
 
-#include <QWKCore/qwkcoreglobal.h>
+#include <QWKCore/qwkglobal.h>
 
 namespace QWK {
 
@@ -28,13 +28,20 @@
         };
         Q_ENUM(SystemButton)
 
+        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 startSystemMove(const QPoint &pos);
-        void startSystemResize(Qt::Edges edges, 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