From 1571d7b43228a0ed4347f681a16b2b23defccda9 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周三, 27 12月 2023 03:52:03 +0800 Subject: [PATCH] Add doxygen documentations --- src/core/windowagentbase.h | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/core/windowagentbase.h b/src/core/windowagentbase.h index 2524829..6748ebc 100644 --- a/src/core/windowagentbase.h +++ b/src/core/windowagentbase.h @@ -24,23 +24,16 @@ Minimize, Maximize, Close, - NumSystemButton, }; Q_ENUM(SystemButton) QVariant windowAttribute(const QString &key) const; - void setWindowAttribute(const QString &key, const QVariant &var); - - bool isEnabled() const; - void setEnabled(bool enabled); + Q_INVOKABLE bool setWindowAttribute(const QString &key, const QVariant &attribute); public Q_SLOTS: - void showSystemMenu(const QPoint &pos); + void showSystemMenu(const QPoint &pos); // Only available on Windows now void centralize(); void raise(); - - Q_SIGNALS: - void enabledChanged(bool enabled); protected: explicit WindowAgentBase(WindowAgentBasePrivate &d, QObject *parent = nullptr); -- Gitblit v1.9.1