From 68c8cc026233e9694579ce38b8daa25008477d18 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <zhaoyuhang@rankyee.com> Date: ćšć, 28 12æ 2023 16:12:36 +0800 Subject: [PATCH] allow qml demo choose special effect --- 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