From 51039917996909284fbc2d776a9b8f71fe5e6f9a Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: 周六, 02 12月 2023 17:43:17 +0800 Subject: [PATCH] wip --- src/core/corewindowagent.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core/corewindowagent.h b/src/core/corewindowagent.h index 56c9b99..05a60d2 100644 --- a/src/core/corewindowagent.h +++ b/src/core/corewindowagent.h @@ -11,9 +11,11 @@ class QWK_CORE_EXPORT CoreWindowAgent : public QObject { Q_OBJECT + Q_DISABLE_COPY(CoreWindowAgent) Q_DECLARE_PRIVATE(CoreWindowAgent) + public: - ~CoreWindowAgent(); + ~CoreWindowAgent() override; enum SystemButton { Unknown, @@ -24,6 +26,7 @@ Close, NumSystemButton, }; + Q_ENUM(SystemButton) public Q_SLOTS: void showSystemMenu(const QPoint &pos); @@ -33,9 +36,9 @@ void raise(); protected: - CoreWindowAgent(CoreWindowAgentPrivate &d, QObject *parent = nullptr); + explicit CoreWindowAgent(CoreWindowAgentPrivate &d, QObject *parent = nullptr); - QScopedPointer<CoreWindowAgentPrivate> d_ptr; + const std::unique_ptr<CoreWindowAgentPrivate> d_ptr; }; } -- Gitblit v1.9.1